Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
#include <math.h>
int main(void) {
// 1_4-B Circle
double r,s,l;
//double pi=3.1415926;
scanf("%lf",&r);
s = r*r*M_PI;
l = 2*r*M_PI;
printf(" %.5lf %.5lf",s,l);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262674/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262674/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,l,S;
scanf("%lf",&r);
S=M_PI*r*r;
l=2*M_PI*r;
printf("%.6lf %.6lf",S,l);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262717/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262717/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 men,syu;
scanf("%lf", &r);
men = r * r * 3.14159265358979;
syu = 2 * r * 3.14159265358979;
printf("%lf %lf\n", men, syu);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262760/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262760/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,s,l;
scanf("%lf",&r);
s = r*r*M_PI;
l = 2*r*M_PI;
printf("%.6lf %.6lf\n",s,l);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262810/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262810/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("%lf %lf\n",r*r*pi,2*r*pi);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262854/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262854/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 c;
double area;
scanf("%lf",&r);
c = r*2*M_PI;
area = r*r*M_PI;
printf("%.6f %.6f\n",area,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262898/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262898/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 argc, const char * argv[]) {
// insert code here...
double r;
scanf("%lf", &r);
printf("%f %f\n", r*r*M_PI, r*2*M_PI);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262940/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262940/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 M_PI 3.14159265358979
int main(void){
double num;
//????????\???
scanf("%lf",&num);
double circumference=num*2*M_PI;
double circlearea=num*num*M_PI;
printf("%.6f %.6f\n",circlearea,circumference);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262984/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262984/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 pi, are, circ, r;
pi = 3.141592653589;
scanf("%lf", &r);
are = r*r*pi;
circ = r*2*pi;
printf("%f %f\n", are,circ);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263026/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263026/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 int k,r,n,i ;
scanf("%ld %ld",&k,&r) ;
for( i=1 ;i<=9 ;i++ )
{
n=i*k ;
if( n%10==r )
break ;
}
if(i!=10)
printf("%ld\n", i) ;
else
{
for(i=1 ;i<=12 ;i++)
if( n*i%10==0 )
break ;
printf("%ld\n", i) ;
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26307/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26307/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>
#include<string.h>
int main()
{
int n,i,c,ans;
scanf("%d%d",&n,&c);
for(i=1,n=n%10;i<10;i++)
{
if (n==0)
{
printf("%d\n",i);
return 0;
}
else
{
if((n*i)%10==c||(n*i)%10==0)break;
}
}
printf("%d\n",i);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26312/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26312/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;
double size, alou;
scanf("%lf", &r);
size = r * r * M_PI;
alou = r * 2 * M_PI;
printf("%f %f", size, alou);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263163/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263163/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 pr, tpr, r;
scanf("%lf", &r);
pr = M_PI * r * r;
tpr = M_PI * 2 * r;
printf("%lf %lf\n", pr, tpr);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263206/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263206/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()
{
int k , r , n;
scanf("%d %d",&k ,&r);
if( (k <= r) && ( r % k == 0))
{
printf("%d\n",r / k);
return 0;
}
for( n = 10; ; n = n + 10 )
{
if ( ( ( n + r) % k ) == 0 )
{
printf("%d\n",(n + r)/ k);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26325/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26325/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(int argc, const char * argv[]) {
double r, l, s;
scanf("%lf", &r);
l = r * 2 * M_PI;
s = r * r * M_PI;
printf("%lf %lf\n", s, l);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263293/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263293/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 PI 3.141592653589793
int main(void){
double r;
scanf("%lf",&r);
printf("%f %f",r*r*PI,2*r*PI);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263336/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263336/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,k,a[500];
scanf("%d %d\n",&n,&k);
int i=0;
for(i=0;i<n;i++){
scanf("%d ",a+i);
}
int steps=0,temp;
for(i=1;i<n;i++)
{
if(a[i-1]+a[i]<=k)
{
temp=a[i];
a[i]=k-a[i-1];
steps+=(a[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26338/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26338/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(void)
{
double r, c, s;
while(scanf("%lf", &r) != EOF)
{
c = 2.0 * r * M_PI;
s = r * r * M_PI;
printf("%.6lf %.6lf\n", s, c);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263422/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263422/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;
scanf("%lf",&r);
pi=3.1415926535897932;
printf("%f %f\n",r*r*pi,2*r*pi);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263488/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263488/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.141592653589
int main(){
double r;
double s,c;
scanf("%lf",&r);
s = (double)r*r*pi;
c = (double)2*r*pi;
printf("%f %f\n",s,c);
/*int FILE *fp;
fp = fopen ("filename.txt","r");
if (fp!=NULL)
{
fscanf(fp,"Some String\n", &var);
fclose (fp);
}*/
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263538/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263538/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.14159265358979;
scanf("%lf",&r);
printf("%lf %lf\n",r*r*PI,2*r*PI);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263581/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263581/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,pi;
scanf("%lf",&r);
pi = acos(-1);
printf("%lf %lf\n",pi*r*r,2*pi*r);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263624/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263624/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;
scanf("%lf",&r);
printf("%f %f\n", r*r*M_PI, 2*r*M_PI);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263668/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263668/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("%f %f\n",r*r*M_PI,r*2*M_PI);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263718/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263718/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 area; //面積
double circle; //円周
double pi = 3.14159265359; //円周率
scanf("%lf", &r);
area = r*r*pi;
circle = 2 * pi*r;
printf("%f %f\n", area, circle);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263783/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263783/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() {
double r;
scanf("%lf", &r);
printf("%.8lf %lf\n", 3.141592653589 * r * r, 2 * 3.141592653589 * r);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263826/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263826/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 k,m;
scanf("%d %d", &k, &m);
int i,p;
for (i=1; ;i++)
{
p=(k*i)-m;
if ((p%10==0) || ((k*i)%10==0))
{
printf("%d\n", i);
break;
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26387/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26387/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){
double r,l,s,pie = 3.141592653589;
scanf("%lf",&r);
l = 2*pie*r;
s = pie*r*r;
printf("%lf %lf\n",s,l);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263912/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263912/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 n, m;
scanf("%d %d", &n, &m);
int ans = (100*n+1800*m)* pow(2, m);
printf("%d", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263978/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263978/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 unused __attribute__((unused));
char s1[10], s2[10], s3[10];
unused = scanf("%s %s %s", s1, s2, s3);
s1[0] = s1[0] - ('a'-'A');
s2[0] = s2[0] - ('a'-'A');
s3[0] = s3[0] - ('a'-'A');
printf("%c%c%c", s1[0], s2[0], s3[0]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264027/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264027/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(void){
char s[3][10];
int i;
for(i = 0;i < 3;i++){
scanf("%s",s[i]);
}
for(i = 0;i < 3;i++){
printf("%c",toupper(s[i][0]));
}
printf("\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264078/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264078/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;
char c;
int main(){
c=getchar();
putchar(c-'a'+'A');
while(c!=32){
c=getchar();
}
c=getchar();
putchar(c-'a'+'A');
while(c!=32){
c=getchar();
}
c=getchar();
putchar(c-'a'+'A');
putchar(10);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264120/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264120/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"
@c = dso_local local_unname... |
#include <stdio.h>
#include <ctype.h>
int main(void)
{
enum { S = 11 };
char s1[S], s2[S], s3[S];
scanf("%s %s %s", s1, s2, s3);
printf("%c%c%c\n", toupper(s1[0]), toupper(s2[0]), toupper(s3[0]));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264171/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264171/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(void){
char str1[100],str2[100],str3[100];
scanf("%s%s%s",str1,str2,str3);
printf("%c%c%c\n",toupper(str1[0]),toupper(str2[0]),toupper(str3[0]));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264214/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264214/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){
long long int a,b,n,x,ans=0;
scanf("%lld %lld %lld",&a,&b,&n);
if(b-1<=n){
x=b-1;
}else{
x=n;
}
ans=floor((a*x)/b)-(x/b);
printf("%lld\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264258/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264258/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 long int a, b, n;
scanf("%lld%lld%lld",&a, &b, &n);
if(n>=b) n=b-1;
long long int ans=(a*n)/b;
printf("%lld\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264300/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264300/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 long memo,A,B,N,x,max=0;
scanf("%lld",&A);
scanf("%lld",&B);
scanf("%lld",&N);
if(B<=N){
max=A*(B-1)/B;
}else{
max=A*N/B;
}
printf("%lld",max);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264344/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264344/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... |
//Lowest Common Ancestor - doubling
//ABC014-D
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int min(int a,in... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264395/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264395/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.mkj = type { i64, i... |
#include<stdio.h>
int a[1010],m,n,i,b,c;
int main(){
scanf("%d%d",&n,&m);
while(n!=0 && m!=0){
for(i=1;i<=n;i++)a[i]=1;
b=i=n;
while(b>1){
c=0;
while(c<m){
i++;if(i>n)i=1;
c+=a[i];
}
a[i]=0;b--;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264467/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264467/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... |
/* AOJ 0085
*
* http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0085
*
*/
#include <stdio.h>
#define DEBUG 0
int next[1001];
int main(){
int m, n;
int count;
int i;
int p, prev;
while(scanf("%d %d", &n, &m)==2){
if(m==0 && n==0){
break;
}
for... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264524/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264524/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... |
//Dijkstra ABC035-D
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int min(int a,int b){if(a<b){return a;}return b;}
int zt(in... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264568/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264568/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 { i64, ... |
#include<stdio.h>
#include<stdlib.h>
int cmp(const void *a,const void *b)
{
return *(int *)a-*(int *)b;
}
int main()
{
int n,c,k,t[100005],i,sum=0,ans=0;
long long int x=0;
scanf("%d%d%d",&n,&c,&k);
for(i=0;i<n;i++)
scanf("%d",&t[i]);
qsort(t,n,sizeof(t[0]),cmp);
x=t[0]+k;
ans++;
for(i=0;i<n;i++)
{
if(x>=t... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264610/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264610/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[50];
int main(){
int n,p;
int i,j,k,l,m;
int b;
int ans;
while(1){
scanf("%d %d",&n,&p);
if(n==0&&p==0)break;
b=1;
while(b){
for(i=0; i<n; i++){
if(p>0){
p-=1;
a[i]+=1;
}
else{
for(j=0; j<n; j++){
if(j!=i&&a[j]!=0)break;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264654/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264654/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){
int ans,person[50],p,N,i,pp;
while(1){
scanf("%d %d",&N,&pp);
if(N == 0 && pp == 0) break;
p= pp;
for(i = 0;i < N;i++){
person[i] = 0;
}
ans = 0;
while(1){
if(p == 0){
if(person[ans] == pp){
break;
}else{
p = person[ans];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264698/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264698/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>
void copy(char *from,char *to,int n){
int i;
for(i=0;i<6;i++){
if(i<n){
to[i] = from[i];
}else{
to[i] ='\0';
}
}
}
int check(char *a,char *b){
int i;
for(i=0;i<5;i++){
if(a[i]<b[i]){
return -1;
}else if(a[i] >b[i]){
return 1;
}
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264834/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264834/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);
if( (A*B)%2==1 ){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264878/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264878/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 (){
// DECLARAÇÕES
int x,y;
// INSTRUÇÕES
scanf ("%d %d",&x,&y);
if ((x*y)%2 != 0)
printf ("Yes\n");
else
printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264920/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264920/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;
scanf("%d %d",&a,&b);
c=a*b;
if (c%2!=0)
printf("Yes",a*b*c);
else
printf("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264964/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264964/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 == 0) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265006/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265006/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<math.h>
int main(){
int i,a;
scanf("%d",&a);
for(i=0;i<a;i++){
int n;
scanf("%d",&n);
printf("%d\n",n);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26505/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26505/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;
scanf("%d%d", &a, &b);
if (a % 2 == 0 || b % 2 == 0)printf("No");
else printf("Yes");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265093/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265093/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("Yes\n");
}
else{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265136/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265136/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%2==1&&b%2==1){
printf("Yes");
}
else{
printf("No");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265187/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265187/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);
if(A==2||B==2)
printf("No");
else
printf("Yes");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265237/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265237/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 x,y,s,f,i,j,a,b;
for(;;){
scanf("%d %d %d",&x,&y,&s);
if(x==0&&y==0&&s==0)break;
int max=0;
for(i=1;i<=s/2;i++){
for(j=i;j<=s;j++){
a=i*(100+x)/100;
b=j*(100+x)/100;
f = i*(100+y)/100 + j*(100+y)/100;
if(a+b==s&&max... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265280/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265280/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 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 sort(a,n) qsort(a,n,sizeof(TYPE),cmp)
#define sort_r(a,n)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265323/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265323/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>
int main()
{
int n,a;
scanf("%d %d",&n,&a);
int i,j,k;
int x[55];
for(i=0;i<n;i++)
scanf("%d",&x[i]);
long long int dp[55][3003];
for(i=0;i<55;i++)
for(j=0;j<3003;j++)
dp[i][j]=0;
for(i=0;i<n;i++)
{
for(j=54;j>0;j--)
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265381/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265381/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 i,a[26]={0};
char s[100001];
scanf("%s",s);
for(i=0;i<strlen(s);i++){
if(a[s[i]-'a']==0) a[s[i]-'a']=1;
}
for(i=0;i<26;i++){
if(a[i]==0){
printf("%c\n",'a'+i);
return 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265424/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265424/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[100005];
scanf("%s", str);
int mau = 0;
char lista[26] = {'a', 'b', 'c', 'd','e','f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n','o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
for (int i = 0; i < 26; ++i){
int dif... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265468/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265468/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>
int main()
{
char S[100010];
scanf("%s", S);
int i, j, k;
char ans = 'a';
int flag[26];
for (i = 0; i < 26; i++) {
flag[i] = 0;
}
k = 0;
for (i = 'a'; i <= 'z'; i++) {
for (j = 0; S[j] != '\0'; j++) {
if (i == S[j]) {
flag[k] = 1;
}
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265510/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265510/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, char **argv)
{
char s[100001];
scanf("%s", s);
int alpha[26] = {};
for (int i = 0; s[i] != '\0'; ++i) {
alpha[s[i] - 'a']++;
}
for (int i = 0; i < 26; ++i) {
if (alpha[i] == 0) {
printf("%c\n", 'a' + i);
goto end;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265554/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265554/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,x,y,h,w,s,s1,s2,a,i;
int m[]={600,800,1000,1200,1400,1600,0};
while(1){
scanf("%d",&n);
if(n==0)break;
a=0;
for(i=0;i<n;i++){
scanf("%d %d %d %d",&x,&y,&h,&w);
if (x+y+h>160)s1=6;
else if(x+y+h>140)s1=5;
else if(x+y+h>120)s1=4;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265611/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265611/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"
@__const.main.m = private u... |
#include<stdio.h>
#define MAX(x,y) ((x>y)?x:y)
int main(){
int i,j,n,m,x,y,z,w,ans,f;
while(1){
scanf("%d",&n);
if(n==0)break;
ans=0;
while(n--){
scanf("%d%d%d%d",&x,&y,&z,&w);
x=x+y+z;
if(x>160 || w>25)continue;
if(x<=60)f=0;
else if(x<=80)f=1;
else if(x<=100)f=2;
else if(x<=120)f=3;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265662/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265662/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 100
int main(void){
int n, i, x[N], y[N];
double d, d1 = 0.0, d2 = 0.0, d3 = 0.0, dn = 0.0;
scanf("%d", &n);
for(i = 0; i < n; i++){
scanf("%d", &x[i]);
}
for(i = 0; i < n; i++){
scanf("%d", &y[i]);
}
for(i = 0; i < n; i++){
d = fabs(x[i] - y[i]);
d1 +... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265727/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265727/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>
double get_normal_distance(int p, int n, int *x, int *y){
int i,j;
double dist,dist_p,dist_p_sum;
double unit, result, result_next, result_next_p;
// Calc Total
dist_p_sum = 0;
for(i=0; i<n; i++){
dist = x[i] - y[i];
if( dist < 0 ){
dist *= (-1);
}
dist_p = dist;
for(j=2;j<=p;j++... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265778/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265778/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 _CRT_SECURE_NO_WARNINGS
#define debug
#include <stdio.h>
#include <inttypes.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
typedef uint64_t uint64; typedef uint32_t uint32; typedef uint8_t uint8;
typedef int64_t int64; typedef int32_t int32; typedef int8_t int8;
#define finc(i,a,b) for(uint32 i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26585/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26585/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 A[100];
double d, p1, p2, p3, max;
int n, i;
scanf("%d", &n);
for (i = 0; i < n; i++) scanf("%lf", &A[i]);
p1 = 0.0;
p2 = 0.0;
p3 = 0.0;
max = 0.0;
for (i = 0; i < n; i++)
{
scanf("%lf", &d);
d -= A[i];
if (d < 0) d *= -1;
p1 += d;
p2 +=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265907/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265907/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 input_n;
int vector_x[100], vector_y[100];
double xy_fabs = 0;
double d_xy_p1 = 0, d_xy_p2 = 0, d_xy_p3 = 0, d_xy_pinf = 0;
int counter_i;
scanf("%d", &input_n);
for(counter_i = 0 ; counter_i < input_n ; counter_i++)
scanf("%d", &vector_x[counte... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265958/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265958/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 101
double Minkowski_p1(int, int *, int *);
double Minkowski_p2(int, int *, int *);
double Minkowski_p3(int, int *, int *);
double Minkowski_pinf(int, int *, int *);
int main() {
int i, n, x[N], y[N];
double p1, p2, p3, pinf;
scanf("%d", &n);
for (i = ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266021/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266021/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,i;
double x[100],y[100],s;
scanf("%d",&n);
for(i=0;i<n;i++)scanf("%lf",&x[i]);
for(i=0;i<n;i++)scanf("%lf",&y[i]);
s=0;
for(i=0;i<n;i++)s+=fabs(x[i]-y[i]);
printf("%.6f\n",s);
s=0;
for(i=0;i<n;i++)s+=pow(fabs(x[i]-y[i]),2);
printf("%.6f\n",sqrt(s))... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266072/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266072/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;
int n;
scanf("%d", &n);
int x[n], y[n];
for( i = 0; i < n; ++i )
scanf("%d", &x[i]);
for( i = 0; i < n; ++i )
scanf("%d", &y[i]);
int p;
double D;
for( p = 1; p < 4; ++p ){
D = 0;
for( i = 0; ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266122/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266122/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=0,c;
scanf("%d",&a);
while(a != 0){
if(a%10 == 2){
b++;
}
a = a/10;
}
printf("%d",b);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266166/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266166/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,a,b,c,d,count=0;
scanf("%d",&N);
a=N/1000; b=(N-(a*1000))/100; c=(N-(a*1000)-(b*100))/10;
d=N-(a*1000)-(b*100)-(c*10);
if(a==2)count+=1;
if(b==2)count+=1;
if(c==2)count+=1;
if(d==2)count+=1;
printf("%d\n",count);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266209/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266209/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, char const *argv[]) {
int N;
scanf("%d", &N);
int ans=0;
for (size_t i = 0; i < 4; i++) {
if (N%10==2) {
ans++;
}
N=N/10;
}
printf("%d", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266252/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266252/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(){
int h,w,i,j,k,a,y[200010],x[200010],d[200010]={};
scanf("%d %d %d",&h,&w,&k);
for(i=0;i<h;i++){
for(j=0;j<w;j++){
scanf("%d",&a);
y[a]=i;
x[a]=j;
}
}
for(i=1;i<=h*w;i++)d[i+k]=d[i]+abs(x[i]-x[i+k])+abs(y[i]-y[i+k]);
scanf("%d",&k);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266296/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266296/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 500
int main() {
static int cc[N], ss[N], ff[N];
int n, i, x;
scanf("%d", &n);
for (i = 0; i < n; i++)
scanf("%d%d%d", &cc[i], &ss[i], &ff[i]);
for (x = 0; x < n; x++) {
int t;
t = 0;
for (i = x; i < n - 1; i++) {
if (t < ss[i])
t = ss[i];
t = (t + ff[i] - 1) / ff... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266353/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266353/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"
@main.cc = internal global ... |
#include <stdio.h>
int main(void) {
//code goes
long i,n,j;
scanf("%ld",&n);
long c[n],s[n],f[n],tot=-1;
for(j=0;j<(n-1);++j)
scanf("%ld %ld %ld",&c[j],&s[j],&f[j]);
for(i=0;i<n;++i){
tot=0;
for(j=i;j<(n-1);++j){
if(tot<s[j]) tot=s[j];
else if(t... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266397/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266397/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,p,m,tot;
int a[100010];
scanf("%d",&t);
for(int i=1;i<=t;i++)
{
scanf("%d %d",&m,&p);
tot=0;
for(int i=1;i<=m;i++)
{
scanf("%d",&a[i]);
tot+=a[i];
}
if(tot==p)printf("YES\n");
else printf("NO\n");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26644/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26644/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 r;
int c;
scanf("%d%d", &r, &c);
while(r != 0 && c != 0) {
if(r * c % 2 == 0) {
printf("yes\n");
}
else {
printf("no\n");
}
scanf("%d%d", &r, &c);
}
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266490/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266490/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,K,A[2001],i,j;
long int a=0,b=0,sum;
scanf("%d %d",&N,&K);
for(i=0;i<N;i++){
scanf("%d ", &A[i]);
}
for(i=0;i<N;i++){
for(j=i+1;j<N;j++){
if(A[i] > A[j]){
a++;
}
}
for(j=0;j<i;j++){... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266540/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266540/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, ii;
char op[1000];
int a[1000];
int b[1000];
int ans[1000];
for(i=0;i < 1000;i++){
a[i] = 0;
}
for(i=0;i < 1000;i++){
b[i] = 0;
}
for(i=0;i < 1000;i++){
op[i] = ' ';
}
for(i=0;i < 1000;i++){
ans[i] = 0;
}
i = 0;
ii = 0;
while(1){
scanf("%... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266605/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266605/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(scanf("%d %s %d",&a,&op,&b)==3){
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);
break;}
case '/' :{
printf("%d\n",a/b);
brea... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266670/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266670/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=='?'){break;}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266713/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266713/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,h,i,j,k;
char op;
while(1){
scanf("%d %c %d",&a,&op,&b);
h=a+b;
i=a-b;
j=a*b;
k=a/b;
if(op == '?'){
break;
}
else if(op == '+'){
printf("%d\n",h);
}
else if(op == '-'){
printf("%d\n",i);
}
else if(op == '*... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266757/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266757/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()
{
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if (a+c<=b)
printf("%d\n",(a+c)*2);
else if (b+c<=a)
printf("%d\n",(b+c)*2);
else
printf("%d\n",(a+b+c)/2*2);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26680/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26680/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 %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);
else if(op == '/') printf("%d\n",a/b);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266843/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266843/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;
char op;
for (i=0;;) {
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=='/'){
prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266887/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266887/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 l, r, a;
scanf("%d%d%d", &l, &r, &a);
if(l > r) {
int t = l;
l = r;
r = t;
}
if(a + l <= r) {
printf("%d\n", 2 * (a + l));
} else {
printf("%d\n", 2 * (r + (a + l - r) / 2));
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26693/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26693/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){
char op;
int a,b;
do{
scanf("%d %[+-*/?] %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",a/b); break;
}
}while(op!='?');
retur... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266980/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266980/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==('?')) break;
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267022/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267022/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){
//input
scanf("%d %s %d",&a, &op, &b);
switch(op){
case '+':
printf("%d\n", a+b);
break;
case '-':
printf("%d\n", a-b);
break;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267066/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267066/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;
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_267109/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267109/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;
int x;
char op;
while(1){
scanf("%d%*c%c%d",&a,&op,&b);
if(op == '?') break;
if(op == '+') x=a+b;
else if(op == '-') x=a-b;
else if(op == '*') x=a*b;
else if(op == '/') x=a/b;
printf("%d\n",x);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267202/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267202/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,r;
char o;
while(1){
scanf("%d %c %d",&a,&o,&b);
if(o=='?') break;
if(o=='+') r=a+b;
if(o=='-') r=a-b;
if(o=='*') r=a*b;
if(o=='/') r=a/b;
printf("%d\n",r);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267246/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267246/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 <math.h>
//#define ll long long
int main()
{
int l, r, a;
int i, j, k;
scanf("%d %d %d", &l, &r, &a);
if(l == 0 && a == 0) {
printf("0\n");
return 0;
}
else if(r == 0 && a == 0) {
printf("0\n");
return 0;
}
else if(l == r) {
printf("%d\n", l + r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26729/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26729/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>
#define min(X, Y) (((X) < (Y)) ? (X) : (Y))
#define max(X, Y) (((X) > (Y)) ? (X) : (Y))
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
int k = max(a,b);
int k1 = min(a,b);
if(a == b){
a+= c/2;
b+= c/2;
printf("%d",a+b);
}
el... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26734/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26734/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 argc, char *argv[]){
int a,b;
char op;
int ans;
scanf("%d %c %d", &a, &op, &b);
while(op!='?'){
switch(op){
case '+': ans=a+b; break;
case '-': ans=a-b; break;
case '*': ans=a*b; break;
case '/': ans=a/b; break;
default: break;
}
printf("%d\n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267383/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267383/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.141592653589
int main(void){
int a, b;
char op;
while(scanf("%d %c %d\n", &a, &op, &b) != EOF) {
if (op == '?') break;
if (b == 0 && op == '/') break;
if (op == '+') printf("%d\n", a + b);
if (op == '-') printf("%d\n", a - b);
if (... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267426/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267426/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 MAXN 30000
int N, t;
char avail[MAXN];
int main()
{
int i,k;
scanf("%d %d\n", &N, &t);
t--;
avail[0] = 1;
for(i=1; i<N; i++) avail[i] = 0;
for(i=0; i<N; i++){
scanf("%d", &k);
if(avail[i]) avail[i+k] = 1;
}
if(avail[t]) printf("YES\n");
else printf("NO\n");
ret... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26747/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26747/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,x;
char op;
while(1){
scanf("%d %c %d",&a,&op,&b);
if(op == '+'){
x=a+b;
printf("%d\n",x);
}
if(op == '-'){
x=a-b;
printf("%d\n",x);
}
if(op == '*'){
x=a*b;
printf("%d\n",x);
}
if(op == '/'){
x=(double)a/(double)b;
printf("%d\n",x);
}
if(op == '?'){
break;
}
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267512/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267512/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.