Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include<stdio.h> int main(void) { int n, i, count = 0; scanf("%d", &n); for(i = 1; i <= n; i++){ if (i % 2 != 0) count++; } printf("%f", (float)count/(i-1)); return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235224/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235224/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; double g = 0.5; int c=0; scanf("%d", &a); for (int i = 0; i < a; ++i) { if (i % 2 == 0) { c++; } } g = (double)c / (double)a; printf("%f",g); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235268/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235268/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ // Your code here! int N; float M,result; scanf("%d",&N); M=N; result = (M-N/2)/M; printf("%f\n",result); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235310/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235310/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<stdint.h> #include<inttypes.h> typedef int32_t i32; typedef int64_t i64; #define MAX(a,b) ((a)>(b)?(a):(b)) #define ALLOC(size,type) ((type*)calloc((size),sizeof(type))) void run (void) { i32 n; scanf ("%" SCNi32, &n); i32 *a = ALLOC (n, i32); for (i32 i = 0; i <...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235354/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235354/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 min; int num; int map[20]; void check(int pos , int *pair){ int i; for(i=0;i<4;i++)pair[i] = 0; if(pos%4 != 3){ if(map[pos] == map[pos+1])pair[0] = pos + 1; } if(pos < 16){ if(pos%4 != 0){ if(map[pos] == map[pos+3])pair[1] = pos + 3; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235404/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235404/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @map = dso_local global [20...
#include<stdio.h> int main(void) { long long int n,a[200001],i,sum = 0; scanf("%lld",&n); for(i = 1 ; i <= n ; i++) { scanf("%lld",&a[i]); } for(i = 1 ; i < n ;i++) { if(a[i] > a[i + 1]) { sum += a[i] - a[i + 1]; a[i + 1] = a[i]; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235455/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235455/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[200001],b,n,i; long c=0; scanf("%d",&n); a[0]=0; for(i=1;i<=n;i++){ scanf("%d",&a[i]); if(a[i]<=a[i-1]) { b=a[i-1]-a[i]; a[i]=a[i-1]; c+=b; } } printf("%ld\n",c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235505/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235505/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i; long long ans=0; int a[200000]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a[i]); } for(i=0;i<n-1;i++){ if(a[i+1]<a[i]){ ans+=a[i]-a[i+1]; a[i+1]=a[i]; } } printf("%lld",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235549/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235549/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #define MAXN 500010 int p[MAXN]; int t[MAXN]; int main () { int n; int i; char a; long long resp = 0; long long prev = 0; long long sum = 0; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &p[i]); } scanf(" "); for (i = 0; i < n; i++) { scanf("%c...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2356/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2356/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 n; long long ans=0, a[200000]; scanf("%d", &n); for(int i =0; i<n; i++){ scanf("%lld", &a[i]); if(i != 0){ if(a[i-1]>a[i]){ ans += a[i-1] - a[i]; a[i] = a[i-1]; } } } printf("...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235642/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235642/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, A, B, C, D; char S[200001] = {}; scanf("%d %d %d %d %d", &N, &A, &B, &C, &D); scanf("%s", &(S[1])); int a = A, b = B, flag = 1; if (C < D) { while (b < D) { if (S[b+1] == '.') b++; else if (b < D - 1 && S[b+2] == '.') b += 2; else break; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235686/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235686/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int n,a,b,c,d,i,x; char s[200001]; scanf("%d%d%d%d%d%s",&n,&a,&b,&c,&d,s); x=c>d?c:d; for(i=a;i<x;i++){ if(s[i-1]=='#'&&s[i]=='#'){puts("No");return 0;} } if(d<c){ for(i=b-1;i<d;i++){ if(s[i-1]=='.'&&s[i]=='.'&&s[i+1]=='.'){puts("Yes"...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235729/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235729/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
//Cross Two circles //AOJ : CGL_7_E #include<stdio.h> #include<math.h> void dbswap(double *a,double *b){double c;c=(*a);(*a)=(*b);(*b)=c;} typedef struct{ double x; double y; }point; typedef struct{ double x; double y; double r; }circle; //cross of two circles //https://shogo82148.github.io/homepage/memo/...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235772/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235772/source.c" target datalayout = "e-m:e-p270: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.circle = type { dou...
#include<stdio.h> #include<stdlib.h> #include<math.h> #define rep(i,n) for(i=0;i<n;i++) #define PI 3.14159265358979323846264338327950L int main(){ int n; scanf("%d",&n); char s[n]; scanf("%s",s); int i,cnt=0; rep(i,n-2){ if(s[i]=='A'&&s[i+1]=='B'&&s[i+2]=='C') cnt++; } printf("%d...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235822/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235822/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <iostream> //#include <string> //using namespace std; int main(int argc, char* argv[]){ int N; char buf[51]={0}; scanf("%d", &N); scanf("%s", buf); char *p = buf; int ans=0; for(;;){ int cmp = strncmp(p, "ABC", 3); if(cmp==0){ ans++...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235866/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235866/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&n); char s[n+1]; scanf("%s",s); int i,cnt; for(i=0;i<n-2;i++){ if(s[i]=='A'){ if(s[i+1]=='B'){ if(s[i+2]=='C'){ cnt++; } } } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235909/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235909/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, k, x; int backup = 0; int i; int chores[101]; int acumulador = 0; scanf("%d %d %d", &n, &k, &x); for(i = 0; i < n; i++) { scanf("%d", &chores[i]); } backup = k; for(i = n-1; backup != 0; i--) { chores[i] = x; backup--; } for(i = 0; i < n; i++) acu...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23596/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23596/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ...
/* * main.c * * Created on: 2019/12/29 * Author: family */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define MAX(a,b) (a > b ? a : b) #define MIN(a,b) (a > b ? b : a) typedef long long int ll; int main() { char S[55] = {0}; char A[] = "ABC"; int N = 0, i = 0, ans = 0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236016/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236016/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @__const.main.A = private u...
#include<stdio.h> #include<stdlib.h> int compare_int_big(const void *a,const void *b){ return *(int *)b - *(int *)a; } int compare_int_small(const void *a,const void *b){ return *(int *)a - *(int *)b; } int main(void) { int ans = 0; int N; char S[51]; int flag=0; scanf("%d",&N); sca...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236067/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236067/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 swap(a,b) a^=b^=a^=b int ans = 8; int A[31] = {0} ; int B[] = {0,1,1,1,1,1,1,1,1,1,2,2,2,4,4,4,6,6,6,5,5,5,3,3,3,3,3,3,3,3,3} ; void a(){ swap(A[1],A[24]); swap(A[4],A[27]); swap(A[7],A[30]); swap(A[10],A[21]); swap(A[16],A[18]); return; }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236124/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236124/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @ans = dso_local local_unna...
#include<stdio.h> void infoReset(); int info[4][3][10]; int main(void){ int n,i,j,k,b,f,r,v; scanf("%d",&n); infoReset(); for(i=0;i<n;i++){ scanf("%d %d %d %d",&b,&f,&r,&v); b--; f--; r--; info[b][f][r] += v; } for(i=0;i<4;i++){ for(j=0;j<3;j++){ for(k=0;k<10;k++){ printf(" %d",in...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236168/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236168/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 buil[4][3][10] = {}; int i, j, k, n, b, f, r,v; scanf("%d", &n); while (n--) { scanf("%d%d%d%d", &b, &f, &r, &v); buil[b-1][f-1][r-1] += v; } for (i = 0; i < 4; i++) { for (j = 0; j < 3; j++) { for (k = 0; k < 10; k++) { printf(" %d", buil[i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236210/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236210/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,b,f,r,v,i,j,k; int room[4][3][10]; for(i=0;i<4;i++){ for(j=0;j<3;j++){ for(k=0;k<10;k++){ room[i][j][k]=0; } } } scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d%d%d%d",&b,&f,&r,&v); b-=1; f-=1; r-=1; room[b][f][r]+=v; } for(i=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236254/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236254/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[10][3][4]={}; int n,i,j,k; int b,f,r,v; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d %d %d %d",&b,&f,&r,&v); a[r-1][f-1][b-1] += v; } for(k=0;k<4;k++){ for(i=0;i<3;i++){ for(j=0;j<10;j++){ printf(" %d",a[j][i][k]); } printf("\n"); } if(k!=3) prin...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236298/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236298/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 count[4][3][10]; int n,b,f,r,v,a=0; scanf("%d",&n); for(b=0;b<4;b++){ for(f=0;f<3;f++){ for(r=0;r<10;r++){ count[b][f][r]=0; } } } for(a=0;a<n;a++){ scanf("%d%d%d%d",&b,&f,&r,&v); count[b-1][f-1][r-1] = count[b-1][f-1][r-1]+v; } fo...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236340/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236340/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n,b,f,r,v; int house[4][3][10] = {0}; scanf("%d",&n); for (i=0; i<n; i++) { scanf("%d %d %d %d",&b,&f,&r,&v); house[b-1][f-1][r-1] += v; } for (b=0; b<4; b++) { for (f=0; f<3; f++) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236384/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236384/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,j=0,k=0,v[4][3][10]; int b,f,r,a; for(i=0;i<4;i++){ for(j=0;j<3;j++){ for(k=0;k<10;k++){ v[i][j][k]=0; } } } scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d %d %d %d",&b,&f,&r,&a); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236427/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236427/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,b,f,r,v,i,j,k; int a[4][3][10]; scanf("%d",&n); for(i=0;i<4;i++){ for(j=0;j<3;j++){ for(k=0;k<10;k++){ a[i][j][k] = 0; } } } for(i=0;i<n;i++){ scanf("%d %d %d %d",&b,&f,&r,&v); a[b - 1][f - 1][r - 1] = a[b -1][f - 1][r - 1] + v; } for(i=0;i<4;i++){ fo...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236470/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236470/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int a,b,c,d,e,f,g; int z[4][3][10]={0}; scanf("%d",&a); for(b=0;b<a;b++){ scanf("%d %d %d %d",&c,&d,&e,&f); z[c-1][d-1][e-1]+=f; } for(a=0;a<4;a++){ for(b=0;b<3;b++){ for(c=0;c<10;c++){ printf(" %d",z[a][b][c]); } printf("\n")...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236513/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236513/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,b,f,r,v,i,j,k,room[10][3][4]; scanf("%d",&n); for(i=0; i<10; i++){ for(j=0; j<3; j++){ room[i][j][0] = 0; room[i][j][1] = 0; room[i][j][2] = 0; room[i][j][3] = 0; } } for(i=0; i<n; i++){ sca...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236557/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236557/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i, j, k; int b, f, r, v; int house[4][3][10] = {0}; scanf("%d", &n); for(i = 0; i < n; i++){ scanf("%d %d %d %d", &b, &f, &r, &v); house[b-1][f-1][r-1] += v; } for(i = 0; i < 4; i++){ for(j = 0; j < 3; j++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236607/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236607/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){ unsigned int num; unsigned int house[4][3][10]; unsigned int bil; unsigned int flor; unsigned int room; signed int riside; unsigned int i, j, k; for(i = 0;i < 4;i++){ for(j = 0;j < 3;j++){ for(k = 0;k < 10;k++){ house[i][...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236650/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236650/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int t[4][3][10]={0}; int b,f,r,v,i,j,k,n; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d%d%d%d",&b,&f,&r,&v); t[b-1][f-1][r-1]=t[b-1][f-1][r-1]+v; } for(i=0;i<4;i++){ for(j=0;j<3;j++){ for(k=0;k<10;k++){...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236694/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236694/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int t[4][3][10]={0}; int b,f,r,v,i,j,k,n; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d%d%d%d",&b,&f,&r,&v); t[b-1][f-1][r-1]=t[b-1][f-1][r-1]+v; } for(i=0;i<4;i++){ for(j=0;j<3;j++){ for(k=0;k<10;k++){ printf(" %d",t[i][j][k]); } p...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236737/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236737/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 data, i, b, f, r, v, rooms[4][3][10] = {}; scanf("%d", &data); for (i = 0; i < data; i++) { scanf("%d %d %d %d", &b, &f, &r, &v); rooms[b - 1][f - 1][r - 1] += v; } for (b = 0; b < 4; b++) { if (b != 0) { printf("####################\n"); } for (f = 0; f < 3; f++) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236780/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236780/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, k; int n; int building, floor, room, people; int cnt[4][3][10]; /*people[building][floor][room]*/ /*initialize*/ for (i = 0; i < 4; i++){ for (j = 0; j < 3; j++){ for (k = 0; k < 10; k++){ cnt[i][j][k] = 0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236823/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236823/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 house[4][3][10] = {{{}, {}, {}},{{}, {}, {}},{{}, {}, {}},{{}, {}, {}}}; int b,f,t,v,i,j,k,N; scanf("%d", &N); for(i = 0; i < N; i++){ scanf("%d %d %d %d", &b, &f, &t, &v); house[b-1][f-1][t-1] += v; } for(i = 0; i < 4; i++){ for(j ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236867/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236867/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 max(int a, int b){ return (a>b?a:b); } int main(void){ int a,b,c,d; int misha, vasya; scanf("%d %d %d %d",&a, &b, &c, &d); misha = max((3*a)/10,(a-(a*c)/250)); vasya = max((3*b)/10,(b-(b*d)/250)); if(misha==vasya){ printf("Tie\n"); } else if(misha > vasya){ print...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23691/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23691/source.c" target datalayout = "e-m:e-p270:32:32-p271: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, arr[4][3][10]={0}; scanf("%d", &n); for (int i=0; i<n; i++) { int b, f, r, v; scanf("%d %d %d %d", &b, &f, &r, &v); arr[b-1][f-1][r-1]+=v; if (arr[b-1][f-1][r-1]<0) { arr[b-1][f-1][r-1]=0; } else if (arr[b-1][f-1][r-1]>9) { arr[b-1...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236953/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236953/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 love[4][3][10]={{{}}}; int b,f,r,v; int i,j,k; int n; scanf("%d",&n); for (i=0;i<n;++i){ scanf("%d%d%d%d",&b,&f,&r,&v); love[b-1][f-1][r-1]+=v; } for(i=0;i<4;++i){ for(j=0;j<3;++j){ for(k=0;k<10;++k){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237002/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237002/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 room 10 #define rank 3 #define ridge 4 int main(){ int house[ridge][rank][room]; for(int i=0;i<ridge;i++){ for(int j=0;j<rank;j++){ for(int k=0;k<room;k++){ house[i][j][k] = 0; } } } int n,b,f,r,v; scanf("%d",&n); for(int i=0;i<n;i++){ scanf("%d %d...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237046/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237046/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s1[200], s2[200]; int i, j, k, flag=0; int a[127]={0}; scanf("%[^\n] %[^\n]", s1, s2); i=strlen(s1); j=strlen(s2); for(k=0; k<i; k++) { a[s1[k]]++; } for(k=0; k<j; k++) { if(s2[k]!=32) a[s2[k]]--; if(a[s2[k]]<0) flag=-1; } if(flag==0) pr...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23709/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23709/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 MOD 1000000007LL #define max(x,y) ((x)>(y))?(x):(y) #define min(x,y) ((x)>(y))?(y):(x) long long factinv[900010], fact[900010]; void factorial(void) { int i, j; long long P, Q, R, EXP; fact[0] = 1; factinv[0] = 1; for (i=1;i<=900000;i++) { fac...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237132/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237132/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @fact = dso_local local_unn...
#include<stdio.h> int main(){ long long n,a; scanf("%lld",&n); a=n/11; a*=2; n%=11; if(n){ a++; if(n>6)a++; } printf("%lld\n",a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237183/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237183/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 P(type,x) fprintf(stdout,"%"#type"\n",x) #define S(type,x) fscanf(stdin,"%"#type,&x) //#define MAX(a,b) a>b?a:b #define MIN(a,b) a<b?a:b int main() { int dp[10001] = {}; int i,j; for (i = 1; i < 10001; i++) dp[i] = 1 << 20; int n,a; S(d, n); for (i = 1; i < n; i++) { S(d, a); for (j...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237240/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237240/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @stdin = external local_unn...
#include <stdio.h> int main(void) { int now=0; int calc=0; char enzansi[4]="+"; while(enzansi[0]!='=') { scanf("%d",&calc); switch(enzansi[0]) { case '+': now+=calc;break; case '-': now-=calc;break; case '*': now*=calc;break; case '/': if(calc==0)return 1;now/=calc;break; default: return 1; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237284/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237284/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #define N 100000 #define NIL -1 typedef struct t{ int id; int parent; int degree; int depth; int child[2]; int sibling; int height; }Tree; void depthcalculation(int, int); void heightcalculation(int); Tree T[N]; int maxdepth = 0; int main(){ int treenum, i, id...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237327/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237327/source.c" target datalayout = "e-m:e-p270: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.t = type { i32, i32...
#include <stdio.h> #include <stdlib.h> #define NIL -1 typedef struct node{ int left; int right; int parent;}node; int getSibling(int); int getDegree(int); int getDepth(int); int getHeight(int); void printTree(void); node *tree; int n; int main(){ int i,id,left,right; scanf("%d",&n); tree = (node *)mal...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237370/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237370/source.c" target datalayout = "e-m:e-p270: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, ...
#include<stdio.h> #define N 100000 #define NIL -1 void depth(int,int); int height(int); int info_sibling(int); void print(int); typedef struct{ int parent; int left; int right; } Node; Node node_all[N]; int n; int node_depth[N],node_height[N]; int main(){ int i,id,l,r,root; scanf("%d",&n); f...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237413/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237413/source.c" target datalayout = "e-m:e-p270: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, ...
#include<stdio.h> #define MAX 25 #define ZERO -1 typedef struct Node{ int parent; int left; int right; int Left; int Right; }Tree; Tree tree[MAX]; void TreePrint(int); //print関数 int TreeHeight(int,int); //heightを求める関数 int main(){ int i,j; int n; int id,left,right; scanf("%d",&n); for(i = 0...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237471/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237471/source.c" target datalayout = "e-m:e-p270: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, ...
#include<stdio.h> #define MAX 1000 #define NIL -1 typedef struct node{ int parent, left, right; }Node; Node T[MAX]; int n, D[MAX], H[MAX]; void setDepth(int, int); int setHeight(int ); int getSibling(int ); void print(int ); int main(){ int i, v, l, r, root=0; scanf("%d",&n); for(i=0; i<n; i++){ T[i].pa...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237521/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237521/source.c" target datalayout = "e-m:e-p270: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, ...
#include<stdio.h> #define MAX 10000 #define NIL -1 struct Node{ int parent; int left; int right; }; struct Node T[MAX]; int n,D[MAX],H[MAX]; void setDepth(int u,int d){ if(u==NIL)return ; D[u]=d; setDepth(T[u].left,d+1); setDepth(T[u].right,d+1); } int setHeight(int u){ int h1=0,h2=0; if(T[u].l...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237565/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237565/source.c" target datalayout = "e-m:e-p270: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, ...
#include<stdio.h> #define max 26 #define NIL -1 typedef struct{ int parent,left,right; }NODE; NODE T[max]; int Max(int a,int b){ if(a>b)return a; else return b; } int depth(int i){ int d=0; while(T[i].parent!=NIL){ i=T[i].parent; d++; } return d; } int height(int i){ in...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237608/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237608/source.c" target datalayout = "e-m:e-p270: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, ...
#include <stdio.h> #define N 25 #define NIL -1 typedef struct{ int p,l,r; } Node_t; Node_t T[N]; int n,D[N],H[N]; void setDep(int u, int d){ //??±?????\??? if(u==NIL) return; D[u]=d; setDep(T[u].l,d+1); setDep(T[u].r,d+1); } int setHe(int u){ //????????\??? int h1=0,h2=0; if(T[u].l!=NIL) h1=setHe(T[u]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237659/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237659/source.c" target datalayout = "e-m:e-p270: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_t = type { i32...
#include<stdio.h> #define MAX 100005 #define NIL -1 struct Node{ int p, l, r, t;}; struct Node T[MAX]; int n, H, D[MAX],h[MAX]; void Depth(int u){ int d=0; if(T[u].r!=NIL){ D[T[u].r]=D[u]+1; Depth(T[u].r); } if(T[u].l!=NIL){ D[T[u].l]=D[u]+1; Depth(T[u].l); } } int Height(int u){ i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237701/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237701/source.c" target datalayout = "e-m:e-p270: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, ...
#include<stdio.h> #define N 100000 typedef struct{ int parent; int left; int right; }Node; int depth(int); int height(int); Node node[N]; int main(){ int i, j, n, id, child; scanf("%d", &n); for(i = 0;i < n;i++){ node[i].parent = node[i].left = node[i].right = -1; } for(i = 0;i < n;i++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237745/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237745/source.c" target datalayout = "e-m:e-p270: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, ...
#include<stdio.h> #define MAX 100005 #define NIL -1 struct Node{ int p, l, r, depth, degree, sibling, height;}; struct Node T[MAX]; int gheight; int n; void maketree(int id, int l, int r){ if( l != -1 ){ T[id].l = l; T[l].p = id; T[l].sibling = r; T[id].degree++; } if( r != -1 ){ T[id].r = ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237802/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237802/source.c" target datalayout = "e-m:e-p270: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, ...
#include <stdio.h> #define MAX 10000 #define NIL -1 typedef struct { int parent, left, right;} Node; Node T[MAX]; int n, D[MAX], H[MAX]; void setDepth(int u,int d) { if(u == NIL) return; D[u] = d; setDepth(T[u].left, d+1); setDepth(T[u].right,d+1); } int setHeight(int u) { int h1 = 0, h2 = 0; if(T[u]....
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237853/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237853/source.c" target datalayout = "e-m:e-p270: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, ...
#include<stdio.h> typedef struct{ int p; int s; int deg; int dep; int h; }data; typedef struct{ int id; int left; int right;; }node; int dep; int getdep(data* T, int i){ if(T[i].p == -1) return dep; dep++; return getdep(T, T[i].p); } int geth(data* T, node u, int i){ int hleft=0,hright=0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237897/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237897/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.data = type { i32, ...
#include <stdio.h> int main(void) { int t; scanf("%d",&t); int i;int flag=0; for(i=1;i<=t;i++) { char a[14]; scanf("%[^ ]s",a); int x,y; scanf("%d %d",&x,&y); if(x>=2400 && y>x) {flag=1;break;} } if(flag==1) printf("YES\n"); else printf("NO\n"); // your code goes here return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23794/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23794/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 p[100000],l[100000],r[100000],d[100000],h[100000]; void depth(int x,int dep){ d[x]=dep; if(r[x]!= -1)depth(r[x],dep+1); if(l[x]!= -1)depth(l[x],dep+1); } int height(int x){ int h1=0,h2=0; if(l[x]!=-1)h1=height(l[x])+1; if(r[x]!=-1)h2=height(r[x])+1; if(h1>h2){ h[x]=h1; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237983/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237983/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @d = dso_local local_unname...
#include <stdio.h> #define MAX 10000 #define NIL -1 typedef struct{ int parent, left, right; }Node; Node T[MAX]; int n, D[MAX], H[MAX]; void setDepth(int u, int d){ if(u==NIL) return; D[u] = d; setDepth(T[u].left, d+1); setDepth(T[u].right, d+1); } int setHeight(int u){ int h1=0, h2=0; if(T[u].left!=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238025/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238025/source.c" target datalayout = "e-m:e-p270: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, ...
#include <stdio.h> #include <stdlib.h> typedef struct P{ int parent; int left; int right; }Node; int depth(Node node[],int n){ if(node[n].parent==-1){ return 0; } return depth(node,node[n].parent)+1; } int height(Node node[],int n){ int a,b; if(n==-1){return -1;} a = heigh...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238076/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238076/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.P = type { i32, i32...
#include<stdio.h> #define MAX 1000 #define NIL -1 struct Node_struct{int p, l, r;}; typedef struct Node_struct Node; Node T[MAX]; int D[MAX], H[MAX]; int Sibling(int u){ if(T[u].p == NIL) return NIL; if(T[T[u].p].l != u && T[T[u].p].l != NIL) return T[T[u].p].l; if(T[T[u].p].r != u && T[T[u].p].r != NIL) return...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238119/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238119/source.c" target datalayout = "e-m:e-p270: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_struct = type ...
#include<stdio.h> #define MAX 10000 #define NIL -1 struct Node{ int par,l,r; }; struct Node T[MAX]; int n,dep[MAX],h[MAX]; int Depth(int u){ int d=0; while(1){ u = T[u].par; if(u == NIL)break; d++; } return d; } int Sibling(int u){ if(T[u].par == NIL)return NIL; if(T[T[u].par].l != u && T[...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238162/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238162/source.c" target datalayout = "e-m:e-p270: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, ...
#include<stdio.h> #include<stdlib.h> #include<string.h> typedef struct{ int p; int r; int l; int s; } Node; int hfunc(Node *,int,int); int main(){ int n,i,j,degree,num,point,c1,c2,temp,a,depth=0,sum=0,height; Node T[25]; for(i=0;i<25;i++){ T[i].p=T[i].r=T[i].l=T[i].s=-1; } scanf("%d",&n); for...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238205/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238205/source.c" target datalayout = "e-m:e-p270: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, ...
#include<stdio.h> #include<math.h> #include<limits.h> #define MIN(a, b) ((a) < (b) ? (a) : (b)) #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define LARGE 100001 int a[LARGE]; int lazy[LARGE]; int b,n; void update(int x){ for(int i=x*b;i<=MIN(n-1,(x+1)*b-1);i++){ a[i]=lazy[x]; } lazy[x]=-1; return; } int main(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238249/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238249/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @b = dso_local local_unname...
#include <stdio.h> static int N; static int B[100]; int search(int i, int *data) { if(i == 0) { return 1; } for(int j = (i-1); j >= 0; j--) { if(data[j] == (j+1)) { int newdata[100]; int dst = 0; int OK =1; for(int k = 0; k < i; k++) { if(k != j) { newdata[dst++] = data[k]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238292/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238292/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int n, a[105], pos[105], flags[2025] = {0}, k, c, i; scanf("%d", &n); for(i=1;i<=n;i++){ scanf("%d", &a[i]); pos[i] = a[i]; flags[pos[i]] = 1; } scanf("%d", &k); while(k--){ scanf("%d", &c); if(flags[pos[c]+1] == 0 && pos[c]<...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238335/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238335/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[5]={0},i,j,tmp=0; for(i=0;i<5;i++){ scanf("%d",&a[i]); } for(i=0;i<5;i++){ for(j=i+1;j<5;j++){ if(a[i]<a[j]){ tmp = a[i]; a[i] = a[j]; a[j] = tmp; } } } for(i=0;i<5;i++){ if(i==4){ printf("%d\n",a[i]); } else{ printf("%d ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238379/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238379/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[5]; int i,j,buf; scanf("%d%d%d%d%d",&a[0],&a[1],&a[2],&a[3],&a[4]); for(i=1;i<5;i++) { for(j=1;j<5;j++) { if(a[j-1]<a[j]) { buf=a[j-1]; a[j-1]=a[j]; a[j]=buf; } } } printf("%d %d %d %d %d\n",a[0],a[1],a[2],a[3],a[4]); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238421/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238421/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[5]={100001,100001,100001,100001,100001}; int i,o,temp,p; scanf("%d",&a[4]); for(i=0;i<4;i++){ scanf("%d",&a[0]); o=0; while(a[o] <a[o+1]){ temp=a[o]; a[o]=a[o+1]; a[o+1]=temp; o++; if(o+1 == 5) break; } } for(i=0;i<5;i++){ printf("%d",a...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238465/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238465/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @__const.main.a = private u...
#include <stdio.h> int main(void) { int n[5]; int i, j; int t; while(scanf("%d %d %d %d %d", &n[0], &n[1], &n[2], &n[3], &n[4]) != EOF) { // ツバツブツδ仰ソツーツト for(i = 0; i <= 4; i++) { for(j = 4; j > i; j--) { if(n[j] > n[j-1]) { t = n[j]; n[j] = n[j-1]; n[j-1] = t; } } } // ツ表ツ篠ヲ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238508/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238508/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> int si(const void* a,const void* b) { if(*(int*)a > *(int*)b) return -1; if(*(int*)a < *(int*)b) return 1; return 0; } int main() { int ary[5]; scanf("%d %d %d %d %d",ary,ary+1,ary+2,ary+3,ary+4); qsort(ary,5,sizeof(int),si); int i; printf("%d %d ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238601/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238601/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> int main(void){ int a[5],i,j,x; scanf("%d %d %d %d %d",&a[0],&a[1],&a[2],&a[3],&a[4]); for(i=1;i<5;i++){ for(j=i;j>0;j--){ if(a[j]>a[j-1]){ x=a[j]; a[j]=a[j-1]; a[j-1]=x; } } } printf("%d %d %d %d %d\n",a[0],a[1],a[2],a[3],a[4]); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238645/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238645/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #define FOR(variable,a,b) for(variable=(a);variable<(b);variable++) void swap(int* a,int* b) { int temp; temp = *a; *a = *b; *b = temp; return; } void reverse(int* target, int count) { int i; FOR(i, 0, count/2) { swap(&target[i], &target[(coun...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238689/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238689/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,temp,x[5]; for(i = 0; i < 5; i ++ ) scanf("%d",&x[i]); for(i = 1;i < 5; i ++ ){ j = i; while(j >= 1){ if(x[j] > x[j - 1]){ temp = x[j]; x[j] = x[j - 1]; x[j - 1] = temp; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238731/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238731/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d1[12]; int i,c,b,j; while(1){ scanf("%d",&n); if(n==0)break; for(i=0;i<n;i++){ scanf("%d",&d1[i]); } c=0; while(1){ int d2[12]={0}; for(i=0;i<n;i++){ for(j=0;j<n;j++){ if(d1[i]==d1[j])d2[i]++; } } b=0; for(i=0;i<...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238782/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238782/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* SPDX-License-Identifier: X11 * * Copyright 2020 Elias Yuan <a@jthv.ai>, MIT/X11 License * https://jthv.ai/LICENSE/X11.txt * * ANU-CPC Complexity Workshop - A: Two Integers * 2020-04-13 * * Amended at Cormac's suggestion. */ #include <stdio.h> int main(void) { unsigned long x,y; scanf("%lu %lu",&x,...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238847/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238847/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 1000000000000000000 int main(void){ unsigned long int x,y; unsigned long int i; scanf("%lu %lu", &x, &y); for(i = x; i <= MAX; i += x ){ if(i % y == 0){ printf("-1"); return 0; } else{ printf("%lu", i); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238890/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238890/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h1, m1, h2, m2, k; scanf("%d %d %d %d %d", &h1, &m1, &h2, &m2, &k); int h = (h2-h1)*60; int m = m2-m1; printf("%d", h+m-k); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238933/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238933/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 H1, H2, M1, M2, K; scanf("%d", &H1); scanf("%d", &M1); scanf("%d", &H2); scanf("%d", &M2); scanf("%d", &K); printf("%d", (H2 - H1) * 60 + (M2 - M1) - K); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238977/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238977/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h1,h2,m1,m2,k,study; scanf("%d %d %d %d %d",&h1,&m1,&h2,&m2,&k); study = (h2 * 60 + m2) - (h1 * 60 + m1) - k; printf("%d",study); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239026/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239026/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 flag=0; int n,t; scanf("%d %d",&n,&t); int count=0; while(n--) { if(flag==0) count++; int a; scanf("%d",&a); t-=86400-a; if(t<=0) { flag=1; } } printf("%d\n",count); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23907/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23907/source.c" target datalayout = "e-m:e-p270:32:32-p271: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<stdint.h> #include<inttypes.h> typedef int32_t i32; typedef int64_t i64; static i64 read_int(void){int prev='\0';int c=getchar();while(!('0'<=c && c<='9')){prev=c;c=getchar();}i64 res=0;while('0'<=c && c<='9'){res=10*res+c-'0';c=getchar();}return prev=='-'?-res:res;} int...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239112/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239112/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <math.h> int main(void) { int i=0,max=0; double x[20],y[20],s1=0,s; for(i=0;i<20;i++){ int ret=scanf("%lf,%lf",&x[i],&y[i]); if(ret==EOF) break; if(i>max) max=i; } for(i=0;i<max;i++){ s1=s1+(fabs((x[i]*y[i+1])-(x[i+1]*y[i]))); } s1=s1+(fabs((x[i]*y[0])-(x[0]*y[i]))); s=s1/2; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239156/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239156/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<math.h> int main(){ double a[100],b[100],ans=0,s,z,l,m,n; int num=0,i; while(scanf("%lf,%lf\n",&a[num],&b[num])!=EOF){ num++; } for(i=2;i<num;i++){ l=(a[0]-a[i])*(a[0]-a[i])+(b[0]-b[i])*(b[0]-b[i]); l=sqrt(l); m=(a[0]-a[i-1])*(a[0]-a[i-1])+(b[0]-b[i-1])*(b[0]-b[i-1]); m=sqrt(m); n=(a[i]-a[i-1...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239213/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239213/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <ctype.h> #define max(a, b) (((a) > (b)) ? (a) : (b)) /* 2個の値の最大値 */ #define min(a, b) (((a) < (b)) ? (a) : (b)) /* 2個の値の最小値 */ #define ENTER printf("\n") /* 改行プリント */ int DBG = 1; /* デバッグプリント 提出時は0 */ /* main **************************...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239257/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239257/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @DBG = dso_local local_unna...
#include<stdio.h> #define ll long long int //#define DEBUG int main(void) { int n; int a[100000]; int visited[100000] = {}; scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%d", a + i); a[i]--; } //Change only 2. int max = 0; int max2 = 0; ll sum = 0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23930/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23930/source.c" target datalayout = "e-m:e-p270:32:32-p271: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; int x; int f = 0; scanf("%d", &n); for(int i=0; i<50000; i++){ x = i; int buf = i; buf = buf*108; buf = buf/100; if(buf == n){ f=1; break; } } if(f){ printf("%d", x); }el...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239343/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239343/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){ unsigned int n,i,j,a,b,s,d[10]; scanf("%d",&n); while(n--){ for(i=0;i<9;i++)scanf("%x",&d[i]);//,printf("%d ",d[i]);printf("\n"); for(i=a=b=0;i<32;i++){ for(j=s=0;j<8;j++){ s+=d[j]%2; d[j]/=2; } if((s+b)%2-d[8]%2){ a+=1<<i; b+=8-s; } else b+...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239400/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239400/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 S,s,m,h; scanf("%d",&S); h = S / 3600; S = S % 3600; m = S / 60; S = S % 60; s = S; printf("%d:%d:%d\n",h,m,s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239444/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239444/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h,m,s,S; scanf("%d",&S); h=S/3600; m=S%3600/60; s=S%3600%60; printf("%d:%d:%d\n",h,m,s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239488/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239488/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 S,h,m,s; scanf("%d",&S); h = S / 3600; m = (S - h * 3600) / 60; s = S - h * 3600 - m *60; printf("%d:%d:%d\n",h,m,s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239530/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239530/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s; scanf("%d\n",&s); printf("%d:%d:%d\n", s/3600, (s%3600)/60,s%60); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239574/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239574/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 S; scanf("%d", &S); if (0 <= S && S < 86400) printf("%d:%d:%d\n", S / 3600, (S % 3600) / 60, ((S % 3600) % 60)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239639/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239639/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 S, h, m, s; scanf("%d", &S); h = S / 3600; S = S % 3600; m = S / 60; s = S%60; printf("%d:%d:%d\n", h, m, s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239682/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239682/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 S,h,m,s; scanf("%d",&S); h=S/3600; m=S%3600/60; s=S%3600%60; printf("%d:%d:%d\n",h,m,s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239725/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239725/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 S,h,m,s; do{ scanf("%d",&S); }while(0>S||S>86400); h=S/3600; m=S%3600/60; s=S%3600%60; printf("%d:%d:%d\n",h,m,s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239769/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239769/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h,m,s,S; scanf("%d", &S); h = S/3600; m = (S%3600)/60; s = S%3600%60; printf("%d:%d:%d\n", h,m,s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239811/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239811/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...