Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include<stdio.h> #include<string.h> int C[101],a,b,i; int main() { for(;~scanf("%d%d",&a,&b);) { if(a+b) C[a]++,C[b]++; else { for(i=3;i<=100;i++) if(C[i]%2) break; puts(i==101&&C[1]%2&&C[2]%2?"OK":"NG"); memset(C,0,sizeof(C)); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354038/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354038/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <float.h> #define i_cin(X) scanf("%d", &X) #define i_cin2(X,Y) scanf("%d %d",&X,&Y) #define i_cin3(X,Y,Z) scanf("%d %d %d",&X,&Y,&Z) #define l_cin(X) scanf("%ld",&X) #define f_cin(X) scanf("%f",&X) #define l_cin2(X,Y) scanf("%ld %l...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354081/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354081/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 s[200001]; scanf("%s", s); int i = 0, j = strlen(s); while (s[i] != 'A') { i++; } while (s[j] != 'Z') { j--; } printf("%d\n", j - i + 1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354124/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354124/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ char c; int st = -1, gl = 0; for(int i = 0; ; i++){ c = getchar(); if(c == '\n')break; if(st == -1 && c == 'A')st = i; if(c == 'Z')gl = i; } printf("%d\n", gl - st + 1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354175/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354175/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { char foo[200001]; scanf("%s", foo); char *p = foo; for (; *p; ++p) { if (*p == 'A') { break; } } char *last; char *p2 = p; for (; *p2; ++p2) { if (*p2 == 'Z') { last = p2; } } printf("%d\n", last - p + 1); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354225/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354225/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> char s[200000]; int main() { int i,j,k,l,m,n; scanf("%s",s); int str=strlen(s); for(i=0;i<str;i++) if(s[i]=='A') break; for(j=str;j>=0;j--) if(s[j]=='Z') break; printf("%d",j-i+1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354269/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354269/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { char s[102]; int i,n=0,count=0; scanf("%s", s); for(i=0;;i++){ if(s[i] !='\0') n++; else break; } for(i=0; i < n/2; i++) { if(s[i] != s[n-1-i]) count++; } printf("%d",count ); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354311/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354311/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { char S[200]; int i, N=0; int count=0; scanf("%s",S); while(S[N] != '\0') N++; for(i=0; i<N/2; i++){ if(S[i] != S[N-i-1]) count++; } printf("%d\n",count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354355/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354355/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 n,i; long long res,m3[100002],kq; res=0; scanf("%d",&n); m3[0]=1; kq=1; for (i=1;i<=n;i++) m3[i]=(m3[i-1]*27)%1000000007; for (i=0;i<n;i++) { res=(res+(20*(m3[n-i-1]))%1000000007*kq%1000000007)%1000000007; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35442/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35442/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main() { char bun[100]; int j = 0, i, k = 0; scanf("%s", bun); for (i = 0; bun[i] != '\0'; i++) { } k = i; for (i = 0; i < k / 2; i++) { if (bun[i] != bun[k - i - 1]) { j++; } } printf("%d", j); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354463/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354463/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> char s[101]; int main(void) { scanf("%s", s); int res = 0; int n = strlen(s); for (int i = 0; i < n; i++) { if (s[i] != s[n - 1 - i]) res++; } printf("%d\n", res / 2); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354506/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354506/source.c" target datalayout = "e-m:e-p270:32:32-p271: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) { char str[1000]; int n,i; int count = 0; scanf("%s",str); n = strlen(str); for(i=0;i < n/2;i++){ if(str[i] != str[n-i-1]){ count++; } } printf("%d",count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354564/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354564/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> int main(void) { char input[102]; scanf("%s", input); int len = strlen(input); int cnt = 0; for (int i = 0; i <= len/2 - 1; i++) { if (input[i] != input[len-1-i]) cnt++; } printf("%d\n", cnt); return...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354607/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354607/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> typedef struct point{int x,y;}point; int main(){ point con[200],sky[1000]; int m,n,i,j,k,flag; while (1) { scanf("%d",&m); if (m==0) { return 0; } for (i=0; i<m; i++) { scanf("%d %d",&con[i].x,&con[i].y); } scanf("%d"...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354650/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354650/source.c" target datalayout = "e-m:e-p270: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.point = type { i32,...
#include<stdio.h> #define size 100 int main( ) { int n , i , num[size] , j , temp , a[size]; scanf("%d" , &n); for( i = 1 ; i <= n ; i++) { scanf("%d" , &num[i]); a[i] = num[i] ; } for( i = 1 ; i <= n ; i++) { for( j = 1 ; j < n ; j++) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354700/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354700/source.c" target datalayout = "e-m:e-p270:32:32-p271: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; scanf("%d",&n); int a[n],count=0; for(int i=0;i<n;i++) { scanf("%d",&a[i]); } for(int i=0;i<n;i++) { if(a[i]!=i+1) { count++; } } if(count<=2) { printf("YES\n"); } else { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354744/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354744/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdio.h> //小さい順にソート int c[51]; void merge(int i,int j,int *s){ if(i!=j){ merge(i,(i+j)/2,s); merge((i+j)/2+1,j,s); int a=i,b=(i+j)/2+1; int d; for(d=i;d<=j;d++){ if((i+j)/2<a){ c[d]=s[b]; b++; } else if(j<b){ c[d]=s[a]; a...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354788/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354788/source.c" target datalayout = "e-m:e-p270: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> int main(void){ int num; scanf("%d",&num); int p[num], i = 0, flag = 0, index[3], j = 0; while(i<num){ scanf("%d",&p[i]); if(flag<=2&&p[i]!=i+1){ flag++; index[j] = i; j++; } i++; } if(!flag) printf("...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354830/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354830/source.c" target datalayout = "e-m:e-p270:32:32-p271: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; scanf ("%d", &N); int p[N+1], q[N+1]; int index, countMismatch = 0; for (index = 1; index <= N; index++) { scanf ("%d", &p[index]); q[index] = index; if (p[index] != q[index]) countMismatch++; } if (countMismatch<...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354874/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354874/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 i,N,flag=0; int p[51]; scanf("%d",&N ); for(i=0;i<N;i++){ scanf("%d",&p[i] ); } for(i=0;i<N;i++){ if(p[i]!=i+1) flag++; } if(flag==0 || flag==2){ printf("YES\n"); }else{ printf("NO\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354931/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354931/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 #include <stdio.h> #include <stdlib.h> int main(void) { int hantei[2] = { 0,0 }; int hantei_num = 0; int swap = 0; int decision = 0; int N = 0; scanf("%d", &N); int* array = (int*)malloc(N * sizeof(int)); for (int i = 0; i < N; i++) { scanf("%d", array + i); } for (int...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354975/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354975/source.c" target datalayout = "e-m:e-p270:32:32-p271: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; int p[50]; int i; int flag = 0; scanf("%d",&n); for(i=0; i<n; i++){ scanf("%d",&p[i]); } for(i=0; i<n; i++){ if(p[i] != i+1){ flag++; } } if(flag == 2 || flag == 0){ printf("YES"); }else{ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355017/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355017/source.c" target datalayout = "e-m:e-p270:32:32-p271: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; scanf("%d", &n); int p[n], miss=0; for(int i=0; i<n; i++){ scanf("%d", &p[i]); if(p[i] != i+1){ miss++; } } if(miss > 2){ printf("NO\n"); }else { printf("YES\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355060/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355060/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 matrix[3][3]; char x; for(int i=0;i<3;i++){ for(int j=0;j<3;j++){ scanf("%d", &matrix[i][j]); } } int n; scanf("%d",&n); int input[n]; for(int k=0;k<n;k++){ scanf("%d", &input[k]); for(int i=0;i<3;i++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355103/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355103/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 a[3][3],n,b[100],i,j,q,t[3][3],result=0; scanf("%d%d%d",&a[0][0],&a[0][1],&a[0][2]); scanf("%d%d%d",&a[1][0],&a[1][1],&a[1][2]); scanf("%d%d%d",&a[2][0],&a[2][1],&a[2][2]); scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&b[i]); } for(j=0;j...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355154/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355154/source.c" target datalayout = "e-m:e-p270:32:32-p271: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[3][3]; int b[3][3]; int n,x; int i,j,k; int flag = 0; for(i = 0;i < 3;i++){ for(j = 0;j < 3;j++){ scanf("%d", &a[i][j]); b[i][j] = 0; } } scanf("%d", &n); for(k = 0;k < n;k++){ scanf("%d", &x); for(i = 0;i < 3;i++){ for(j = 0;j ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355198/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355198/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 have_data(long data, long* p, long len); int main(void){ long a[4][4]; for(long i=0;i<3;i++){ for(long j=0;j<3;j++){ scanf("%ld", &a[i][j]); } } for(long i=0;i<3;i++){ a[i][3] = 1; a[3][i] = 1; } long n; scanf("%ld", &n);...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355240/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355240/source.c" target datalayout = "e-m:e-p270:32:32-p271: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[3][3]; int B[3][3]; int nb, n; int i, j, k; i = 0; j = 0; while (j < 3) { k = 0; while (k < 3) { B[j][k] = 0; k++; } j++; } while (i < 3) { scanf("%d %d %d", &N[i][0], &N[i][1], &N[i][2]); i++; } scanf("%d", &nb); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355291/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355291/source.c" target datalayout = "e-m:e-p270:32:32-p271: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[4][4],i,j,k,N,b[101],bingo[4][4],ans = 0; for(i = 0;i < 3;i++){ for(j = 0;j < 3;j++){ scanf("%d",&A[i][j]); bingo[i][j] = 0; } } scanf("%d",&N); for(i = 0;i < N;i++){ scanf("%d",&b[i]); } for(i = 0;i ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355334/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355334/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 bingo[3][3] = {{0,0,0},{0,0,0},{0,0,0}}; int n; int b; for(int i =0; i<3; i++){ if(scanf("%d%d%d*c", &bingo[i][0], &bingo[i][1], &bingo[i][2])==EOF){return 0;} } if(scanf("%d*c", &n)==EOF){return 0;} for(int j = 0; j<n; j++){ if(scanf("%d*c", &b)==EOF){return 0;} for(i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355378/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355378/source.c" target datalayout = "e-m:e-p270:32:32-p271: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...
//set many funcs template //Ver.20190820 #include<stdio.h> #include<string.h> #include<stdlib.h> #include<stdbool.h> #include<time.h> #include<assert.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...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355420/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355420/source.c" target datalayout = "e-m:e-p270: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.sd = type { i32, i3...
#include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { long long A; long long ans; double B; long long tA; int tB; scanf("%lld", &A); scanf("%lf", &B); tA = (long long)(A / 100); tB = (int)(100 * B); if (100 * B - tB > 0.5) { ++tB; } ans ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355479/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355479/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ long long int a; double b; scanf("%lld %lf",&a,&b); long long int c = b * 100 + 0.5; long long int ans = (a * c) /100; printf("%lld",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355521/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355521/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { long long a,c; long double b; scanf("%lld %llf",&a,&b); c=a*b; printf("%lld",c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355565/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355565/source.c" target datalayout = "e-m:e-p270:32:32-p271: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...
/* * FileName: C * CreatedDate: 2020-05-31 20:58:51 +0900 * LastModified: 2020-05-31 22:00:20 +0900 */ #include <stdio.h> int main(void){ long double a,b; scanf("%Lf%Lf",&a,&b); printf("%lld\n",(long long int)(a*b)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355608/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355608/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 1208: Rational Irrationals // 2017.10.14 bal4u@uu #include <stdio.h> int n, p; long long x, y, u, v; void SternBrocot(long long pl, long long ql, long long pr, long long qr) { long long pm, qm; pm = pl + pr, qm = ql + qr; if (pm > n || qm > n) return; if (p * qm * qm < pm * pm) { x = pm, y ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355651/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355651/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @n = dso_local global i32 0...
#include <stdio.h> int main (){ char kata[10]; scanf("%s", kata); if (kata[2] == kata[3] && kata[4] == kata[5]){ printf("Yes"); } else { printf("No"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355709/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355709/source.c" target datalayout = "e-m:e-p270:32:32-p271: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(){ char s[6]; scanf("%s",s); if (s[2]==s[3] && s[4]==s[5]){ printf("Yes"); } else{ printf("No"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355752/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355752/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { char s[7]; scanf("%s",s); if((*(s+2)==*(s+3))&&(*(s+4)==*(s+5))) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355839/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355839/source.c" target datalayout = "e-m:e-p270:32:32-p271: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; scanf("%d",&n); int z=0; int o=0; char h; for (int i=0;i<=n;i++){ h=getchar(); if (h=='z') {z=z+1;} if (h=='n') {o=o+1;} } for (int i=0;i<o;i++){printf("1 ");} for (int i=0;i<z;i++){printf("0 ");} return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35589/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35589/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> int main() { char a[500002]; scanf("%s",a); char s=a[0]; int l=strlen(a); printf("Mike\n"); for(int i=1;i<l;i++) { if(a[i]>s) { printf("Ann\n"); } else { s=a[i]; printf("Mike\n"); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35594/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35594/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main() { char S[5]; scanf("%s", S); if (S[2] == S[3] && S[4] == S[5]) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355990/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355990/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main (){ char c[6]; scanf("%s",c); if(c[2] == c[3] && c[4] == c[5]){ printf("Yes"); } else { printf("No"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356032/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356032/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ char S[7]; scanf("%s",S); if(S[2]==S[3]&&S[4]==S[5]){ printf("Yes\n"); } else{ printf("No\n"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356090/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356090/source.c" target datalayout = "e-m:e-p270:32:32-p271: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() { char ch[6]; int i; for(i=0;i<6;i++) scanf("%c",&ch[i]); ch[i]='\0'; if(ch[2]==ch[3]&&ch[4]==ch[5]) printf("Yes"); else printf("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356133/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356133/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { char a,b,c,d,e,f; scanf("%c%c%c%c%c%c" ,&a,&b,&c,&d,&e,&f); if (c==d & e==f){ printf("Yes"); } else{ printf("No"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356184/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356184/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { char s[6]; scanf("%s",s); if(s[2]==s[3] &&s[4]==s[5]) { printf("Yes"); } else { printf("No"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356234/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356234/source.c" target datalayout = "e-m:e-p270:32:32-p271: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() { char a[6]; scanf("%s",a); if(a[2]==a[3]&&a[4]==a[5]) printf("Yes\n"); else printf("No\n"); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356285/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356285/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ char s[7] = {'\0'}; scanf("%s", s); if(s[2] == s[3] && s[4] == s[5]){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356328/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356328/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { char S[20]; scanf("%s",S); if((S[4]==S[5]) && (S[2]==S[3])){ printf("Yes\n"); } else { printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356371/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356371/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int N; int num,sum; int i,j,x,y; while(1){ scanf("%d",&N); num=0; if(N==0){ break; } for(i=2;i<=44;i++){ x=0; for(j=1;j<=i;j++){ x=x+j; } sum=x-i; for(y=0;sum<=N;y++){ sum=sum+i; if(sum==N){ num++; break; } } } printf(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356414/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356414/source.c" target datalayout = "e-m:e-p270:32:32-p271: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, i, j, cnt, t; while(scanf("%d", &n), n){ cnt=0; for(i=1; i<n; i++){ t=0; for(j=i; j<n; j++){ t+=j; if(t==n){ cnt++; break; }else if(t>n){ break; } } } printf("%d\n", cnt); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356458/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356458/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #define Max 100 int output(int y, int m, int d){ int count=0; while(1){ if(y == 1 && m == 1 && d == 1)break; count++; d--; if(d<1){ m--; if(m<1){ y--; m=10; } if(m%2==1 || y%3 == 0)d=20; else d=19; } } return count; } int main(){ int yea...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356500/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356500/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int i,j; int ymd[100][3],n,y3=590,date; scanf("%d", &n); for(i=0; i<n; i++) { for(j=0; j<3; j++) { scanf("%d", &ymd[i][j]); } } for(i=0;i<n;i++) { date = 0; date += ((ymd[i][0]-1)/3)*y3; switch(ymd[i][0]%3){ case 2: date += 195; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356551/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356551/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 kei(int year, int month, int day){ int sum=0; for(int i=1;i<year;i++){ if(i%3==0){ sum+=20*10; }else{ sum+=20*5+19*5; } } if(year%3==0){ for(int i=1;i<month;i++){ sum+=20; } }else{ for(int i=1;i<month;i++){ if(i%2==0){ sum+=19; }else{...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356623/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356623/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { long long n, k, a, ans; scanf("%lld%lld", &n, &k); if (k == 0) { printf("%lld\n", n * n); return 0; } ans = 0; for (a = k + 1; a <= n; a++) ans += n / a * (a - k) + (n % a + 1 >= k ? n % a + 1 - k : 0); printf("%lld\n", ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356667/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356667/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> int main() { int i, n, q; scanf("%d %d", &n, &q); char arr[n + 1]; scanf("%s", &arr); int replace = 0; for (i = 0; i < n; i++) { if (i + 1 >= n || i + 2 >= n) break; char f = arr[i], s = arr[i + 1], t = arr[i + 2]; if...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35671/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35671/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> double Koch(int,double,double,double,double); int main() { int n; scanf("%d",&n); printf("%.8f %.8f\n",0.0,0.0); Koch(n,0,0,100,0); printf("%.8f %.8f\n",100.0,0.0); return 0; } double Koch(int n,double leftx,double lefty,double rightx,double righty) { if(n!=0){ double...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356753/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356753/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> typedef struct { double x; double y; }p; void kock(int,p,p); int main() { int n; p p1={0.0,0.0}; p p2={100.0,0.0}; scanf("%d",&n); printf("%f %f\n",p1.x,p1.y); kock(n,p1,p2); printf("%f %f\n",p2.x,p2.y); return 0; } void kock(int n,p p1,p p2) { p s={0.0,0.0}; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356797/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356797/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> void sort(int x,int* arr) { int i, s; i = 0; while (i < x - 1) { if (arr[i] > arr[i + 1]) { s = arr[i]; arr[i] = arr[i + 1]; arr[i + 1] = s; } i = i + 2; } int k, a1 = 0, a2 = 0, f, f1,f2, p; int * res, * sw, * fr; res = (int*)malloc(x * sizeof(int)); fr ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35684/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35684/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> struct s{ double x; double y; }; void kock(int n,struct s p1,struct s p2); int main(){ int n; struct s p1={0,0}; struct s p2={100,0}; scanf("%d",&n); printf("%f %f\n",p1.x,p1.y); kock(n, p1, p2); printf("%f %f\n",p2.x,p2.y); return 0; } void kock(int n,struct ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356883/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356883/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> typedef struct { double x,y; }Point; void koch(int n,Point p1,Point p2){ Point s,t,u; double theta; theta=M_PI*60.0/180.0; if(n==0) return; s.x=(2.0*p1.x+1.0*p2.x)/3.0; s.y=(2.0*p1.y+1.0*p2.y)/3.0; t.x=(1.0*p1.x+2.0*p2.x)/3.0; t.y=(1.0*p1.y+2.0*p2.y)/3.0; u.x=(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356926/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356926/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 get_uint() { int n = 0; int c = getchar_unlocked(); if(c < 48 || 57 < c) return c; while(47 < c && c < 58) { n = 10 * n + (c & 0xf); c = getchar_unlocked(); } return n; } typedef struct Point { double x; double y; } Point; void koch(int n, Point left, Po...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356984/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356984/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct._IO_FILE = type { i...
#include <stdio.h> #include <math.h> typedef struct { double x; double y; } XY; int koch (XY ,XY ,int ); int main() { int n; XY a1,a2; scanf("%d",&n); a1.x=0; a1.y=0; a2.x=100; a2.y=0; printf("%f %f\n",a1.x,a1.y); koch(a1,a2,n); return 0; } int koch(XY a1,XY a2,int n) { XY b,c,d,leng; if (n...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357026/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357026/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> typedef struct { double x; double y; } P; void koch(int n,P a,P b){ if(n == 0) return; double rad; P s,t,u; rad = 3.14159265358932384 * 60/180; s.x = (2.0*a.x + 1.0*b.x) / 3.0; s.y = (2.0*a.y + 1.0*b.y) / 3.0; t.x = (1.0*a.x + 2.0*b.x) / 3.0; t.y = (1.0*a.y + ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357077/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357077/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> typedef struct kk{ double x; double y; } P; int koch(int ,P ,P); int main() { int n; P s,e; s.x = 0.0; e.x = 100.0; s.y = e.y = 0.0; scanf("%d",&n); printf("%f %f\n",s.x,s.y); koch(n,s,e); printf("%f %f\n",e.x,e.y); return...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357163/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357163/source.c" target datalayout = "e-m:e-p270:32:32-p271: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.141592 typedef struct { double x; double y; }point; void kock(int n, point p1, point p2); int main(void){ int n; scanf("%d", &n); point p1, p2; p1.x=0.00000000, p1.y=0.00000000; p2.x=100.00000000, p2.y=0.00000000; printf("0.00000000 0.00000000\n")...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357213/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357213/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> struct Point{ double x,y; }; void koch(int n, struct Point a, struct Point b){ if(n==0) return; struct Point s,t,u; double th = M_PI * 60.0 / 180.0; s.x=(2.0*a.x + 1.0*b.x)/3.0; s.y=(2.0*a.y + 1.0*b.y)/3.0; t.x=(1.0*a.x + 2.0*b.x)/3.0; t.y=(1.0*a.y + 2.0*b.y)/3.0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357257/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357257/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> typedef struct { double x; double y; } XY; void koch(int,XY,XY); void show(XY); int main(void) { int i,n; XY p1={0,0},p2={100,0}; scanf("%d",&n); show(p1); koch(n,p1,p2); show(p2); return 0; } void koch(int n,XY p1,XY p2){ XY s,t,u; if(n==0) return; s.x=(2.0*p1.x+p2.x)/3.0; t.x=(p...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357314/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357314/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> typedef struct point { double x; double y; }Point; void kock(int n, Point p1, Point p2); int main(int argc, char** argv) { Point p1, p2; int n; scanf("%d", &n); p1.x = 0, p1.y = 0; p2.x = 100, p2.y = 0; printf("%.8f %.8f\n", p1.x, p1.y); kock(n, p1, p2); printf(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357365/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357365/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> #define N 100 #define MAX(A,B) ((B) > (A) ? (B) : (A)) static int n; static char d[N]; static int h['Z' - 'A' + 2]; int main(void) { int i, j; for (;;) { scanf(" %d", &n); if (n == 0) break ; for (i = 0; i < n; ++i) scanf(" %c", &d[i]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357408/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357408/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> unsigned long x; unsigned long i = 0; int main() { int tmp = 0; scanf("%ld", &x); i = (x / 11) * 2; x = x % 11; while(1){ if(tmp >= x){ break; } i++; (i % 2) ? (tmp += 6) : (tmp += 5); } printf("%lu\n", i); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357451/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357451/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @i = dso_local local_unname...
#include <stdio.h> int main(){ long long int score, group, rest, operation; scanf("%lld", &score); group = score / 11; rest = score % 11; if(rest >= 1 && rest <= 6){ operation = 2 * group + 1; }else if(rest == 0){ operation = 2 * group; }else{ operation = 2 * (group + 1); } printf("%lld\...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357501/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357501/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 a, b, c, d, i1, j1, i2, j2, x, y; int n; scanf("%lf %lf %lf %lf", &a, &b, &c, &d); if(a != c && b != d){ i1 = (d - b)/(c - a); j1 = b - i1 * a; i2 = -1 / i1; scanf("%d", &n); for(c = 0; c < n; c++){ scanf("%lf %lf", &a, ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357545/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357545/source.c" target datalayout = "e-m:e-p270:32:32-p271: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, K, A[200001], B[200001]; int i, j, k, l, m; ///////////////////////// // Scan the imput: scanf("%d %d",&N,&K); for (i=1;i<=N;i++){ scanf("%d",&A[i]); } //////////////////////// /////////////////////////// // Sort the numbers: // B[j] is the number of appearan...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357589/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357589/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 N, M, a, b; int lane[11][3]; int car[10000][2]; int i, j; int top; int min; int p; scanf("%d%d", &N, &M); memset(lane, 0, sizeof(lane)); memset(car, 0, sizeof(car)); for (i = 1; i <= 9999; i++){ car[i]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357631/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357631/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> int main() { int n,K[100000],i,j; char S[100000]; while(1){ scanf("%d",&n); if(n==0)break; for(i=0;i<n;i++){ scanf("%d",&K[i]); } scanf("%s",S); for(i=0;i<strlen(S);i++){ for(j=0;j<K[i%n];j++){ if(S[i]=='a')S[i]='Z'; else if...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357675/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357675/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> int Arr[50] = {0}; void arr_output(void) { int k; for ( k = 0; k < 50; k++ ){ printf("%d ", Arr[k]); } puts(""); } void arr_init(int n) { int k; for ( k = 0; k < n; k++ ) { Arr[k] = n - k; } } void shuffle(int n, int start, int num...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357725/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357725/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @Arr = dso_local local_unna...
#include <stdio.h> int main(void){ int n, r, p, c, i, j, z, hanahuda[50], buf; while (1){ scanf("%d %d", &n, &r); if (n == 0 && r == 0) { break; } for (i = 0; i < n; i++){ hanahuda[i] = i + 1; } for (i = 0; i < r; i++){ scanf("%d %d", &p, &c); if (p != 1){ for (j = n - p - c + 1; j <= ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357769/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357769/source.c" target datalayout = "e-m:e-p270:32:32-p271: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){ //13はあとでnに書き換える int p,c,n,r; int i,j,k = 0; int counter; int array_count; /* scanf("%d",&n); scanf("%d",&p); scanf("%d",&c); */ //puts(""); //scanf("%d",&n); //書き潰される前にバッファに退避 大きさはc 関数1回ごとに初期化 //do{ /* scanf("%d",&p); scanf("%d",&c); */ while(1){ scanf("%d %d",&n,&r); /*n枚のデッキを ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357826/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357826/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 V_MAX 200000 #define E_MAX 399998 int score[V_MAX + 1]; int first[V_MAX + 1]; int next[E_MAX + 1]; int dest[E_MAX + 1]; void dfs(int curr, int par) { for(int i = first[curr]; i; i = next[i]) { if(dest[i] != par) { score[dest[i]] += score[curr]; dfs(dest[i], curr); } } return; } i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357877/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357877/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @first = dso_local local_un...
#include<stdio.h> void sort(int a[],int n) { int i,j,temp; for(i=0;i<n;i++) { for(j=i+1;j<n;j++) { if(a[i]>a[j]) { temp=a[i]; a[i]=a[j]; a[j]=temp; } } } } void small(int a[],int n) { int i,j,...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35792/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35792/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str.2 = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> char X[1000 + 1], Y[1000 + 1]; int lcs[1000 + 1][1000 + 1]; void calc_lcs(int lx, int ly); int main(int argc, char *argv[]) { int q, i, j, k, lx, ly; scanf("%d", &q); for (i = 0; i < q; i++) { scanf("%s", X); scanf("%s", Y);...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357992/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357992/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 LCSLength(char *X, char *Y){ int i,j,m,n,c[1001][1001]; m = strlen(X); n = strlen(Y); for(i=0; i<m; i++){ c[i][0] = 0; } for(j=0; j<n; j++){ c[0][j] = 0; } for(i=1;i<m+1;i++){ for(j=1;j<n+1;j++){ if (X[i-1]==Y[j-1]) c[i][j]=c[i-1][j-1]+1; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358041/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358041/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 q, i, j, k, m, n, c[1001][1001], ans[151]; char x[1001], y[1001]; int main(void) { scanf("%d", &q); for (k = 0; k < q; k++) { scanf("%s", x); scanf("%s", y); m = strlen(x); n = strlen(y); for (i = 1; i <= m; i++) { c[i][0] = 0; } for ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358092/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358092/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> #define N 1001 int lcs(); char c1[N],c2[N]; int c[N][N]; int main() { int i,j; int l[N],n; scanf("%d",&n); for(i=0; i<n; i++){ scanf("%s",c1); scanf("%s",c2); l[i] = lcs(); } for(i=0; i<n; i++){ printf("%d\n",l[i]); } return 0; } int ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358135/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358135/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 c[1500][1500]; int sublong(const char *s){ int len = 0; while (*s++){ len++; } return len; } int lcs(char a[], char b[], int la, int lb){ int i, j, common = 0; for(i=0; i<=la; i++){ c[i][0]=0; } for(j=0; j<=lb; j++){ c[0][j]=0; } for(i=0; i<=la-1; i++){ for(j=0; j<=lb-1; j...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358186/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358186/source.c" target datalayout = "e-m:e-p270: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 <string.h> int max(int x, int y) { return x > y ? x : y; } int main(void) { int q, slen, tlen; char s[1005]; char t[1005]; int lcs[1005][1005] = {}; // 1-origin scanf("%d", &q); while (q--) { scanf("%s%s", s, t); slen = strlen(s); tlen = strlen(t); for ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358236/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358236/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> #define N 1007 char X[N],Y[N]; int c[N][N]; int L[N]; int m,n; int LCSlength(char *,char *); int main(){ int i,j,num; scanf("%d",&num); for(i=0;i<num;i++){ scanf("%s",X+1); scanf("%s",Y+1); L[i] = LCSlength(X,Y); } for(i=0;i<num;i++){ prin...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358287/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358287/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> int main() { int t; scanf("%d",&t); while(t--) { int i,n; long long int k,c=0; scanf("%d %lld",&n,&k); int a[n]; for(i=0;i<n;i++) scanf("%d",&a[i]); while(1) { i=0; c++; while(i!=n-1) { i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35833/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35833/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> int length(); char X[1000+1], Y[1000+1]; int c[1000+1][1000+1]; int LCS() { int i,j,m,n; m = strlen(X); n = strlen(Y); for (i=1;i<=m;i++) { c[i][0] = 0; } for (j=0;j<=n;j++) { c[0][j] = 0; } for ( i = 1; i <= m; i++) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358380/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358380/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @X = dso_local global [1001...
#include <stdio.h> #include <string.h> #define max 1001 void LCSLength(char *, char*); /* 最長共通分列の長さを求める。*/ char text1[max], text2[max]; int q, c[max+1][max+1]; int main() { int i; scanf("%d",&q); for(i = 0 ; i < q ; i++){ scanf("%s",text1); scanf("%s",text2); LCSLength(text1, text2); printf...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358430/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358430/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> #define max(a,b) ((a)>(b) ? (a):(b)) int dp[1001][1001]; int lcs(char *s,char *t){ int i,j,ls,lt; ls=strlen(s); lt=strlen(t); for(i=0;i<ls;i++){ for(j=0;j<lt;j++){ if(s[i]==t[j]) dp[i+1][j+1]=dp[i][j]+1; else dp[i+1][j+1]=max(dp[i+1][j],dp[i][j+...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358481/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358481/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @dp = dso_local local_unnam...
// Aizu Vol-1 0110: Alphametic // 2017.8.4 #include <stdio.h> #include <stdlib.h> #include <ctype.h> char *gets(char *buf); char buf[500], *p; char a[10][150], b[10][150], s[10][150], *pa, *pb, *ps; int main() { int i; int la, lb, ls, aa, bb, ss; int sum, ca, zero; while (gets(p = buf) != NULL) { zero = 0, l...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358524/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358524/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @buf = dso_local global [50...
#include <stdio.h> int main(void) { int a,b,c,d,e,z; scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); scanf("%d",&d); scanf("%d",&e); if(a<40){a=40;} if(b<40){b=40;} if(c<40){c=40;} if(d<40){d=40;} if(e<40){e=40;} z=(a+b+c+d+e)/5; printf("%d\n",z)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358575/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358575/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int i, score, avg = 0; for( i = 0; i < 5; i++) { scanf("%d", &score); if( score < 40 ) score = 40; avg += score; } avg /= 5; printf("%d\n", avg); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358618/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358618/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { int i, j, score[6] = {0}, max; for(i = 0;i < 5;i++){ scanf("%d",&score[i]); if(score[i] < 40){ score[i] = 40; } } for(i = 0;i < 5;i++){ score[5] += score[i]; } printf("%d\n",score[5] / 5); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358704/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358704/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int n; int a[20]; int ave; int loop; int sum, total, max; int i, j; while(1){ scanf("%d", &n); if (n == 0){ break; } total = 0; for (i = 0; i < n; i++){ scanf("%d", &a[i]); total += a[i]; } ave = (total) / 2; // printf("ave=%d\n", ave); loop = (1 ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358748/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358748/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int i,j,w,k, a[3],x,y; scanf("%d%d%d",&a[0],&a[1],&a[2]); j=a[0]; k=a[0]; int as,sa; for(int i=0;i<3;i++) { if(j>a[i]) { j=a[i]; sa=i; } if(k<a[i]) { k=a[i]; as=i; } } for(i=0;i<3;i++...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358799/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358799/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ZETTAI(int num){ int N; N=num; if(num<0){ N=-N; } return N; } int main(){ int A,B,C; scanf("%d%d%d",&A,&B,&C); int a,b,c; a=ZETTAI(A-B); b=ZETTAI(B-C); c=ZETTAI(C-A); int max=a; if(max<b) max=b; if(max<c) max=c; printf("%...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358856/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358856/source.c" target datalayout = "e-m:e-p270:32:32-p271: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...