Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include <stdio.h> #include <string.h> long A[1000100]; int main(){ long int i,j; long int x,y,a,b,c; long N,M,tmp; long long sum=0; scanf("%ld",&N); for(i=0;i<N-1;i++){ scanf("%ld",&tmp); A[tmp]++; } for(i=1;i<=N;i++){ printf("%ld\n",A[i]); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128552/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128552/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int ice[10001]; int c[10]; while (1) { for (i = 0; i < 10; i++) { c[i] = 0; } scanf("%d", &n); if (n == 0) { break; } for (i = 0; i < n; i++) { scanf("%d", &ice[i]); c[ice[i]]++; } for (i = 0; i < 10; i++) { if (c[i] == 0) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128596/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128596/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 count[10]; int i,j,num; int now; while(1) { scanf("%d",&num); if(num==0)break; for(i=0;i<10;i++)count[i]=0; for(i=0;i<num;i++) { scanf("%d",&now); count[now]++; } for(i=0;i<10;i++) { for(j=0;j<count[i];j++)putchar('*'); if(count[i]==0)putchar('-'); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128660/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128660/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 j, N, n, i; scanf("%d", &N); j = 1; while (j <= N){ scanf("%d", &n); printf("Case %d:\n", j); for (i = 0; i < 10; i++){ n = ((n * n) % 1000000) / 100; printf("%d\n", n); } j++; } return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128703/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128703/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int seed; scanf("%d", &n); for (i = 0; i < n; i++){ scanf("%d", &seed); printf("Case %d:\n", i + 1); for (j = 0; j < 10; j++){ seed *= seed; seed = (seed / 100) % 10000; printf("%d\n", seed); } } return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128754/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128754/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a,b; int main(void) { scanf("%d%d",&a,&b); int c=a+b; if(c<10) printf("%d",c); else printf("error"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128798/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128798/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int A,B; scanf("%d%d",&A,&B); if(A+B>=10) printf("error\n"); else printf("%d\n",A+B); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128840/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128840/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int A, B; scanf("%d %d", &A, &B); if(A+B < 10) printf("%d\n", A+B); else printf("error\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128884/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128884/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,sum=0; scanf("%d %d",&a,&b); sum+=(a+b); if(sum>=10) { printf("error\n"); } else { printf("%d\n",sum); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128927/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128927/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int a, b; scanf("%d %d", &a, &b); if (a + b < 10) printf("%d\n", a + b); else puts("error"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128970/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128970/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int B; int c; scanf("%d %d " , &A, &B); c = B + A; if(c >= 10){ printf("error");} else{ printf("%d",c);} }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129012/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129012/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int A,B; scanf("%d",&A); scanf("%d",&B); if(A+B<10) printf("%d\n",A+B); else printf("error\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129056/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129056/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { long long x; int A[11],i=0,j=0,pro=1,max=-1,k; scanf("%lld",&x); while(x>0) { pro*=x%10; A[i++]=x%10; x/=10; } if(pro>max) max=pro; pro=1; if(i>1) { for(j=0; j<i-1; j++) { if(A[j]!=9) { A[j]=9; if(A[j+1]!=0) A[j+1]-=1; else { whil...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1291/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1291/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr co...
#include<stdio.h> int main() { int n,a[1000]={},z=0,l=0,m=0,x,y,c,i; scanf("%d",&n); for(i=0;i<n;i++) {scanf("%d",&a[i]); if(a[i]>0) {z++;} } for(i=0;i<n;i++) {if(z==0&&a[i]!=0) {l++; m++; if(l==1) {x=a[i]; a[i]=1001;} if(m==2) {y=a[i]; a[i]=1001;} if(m==3) {c=a[i]; a[i]=1001;}} if(z!=0&&a[i]!=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12915/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12915/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(){ int a; scanf("%d", &a); printf("%d", a + (a * a) + (a * a * a)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129193/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129193/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d", &a); printf("%d\n", a + a * a + a * a * a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129236/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129236/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> int main() { char str[100000]; scanf("%s",str); int i,j,flag,len=strlen(str),fs[len],ss[len],k1=0,k2=0; if(len<4) { printf("NO\n"); return 0; } for(i=0;i<len-1;i++) { if(str[i]=='A' && str[i+1]=='B') { fs[k1]=i; fs[k1+1]=i+1; k1=k1+2; } if(str[i]=='B...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12928/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12928/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { int n; char buf[30]; fgets(buf, sizeof(buf), stdin); n= atoi(buf); int a=n; int b=n*n; int c=n*n*n; int x=a+b+c; printf("%d\n", x); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129322/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129322/source.c" target datalayout = "e-m:e-p270: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(){ int a; scanf("%d", &a); printf("%d\n", a+(a*a)+(a*a*a)); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129366/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129366/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<string.h> #include<stdio.h> #include<stdlib.h> int main(){ int a; char buf[30]; fgets(buf, sizeof(buf), stdin); a=atoi(buf); printf("%d\n", a+(a*a)+(a*a*a)); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129409/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129409/source.c" target datalayout = "e-m:e-p270: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(){ int a; scanf("%d", &a); printf("%d", a+a*a+a*a*a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129452/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129452/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int b; scanf("%d",&a); b = a + a*a + a*a*a; printf("%d\n",b); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129496/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129496/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d", &a); int num = a + a*a + a*a*a; printf("%d\n", num); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129539/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129539/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&a); printf("%d",a+a*a+a*a*a); return 0;}
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129582/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129582/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d", &a); printf("%d", a+a*a+a*a*a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129632/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129632/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&a); printf("%d\n",a+a*a+a*a*a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129676/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129676/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int a,b; scanf("%d",&a); b=a+a*a+a*a*a; printf("%d\n",b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129719/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129719/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <math.h> int main(){ int a; scanf("%d", &a); int wa; wa = 0; wa += a; wa += pow(a, 2); wa += pow(a, 3); printf("%d", wa); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129762/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129762/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d", &a); printf("%d", a + a * a + a * a * a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129805/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129805/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&a); printf("%d\n",a+a*a+a*a*a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129849/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129849/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&a); printf("%d",a + a*a + a*a*a); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129892/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129892/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
// cd Desktop/Atcoder #include <stdio.h> #include <stdlib.h> #include <string.h> #define rep(i,n) for(i=0;i<(n);i++) #define ll long long #define ull unsigned long long #define MOD 1000000007 int main(){ int n; scanf("%d",&n); printf("%d",n+n*n+n*n*n); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129935/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129935/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; for(scanf("%d",&n);n>=0;n-=4)if(n%7==0){printf("Yes");return 0;} printf("No"); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129986/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129986/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h> int main(void) { char arr[5]; int n; bool flag = false; fgets(arr, sizeof(arr), stdin); sscanf(arr, "%d", &n); for (int i=0; i*7 <= n; i++) { for (int j=0; (j*4 + i*7) <= n; j++) { if (n == j*4 + i*7) { flag = true; break; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130027/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130027/source.c" target datalayout = "e-m:e-p270: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> #include <string.h> #include <stdlib.h> #include <math.h> int main() { int n = 0; scanf("%d", &n); for (int i=0; i<=n/4; i++) { int buf = n - i*4; if (buf%7 == 0) { printf("Yes\n"); return 0; } } printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130070/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130070/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int N; int x, y; int buf; int flag = 0;//存在すれば1,存在しなければ0 scanf("%d", &N); for(y = 0; y <= N/7; y++){ buf = N - 7*y; if(buf%4 == 0 && buf >= 0){ flag = 1; y = buf; break; } } if(flag == 1){ printf("Yes\n"); }else{ printf("No\n");...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130113/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130113/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 flag=0; for(int i=0;i<=n/4;i++){ for(int j=0;j<=n/7;j++){ if(4*i+7*j==n){ flag = 1; break; } } if(flag==1) break; } if(flag==0) printf("No\n"); if(fl...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130157/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130157/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { int k; scanf("%d", &k); if (k % 4 == 0 || k % 7 == 0) { printf("Yes"); } else if (k < 3) { printf("No"); } else { int i; double j; j = k / 4; for (i = 0; i < j; i++) { if ((k - 4 * i) % 7 == 0) { printf("Yes"); return...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130207/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130207/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); //処理 while(n > 0){ if(n % 4 == 0 || n % 7 == 0){ n = 0; } else{ n -= 11; } } //表示 if(n == 0){ printf("Yes\n"); } else{ printf("No\n"); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130250/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130250/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> #include<ctype.h> char w[10]; char T[1000]; int answer = 0; int i; char a[12] = "END_OF_TEXT"; int main(void){ scanf("%s",w); while(1) { scanf("%s",T); for(i = 0;i < 11;i++) { if(T[i] != a[i])break; } if(i == 11)break; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130315/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130315/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @answer = dso_local local_u...
#include<stdio.h> #include<string.h> #include<ctype.h> int main(){ int n=0; char ward1[21]={"0"}; char ward2[21]={"0"}; int i; scanf("%s",ward1); for(i=0;ward1[i]!='\0';i++){ ward1[i]=tolower(ward1[i]); } while(1){ scanf("%s",ward2); if(!(strcmp(ward2,"END_OF_TEXT")))break; for(i=0;ward...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130366/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130366/source.c" target datalayout = "e-m:e-p270: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.ward2 = priva...
#include<stdio.h> int main() { int a, y; scanf("%d %d", &a, &y); if(a==2||y==2){ printf("No\n"); } else if((a==1||a==3||a==5||a==7||a==8||a==10||a==12)&&(y==1||y==3||y==5||y==7||y==8||y==10||y==12)) { printf("Yes\n"); } else if((a==4||a==6||a==9||a==11)&&(y==4||y==6||y==9||y==11)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130438/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130438/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[12]={0,1,3,1,2,1,2,1,1,2,1,2,1},x,y; scanf("%d%d",&x,&y); a[x]==a[y] ? printf("Yes") : printf("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130481/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130481/source.c" target datalayout = "e-m:e-p270: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 group[] = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1}; int x, y; scanf("%d %d", &x, &y); puts(group[x] == group[y] ? "Yes" : "No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130531/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130531/source.c" target datalayout = "e-m:e-p270: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.group = priva...
#include <stdio.h> int main(void) { int x, y, i, j, a[7] = { 1, 3, 5, 7, 8, 10, 12 }, b[4] = { 4, 6, 9, 11 }, c[1] = { 2 }; scanf("%d %d", &x, &y); for (i = 0; i < 7; i++) { if (x == a[i]) { for (j = 0; j < 7; j++) { if (y == a[j]) { printf("Yes"); return(0); } } } } for (i = 0; i <...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130575/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130575/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int x,y; int i; scanf("%d %d",&x,&y); if( 1 <= x && x <= 12 && y <= 12 && x <= y){ if( x != 2 && x != 4 && x != 6 && x != 9 && x != 11 && y != 2 && y != 4 && y != 6 && y != 9 && y != 11 ){ printf("Yes"); } e...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130618/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130618/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> #include <math.h> int main(void) { int x,y; scanf("%d %d",&x,&y); if(x==2){ x='c'; } else if(x==4 || x==6 || x==9 || x==11){ x='b'; } else{ x='a'; } if(y==2){ y='c'; } else if(y==4 || y==6 || y==9 || y==11){ y='b'; } else{ y='a'; } if(x==y){ puts(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130661/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130661/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int x,y; scanf("%d%d",&x,&y); if(x==2||y==2) printf("No\n"); else if((x<8&&x%2==1)&&((y<8&&y%2==1)||(y>7&&y%2==0))) printf("Yes\n"); else if(x>7&&x%2==0&&y%2==0) printf("Yes\n"); else if((x<7&&x%2==0)&&((y<7&&y%2==0)||(y>8&&y%2==1))) printf("Yes\n"); else i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130704/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130704/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d,r; scanf("%d %d",&a,&b); double f; d=a/b; r=a%b; f=(double)a/b; printf("%d %d %f\n",d,r,f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130748/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130748/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int a,b; scanf("%d%d",&a,&b); printf("%d %d %lf\n",a/b,a%b,(double)a/b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130791/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130791/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(int argc, char *argv[]) { int a, b; int d, r; double f; scanf("%d %d", &a, &b); d = a / b; r = a % b; f = (double)a / b; printf("%d %d %.5f\n", d, r, f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130834/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130834/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, d, r; double f; scanf("%d %d", &a, &b); d = a / b; r = a % b; f = (double)a / (double)b; printf("%d %d %lf", d, r, f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130878/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130878/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> void shou(int *a,int *b); int main(){ int a,b; scanf("%d %d",&a,&b); printf("%d %d ",a/b,a%b); shou(&a,&b); return 0; } void shou(int *a,int *b){ double c,d; c=*a; d=*b; printf("%f\n",c/d); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130920/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130920/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int a, b, divd, mod; double divf; scanf("%d %d", &a, &b); divd = a / b; mod = a % b; divf = (double) a / b; printf("%d %d %.5f\n", divd, mod, divf); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130964/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130964/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d,r; double f; scanf("%d %d",&a,&b); r=a%b; d=(a-r)/b; f=1.0*a/b; printf("%d %d %f\n",d,r,f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131006/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131006/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { int a,b,d,r; double f; scanf("%d %d",&a,&b); d=a/b; r=a%b; f=(double)a/(double)b; printf("%d %d %lf",d,r,f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131057/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131057/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> typedef struct chars { int x,cnt; }num; int compare(const void *a,const void *b){ return *(int*)a - *(int*)b; } int main() { int n; scanf("%d",&n); int i,a[5001]={}; num map[5001]; for ( i = 0; i < 5001; ++i) { map[i].x=-1; map[i].cnt=0; } for ( i = 0; i < n; ++i) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13110/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13110/source.c" target datalayout = "e-m:e-p270: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.chars = type { i32, i...
#include<stdio.h> int main(void) { int a,b,d,r; double f; scanf("%d %d",&a,&b); if(1<=a && b<=1E+9){ d=a / b; r=a % b; f=(double)a / (double)b; printf("%d %d %lf\n",d,r,f); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131150/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131150/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int a,b,d,r; double f; scanf("%d",&a); scanf("%d",&b); d=a/b; r=a%b; f=(double)a/b; printf("%d %d %lf\n",d,r,f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131194/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131194/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, d, r; double f; scanf("%d %d", &a, &b); d = a / b; r = a%b; f = 1.0*a / b; printf("%d %d %f", d, r, f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131237/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131237/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d %d", &a, &b); c = a / b; d = a % b; double e; e = 1.0 * a / b; printf("%d %d %.8lf\n", c, d, e); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131280/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131280/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){ // Here your code ! int a,b,d,r; scanf("%d%d",&a,&b); printf("%d %d %.5f\n",a/b,a%b,(double)a/b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131323/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131323/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { int a,b,d=0,r=0; double f=0; scanf("%d %d",&a,&b); d=a/b; r=a%b; f=(double)a/(double)b; printf("%d %d %lf\n",d,r,f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131367/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131367/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ara[100000],i,j,k,h1,h2,a1,a2,c1,sum,tmp,a,b,c; scanf("%d%d%d%d%d",&h1,&a1,&c1,&h2,&a2); k=0; while(1){ if(h1<=a2){ if(a1>=h2){ ara[k++]=2; break; } else{ h1+=c1; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13141/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13141/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> #include <math.h> int partitioning(int A[], int startI, int endI) { int index = startI; int i; for(i=startI; i<endI; i++) { if(A[i] <= A[endI]) { int temp = A[i]; A[i] = A[index]; A[index] = t...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13149/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13149/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(void) { int a, b; int d, r; double f; scanf("%d %d", &a, &b); d = a/b; r = a%b; f = (double)a/b; printf("%d %d %.6f\n", d, r, f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131532/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131532/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int a, b, d, r; double f; scanf("%d %d", &a, &b); d = a / b; r = a % b; f = (double)a / b; printf("%d %d %f", d, r, f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131590/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131590/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, d, r; double f; scanf("%d %d\n", &a, &b); d = a / b; r = a % b; f = (double) a / b; printf("%d %d %.8lf\n", d, r, f); return 0 ; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131640/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131640/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> int main(void){ char tmp[1000]; //??\??? fgets(tmp,sizeof(tmp),stdin); int num1=atoi(strtok(tmp," ")); int num2=atoi(strtok(NULL," ")); //?°???°?????????????????¨ double fnum1=num1; double fnum2=num2; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131705/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131705/source.c" target datalayout = "e-m:e-p270: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(){ int a,b; double c; scanf("%d %d",&a,&b); c=(double)a/b; printf("%d %d %f\n",a/b,a%b,c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131756/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131756/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 arr[200000]; int main() { int i; int n; int rightDoor=0, leftDoor=0; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%d",&arr[i]); arr[i]==0 ? leftDoor++ : rightDoor++; } for(i=0;i<n;i++) { arr[i]==0 ? leftDoor-- : rightDoor--; if(l...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1318/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1318/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 a, b; int d, r; double f; scanf("%d %d\n", &a, &b); d = a / b; r = a % b; f = (double)a / b; printf("%d %d %f\n", d, r, f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131842/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131842/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, d, r; double f; scanf("%d %d", &a, &b); d = a/b; r = a%b; f = (double)a/b; printf("%d %d %f\n", d, r, f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131893/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131893/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d,r; double f; scanf("%d %d",&a,&b); d = a/b; r = a%b; f = 1.0*a/b; printf("%d %d %.5lf\n",d,r,f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131936/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131936/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int t; scanf("%d",&t); while(t--){ int n; scanf("%d",&n); int m = n; if(n >= 3){ while(n % 3 != 0 && n >= 0) n = n-7; if(n % 3 == 0 && n >= 0){ printf("YES\n"); continue; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13198/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13198/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main() { int a,b,r,d; double f; scanf("%d %d\n", &a,&b); r=a%b; d=a/b; f=(double)a/(double)b; printf("%d %d %f\n",d,r,f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132021/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132021/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 d, r; scanf("%d %d", &d, &r); printf("%d %d %lf\n", d/r, d%r, (double)d/r); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132065/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132065/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { int x, y; scanf("%d %d", &x, &y); printf("%d\n", x/y); printf("%d\n", x%y); printf("%.8lf\n", 1.0*x/y); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132108/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132108/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int a, b; while(scanf("%d %d", &a, &b) == 2) { printf("%d %d %.5lf\n", a/b, a%b, 1.0*a/b); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132151/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132151/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int a,b,d,r; double f; scanf("%d %d",&a,&b); d = a/b; r = a%b; f = 1.0*a/b; printf("%d %d %f",d,r,f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132201/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132201/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); printf("%d %d %lf\n", a/b, a%b, (double)a/b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132245/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132245/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int a,b; scanf("%d %d",&a,&b); printf("%d %d %.8lf\n",a/b,a%b,1.0*a/b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132289/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132289/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int a,b,x,y; double z; scanf("%d %d",&a,&b); x=a/b; y=a%b; z=1.0*a/b; printf("%d %d %f\n",x,y,z); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132331/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132331/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int a,b; scanf("%d %d", &a, &b); printf("%d %d %.5f\n", a / b, a % b, (double)a / b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132375/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132375/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* a ÷ b : d (整数) a ÷ b の余り : r (整数) a ÷ b : f (浮動小数点数) */ #include <stdio.h> int main(void) { int a; int b; scanf("%d %d", &a, &b); printf("%d %d %.6f\n", a / b, a % b, a / (double)b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132418/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132418/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int a, b; scanf("%d%d", &a, &b); printf("%d %d %lf\n", a / b, a % b, (double)a / b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132461/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132461/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(int argc, char *argv[]) { int a, b; scanf("%d%d", &a, &b); printf("%d %d %f\n", a / b, a % b, (double)a / b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132504/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132504/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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") /* 改行プリント */ /****************************************************************************...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132548/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132548/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @DEBUG = dso_local local_un...
#include <stdio.h> int main(void){ int a,b,d,r; double f; scanf("%d %d",&a,&b); d=a/b; r=a%b; f=(double)a/(double)b; printf("%d %d %f",d,r,f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132591/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132591/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int a, b; scanf("%d%d", &a, &b); printf("%d %d %f", a/b, a%b, (double)(a)/(double)(b)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132641/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132641/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; double c,d; scanf("%d %d",&a,&b); c=a; d=b; printf("%d %d %f\n",a/b,a%b,c/d); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132685/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132685/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 7368791 static int m; static int n; static int h[N]; int main(void) { int i, j; for (;;) { scanf("%d%d", &m, &n); if (m == 0 && n == 0) break ; memset(h, 0, sizeof(h)); for (i = m; i < N; ++i) { if (h[i] != 0) con...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132735/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132735/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> void change(int,int); int muki = 0,flag = 0; int main(){ int i,j,x = 0,y = 0,wall_x[4][5],wall_y[5][4]; for(i = 0;i < 9;i++){ if(i % 2 == 0) for(j = 0;j < 4;j++) scanf("%1d",&wall_x[j][i / 2]); else for(j = 0;j < 5;j++) scanf("%1d",&wall_y[j][(i - 1)/ 2]); } do{ if(muki == 0){ if(x != ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132779/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132779/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @muki = dso_local local_unn...
#include <float.h> #include <inttypes.h> #include <limits.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> #include <math.h> #ifdef __cplusplus #include <bits/stdc++.h> #endif #define getchar getchar #define putchar putchar int...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132872/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132872/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @k = dso_local local_unname...
#include <stdio.h> int main(void){ int n,s,i,j,f; struct data{ int c,m; }d[25],t; while(1){ scanf("%d",&n); if(!n) break; for(i=0;i<n;i++) scanf("%d %d",&d[i].c,&d[i].m); for(i=0;i<n-1;i++){ for(j=n-1;j>i;j--){ if(d[j-1].m>d[j].m){ t=d[j-1]; d[j-1]=d[j]; d[j]=t; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132915/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132915/source.c" target datalayout = "e-m:e-p270: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, ...
/* ex 7_3 APG4b • AtCoder Beginner Contest 107 B nk777 */ #include<stdio.h> // メモリの動的確保 #include<stdlib.h> int main(void){ // H行line,W列col,,for文のカウンタi,j,黒がある行と列を記憶する配列lineBlack,colBlack(初期値0) int line, col, i, j, *lineBlack, *colBlack; // 入力格納2次元配列matrix char **matrix; // line, colを受け取る s...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132966/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132966/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* ex 7_3 TakayukiY*/ #include<stdio.h> #include<stdlib.h> int main(void){ //indexと行列の要素数と空行チェック用の配列のポインタの定義 int i,j,row,column,*chkrow,*chkcol; //aijの格納配列の定義 char **ptr; //要素数を代入して各行のメモリ確保、エラーチェック scanf("%d%d\n",&row,&column); ptr=(char**)calloc(row,sizeof(char*)); if(ptr==NULL) e...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133008/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133008/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/*ex7_3 Sweet_Sweet_Soul */ #include <stdio.h> #include <stdlib.h> int main(void) { int hei,wid;/*hei=height、wid=width*/ int *hei_ture,*wid_ture;/*各行や列に'#'があれば1を記録する配列*/ char **grid;/*入力用の多次元配列*/ scanf("%d%d",&hei,&wid); grid=(char**)calloc(hei,sizeof(char*));/*まず各配列の先頭のポインタを確保*/ if(grid==NULL...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133051/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133051/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* ex5_3 hangan2020 */ #include <stdio.h> #define IS 101 int main(void){ int H, W; int i, j; char row[IS][IS]; scanf("%d %d", &H, &W); //Input by loop for (i = 0; i < H ; i++){ for(j = 0; j < W ; j++){ scanf(" %c", &row[i][j]); } } // Scanning for '....
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133101/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133101/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* ex5_3 riverstone*/ #include<stdio.h> #include <stdbool.h> #define LIM 100 //行数、列数の上限 int main(void){ int height, width, i, j; //多次元配列の定義 //black_rowとblack_colは各行と各列に1つ以上の黒が存在するかを記録 char block[LIM][LIM]; int black_row[LIM]={}, black_col[LIM]={}; //入力の受け取り scanf("%d %d", &heigh...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133145/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133145/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...