Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
int main(void)
{
double r;
scanf("%lf", &r);
printf("%f %f\n", r * r * 3.141592653589, r * 2 * 3.141592653589);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262679/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262679/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){
double r;
double pi=3.141592653589;
scanf("%lf", &r);
printf("%lf %lf\n", pi*r*r, pi*2*r);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262729/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262729/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) {
double r;
double pi = 3.14159265359, circ_area, length;
scanf("%lf\n", &r);
if (0 < r && r < 10000) {
circ_area = r * r * pi;
length = (2 * r) * pi;
printf("%0.6f %0.6f\n", circ_area, length);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262772/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262772/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)
{
double r,pi = 3.141592653589;
scanf("%lf",&r);
printf("%f %f\n",pi*r*r,2*r*pi);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262822/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262822/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 r;
scanf("%lf",&r);
printf("%lf %lf\n",r * r * M_PI,2 * M_PI * r);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262866/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262866/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()
{
double r, pi = 3.141592653589;
scanf("%lf", &r);
printf("%f %f\n", pi * r * r, 2 * r * pi);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262909/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262909/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(){
double r;
double s,l;
double p = 3.141592653589;
scanf("%lf", &r);
s = r*r*p;
l = 2*p*r;
printf("%f %f\n",s,l);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262952/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262952/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 r,area,len;
scanf("%lf",&r);
len = 2 * r * M_PI;
area = r * r * M_PI;
printf("%f %f",area,len);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263016/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263016/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... |
// The Best Friend of a Man
#include<stdio.h>
int main(void)
{
long long int n,k,i,j,arr[501],tot_add;
scanf("%lld %lld",&n,&k);
for(i = 0;i<n;i++)
scanf("%lld",&arr[i]);
tot_add = 0;
for(i = 0;i<n;i++)
{
if(i<=(n-2))
{
if((arr[i]+arr[i+1])<k)
{
tot_add += k - (arr[i]+arr[i+1]);
arr[i+1] = ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26306/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26306/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 A[1000];
int main()
{
int n,k;
scanf("%d %d",&n,&k);
for(int i=0;i<n;i++)
{
scanf("%d",&A[i]);
}
int add=0;
for(int i=1;i<n;i++)
{
if(A[i-1]+A[i]<k)
{
int need=k- (A[i-1]+A[i]);
add+=need;
A[i]+=need;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26311/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26311/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 <math.h>
int main(){
double r, circle, area;
scanf("%lf", &r);
area = r * r * M_PI;
circle = 2 * r * M_PI;
printf("%lf %lf\n", area, circle);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263160/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263160/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 r;
double area, circumference;
scanf("%lf", &r);
area = pow(r, 2.0)*M_PI;
circumference = 2*r*M_PI;
printf("%lf %lf\n", area, circumference);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263203/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263203/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()
{
double r,a,s,pi;
pi=3.141592653589;
scanf("%lf",&r);
a=pi*r*r;
s=2*pi*r;
printf("%lf %lf\n",a,s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263247/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263247/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(){
double r,pi=3.141592653589793;
scanf("%lf",&r);
printf("%f %f\n",r*r*pi,2*r*pi);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263290/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263290/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 pi 3.141592653589793
int main(void){
double r,S,L;
scanf("%lf",&r);
if(0<r&&r<10000){
S=pi*r*r;
L=2*pi*r;
printf("%f %f",S,L);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263333/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263333/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(){
double r,are,circ;
scanf("%lf", &r);
are=r*r*3.141592653589;
circ=(r+r)*3.141592653589;
printf("%f %f\n", are, circ);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263434/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263434/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 argc, const char * argv[])
{
double r,menseki,ensyu;
scanf("%lf",&r);
menseki = r*r*3.141592653589;
ensyu = r*2*3.141592653589;
// insert code here...
printf("%f %f\n",menseki,ensyu);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263478/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263478/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 r, S, L,pai;
scanf("%lf", &r);
pai = acos(-1);
S = pai * r * r;
L = 2 * pai * r;
printf("%f %f\n",S,L);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263520/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263520/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 r;
scanf("%lf",&r);
printf("%lf %lf\n",r*r*M_PI,2*r*M_PI);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263564/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263564/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){
double pai,r, l, S;
scanf("%lf", &r);
pai = 3.141592653589;
l = 2 * pai * r;
S = pai * r * r;
printf("%.6lf %.6lf\n", S, l);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263607/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263607/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 <string.h>
#define _USE_MATH_DEFINES
#include <math.h>
#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
void swap(int* x, int *y)
{
int t;
t = *x;
*x = *y;
*y = t;
}
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263650/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263650/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 pi = 3.14159265359;
double x;
scanf("%lf", &x);
printf("%.6lf %.6lf\n", x * x * pi, 2 * x * pi);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263700/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263700/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>
#ifndef M_PI
#define M_PI (3.1415926535f)
#endif
int main(int argc, char *argv[])
{
double r;
scanf("%lf", &r);
printf("%lf %lf\n", r * r * M_PI, 2 * r * M_PI);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263744/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263744/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 r,a,g;
scanf("%lf", &r);
a = r * r * M_PI;
g = (r+r) * M_PI;
printf("%f %f\n", a, g);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263795/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263795/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 () {
double r, pi, s, l;
pi = 3.141592653589;
scanf ( "%lf", &r );
s = pi * r * r;
l = 2 * pi * r;
printf ( "%f %f\n", s, l);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263881/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263881/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){
double r,menseki,ensyu;
scanf("%lf",&r);
menseki=r*r*3.141592653589;
ensyu=2*r*3.141592653589;
printf("%f %f\n",menseki,ensyu);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263924/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263924/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 int long long
int power(int a, int n){
if(n == 0){
return 1;
}
else{
return a * power(a, n - 1);
}
}
signed main(){
int N, M;
scanf("%lld%lld", &N, &M);
printf("%lld\n", (100 * N + 1800 * M) * power(2, M));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263975/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263975/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)
{
char s1[10],s2[10],s3[10];
scanf("%s %s %s",s1,s2,s3);
printf("%c%c%c",s1[0]-32,s2[0]-32,s3[0]-32);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264017/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264017/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 i,j;
char s[11];
char al[2][26]={"abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ"};
for(i=0; i<3; i++)
{
scanf("%s", s);
for(j=0; j<26; j++)
{
if(s[0]==al[0][j])
printf("%c", al[1][j]);
}
}
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264060/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264060/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(void){
int A,B,C,D,E,N,M,x,y,i,j,cou=0,cou2,cou3,v[1000000],w[1000000],min_i,en=0;
char S[100],W[100],s[100],X,Y;
scanf("%s %s %s",&S,&W,&s);
if(S[i]>=97&&S[i]<=122){
S[i]=S[i]-32;
}
if(W[i]>=97&&W[i]<=122){
W[i]=W[i]-32;
}
if(s[i]>=97&&s[i]<... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264103/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264103/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(){
char s1[15],s2[15],s3[15];
scanf("%s %s %s",s1,s2,s3);
printf("%c%c%c\n",s1[0]-32,s2[0]-32,s3[0]-32);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264147/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264147/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 <ctype.h>
int main(int argc, char **argv)
{
char s[16];
for (int i = 0; i < 3; ++i) {
scanf("%s", s);
putchar(toupper((int)s[0]));
}
puts("");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264190/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264190/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()
{
char s[11], a[4];
int i;
for(i=0; i<3; i++){
scanf("%s", s);
a[i] = s[0] + ('A' - 'a');
}
a[i] = '\0';
printf("%s\n", a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264240/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264240/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... |
// Starting with the name of Allah
#include<stdio.h>
int main()
{
long long int a,b,c;
scanf("%lld %lld %lld",&a,&b,&c);
if(c>=b-1){
printf("%lld\n",(a*(b-1))/b);
}
else{
printf("%lld\n",(a*c)/b);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264299/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264299/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){
long a,b,n;
scanf("%ld %ld %ld", &a, &b, &n);
long x = b-1;
if (x > n) {
x = n;
}
long answer = a*x/b-a*(x/b);
printf("%ld\n", answer);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264341/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264341/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 main(void)
{
long long int a,b,n,ans,x;
scanf("%lld %lld %lld",&a,&b,&n);
if(b <= n)
{
x = b-1;
}
else
{
x = n;
}
ans = a*x / b;
printf("%lld\n",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264385/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264385/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 ll long long
int main()
{
int n, t;
scanf("%d", &t);
for(int i=0;i<t;i++)
{
scanf("%d", &n);
printf("%d\n", n);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26445/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26445/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 d[1010],m,n,i,a,x;
int main(){
scanf("%d%d",&n,&m);
while(n!=0 && m!=0){
for(i=1;i<=n;i++)d[i]=1;
a=i=n;
while(a>1){
x=0;
while(x<m){
i++;if(i>n)i=1;
x+=d[i];
}
d[i]=0;a--;
}
for(i=1;i<=n;i++)if(d[i]==1)printf("%d\n",i);
scanf("%d%d",&n,&m);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264514/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264514/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 SIZE 200000
int PAR[SIZE],RANK[SIZE];
void init_uf(int n){for(int i=0;i<n;i++){PAR[i]=i;RANK[i]=0;}}//initialize
int root(int i){return PAR[i]==i?i:(PAR[i]=root(PAR[i]));}//search group
int same(int x,int y){return root(x)==root(y);}//judge same group
void unite(int x,int y){//add edge
x=ro... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264558/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264558/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"
@PAR = dso_local local_unna... |
#include<stdio.h>
#include<stdlib.h>
int compare(const void *a,const void *b){
return *(int*)a-*(int*)b;
}
int main(){
int N,C,K,T[100010],i,ans=0,j=0;
scanf("%d",&N);
scanf("%d",&C);
scanf("%d",&K);
for(i=0;i<N;i++){
scanf("%d",&T[i]);
}
qsort(T,N,sizeof(int),compare);
while(j<N){
i=j;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264600/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264600/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 N;
int count[20];
int rinsetu[20][20];
int maxtime;
void tansaku(int prev,int now,int nowtime) {
int i;
if(nowtime>maxtime)maxtime=nowtime;
for(i=0;i<N;i++) {
if(i!=prev && rinsetu[now][i]>0)tansaku(now,i,nowtime+rinsetu[now][i]);
}
}
int main(void) {
int i,j;
int t... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264644/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264644/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"
@maxtime = dso_local local_... |
#include<stdio.h>
int main()
{
int bowl,stone;
int mayor[50] ;
int n,i;
while(1){
scanf("%d %d",&n,&stone);
bowl = stone;
if(n == 0 && stone == 0){
break;
}
for(i = 0;i < n;i++){
mayor[i] = 0;
}
i = 0;
while(1){
if(bowl != 0){
mayor[i] = mayor[i]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264688/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264688/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 n, p;
int i, j, num;
int mayor[50];
while(1) {
i = 0;
scanf("%d %d", &n, &p);
if(n == 0 && p == 0) { return 0; }
for(j = 0; j < n; j ++) {
mayor[j] = 0;
}
while(1) {
if(p > 0) {
mayor[i%n] ++;
p --;
}
else if(p == 0) ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264730/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264730/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> // int64_t
#include <math.h>
#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) > (b) ? (b) : (a))
int get_int(void) {
int num;
scanf("%d", &num);
return num;
}
int get_int2(int64_t *a1, int64_t *a2) {
scanf("%lld %lld... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264774/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264774/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<string.h>
char ss[25000][6];
int compare(const void *arg1, const void *arg2){
return(strcmp(ss[*(int*)arg1], ss[*(int*)arg2]));
}
int main(){
char s[5001];
int k,g=0,i,j,c=0,l;
scanf("%s%d",s,&k);
while(s[g]!=0)g++;
int num[25000];
for(i=0;i<25000;i++)num[i]=i;
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264831/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264831/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"
@ss = dso_local global [250... |
#include <stdio.h>
int main()
{
int A, B;
scanf("%d %d", &A, &B);
if (A * B % 2 == 0) printf("No\n");
else printf("Yes\n");
fflush(stdout);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264882/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264882/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;
scanf("%d%d",&a,&b);
printf("%s",a*b%2==1?"Yes":"No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264925/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264925/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;
scanf("%d%d",&a,&b);
if((a*b)%2==1){
printf("Yes");
}else{
printf("No");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264969/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264969/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){
// Your code here!
int A,B;
scanf("%d %d",&A,&B);
if(A*B%2==0){
printf("No");
}else{
printf("Yes");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265010/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265010/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;
scanf("%d%d", &a, &b);
if (a==2 || b==2)
{
printf("No\n");
}
else
{
printf("Yes\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265054/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265054/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){
// Your code here!
int a,b,x;
scanf("%d %d",&a,&b);
x = a*b;
if(x%2==1){
printf("Yes");
}
else{
printf("No");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265098/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265098/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;
scanf("%d%d", &a, &b);
puts((a & b & 1) ? "Yes" : "No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265148/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265148/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;
scanf("%d %d",&a,&b);
if(a%2==1 && b%2==1)
printf("Yes");
else
printf("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265191/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265191/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>
#include <string.h>
int main(void) {
int a, b;
scanf("%d %d", &a, &b);
printf(a * b % 2 == 0 ? "No" : "Yes");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265241/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265241/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 ll long long
#define rep(i,l,r)for(ll i=l;i<r;i++)
#define max(p,q)((p)>(q)?(p):(q))
int main(){
ll x,y,s;
while(scanf("%lld%lld%lld",&x,&y,&s),x){
ll M=0;
x+=100;
y+=100;
ll t=s*100/x;//大体税抜き価格
rep(i,1,t)rep(j,max(0,t-i-2),t-i+3)if(i*x/100+j*x/100==s){
M=max(M,i*y/100+j*y/100... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265335/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265335/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... |
/*
exit
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define BIG 2000000007
#define MOD 1000000007
typedef unsigned long long ull;
typedef signed long long sll;
#define N_MAX 200
#define M_MAX 10000
typedef struct {
int a;
int b;
} hw;
typedef struct {
sll a;
sll b;
} hw... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265393/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265393/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.hw = type { i32, i3... |
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
int i, a, v[26];
for (i = 0; i < 26; i++)
v[i] = 0;
char s[100000];
scanf("%s", s);
for (i = 0; s[i] != '\0'; i++)
{
a = (int)(s[i] - 'a');
v[a]++;
}
for (i = 0; i < 26; i++)
{
if (v[i] == 0)
{
printf("%c", 'a' + i);
return 0;
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265443/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265443/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() {
char str[100001];
scanf("%s", str);
int a[27]={0};
char i;
int j, k;
for(k=0; k<strlen(str); k++) {
j=0;
for(i='a'; i<='z'; i++) {
if(str[k]==i) a[j]+=1;
j++;
}
}
int flag=0;
j=0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265487/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265487/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 cmp(const void *a, const void *b)
{
unsigned x = *((unsigned *)a);
unsigned y = *((unsigned *)b);
if (x < y) {
return -1;
} else if (x == y) {
return 0;
} else {
return 1;
}
}
int main()
{
int n, k, i, j;
unsigned ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26553/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26553/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()
{
char x[100001];
int a[26], i;
scanf("%s", x);
for(i=0; x[i] != '\0'; i++){
a[x[i] - 'a'] = 1;
}
for(i=0; i < 26; i++){
if(a[i] == 0)
break;
}
if(i == 26){
printf("None\n");
}else{
printf("%c\n", i + 'a');
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265573/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265573/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 n;
int x, y, h, w;
int sum;
int i;
while (1){
scanf("%d", &n);
if (n == 0){
break;
}
sum = 0;
for (i = 0; i < n; i++){
scanf("%d %d %d %d", &x, &y, &h, &w);
if (x + y + h <= 60 && w... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265616/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265616/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 n;
while(scanf("%d",&n)!=EOF){
if(n==0)
break;
int x,y,h,w,size,i,sum=0;
for(i=1;i<=n;i++){
scanf("%d %d %d %d",&x,&y,&h,&w);
size=x+y+h;
if(size<=60&&w<=2){
sum+=600;
}else if(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265674/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265674/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 xy fabs(x[j]-y[j])
int main(void)
{
int j,n;
double x[1010]={0},y[1010]={0},max=0,p1,p2,p3;
scanf("%d",&n);
for(j=0;j<n*2;j++){
if(j<n) scanf("%lf",&x[j]);
else scanf("%lf",&y[j-n]);
}
for(j=0;j<n;j++){
p1+=xy;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265724/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265724/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 x[1001],y[1001],D1=0,D2=0,D3=0,max=0,D4;
int i,j,n;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%lf",&x[i]);
}
for(i=0;i<n;i++){
scanf("%lf",&y[i]);
}
for(i=0;i<n;i++){
D1+=fabs(x[i]-y[i]);
}
printf("%.11f\n",D1);
for(i=0;i<n;i++... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265768/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265768/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 x[101],y[101],sum,max;
int n,i;
scanf("%d",&n);
for(i=0;i<n;i++) scanf("%lf",&x[i]);
for(i=0;i<n;i++) scanf("%lf",&y[i]);
for(i=0,sum=0;i<n;i++) sum+=fabs(x[i]-y[i]);
printf("%.8lf\n",sum);
for(i=0,sum=0;i<n;i++) sum+=pow(x[i]-y[i],2);
printf("%.8lf\n",... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265818/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265818/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 kazu;
double x[100],y[100];
int i;
double A=0,B,C,D=0,E,F,G,H=0,I,sa[100];
scanf("%d",&kazu);
for(i=0;i<100;i++)
{
x[i]=0;
y[i]=0;
sa[i]=0;
}
for(i=0;i<kazu;i++)
{
scanf("%lf",&... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265876/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265876/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>
unsigned int Abs(int i) {
if (i >= 0)return i;
else return -i;
}
int main() {
int n;
int x[100], y[100];
double D[4];
unsigned long long ut;
scanf("%d", &n);
for (int i = 0; i < n; i++) {
scanf("%d", &x[i]);
}
for (int i = 0; i < n; i++) {
scanf("%d", &y[i]);
}
//... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265926/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265926/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;
scanf("%d",&t);
while(t--)
{
int n,m;
scanf("%d %d",&n,&m);
int a[n];
long long int sum=0;
for(int i=0;i<n;i++)
{
scanf("%d",&a[i]);
sum=sum+a[i];
}
if(sum==m)
printf("YES\n");
else
printf("NO... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26597/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26597/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 ... |
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#define _USE_MATH_DEFINES
#include <math.h>
int main(void) {
double result[1001] = { 0 };
int kurikaesi = 0;
int n = 0;
scanf("%d%*[^\n]%*c", &n);
int x[100] = { 0 };
int y[100] = { 0 };
int xy[100] = { 0 };
int count = 0;
while (count < n) {
sc... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266019/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266019/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<stdio.h>
int main()
{
int t;scanf("%d",&t);
while(t--)
{int n,m;scanf("%d %d",&n,&m);int a[n],s=0,j;for(j=0;j<n;j++)scanf("%d",(a+j));
for(j=0;j<n;j++)s+=a[j];
if(m==s)
printf("YES\n");
else
printf("NO\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26607/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26607/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<stdlib.h>
int main()
{
int i,t;
scanf("%d",&t);
for(i=0;i<t;i++)
{
int n;
scanf("%d",&n);
int j,k;
if(n%2==0)
{
for(j=0;j<n;j++)
{
for(k=0;k<n;k++)
{
if(k==j||k==n-1-j)
printf("1 ");
else
printf("0 ");
}
printf("\n");
}
}
els... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26612/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26612/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 num,pnum,rem, cnt=0,dgt=2;
scanf("%d",&num);
pnum=num;
while(pnum>0){
rem=pnum%10;
if(rem==dgt)
cnt++;
pnum/=10;}
printf("%d",cnt);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266163/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266163/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 search(char str[]);
int main(){
char str[10];
scanf("%s",str);
printf("%d",search(str));
}
int search(char str[]){
int i,num=0;
for(i=0;str[i]!='\0';i++){
if(str[i]=='2')num++;
}
return num;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266220/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266220/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<stdbool.h>
#include<string.h>
#include<math.h>
#include<ctype.h>
#define MOD 1e7+7
typedef long long ll;
ll mygcd(ll a, ll b) { if (b == 0) return a; return mygcd(b, a % b); }
ll mylcm(ll a, ll b) { return a / mygcd(a, b) * b; }
ll mymax(ll a, ll b) { return (a > b) ? a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266264/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266264/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 <string.h>
#include <math.h>
int descending_compare(const void *a, const void *b){
if (*(int*)a > *(int*)b){
return -1;
}else if (*(int*)a == *(int*)b){
return 0;
}else{
return 1;
}
}
int ascending_compare(const void *a, const voi... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266307/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266307/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.pair = type { i32, ... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#define mod 1e9+7
#define ll long long int
#define epsilon 1e-7
int ntime(int time, int sta, int n, int c[], int s[], int f[]){
if(sta == n)return time;
else{
if(time <= s[sta]){
return ntime(s[sta]+c[sta], sta+1,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266358/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266358/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 REP(i, n) for(i = 0; i < n; ++i)
#define FOR(i, a, b) for(i = a; i < b; ++i)
void arrive(int i, int N, int c[N - 1], int s[N -1], int f[N - 1]);
int main(){
int N, i;
scanf("%d", &N);
int c[N - 1], s[N - 1], f[N - 1];
REP(i, N - 1){
scanf("%d %d %d", &c[i], &s[i], &... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266400/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266400/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 i,j,H,W,dp[50][50],a[50][50],S1,S2;
char ch[50][50];
scanf("%d%d",&H,&W);
for(i=0;i<=H-1;i++)
{
scanf("%s",ch[i]);
}
for(i=0;i<=H-1;i++)
{
for(j=0;j<=W-1;j++)
{
a[i][j]=ch[i][j]-'0';
}
}
dp[0][0]=0;
for(i=1;i<=W-1;i++)
{
dp[0][i]=dp[0][i-1]+a[0][i];
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266444/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266444/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 r,c;
while(1) {
scanf("%d%d",&r,&c);
if(r==0 && c==0)break;
puts((r%2 && c%2)?"no":"yes");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266495/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266495/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 INVERSION_NUMBER(long N, long *Array);
int main(void) {
long N,K;
scanf("%ld%ld",&N,&K);
long A[N];
long B[2*N];
long i;
for (i = 0; i < N; i++) {
scanf("%ld", &A[i]);
}
for (i = 0; i < N; i++) {
B[i] = A[i];
}
long a1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266552/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266552/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;
char op;
for(;;){
scanf("%d %c %d",&a,&op,&b);
if(op=='?'){
break;
}else if(op=='/'){
printf("%d\n",a/b);
}else if(op=='*'){
printf("%d\n",a*b);
}else if(op=='+'){
printf("%d\n",a+b);
}else if(op=='-'){
printf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266602/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266602/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;
char op;
while(1){
scanf("%d %c %d", &a, &op, &b);
if(op=='+') printf("%d\n", a+b);
if(op=='-') printf("%d\n", a-b);
if(op=='*') printf("%d\n", a*b);
if(op=='/') printf("%d\n", a/b);
if(op=='?') break;
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266653/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266653/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(){
char op;
int a,b,ans=0;
while(1){
scanf("%d %c %d", &a, &op, &b);
if(op == '?')
break;
if(op == '+') ans = a + b;
if(op == '-') ans = a - b;
if(op == '/') ans = a / b;
if(op == '*') ans = a * b;
printf("%d\n", ans);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266697/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266697/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 N 101
int n, nums[N];
int main()
{
scanf( "%d", &n );
int act, suma = 0, cant = 0, i;
for ( i = 0; i < n; ++i) {
scanf( "%d", &act );
suma += act;
nums[act]++;
}
for ( i = 0; i < N; ++i)
{
if( nums[i] != 0 )
{
if... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26674/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26674/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)
{
for (;;)
{
int a, b;
char op;
scanf("%d %c %d", &a, &op, &b);
if (op == '+')
{
printf("%d\n", a + b);
}
else if (op == '-')
{
printf("%d\n", a - b);
}
else if (op == '*')
{
printf("%d\n", a * b);
}
else if (op == '/')
{
printf("%d\n", a / b... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266783/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266783/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;
char t;
for(;;){
scanf("%d %c %d", &a, &t, &b);
if (t=='?') break;
if (t=='+') a+=b;
if (t=='-' ) a-=b;
if (t=='*') a*=b;
if (t=='/') a/=b;
printf("%d\n", a);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266826/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266826/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 A[100032],B[100032];
int main()
{ int i,j,m,n;
int sun=0,sum=0;
int ans=0;
scanf("%d %d",&n,&m);
for (i=0;i<n;i++)scanf("%d",&A[i]);
for (j=0;j<m;j++)scanf("%d",&B[j]);
i=0;
j=0;
sum=B[0];
sun=A[0];
while(i<n&&j<m)
{
//printf("sum_n %d sum_m %d \n",sun,sum... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26687/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26687/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;
char op;
while(1){
scanf("%d %s %d",&a,&op,&b);
if(op=='?'){
break;
}else if(op=='+'){
printf("%d\n",a+b);
}else if(op=='-'){
printf("%d\n",a-b);
}else if(op=='/'){
printf("%d\n",a/b);
}else{
printf("%d\n",a*b);
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266912/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266912/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, ans;
char c;
while (1)
{
scanf("%d %c %d", &a, &c, &b);
if (c == '+')
{
ans = a + b;
}
else if (c == '-')
{
ans = a - b;
}
else if (c == '*')
{
ans = a * b;
}
else if (c == '/')
{
ans = a / b;
}
else if (c == '?')
break;
printf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266956/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266956/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 n;
int t;
scanf("%d",&t);
while(t--)
{
scanf("%lf",&n);
int x = (ceil(n/7));
printf("%d\n",x);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267/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>
int main(void){
int a, b;
char op;
while(1){
scanf("%d %c %d", &a, &op, &b);
switch(op){
case '+':
printf("%d\n", a+b);
break;
case '-':
printf("%d\n", a-b);
break;
case '*':
printf("%d\n", a*b);
break;
case '/':
printf("%d\n",... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267041/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267041/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)
{
while(1){
int a, b, ans;
char op;
scanf("%d %c %d\n", &a, &op, &b);
switch (op) {
case '?':
return 0;
case '/':
ans = a/b;
break;
case '*':
ans = a*b;
break;
case '+':
ans = a+b;
break;
case '-':
ans = a-b;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267092/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267092/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;
int end=0;
char op;
while(end != 1){
scanf("%d",&a);
scanf(" %c",&op);
scanf(" %d",&b);
switch(op){
case '+':
printf("%d\n",a+b);
break;
case '-':
printf("%d\n",a-b);
break;
case '/':
printf("%d\n",a/b);
break;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267135/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267135/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;
char op;
while(1){
scanf("%d %c %d",&a ,&op ,&b);
if(op == '?') break;
switch(op){
case '+' :
printf("%d\n", a + b);
break;
case '-':
printf("%d\n", a - b);
break;
case '*':
printf("%d\n", a * b);
b... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267186/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267186/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(void) {
int a[10000],b[10000],i;
char op[10000];
for(i=0;i<9999;i++) {
scanf("%d %s %d",&a[i],&op[i],&b[i]);
if(op[i]=='?') {
break;
}
}
for(i=0;i<9999;i++){
if(op[i]=='+'){
printf("%d\n",a[i]+b[i]);
}
else if(op[i]=='-'){
printf("%d\n",a[i]-b[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267229/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267229/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;
char op;
while(1){
scanf("%d %c %d",&a,&op,&b);
if(op=='+'){
printf("%d\n",a+b);
}else if(op=='-'){
printf("%d\n",a-b);
}else if(op=='*'){
printf("%d\n",a*b);
}else if(op=='/'){
printf("%d\n",(int)a/b);
}else if(op=='?'){
break;}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267272/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267272/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;
char op;
while(1){
scanf("%d %c %d", &a, &op, &b);
if(op=='?') break;
if(op=='+'){
printf("%d\n",a+b);
} else if(op=='-'){
printf("%d\n",a-b);
} else if(op=='*'){
printf("%d\n",a*b);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267315/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267315/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;
char op;
while(1){
scanf("%d %c %d",&a,&op,&b);
if(op=='+') printf("%d\n",a+b);
else if(op=='-') printf("%d\n",a-b);
else if(op=='*') printf("%d\n",a*b);
else if(op=='/') printf("%d\n",a/b);
else if(op=='?'... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267366/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267366/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;
char op;
scanf("%d %c %d", &a, &op, &b);
while( 1 ){
if ( op == '+' ){
c = a + b;
printf("%d\n",c);
}
else if ( op == '-' ){
c = a - b;
printf("%d\n",c);
}
else if ( op == '*' ){
c = a * b;
printf("%d\n",c);
}
else... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267423/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267423/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,x;
char op;
for(x=1;x>0;x++){
scanf("%d %c %d",&a,&op,&b);
if(op =='+'){
printf("%d\n",a+b);
} else if(op =='-'){
printf("%d\n",a-b);
} else if(op =='*'){
printf("%d\n",a*b);
} else if(op =='/'){
printf("%d\n",a/b);
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267467/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267467/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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.