Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
#include<math.h>
int Sosu(int N){
int i=3;
if(N==2)return 1;
if(N<2 || N%2==0)return 0;
while(i<=sqrt(N)){
if(N%i==0)return 0;
i=i+2;
}
return 1;
}
int main(void){
int N;
int n,i;
int S=0,c=0;
while(1){
scanf("%d",&n);
if(n>=1 && n<=10000)break;
}
for(i=0 ; i<n ; i++){
while(1){
scanf("%d",&... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248242/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248242/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int prime(int x) {
int i;
if (x<2) return 0;
if (x==2) return 1;
if(x%2==0) return 0;
for (i=3; i*i<=x; i+=2)
if(x%i==0) return 0;
return 1; }
int main(void){
int i,n,c=0,a;
scanf("%d", &n);
for(i=0; i<n; i++) {
scanf("%... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248293/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248293/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(){
int array[10000];
int n,i,j,count=0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&array[i]);
}
for(i=0;i<n;i++){
if(array[i]==2 || array[i]==3){
count++;
}
for(j=2;j<sqrt(array[i]);j++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248336/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248336/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main(){
int i, j, n, a, ans=0;
scanf("%d", &n);
for(i = 0 ; i<n ; i++){
scanf("%d", &a);
if(a == 2)ans++;
else if(a == 3)ans++;
else if( (a % 2) == 0)continue;
else {
for(j = 3 ; j<(int)sqrt(a)+1 ; j++){
if( (a % j) == 0)break;
}
if(j == (int)sq... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248387/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248387/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int prices[100001];
int comp(const void *p1, const void *p2) {
return *((int*)p1) - *((int*)p2);
}
int search(int m, int n) {
int start_idx = 0;
int end_idx = n - 1;
while (start_idx < end_idx) {
int mid_idx = start_idx + (end_idx - start_idx) / 2;
if (prices[mid_idx] >... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24843/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24843/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@prices = dso_local global [1... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
/* 整数numが素数か判定する関数 */
int Jdg_Prime(int num){
int sqrt_num=0;
int k;
if(0 == num % 2){
if(2 == num) return 1;
else{
// printf("%dは偶数\n", num);
// printf("%dは合成数\n", num);
return 0;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248530/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248530/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
#define N 10000
#define TRUE 1
#define FALSE -1
int isprime(int x){
if(x==2) return TRUE;
if(x<2 || x%2==0) return FALSE;
int i=3;
while(i<=(int)sqrt(x)){
if(x%i==0) return FALSE;
i=i+2;
}
return TRUE;
}
int main(){
int A[N],n,i,j,count=0;
scanf("%d",&n);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248574/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248574/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int length,data[10000],i,j,flag,count=0;
//input
scanf("%d",&length);
for(i=0;i<length;i++){
scanf("%d",&data[i]);
}
for(i=0;i<length;i++){
flag=1;
for(j=2;j*j<=data[i];j++){
if(data[i]%j==0){
flag=0;
break;
}
}
if(flag)count++;
}
printf("%d\n",count);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248624/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248624/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main(){
int i,j,n,cnt,flag,num;
scanf("%d",&n);
for(i = 0;i < n;i++) {
flag = 0;
scanf("%d",&num);
for(j = 2;j * j <= num;j++) {
if(num % j == 0) {
flag = 1;
break;
}
}
if(flag != 1) cnt++;
}
printf("%d\n",cnt);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248668/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248668/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
#define N 10000
int isprime(int);
int main(){
int i = 0, j = 0, k = 0;
int n = 0, flag = 0;
int list[N];
scanf("%d",&n);
for(i = 0; i < n; i++){
scanf("%d",&list[i]);
}
for(i = 0; i < n; i++){
flag = isprime(list[i]);
if(flag == 1)k++;
}
printf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248710/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248710/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main(){
int i, j, cnt = 0, n, flag, num;
scanf("%d",&n);
for(i = 0; i < n; i++)
{
flag = 0;
scanf("%d",&num);
for(j = 2; j * j <= num; j++)
{
if(num % j == 0)
{
flag = 1;
break;
}
}
if(flag != 1)cnt++;
}
prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248754/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248754/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
int check_prime(int n){
if ( n <= 3 ) return 1;
if( n%2 == 0 || n%3 == 0 ) return 0;
for(int i = 5; i*i <= n; i += 6){
if( n%i == 0 || n%(i+2) == 0 ) return 0;
}
return 1;
}
int main(void){
int N;
int numbers[10000];
int primes... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248804/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248804/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int A[10000];
int count=0;
void iszhi(int A[],int n)
{
int flag=1,i,j;
for(i=0;i<n;i++)
{
for(j=2;j<=(int)sqrt(A[i]);j++)
//for(j=2;j<A[i];j++)
if(A[i]%j==0)
{
flag=0;
break;
}
if(flag)
{
count++;
//printf("a=%d\n",A[i]);
}
flag=1;
}
}
int ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248848/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248848/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@count = dso_local local_un... |
#include <stdio.h>
int prime(int n){
int p = 2;
while(p*p<=n){
if(n%p==0){
return 0;
}
p++;
}
return 1;
}
int main(){
int N,i;
int cnt = 0;
scanf("%d",&N);
for(i=0;i<N;i++) {
int n;
scanf("%d",&n);
if(prime(n)) {
cnt++;
}
}
printf("%d\n",cnt);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248899/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248899/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
int i,a,*entity,cnt,n,j,b;
scanf("%d",&n);
cnt=n;
entity=(int*)malloc(sizeof(int)*n);
for(i=0;i<=n-1;i++)
scanf("%d",entity+i);
for(i=0;i<=n-1;i++)
{
b=sqrt(entity[i]);
for(j=2;j<=b;j++)
{
if(entity[i]%j==0)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248941/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248941/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
#define N 10000
int isprime(int);
int main(){
int a,b=0,i,n,w;
scanf("%d",&w);
for(i=0;i<w;i++){
if(scanf("%d",&a)==EOF){
break;
}
if(isprime(a)==1){
b++;
}
}
printf("%d\n",b);
}
int isprime(int x){
int y;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248992/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248992/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
#define N 10000
#define TRUE 1
#define FALSE 0
int isprime(int);
int main()
{
int i,a,b[N],c=0;
scanf("%d",&a);
for(i=0;i<a;i++){
scanf("%d",&b[i]);
if(isprime(b[i])==TRUE)c++;
}
printf("%d\n",c);
return 0;
}
int isprime(int x){
int i,a;
if(x==2)return ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249034/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249034/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int isPrime(int x){
int i;
if(x<2)return 0;
else if(x==2)return 1;
if(x%2==0)return 0;
for(i=3;i*i<=x;i+=2){
if(x%i==0)return 0;
}return 1;
}
int main(){
int n,x,i;
int cnt=0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&x);
if(isPrime(x))cnt++;
}
printf("%d\n",cn... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249078/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249078/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(void)
{
int n,num[10000],i,j,ans=0,jud=0;
scanf("%d", &n);
for(i=0;i<n;i++){
scanf("%d", &num[i]);
if(num[i]==2||num[i]==3||num[i]==5){
ans++; continue;
}
if(num[i]%2==0) continue;
for(j=3;j<sqrt(num[i])+1;j+=2){
if(num[i]%j==0){
jud... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249120/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249120/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <ctype.h>
#include <limits.h>
#define inf (INT_MAX-1)
#define INF 9223372036854775807
#define EPS 1e-10
#define sq(n) ((n)*(n))
#define rep(i,n) for(i=0;i<n;i++)
#define rev(i,n) for(i=n-1;i>=0;i--)
#define ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249171/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249171/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@mod = dso_local local_unna... |
#include <stdio.h>
inline static int read_int() {
int x = 0, k;
while ((k = getchar_unlocked() - 'L') >= 0) x = x * 10 + k;
return x;
}
inline static void put_int(int x) {
int s = 0;
char f[6] = {'0', '0', '0', '0', '0', '0'};
if (!x) {
putchar_unlocked('0');
return;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249214/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249214/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct._IO_FILE = type { i... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
// point**10^100 回は偶数回
int main(void){
char str[1000000];
int **num;
scanf("%s", str);
int N = strlen(str);
num = (int **)calloc(2, sizeof(int*));
for(int i=0; i<2; i++)
num[i] = (int *)calloc(N, sizeof(int));
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249258/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249258/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int i, H, W, C[2], D[2];
char S[1010][1010] = {};
scanf("%d %d", &H, &W);
scanf("%d %d", &(C[0]), &(C[1]));
scanf("%d %d", &(D[0]), &(D[1]));
for (i = 5; i < H + 5; i++) scanf("%s", &(S[i][5]));
short q[5000001][2];
int j, k, l, dist[1010][1010], head, tail;
for (i = 5; i < H... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249308/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249308/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#define pai 3.14159265
int main(void){
char s[81];
int buf;
int i,j;
while(fgets(s,sizeof(s),stdin) != '\0'){
for(i = 0;i < 26;i++){
for(j = 0;j < strlen(s);j++){
if(s[j] >= 65&&s[j] <= 90){
buf = s[j]-65+1;
buf %= 26;
s[j] = buf+65;
}else if(s[j]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249380/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249380/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include <stdio.h>
#include <string.h>
#define MAX 80
/*
¶ðó·éI[g}g
state 0( )¨state 1(t)¨state 2(h)¨state 3(e)¨state 4( )¨OK
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@¥(i)¨state 5(s)¨state 4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@¤(a)¨... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249474/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249474/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include<stdio.h>
#include<string.h>
int main(void)
{
int i, j;
int lenstr;
char str[100];
while (fgets(str, 100, stdin) != NULL) {
j = 0;
while (j++ < 26) {
for (i = 0; i < strlen(str); i++) {
if (str[i] >= 'a' && str[i] <= 'z') str[i] += 1;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249531/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249531/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include <stdio.h>
int solve(int n, int m, int a){
short line[101][1001] = {};
int i, j,h, p, q;
for(i = 0; i < m; i++){
scanf("%d %d %d", &h, &p, &q);
line[p][h] = q;
line[q][h] = p;
}
i = 1000;
j = 0;
while(j < m){
if(line[a][i] != 0){
a = line[a][i];
j++;
}
i--;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249582/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249582/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#define MAX 100000
int MinIndex(int array[], int N)
{
int i;
int tmp;
int index;
tmp = array[0];
index = 0;
for(i=1; i<N; i++)
{
if(array[i]<tmp)
{
tmp = array[i];
index = i;
}
}
return index;
}
int MaxIndex(int array[], int N)
{
int i;
int tmp;
int index;
tmp = array[0];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249632/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249632/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
long long min(long long a, long long b){
if(a>b) return b;
else return a;
}
int main(void){
int n,k;
long long h[100005],dp[100005]={0};
scanf("%d",&n);
scanf("%d",&k);
for(int i=1;i<=n;i++) scanf("%lld",&h[i]);
for(int i=2;i<n+1;i++){
dp[i]=dp[i-1]+fabs(h[i]-h... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249676/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249676/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h> // uint64_t
#define NUM_MAX 100000
#define BUF_SIZE (NUM_MAX*7+50)
int get_int2(int *a1, int *a2) {
#ifdef BUF_SIZE
char line[BUF_SIZE];
if(!fgets(line, BUF_SIZE, stdin)) return -1;
sscanf(line, "%d %d", a1, a2);
#else
#error
#endif
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249719/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249719/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
int main(){
int ashiba_num, jump_num;
int i,j;
int dP_min,dP_now;
scanf("%d", &ashiba_num);
scanf("%d", &jump_num);
int ashiba_cost[ashiba_num];
int dP[ashiba_num + 1];
for (i = 0 ; i < ashiba_num ; i++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249762/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249762/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int h[100005], l;
int comp_h(int a, int b)
{
if (h[a] > h[b])
return 1;
else
return -1;
}
void swap_h(int a, int b)
{
int f = h[a];
h[a] = h[b];
h[b] = f;
return;
}
void push(int ne)
{
h[l] = ne;
int p = l;
l++;
for (; p > 0; p = (p - 1) / 2)
if (comp_h((p - 1) / 2, p) > 0)
swap_h((... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24982/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24982/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@h = dso_local local_unnamed_... |
// AOJ 2960 Four Tea
// 2019.8.8 bal4u
#include <stdio.h>
#include <string.h>
#define MAX 505
#define INF 10000000
int p[5], t[5];
int dp[MAX];
int main()
{
int i, j, k, N, a, ma, ans;
scanf("%d", &N);
for (i = 1; i <= 4; i++) scanf("%d", p+i);
for (i = 1; i <= 4; i++) scanf("%d", t+i);
for (i = 1; i < MAX; i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249870/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249870/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include<math.h>
int main (){
double x1, x2, y1, y2,p;
scanf("%lf%lf%lf%lf",&x1,&y1,&x2,&y2);
p=(x2-x1)*(x2-x1) + (y2-y1)*(y2-y1);
p=sqrt(p);
printf("%f",p);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249913/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249913/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main (void){
double x1,x2,y1,y2;
double d;
scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2);
d = sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1));
printf("%f\n",d);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249957/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249957/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int t,i,s=0,n;
scanf("%d",&t);
for(i=1;i<=t;i++)
{
scanf("%d",&n);
s=0;
s=n/7;
if(n%7!=0)
s++;
printf("%d\n",s);
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr cons... |
#include <stdio.h>
#include <math.h>
int main(void)
{
double x1, y1, x2, y2, x, y, s, d;
scanf("%lf%lf%lf%lf", &x1, &y1, &x2, &y2);
x = x1-x2;
y = y1-y2;
s = x*x + y*y;
d = sqrt(s);
printf("%f\n", d);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250041/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250041/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(void)
{
double x1, y1, x2, y2,X,Y,D;
double distance;
scanf("%lf %lf %lf %lf",&x1, &y1, &x2, &y2);
X = pow(x2-x1,2);
Y = pow(y2-y1,2);
D = X + Y;
distance = sqrt(D);
printf("%f\n",distance);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250092/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250092/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(void){
double x1,x2,y1,y2,sum;
scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2);
sum=(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2);
printf("%f\n",sqrt(sum));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250135/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250135/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(void){
double x1,y1,x2,y2,ln;
scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2);
ln=(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2);
printf("%f\n",sqrt(ln));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250179/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250179/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(void){
double x1,y1,x2,y2,z,ans;
scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2);
z=pow(x1-x2,2)+pow(y1-y2,2);
ans=pow(z,0.5);
printf("%f\n",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250221/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250221/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(void)
{
double a,b,c,d,x,y;
scanf("%lf %lf %lf %lf",&a,&b,&c,&d);
if(c-a<0)
{
x=-1*(c-a);
} else {
x=c-a;
}
if(d-b<0)
{
y=-1*(d-b);
} else {
y=d-b;
}
double answer=sqrt(pow(x,2)+pow(y,2));
printf("%lf\n",answer);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250265/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250265/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main()
{
double x1,y1,x2,y2,a,i;
scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2);
a=(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2);
i=sqrt(a);
printf("%lf\n", i);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250308/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250308/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define next(a) ( ((a)+1)%SIZE )
#define ABS(x) ( (x)>0 ? x : -(x) )
#define MIN(x,y) ( (x) < (y) ? (x) : (y) )
#define MAX(x,y) ( (x) > (y) ? (x) : (y) )
#define INF 1000000000
#define SIZE 100000
typedef struct qu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250351/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250351/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.queue = type { i32,... |
#include <stdio.h>
#include <math.h>
int main()
{
double x1, y1, x2, y2;
scanf("%lf%lf%lf%lf", &x1, &y1, &x2, &y2);
printf("%.8lf\n", hypot(x1-x2, y1-y2));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250395/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250395/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main(void){
double x1,y1,x2,y2,r;
scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2);
if(x1>x2){
if(y1>y2)r=sqrt(pow((x1-x2),2)+pow((y1-y2),2));
else r=sqrt(pow((x1-x2),2)+pow((y2-y1),2));
}else{
if(y1>y2)r=sqrt(pow((x2-x1),2)+pow((y1-y2),2));
else r=sqrt(pow((x2-x1),2)+pow((y2-y1),2));
}
p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250438/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250438/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include<math.h>
int main(void) {
double a,b,c,d;
double e;
scanf("%lf%lf%lf%lf",&a,&b,&c,&d);
e=(a-c)*(a-c)+(b-d)*(b-d);
e=sqrt(e);
printf("%f",e);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250481/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250481/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int d[10],v1,v2,i,s;
double ds;
while(scanf("%d",&d[0])!=EOF){
s=d[0];
for(i=1;i<10;i++){
scanf(",%d",&d[i]);
s+=d[i];
}//printf("%d\n",s);
scanf(",%d,%d",&v1,&v2);
ds=(double)s*v1/(v1+v2);//printf("%f\n",ds);
for(i=0;i<10;i++){
//if(ds<=d[i]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250524/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250524/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int d[20],i,a,b;
double x,y;
int main(){
while(scanf("%d",&d[0])!=EOF){
x=d[0];y=0.0;
for(i=1;i<10;i++)scanf(",%d",&d[i]),x+=d[i];
scanf(",%d,%d",&a,&b);
x=x*a/(a+b);i=0;
while(y<x)y+=d[i],i++;
printf("%d\n",i);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250582/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250582/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*
* ID: 0034
* Problem: Railway lines
*/
#include <stdio.h>
int main(void)
{
int d[10];
double v1, v2;
double cross_point;
while (1) {
if (scanf("%d,", d) <= 0)
return 0;
int i, total = d[0];
for (i = 1; i < 10; i++) {
scanf("%d,", d + i);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250647/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250647/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int n[100010];
int main()
{
int N;
scanf("%d",&N);
int temp;
for(int x=1;x<105;x++){
for(int y=1;y<105;y++){
for(int z=1;z<105;z++){
temp = x*x + y*y + z*z + x*y + y*z + z*x;
n[temp]++;
}
}
}
for(int i=1;i<=N;i++){printf("%d\n",n[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250698/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250698/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main(void)
{
int N;
scanf("%d", &N);
int max;
int count;
double z1, z2;
for(int i=1;i<=N;i++){
count = 0;
max = sqrt(N);
for(int x=1;x<max;x++){
for(int y=1;y<x+1;y++){
z1 = (-x-y+sqrt(-3*x*x-2*x*y-3*y*y+4*i))/2;
z2 = (-x-y-sqrt(-3*x*x-2*x*y-3... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250740/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250740/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int solve(int data[],int size);
int main()
{
int n=0;
int x,y,z;
int i;
int f[60010]={0};
scanf("%d",&n);
for(x=1;x<=100;x++)
{
for(y=1;y<=100;y++)
{
for(z=1;z<=100;z++)
{
f[(x*x+y*y+z*z+x*y+y*z+z*x)]++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250784/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250784/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
/*studentID:107033227 Name:Mark Yeh Department:PME22*/
int main()
{
int a,b,sum,i;
while(scanf("%d %d", &a, &b)!=EOF)
{
int i=1;
sum=a+b;
do
{
sum=sum/10;
i++;
}while(sum!=0);
printf("%d\n",i-1);
}
retur... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250834/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250834/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main() {
int a,b;
while(scanf("%d%d",&a,&b)!=EOF)
{ int x=a+b; int cnt=0; while(x)
{ cnt++; x/=10; } printf("%d\n",cnt);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250878/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250878/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int a,b,i,keta;
while(scanf("%d %d",&a,&b) != EOF){
keta = 1;
for(i = 10;;i *= 10) {
if((a + b) / i) keta++;
else {
printf("%d\n",keta);
break;
}
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250920/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250920/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(int argc,const char *argv[]){
int a,b,keta,c,i;
while(scanf("%d %d",&a,&b)!=EOF){
keta=0;
a=a+b;
for(i=0;i<=1000000;i=i*10){
a=a/10;
if(a==0){
keta++;
break;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250964/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250964/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#define DATA_NUM (200)
int calc_digit(int);
int main(void)
{
int a, b;
while(scanf("%d %d\n",&a,&b)!=EOF)
{
printf("%d\n",calc_digit(a+b));
}
return 0;
}
int calc_digit(int x)
{
int i;
for(i=1; ; i++)
{
x = x/10;
if(x==0) break;
}
return i;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251006/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251006/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
long long int v,t;
scanf("%lld",&v);
if(v==2)
t=2;
else
t=1;
printf("%lld",t);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25105/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25105/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int digit(int x)
{
int i;
for(i=1; x/=10; i++)
;
return i;
}
int main()
{
int a, b;
while(scanf("%d %d", &a, &b) != EOF)
printf("%d\n", digit(a+b));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251093/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251093/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main() {
int a[200],b[200],c;
int i,j,digit;
i=0;
while (scanf("%d",&a[i])!=EOF) {
scanf("%d",&b[i]);
i++;
}
for (j = 0; j < i; j++) {
c=a[j]+b[j];
digit=1;
while((c=c/10)!=0)digit++;
printf("%d\n",digit);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251136/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251136/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int a,b,i;
while(scanf("%d %d",&a,&b) != EOF){
a += b;
for(i = 0; a/10 != 0; i++) a /= 10;
printf("%d\n",i+1);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251187/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251187/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int a,b,c,d,x,y;
scanf("%d %d %d %d", &a,&b,&c,&d);
if(b%c==0)
x=b/c;
else
x=b/c+1;
x=x*a;
//printf("%d ",x);
if(x%d==0)
y=x/d;
else
y=x/d+1;
printf("%d", y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25123/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25123/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(){
int a,b,sum,digit=0;
while(scanf("%d %d",&a,&b)!=EOF){
digit=0;
sum=a+b;
while(sum>0){
sum=sum/10;
digit++;
}
printf("%d\n",digit);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251273/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251273/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int i,j,a,b,c,ans=0;
int main(){
while(scanf("%d %d",&a,&b)!=EOF){
c=a+b;
while(c!=0)c=c/10,ans++;
printf("%d\n",ans);ans=0;
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251316/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251316/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ans = dso_local local_unna... |
#include <stdio.h>
int main(void)
{
int a;
int b;
int q;
int p;
int i;
while (scanf("%d%d", &a, &b) != EOF){
p = 0;
q = 1;
i = 1;
while (q != 0){
i *= 10;
q = (a + b)/ i;
p++;
}
printf("%d\n", p);
}
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251381/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251381/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(void){
int a, b;
while(~scanf("%d %d",&a,&b))
printf("%d\n",(int)log10(a+b)+1);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251446/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251446/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int i,k,s,p,n,t;
scanf("%d%d%d%d",&k,&n,&s,&p);
for(i=1;;i++)
{
t=(i*p)/k;
if(t*s>=n)
break;
}
printf("%d",i);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25149/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25149/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main()
{
int k,n,s,p;
scanf("%d%d%d%d",&k,&n,&s,&p);
int per_man_sheet;
if(s>=n)
{
per_man_sheet = 1;
}
else
{
if(n%s==0){
per_man_sheet = (n/s);
}else{
per_man_sheet = (n/s)+1;
}
}
int t_sheet = k... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25154/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25154/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(void){
int a,b,an,i;
while(scanf("%d %d",&a,&b)!=EOF){
an = a+b;
if(an==0){
i=1;
}else{
for(i=0;an>0;i++){
an/=10;
}
}
printf("%d\n",i);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251583/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251583/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(){
int a,b,num,i,j;
while(scanf("%d %d", &a ,&b) != EOF)
{
num = a +b;
for(j = 0;num != 0; j++){
num = num/10;
}
printf("%d\n",j);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251640/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251640/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a,b,c,cnt;
while(scanf("%d %d",&a,&b)!=-1){
c=a+b;cnt=1;
for(;c>=10;c/=10)cnt++;
printf("%d\n",cnt);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251691/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251691/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(void)
{
int a,b;
while(scanf("%d%d",&a,&b) != EOF)
{
printf("%d\n",(int)(log10((double)(a+b))+1));
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251734/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251734/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int a, b;
while(scanf("%d %d", &a, &b) != EOF){
int c, d=0;
c = a+ b;
while(c != 0){
c = c/ 10;
d++;
}
printf("%d\n", d);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251785/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251785/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(void)
{
int a[200], b[200];
int i = 0;
while (scanf("%d %d", &a[i], &b[i]) != EOF){
i++;
}
for (int j = 0; j < i; j++){
int x = a[j] + b[j];
int digit = 0;
while (x >= pow(10, digit)){
digit++;
}
printf("%d\n", digit);
}
retur... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251835/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251835/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#define N 1000000
struct queue {
int data[N];
char name[N][11];
int head;
int tail;
int max;
};
void initialize( struct queue *q, int max ) {
int i = 0;
int j = 0;
q -> head = 0;
q -> tail = 0;
q -> max = max;
for( i = 0; i < max; i++ ) {
q -> data[i] = 0;
for ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251879/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251879/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.queue = type { [100... |
/* C */
// ?????\??? P89
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int n;
int q;
int loop0;
char name[100001][11];
int time[100001];
void queue(void){
int curr = 0;
int elapsedTime = 0;
int end = n;
int flag = 1;
while(flag){
if( time[curr] - q <= 0 ){
//???????????????
elapsedTime +=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251921/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251921/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@n = dso_local global i32 0... |
#include<stdio.h>
#include<string.h>
#define LEN 100005
typedef struct P{
char name[100];
int time ;
} P;
int tail,head,n;
P Q[LEN];
void enqueue(P x){
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue(){
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, int b){return ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251972/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251972/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.P = type { [100 x i... |
#include<stdio.h>
#include<string.h>
#define LEN 100005
typedef struct pp{
char name[100];
int t;
}P;
P Q[LEN+1];
int head=0, tail=0, n;
void enqueue(P x){
Q[tail]=x;
if(tail+1==LEN)tail=0;
else tail=tail+1;
}
P dequeue(void){
P x;
x=Q[head];
if(head+1==LEN)head=0;
else head=head+1;
return x;
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252014/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252014/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pp = type { [100 x ... |
#include<stdio.h>
#define name 10
#define N 100005
typedef struct{
char s[name];
int time;
}R;
R a[N+1];
int head,tail;
void Enqueue(R );
R Dequeue(void);
int main()
{
int i,n,q,T=0;
R y;
scanf("%d%d",&n,&q);
for(i=0;i<n;i++){
scanf("%s%d",y.s,&y.time);
Enqueue(y);
}
while(n!=0){
y=Dequeue();... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252058/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252058/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.R = type { [10 x i8... |
#include<stdio.h>
#define N 100000
typedef struct{
char n[10];
int q;
}Data;
int main(){
int n,q,i,j,head=0,tail,sum=0;
Data data[N];
scanf("%d%d",&n,&q);
for(i=0;i<n;i++){
scanf("%s%d",&data[i].n,&data[i].q);
}
head=0;
tail=n;
while(1){
data[head].q-=q;
sum+=q;
if(data[head].q... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252100/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252100/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Data = type { [10 x... |
#include <stdio.h>
#include <string.h>
#define LEN 100005
typedef struct pp{
char name[100];
int t;
} P;
P Q[LEN];
int head, tail,n;
void enqueue(P x){
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue(){
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, int b){return a < b ? a : b;}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252144/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252144/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pp = type { [100 x ... |
#include <stdio.h>
#include <string.h>
#define LEN 100001
int head, tail;
typedef struct pp{
char name[100];
int t;
} p;
p Quene[LEN];
void enquene(p x){
Quene[tail] = x;
tail = (tail + 1) % LEN;
}
p dequene(){
p x = Quene[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, int b){
if (a < b){
return... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252188/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252188/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pp = type { [100 x ... |
#include<stdio.h>
#include<string.h>
#define LEN 100005
int min(int,int);
typedef struct pp{
char name[100];
int t;
}P;
P Q[LEN+1];
int head,tail,n;
void enqueue(P x){
Q[tail]=x;
tail=(tail+1)%LEN;
}
P dequeue(){
P x=Q[head];
head=(head+1)%LEN;
return x;
}
int min(int a,int b){return a<b?a:b;}
int ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252230/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252230/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pp = type { [100 x ... |
#include <stdio.h>
#define len 100005
typedef struct q{
char name[100];
int time;
}q;
q pro[len];
int head,tail,n;
q enqueue(q x){
pro[tail]=x;
tail=(tail+1)%len;
}
q dequeue(void){
q x=pro[head];
head=(head+1)%len;
return x;
}
int main(void){
int n,max,total=0,i;
q x;
scanf("%d ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252281/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252281/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.q = type { [100 x i... |
#include<stdio.h>
#define QUEUE_SIZE 1000000 /* ?????????????????\????????????????????§??° */
#define SUCCESS 1 /* ?????? */
#define FAILURE 0 /* ??±??? */
typedef struct{
char name[10];
int time;
}PROCESS;
typedef PROCESS data_t; /* ???????????? */
data_t queue_data[QUEUE_SIZE]; /* ????????... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252324/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252324/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.PROCESS = type { [1... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX 100000
int head,tail;
int Q[MAX];
char QN[MAX][11];
char retname[11];
void initialize(void){
head=0;
tail=0;
}
int isEmpty(){
return head==tail;
}
int isFull(){
return head==(tail+1)%MAX;
}
void enqueue(char *name, int x){
if(isFull()){
e... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252375/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252375/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@head = dso_local local_unn... |
#include <stdio.h>
#include <string.h>
#define MAX 100005
typedef struct pp
{
char name[100];
int t;
}P;
P Q[MAX];
int tail, head, n;
void enqueue(P x)
{
Q[tail] = x;
tail = (tail + 1) % MAX;
}
P dequeue()
{
P x = Q[head];
head = (head + 1) % MAX;
return x;
}
int main()
{
P x;
int i, q, sum = 0;
scanf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252418/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252418/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pp = type { [100 x ... |
#include<stdio.h>
int main(void){
int n,q;
scanf("%d",&n); scanf("%d",&q);
char qname[n][11];
int qtime[n];
int next[n];
int start=0,end=n-1;
int tcount=0;
int i;
scanf("%s",qname[0]); scanf("%d",&qtime[0]);
for(i=1;i<n;i++){
scanf("%s",qname[i]); scanf("%d",&qtime[i]);
next[i-1]=i;
//printf("%s\n",qname[i]);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252461/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252461/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
#define N 100000
struct P{
char name[100];
int num;
};
int head, tail, n, c=0, q;
struct P Q[N];
void enqueue(){
Q[head].num=(Q[head].num)-q;
Q[tail] = Q[head];
if(tail > n+1){tail = 0;}
else tail++;
}
void dequeue(){
printf("%s %d\n",Q[head].name, Q[head].num+c);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252504/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252504/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.P = type { [100 x i... |
#include<stdio.h>
#include<string.h>
#define LEN 100005
typedef struct PP{
char name[100];
int t;
}P;
P Q[LEN];
int head,tail,n;
void enqueue(P x){
Q[tail]=x;
tail=(tail+1)%LEN;
}
P dequeue(){
P x=Q[head];
head=(head+1)%LEN;
return x;
}
int min(int a,int b){
return a<b ? a:b;
}
int main(){
int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252562/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252562/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.PP = type { [100 x ... |
#include<stdio.h>
#include<string.h>
void QueSort(char (*A)[11],int *,int,int);
int main(){
int n,q;
char A[100000][11];
int B[100000];
int i;
scanf("%d%d",&n,&q);
for(i=0;i<n;i++){
scanf("%s%d",&A[i],&B[i]);
}
QueSort(A,B,n,q);
return 0;
}
void QueSort(char (*A)[11],int *B,int n,int q){
int ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252605/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252605/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
typedef struct proces{
char name[10];
int count;
int time;
}
def;
int head,tail,n;
def a[100000];
void enq(def s){
a[tail]=s;
tail=(tail+1) % 100000;
}
def deq(){
def sd=a[head];
head = (head+1) % 100000;
return sd;
}
int min(int k,int l){
if(k>l) r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252656/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252656/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.proces = type { [10... |
#include<stdio.h>
#include<string.h>
#define LEN 1000000
typedef struct pp{
char name[100];
int t;
}P;
P Q[LEN+1];
int head, tail, n;
void enqueue(P x)
{
head++;
Q[++tail] = x;
}
P dequeue()
{
P tmp = Q[head++];
return tmp;
}
int main()
{
int elaps = 0, c;
int i, q;
P u;
scanf("%d %d", &n, &q)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252706/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252706/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pp = type { [100 x ... |
#include<stdio.h>
#include<string.h>
#define LEN 100005
int min(int a, int b) {return a < b ? a : b;}
typedef struct pp{
char name[100];
int t;
} P;
P Q[LEN+1];
int head, tail, n;
void enqueue(P x){
Q[tail]=x;
if(tail==LEN)tail=1;
else tail++;
}
P dequeue(){
P x =Q[head];
if(head==LEN)head=1;
else head++;
return x... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252757/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252757/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pp = type { [100 x ... |
#include<stdio.h>
int main()
{
int i,n,hpm,marks;
float total=0;
scanf("%d%d",&n,&hpm);
for(i=0;i<n;i++)
{
scanf("%d",&marks);
total= total+ (float)marks;
}
i=n;
while((total/n)<(float)hpm-0.5)
{
to... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25280/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25280/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdlib.h>
#include<stdio.h>
#include<string.h>
#define LEN 100000
struct queue
{
char name[10];
int t;
};
struct queue Q[LEN];
int head, tail, n, q;
void enqueue(struct queue x)
{
Q[tail] = x;
tail = (tail + 1) % LEN;
}
struct queue dequeue()
{
struct queue x = Q[head];
head ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252843/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252843/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.queue = type { [10 ... |
#include <stdio.h>
// #include <string.h>
#define LEN 100005
typedef struct pp{
char name[100];
int t;
} P;
P Q[LEN+1];
int head, tail, n;
void enqueue();
P dequeue();
void initialize();
int isEmpty();
int isFull();
int min(int, int);
int main(){
int elaps = 0, c;
int i,q;
P u;
scanf("%d%d", &... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252887/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252887/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pp = type { [100 x ... |
#include<stdio.h>
int main()
{
float n, p, i ,j , k, sum = 0;
int res;
scanf("%f %f", &n, &k);
for(i=0;i<n;i++){
scanf("%f", &p);
sum = sum + p;
}
//printf("%d", sum);
float avg;
avg = (sum / n);
if(avg < (k-0.5)){
for(i=1;;i++){
avg = (sum + i*k) / (n +... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25293/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25293/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<string.h>
#define LENGTH 100005
typedef struct pp{
char name[100];
int t;
}P;
P Q[LENGTH];
int head,tail,n;
void enqueue(P x){
Q[tail]= x;
tail=(tail+1) % LENGTH;
}
P dequeue(){
P x =Q[head];
head=(head+1)%LENGTH;
return x;
}
int min(int a,int b){return a<b ? a:b;}
int ma... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252973/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252973/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pp = type { [100 x ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.