Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
int isPrime(int x){
if(x==1){
return -1;
}
int i;
for(i=2;i<x;i++){
if(x%i==0){
return -1;
}
}
return 1;
}
int main(void){
int N;
scanf("%d",&N);
int i;
int ans[55];
printf("31 ");
for(i=31; i<=55555; i+=30){
if(isPrime(i) == 1){
if(i != 31) printf("%d ",i);
N--;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_72606/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_72606/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
typedef long long int ll;
int num[100001]={0};
int main()
{
int n,x,q,b,c;ll sum=0;
scanf("%d",&n);
for(int i=0;i<n;i++)
{
scanf("%d",&x);
num[x]++;
sum+=x;
}
scanf("%d",&q);
while(q--)
{
scanf("%d %d",&b,&c);
sum-=(long long)num... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_72693/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_72693/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@num = dso_local local_unname... |
#include <stdio.h>
#include<math.h>
int main(void){
int a,b,deg;
double x,y,z;
double rad;
double PI = acos(-1);
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", °);
rad = deg * PI / 180;
double t=a*a+b*b-2*a*b*cos(rad);;
double s=0;
s=sqrt(t);
x=a*b*sin(rad)/2;
y=a+b+s;
z=b*sin(rad);
printf("%f\n%f\n%f\n"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_72736/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_72736/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
typedef unsigned u;
u w,m;
int main()
{
scanf("%u%u",&w,&m);
while(m)
{
if(m%w==1)--m;
if(m%w==w-1)++m;
if(m%w==0)m/=w;
else{printf("NO\n");return 0;}
}
printf("YES\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_7278/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_7278/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 co... |
#include <stdio.h>
#include <math.h>
int main(void)
{
double a,b,c;
double S,L,h;
scanf("%lf",&a);
scanf("%lf",&b);
scanf("%lf",&c);
S=(a*b*sin((M_PI*c)/180))/2;
L=a*a+b*b-2*a*b*cos((M_PI*c)/180);
L=sqrt(L);
L=L+a+b;
h=(2*S)/a;
printf("%f\n%f\n%f\n",S,L,h);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_72822/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_72822/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 a,b,c,s,l,h;
double pi=3.141592653589;
scanf("%lf %lf %lf",&a,&b,&c);
s = a*b*sin(c*pi/180)/2;
l = a+b+sqrt(a*a+b*b-2*a*b*cos(c*pi/180));
h = s*2/a;
printf("%f\n%f\n%f\n",s,l,h);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_72866/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_72866/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 a,b;
double c,C,cc;
scanf("%d %d %lf",&a,&b,&C);
C=C*M_PI/180;
printf("%.5lf\n",a*b*sin(C)/2);
cc=a*a+b*b-2*a*b*cos(C);
c=sqrt(cc);
printf("%.5lf\n",a+b+c);
printf("%.5lf\n ",b*sin(C));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_72909/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_72909/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 a,b,c;
scanf("%lf %lf %lf",&a,&b,&c);
c=c*3.14159265/180.0;
printf("%f\n",a*b*sin(c)/2);
printf("%f\n",a+b+sqrt(a*a+b*b-2*a*b*cos(c)));
printf("%f\n",b*sin(c));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_72952/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_72952/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define _USE_MATH_DEFINES
#include <math.h>
int main(){
int a, b, angle;
double s, l, h;
scanf("%d %d %d", &a, &b, &angle);
h=b*sin(angle*M_PI/180.0);
s=a*h/2;
l=a+b+sqrt((a*a+b*b-2*a*b*cos(angle*M_PI/180.0)));
printf("%f\n", s);
printf("%f\n", l);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_72996/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_72996/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define PI 3.141592653589793
int main(void){
// Your code here!
double a,b,c,C,s;
double S,L,h;
scanf("%lf %lf %lf", &a, &b, &C);
c=sqrt(a*a+b*b-2*a*b*cos(C*PI/180));
L=a+b+c;
s=L/2;
S=sqrt(s*(s-a)*(s-b)*(s-c));
h=2*S/a;
printf("%.8lf\n%.8... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_73045/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_73045/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define PI acos(-1)
int main() {
#ifdef TEST
freopen("input", "r", stdin);
#endif
int a, b, c;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
printf("%f\n", 0.5 * a * b * sin(c * PI / 180));
printf("%f\n", a + b + sqrt(a * a + b * b - 2 * a * b * c... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_73089/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_73089/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
const double PI = 3.14159265359;
int main()
{
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
double rad = PI * c / 180;
double s = a * b * sin(rad) / 2;
double d = sqrt(a * a + b * b - 2 * a * b * cos(rad));
double l = a + b + d;
double h = b * sin(rad);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_73131/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_73131/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PI = dso_local local_unnamed... |
#include <math.h>
#include <stdio.h>
int main() {
int a, b, c;
double rad;
double PI = acos(-1);
scanf("%d %d %d", &a, &b, &c);
rad = c * PI / 180;
double S = a * b * sin(rad) / 2;
double L = a + b + sqrt((a * a) + (b * b) - 2 * a * b * cos(rad));
double h = b * sin(rad);
printf("%f\n", S);
printf("%f\n", ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_73175/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_73175/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 a,b;
double C,S,L,h,pi=acos(-1);
scanf("%d %d %lf",&a,&b,&C);
C=C/180*pi;
h=sin(C)*b;
S=a*h/2;
L=a+b+sqrt(pow(a,2)+pow(b,2)-2*a*b*cos(C));
printf("%.8lf\n%.8lf\n%.8lf\n",S,L,h);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_73218/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_73218/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 deg, a,b, S, L, h;
double rad;
double PI = acos(-1);
scanf("%lf %lf %lf", &a, &b, °);
rad=deg*PI/180;
S=a*b*sin(rad)/2;
L=a+b+sqrt(a*a+b*b-2*a*b*cos(rad));
h=2*S/a;
printf("%lf\n%lf\n%lf\n", S, L, h);
retur... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_73261/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_73261/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 n;
scanf("%d",&n);
int t[n+1] , x[n+1] , y[n+1];
t[0] = 0;
x[0] = 0;
y[0] = 0;
for(int i = 1;i < n+1;i ++){
scanf("%d %d %d",&t[i] ,&x[i] ,&y[i]);
}
int flag = 0;
for(int i = 0;i < n;i ++){
int time = t[i+1] - t[i];
int ido = 0;
if(x[i] > ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_73319/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_73319/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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<conio.h>
#include<stdbool.h>
#include<limits.h>
int main()
{
int arr[103][103]={0},x,y,x1,x2,y1,y2,i,j,n;
scanf("%d",&n);
while(n--)
{
scanf("%d%d%d%d",&x1,&y1,&x2,&y2);
for(y=y1;y<=y2;y++)
{
for(x=x1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_7337/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_7337/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 co... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#define ll long long
#define rep(i,n) for(ll i=0;i<(n);i++)
#define max(p,q) ((p)>(q)?(p):(q))
#define min(p,q) ((p)<(q)?(p):(q))
#define chmax(a,b) ((a)=(a)>(b)?(a):(b))
#define chmin(a,b) ((a)=(a)<(b)?(a):(b))
#define abs(p) ((p)>=(0)?(p):(-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_73434/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_73434/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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){
int M,N;
int i , j , k;
scanf("%d %d",&N,&M);
long int a[N][3];
long int b[8][N];
for(i = 0;i<N;i++){
scanf("%ld %ld %ld",&a[i][0],&a[i][1],&a[i][2]);
// b[i] = a[i][0] + a[i][1] + a[i][2];
// pri... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_73485/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_73485/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 n, i;
int A[100000];
scanf("%d", &n);
for (i = 1;i <= n;i++){
scanf("%d", &A[i]);
}
for (i = 1; i <= n; i++) {
printf("node %d: key = %d, ", i, A[i]);
if(i / 2 >= 1) printf("parent key = %d, ", A[i/2]);
if(i*2 <= n) printf("left key = %d, ", A[i*2]);
if... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_73535/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_73535/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 H,i;
scanf("%d",&H);
int id[H+1];
id[0]=0;
for(i=1;i<=H;i++){
scanf("%d",&id[i]);
}
for(i=1;i<=H;i++){
printf("node %d: key = %d, ",i,id[i]);
if(i/2>0)printf("parent key = %d, ",id[i/2]);
if(2*i<=H)printf("left key = %d, ",id[2*i]);
if(2*i+1<=H)print... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_73586/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_73586/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 i,n;
scanf("%d",&n);
int A[n];
for(i=0;i<n;i++) scanf("%d",&A[i]);
for(i=0;i<n;i++){
printf("node %d: key = %d,",i+1,A[i]);
if(i!=0) printf(" parent key = %d,",A[(i-1)/2]);
if((i+1)*2>=0 && (i+1)*2<=n) printf(" left key = %d,",A[i*2+1]);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_73629/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_73629/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define MAX 100000
int main(){
int H, i;
int A[MAX+1];
scanf("%d",&H);
for ( i = 1; i <= H; i++ ) scanf("%d",&A[i]);
for ( i = 1; i <= H; i++ ) {
printf("node %d: key = %d, ",i,A[i]);
if ( i / 2 >= 1 )
printf("parent key = %d, ",A[i/2]);
if ( 2*i <= H )
printf("l... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_73672/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_73672/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define MAX 250
#define NIL -2000000001
int key[MAX];
int parent(int c);
int right(int c);
int left(int c);
int main(){
int i, n, h;
scanf("%d", &n);
for(i = 0; i < MAX; i++){
key[i] = NIL;
}
for(i = 0; i < n; i++){
scanf("%d", &h);
key[i] = h;
}
for(i = 0; i < n; i++){
prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_73715/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_73715/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 n,i;
int *node;
scanf("%d",&n);
node = malloc((n + 1) * sizeof(int));
for(i=1;i<n+1;i++)
scanf("%d",&node[i]);
for(i=1;i<n+1;i++){
printf("node %d: key = %d, ",i,node[i]);
if(1 <= i/2) printf("parent key = %d, ",node[i/2]);
if... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_73773/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_73773/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define MAX 100000
int parent(int);
int left(int);
int right(int);
int main(){
int i,n;
int arr[MAX+1];
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%d",&arr[i]);
}
for(i=1;i<=n;i++){
printf("node %d: key = %d, ",i,arr[i]);
if(parent(i)>=1)printf("parent key = %d, ",arr[p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_73845/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_73845/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 NIL 2000000001
typedef struct{
int k; //key
int lk; //left key
int rk; //right key
}Node;
int main(){
int k, h, i;
Node *T;
scanf("%d", &h);
T = malloc((h + 1)*sizeof(Node));
//initialize
for(i = 1; i < h + 1; i++){
T[i].k = NIL;
T[i].lk = N... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_73896/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_73896/source.c"
target datalayout = "e-m:e-p270: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.Node = type { i32, i3... |
#include<stdio.h>
#include<stdlib.h>
#define h 250
int main(){
int H,i;
int A[h];
scanf("%d",&H);
for(i=1 ; i<H+1 ; i++){
scanf("%d",&A[i]);
}
for(i=1 ; i<H+1 ; i++){
if(i==1){
printf("node %d: key = %d, left key = %d, right key = %d, \n",i,A[i],A[i*2],A[i*2+1]);
}
if(i*2<H && i!=1)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_73939/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_73939/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define H 250
int parent(int);
int left(int);
int right(int);
int main(){
int i;
int n;
int p;
int l;
int r;
int A[H];
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%d",&A[i]);
}
for(i=1;i<=n;i++){
printf("node %d: key = %d, ",i,A[i]);
p = parent(i);
if(p!=0){
printf("parent key =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_73982/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_73982/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
typedef struct Tree{
int key;
int parent;
int left;
int right;
}Tree;
int main(){
int H,i;
Tree *T;
scanf("%d",&H);
T=(Tree*)malloc(sizeof(Tree)*H);
for(i=0;i<H;i++){
T[i].key=2000000001;
T[i].parent=-1;
T[i].left=-1;
T[i].right=-1;
}
for(i=0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_74024/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_74024/source.c"
target datalayout = "e-m:e-p270: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.Tree = type { i32, i3... |
#include<stdio.h>
#define M 100000
int p(int i){return i/2;}
int l(int i){return i*2;}
int r(int i){return i*2 +1;}
int main()
{
int N,i,S[M+1];
scanf("%d",&N);
for(i=1;i<=N;i++)
{
scanf("%d",&S[i]);
}
for(i=1;i<=N;i++)
{
printf("node %d: key = %d, ",i,S[i]);
if(p(i)>=1)printf("parent key ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_74068/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_74068/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define NI NTL
#define H 250
int parent(int);
int Left(int);
int Right(int);
int main(){
int n,i,p,left,right;
int P[H];
scanf("%d", &n);
for(i = 1;i<=n;i++){
scanf("%d" , &P[i]);
}
for(i = 1;i<=n;i++){
printf("node %d: key = %d, ",i,P[i]);
p = parent(i);
if(p!=0){
prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_74110/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_74110/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
/* A Heap */
#include <stdio.h>
int main(){
int heap_size;
int pk,lk,rk;
int i;
scanf("%d",&heap_size);
int A[heap_size+1];
/* scan A[1...heap_size] */
for(i=1;i<=heap_size;i++){
scanf("%d",&A[i]);
}
/* print */
for(i=1;i<=heap_size;i++){
if(i>1)printf("\n");
printf("node %d: ",i);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_74161/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_74161/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define MAX 100000
int par(int);
int lef(int);
int rig(int);
int par(int i){
int a;
a=i/2;
return a;
}
int lef(int i){
int a;
a=2*i;
return a;
}
int rig(int i){
int a;
a=2*i+1;
return a;
}
int main()
{
int H,i,A[MAX+1];
scanf("%d",&H);
for(i=1;i<=H;i++)scanf("%d",&A[i]);
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_74233/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_74233/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 parent(int i)
{
return i/2;
}
int left(int i)
{
return 2*i;
}
int right(int i)
{
return 2*i+1;
}
int key[251];
int main()
{
int h,i,p,r,l;
scanf("%d",&h);
for(i=1;i<=h;i++)
{
scanf("%d",&key[i]);
}
for(i=1;i<=h;i++)
{
printf("node %d: ",i);
printf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_74277/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_74277/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define MAX_COMP 5
#define MAX_BID 10000
int min(int x, int y)
{
return (x <= y) ? x : y;
}
int max(int x, int y)
{
return (x >= y) ? x : y;
}
int main(void)
{
int n;
int l[MAX_COMP];
int r[MAX_COMP];
int i, j, k, z;
double p, q, u;
scanf("%d", &n);
for(i = n; i --;)
scanf("%d %d", &... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_7432/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_7432/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 co... |
#include <stdio.h>
#define NIL -2000000001
int main(){
int i,H,key[251];
int p,l,r;
scanf("%d",&H);
for(i=1; i<=H; i++)scanf("%d",&key[i]);
key[0] = NIL;
for(i=1; i<=H; i++){
p = i/2;
l = i*2;
r = i*2+1;
printf("node %d: key = %d, ",i,key[i]);
if(key[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_74363/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_74363/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define H 250
#define NIL -1
int parent(int);
int left(int);
int right(int);
int main(){
int n = 0;
int A[H];
int i = 0;
scanf("%d",&n);
for(i = 1; i <= n; i++){//1-origin
scanf("%d",&A[i]);
}
for(i = 1; i <= n; i++){
printf("node %d: key = %d, ",i,A[i]);
if(i ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_74406/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_74406/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
/*Game*/
#include<stdio.h>
int main()
{
int k1, k2, n1, n2;
scanf("%d %d %d %d", &n1, &n2, &k1, &k2);
puts((n1 <= n2) ? "Second" : "First");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_7445/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_7445/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 co... |
#include <stdio.h>
#define MAX 250
int main(){
int h,i;
int a[MAX+1];
scanf("%d",&h);
for(i=1;i<=h;i++){
scanf("%d",&a[i]);
}
for(i=1;i<=h;i++){
printf("node %d: key = %d, ",i,a[i]);
if(i/2 >= 1) printf("parent key = %d, ",a[i/2]);
if(i*2 <= h) printf("left key = %d, ",a[i*2]);
if(i*2... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_74493/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_74493/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define NIL -2
typedef struct{
int id;
int p;
int l;
int r;
} Node;
int main(){
int n,i;
scanf("%d",&n);
Node node[n+1];
for(i=1; i <= n; i++){
node[i].p = node[i].l = node[i].r = NIL;
scanf("%d",&node[i].id);
}
for(i=1; i <= n; i++){
if(i != 1){
node[i].p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_74536/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_74536/source.c"
target datalayout = "e-m:e-p270: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.Node = type { i32, i3... |
#include <stdio.h>
int main(){
int a1,a2,a3,a4;
scanf("%d%d%d%d",&a1,&a2,&a3,&a4);
if( a1 <= a2)
printf("Second\n");
else
printf("First\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_7458/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_7458/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 co... |
#include<stdio.h>
#define MAX 250
int main(){
int i,H;
int heap[MAX];
scanf("%d",&H);
for(i=1;i<=H;i++) scanf("%d",&heap[i]);
for(i=1;i<=H;i++){
printf("node %d: key = %d, ",i,heap[i]);
if(i!=1) printf("parent key = %d, ",heap[i/2]);
if(2*i<=H) printf("left key = %d, ",heap[2*i]);
if(2*i+1<... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_74622/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_74622/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
int main(void){
long long n,k,i,j,ans=0,start,goal,stnum,glnum;
long long place[200010]={},flag[200010]={},a[200010]={};
scanf("%lld %lld\n",&n,&k);
for(i=1; i<=n; i++){
scanf("%lld",&a[i]);
}
place[0]=1;
fo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_74673/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_74673/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include <string.h>
long long n, k;
int a[200001];
int f[200001];
int main( int argc, char *argv[] )
{
int c = 1;
int l = -1;
scanf( "%lld %lld", &n, &k );
for( int i=1; i<=n; i++ )
scanf( "%d", &a[i] );
for( int i=1; i<=n; i++ ) {
f[c] = i;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_74716/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_74716/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 n1, n2, k1, k2, x, y;
scanf("%d%d%d%d", &n1, &n2, &k1, &k2);
x = n1; y = n2;
if (x-y > 0)
printf("First\n");
else
printf("Second\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_7476/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_7476/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 co... |
#define _CRT_SECURE_NO_WARNINGS
//#define _USE_MATH_DEFINES
#include<stdio.h>
//#include<stdlib.h>
//#include<math.h>
#include<string.h>
//#include<time.h>
//#define pi acos(-1.0)
#define P(type,x) fprintf(stdout,"%"#type"\n",x)
#define FALSE 0
#define TRUE 1
int num[9];
int used[10];
int dfs(int id);
int check();
int ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_74817/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_74817/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unnam... |
#include <stdio.h>
int max(int n,int m){
if(n>m) return n;
else return m;
}
int main(void){
int a,b;
scanf("%d%d",&a,&b);
printf("%d",max(max(a+b,a-b),a*b));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_74868/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_74868/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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+B>=A-B&&A+B>=A*B)
{
printf("%d",A+B);
}
else if (A-B>=A+B && A-B>=A*B)
{
printf("%d",A-B);
}
else if (A*B>=A+B && A*B>=A-B)
{
printf("%d",A*B);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_74910/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_74910/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,c,d,e,i,j,k;
scanf("%d",&a);
scanf("%d",&b);
c = a+b;
d = a-b;
e = a*b;
if(c>=d && c>=e){
printf("%d",c);
}
else if(e>=d && e>=c){
printf("%d",e);
}
else if(d>=c && d>=e){
printf("%d",d);
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_74961/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_74961/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 Max(int x, int y) {
return (x>y) ? x : y;
}
int main() {
int a, b, max;
scanf("%d%d", &a, &b);
max = Max(a+b, a-b);
max = Max(max, a*b);
printf("%d\n", max);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_75003/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_75003/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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+B > A-B){
if(A+B > A*B){
printf("%d",A+B);
}else{
printf("%d",A*B);
}
}else{
if(A-B > A*B){
printf("%d",A-B);
}else{
printf("%d",A*B);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_75047/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_75047/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 max(int x,int y);
int main(void)
{
int A,B;
scanf("%d",&A);
scanf("%d",&B);
printf("%d",max(A,B));
return 0;
}
int max(int x,int y)
{
int m;
if((x-y)>=(x+y)){
if((x-y)>=(x*y)){
m = x-y;
}
else if((x-y)<(x*y)){
m = x*y;
}
}
else{
if((x+y)>=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_75090/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_75090/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 a,b,max;
scanf("%d%d",&a,&b);
if(-100>a || b>100) exit(0);
max=a+b;
if(a-b>max) max=a-b;
if(a*b>max) max=a*b;
printf("%d",max);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_75133/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_75133/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, max;
scanf ("%d %d", &A, &B);
max = A + B;
if (max < A - B) {
max = A - B;
}
if (max < A * B) {
max = A * B;
}
printf ("%d", max);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_75177/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_75177/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 n1,n2,k1,k2;
scanf("%d%d%d%d",&n1,&n2,&k1,&k2);
if(n1>n2) printf("First\n");
else printf("Second\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_7522/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_7522/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 co... |
#include <stdio.h>
int main(){
int a,b,p,m,k;
scanf("%d %d",&a,&b);
p=a+b;
m=a-b;
k=a*b;
if(p<m){
if(m<k){
printf("%d\n",k);
}else{
printf("%d\n",m);
}
}else{
if(p<k){
printf("%d\n",k);
}else{
printf("%d\n",p);
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_75263/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_75263/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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> // printf(), scanf()
#include <stdbool.h>
const int INF = 100000000;
int
main(int argc, char **argv)
{
const int c[8] = { 4, 1, 4, 1, 2, 1, 2, 1};
int i, j;
while (true)
{
int p[8];
for (i = 0; i < 8; ++i)
{
if (scanf("%d", &p[i]) == EOF)
goto l_end;
}
int min = INF;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_75306/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_75306/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INF = dso_local local_unname... |
#include<stdio.h>
#define MIN(a, b) ((a) < (b) ? (a) : (b))
int a[30];
void f(int d, int b, int n)
{
int i;
if(!n)for(i = 0; i != d; i++) printf("%d%c", a[i], i + 1 == d ? '\n' : ' ');
for(i = MIN(b, n); i; i--) a[d] = i, f(d + 1, i, n - i);
}
int main(void)
{
int n;
while(1){
scanf("%d",... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_75371/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_75371/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 max_size (int)(1e5 + 1)
int main(){
int i, ans = 0;
char *S = (char *)malloc(sizeof(char) * max_size);
scanf("%s", S);
for(i = 1; S[i] != '\0'; i++){
if(S[i] != S[i - 1]){
ans++;
}
}
printf("%d\n", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_75421/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_75421/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include <string.h>
int main() {
while (1) {
int sdice[4], dice0[4], dice1[4], p, k, w;
int dice0p = 0, dice1p = 0, player = 0;
char str[256];
dice0[0] = 1, dice0[1] = 2, dice0[2] = 6, dice0[3] = 5;
dice1[0] = 1, dice1[1] = 3, dice1[2] = 6, dice1[3] = 4;
scanf("%d", ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_75465/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_75465/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 n, i, top, south, east, a, b;
char houkou[6];
while(1){
top = 1;
south = 2;
east = 3;
a = 1;
scanf("%d",&n);
if(n == 0) break;
for(i = 0 ; i < n ; i++){
scanf("%s",&houkou);
switch(houkou[0]){
case 'N':
b = top;
a += south;
top ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_75595/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_75595/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 n,m,x,i,broken[100010]={0},dp[100010]={0};
scanf("%d%d",&n,&m);
for(i=0;i<m;i++){
scanf("%d",&x);
broken[x]=1;
}
dp[n]=1;
for(i=n-1;i>=0;i--){
if(broken[i]==1) continue;
dp[i] = (dp[i+1]+dp[i+2])%1000000007;
}
printf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_75638/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_75638/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include <string.h>
#define INF 0x7f
#define MOD 1000000007
int max(int a,int b)
{
if(a >= b)
{
return a;
}
else
{
return b;
}
}
int main()
{
int n,m,a[100000],mcount = 0;
scanf("%d %d",&n,&m);
for (int i = 0; i < m; i++)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_75681/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_75681/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(void) {
int n, m;
int *a, *b;
int i;
int flag = 0;
unsigned long int *dp;
scanf("%d%d", &n, &m);
a = calloc(m, sizeof(int));
b = calloc(n, sizeof(int));
dp = calloc(n + 1, sizeof(unsigned long int));
for (i = 0; i < m; i++) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_75724/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_75724/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define mod 1000000007
int main(){
int n,m;
scanf("%d%d",&n,&m);
int i,a[n+1],k;
for(i=0;i<=n;i++)a[i]=1;
for(i=0;i<m;i++){
scanf("%d",&k);
a[k]=0;
}
int s[n+1];
s[0]=1;s[1]=a[1];
for(i=2;i<=n;i++){
s[i]=(s[i-1]+s[i-2])*a[i]%mod;
}
printf("%d",s[n]);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_75768/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_75768/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, cnt = 1;
while(1){
scanf("%d", &a);
if(a == 0)break;
printf("Case %d: %d\n", cnt, a);
cnt++;
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_75818/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_75818/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x, i;
i = 1;
while(1){
scanf("%d",&x);
if(x == 0)
break;
printf("Case %d: %d\n",i++,x);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_75861/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_75861/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x,i;
for(i = 1 ;; i++){
scanf("%d",&x);
if(x != 0){
printf("Case %d: %d\n",i,x);
}
else{
break;
}
}
return 0;
}
// i++ == i = i + 1 == i += 1
/*
//パターン1
int i;
for(i = 0 ; i < 1000; i++){
printf("Hello World\n");
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_75919/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_75919/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 i=1, x;
for(;;) {
scanf("%d", &x);
if (x == 0) {
break;
}
else{
printf("Case %d: %d\n", i, x);
i++;
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_75962/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_75962/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 i,n;
i = 0;
while(1){
scanf("%d",&n);
i=i+1;
if( n == 0 )break;
printf("Case %d: %d\n",i,n);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_76011/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_76011/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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[2000],p[2000];
int i,n,j,m=1;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
for(j=0;j<n;j++)
{
for(i=0;i<n;i++)
{
if(a[j]<a[i])m++;
}
p[j]=m;
m=1;
}
for(i=0;i<n;i++)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_7607/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_7607/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 co... |
#include<stdio.h>
int main(){
int n;
int i;
for(i=1;;i++){
scanf("%d",&n);
if(n == 0) break;
printf("Case %d: %d\n",i,n);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_76112/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_76112/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x,i=1;
while(1){
scanf("%d",&x);
if(x==0)break;
printf("Case %d: %d\n",i,x);
i++;
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_76163/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_76163/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x,i;
for(i=1;;i++){
scanf("%d",&x);
if(x!=0){
printf("Case %d: %d\n",i,x);
}else{
break;
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_76206/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_76206/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include <math.h>
int comp(const void *elem1,const void *elem2)
{
int f=*((int*)elem1);
int s=*((int*)elem2);
if(f>s)return 1;
if(f<s)return -1;
return 0;
}
int main(void) {
int i,j,n,a[2100],b[2100],c[2100],d[2100];
scanf("%d",&n);
for(i=1;i<=n;i++)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_7625/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_7625/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 co... |
#include <stdio.h>
int main(){
int i=1,x=1;
for(;; i++){
scanf("%d",&x);
if(x == 0) break;
printf("Case %d: %d\n",i,x);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_76293/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_76293/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,i=0,x[10001];
do{
i++;
scanf("%d",&x[i]);
}while(x[i]!=0);
for(a=1;a<i+1;a++){
if(x[a]==0){
return 0;
}else{
printf("Case %d: %d\n",a,x[a]);
}
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_76350/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_76350/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 i=0, j, x;
int data[10000];
do{
scanf("%d", &x);
data[i]=x;
i++;
}while(x);
for(j=0;j<i-1;j++){
printf("Case %d: %d\n", j+1, data[j]);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_76400/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_76400/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x,c;
scanf("%d", &x);
c = 1;
while(x != 0){
printf("Case %d: %d\n", c, x);
scanf("%d", &x);
c++;
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_76444/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_76444/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 i=0,x;
scanf("%d",&x);
while(x!=0){
i++;
printf("Case %d: %d\n",i,x);
scanf("%d",&x);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_76488/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_76488/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 i,x;
while(1){
scanf("%d",&x);
if ( x == 0 ) break;
printf("Case %d: %d\n",i+1,x);
i++;
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_76545/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_76545/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x,i=0;
do{
i++;
scanf("%d",&x);
if(x==0){
break;
}
printf("Case %d: %d\n",i,x);
}while(1);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_76589/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_76589/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, const char * argv[]){
int i=1;
int t;
int x[10001]={};
while(1){
scanf("%d", &x[i]);
if (x[i]==0) {
break;
}
i++;
}
for(t=1;t<i;t++){
printf("Case %d: %d\n", t,x[t]);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_76631/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_76631/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 num[10010]={0};
int i,max=0;
while(1){
scanf("%d",&num[max]);
if(num[max])
max++;
else
break;
}
for(i=0;i<max;i++){
printf("Case %d: %d\n",i+1,num[i]);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_76675/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_76675/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define N 10000
int main()
{
int mat[N];
int i,x,count;
count=0;
for(i=0;i<N;i++)
{
scanf("%d",&x);
if(x==0) {
break;
}
mat[i]=x;
count++;
}
for(i=0;i<count;i++)
{
printf("Case %d: %d\n",i+1,mat[i]);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_76718/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_76718/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 k = 1;
int x;
scanf("%d", &x);
while (x) {
printf("Case %d: %d\n", k++, x);
scanf("%d", &x);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_76776/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_76776/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x, i = 1;
scanf("%d", &x);
while(x != 0){
printf("Case %d: %d\n", i, x);
i++;
scanf("%d", &x);
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_76826/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_76826/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 i=0;
int x[9999];
do{
scanf("%d",&x[i]);
if(x[i] == 0){
break;
}
i++;
}while(i < 100000);
i = 0;
do{
if(x[i] != 0){
printf("Case %d: %d\n",i+1,x[i]);
}else{
brea... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_76877/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_76877/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 n, num, maxA, maxB;
maxA = maxB = 0;
scanf("%d", &n);
for(int i = 0; i < n; ++i) {
scanf("%d", &num);
if(maxA < num) {
maxA = num;
}
}
scanf("%d", &n);
for(int i = 0; i < n; ++i) {
scanf("%d", &num);
if(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_7692/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_7692/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 co... |
#include <stdio.h>
int main(void)
{
int num_datasets=0, input[10001];
do
{
scanf("%d", &input[num_datasets]);
} while (input[num_datasets++]);
int i = 0;
while (input[i] != 0)
{
printf("Case %d: %d\n", i+1, input[i]);
i++;
}
return(0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_76963/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_76963/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 n, i;
scanf("%d", &n);
if(n & 1) {
printf("YES\n");
for(i = 0; i < n; i++)
printf(i ? " %d" : "%d", 2*i + 1 + !!(i&1));
for(i = 0; i < n; i++)
printf(" %d", 2*i + 1 + !(i&1));
} else
printf("NO");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_7702/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_7702/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 co... |
#include <stdio.h>
int main(int argc,const char * arg[])
{
int i,a;
for (i=1;i<=10000;i++) {
scanf("%d", &a);
printf("Case %d: %d\n", i, a);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_77063/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_77063/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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){
// Your code here!
int date[10000],i=1;
while(1){
if(i>10000)break;
scanf("%d",&date[i]);
if(date[i]==0)break;
printf("Case %d: %d\n",i,date[i]);
i++;
}
i=1;
while(1){
if(date[i]==0)break;
if(date[i]!=0){
i++;
}
return 0;
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_77106/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_77106/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 n,a,i,c=0,cc=0;
long long s=0;
scanf("%d",&n);
while(n--)
{
scanf("%d",&a);
if(a==0)
cc++,s++;
else if(a<0)
{
c++;
s+=abs(a+1);
}
else
s+=abs(a-1);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_7715/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_7715/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 co... |
#include<stdio.h>
int main(void)
{
int x,i;
i=1;
while(1){
scanf("%d",&x);
if(x==0){
break;
}
printf("Case %d: %d\n",i,x);
i=i+1;
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_77214/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_77214/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x, t;
for(x=0,t=1; ;t++) {
scanf("%d",&x);
if(x==0) break;
printf("Case %d: %d\n",t,x);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_77272/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_77272/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 n,m,max1=0,max2=0,a,b,j=1,k=1;
scanf("%d",&n);
for(int i=0;i<n;i++)
{
scanf("%d",&a);
if(j)
{
max1=a;
j=0;
}
if(a>max1)
max1=a;
}
scanf("%d",&m);
for(int i=0;i<m;i++)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_7733/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_7733/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 co... |
#include <stdio.h>
int main(void){
int i, a[10000];
for(i = 0; i < 10000; i++){
scanf("%d", &a[i]);
if(a[i] == 0){
break;
}
printf("Case %d: %d\n", i + 1, a[i]);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_77373/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_77373/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 main(void)
{
int i, x;
for (i = 1;; i++){
scanf("%d", &x);
if (x == 0) break;
printf("Case %d: %d\n", i, x);
}
return(0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_77416/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_77416/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.