Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include <stdio.h> int main(){ int x,y; scanf("%d%d",&x,&y); if(x==2||y==2){ printf("No"); return 0; } if((x==1||x==3||x==5||x==7||x==8||x==10||x==12)&&(y==1||y==3||y==5||y==7||y==8||y==10||y==12)){ printf("Yes"); return 0; } if((x==4||x==6||x==9||x==11)&&(y==...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130550/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130550/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x,y; int A[13]={0,1,3,1,2,1,2,1,1,2,1,2,1}; scanf("%d %d",&x,&y); if(A[x]==A[y]){ printf("Yes\n"); }else{ printf("No\n"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130622/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130622/source.c" target datalayout = "e-m:e-p270: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() { int a[] = { 0,1,3,1,2,1,2,1,1,2,1,2,1 }; int x, y; scanf("%d", &x); scanf("%d", &y); if (a[x] == a[y]) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130666/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130666/source.c" target datalayout = "e-m:e-p270: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> #include<string.h> int main(){ int group[13]={-1,1,3,1,2,1,2,1,1,2,1,2,1}; int x,y; scanf("%d%d",&x,&y); if(group[x]==group[y]) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130709/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130709/source.c" target datalayout = "e-m:e-p270: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() { int a, b; scanf("%d %d", &a, &b); printf("%d %d %.5lf\n", a/b, a%b, (double)a/(double)b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130752/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130752/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; double a, b, f; scanf("%lf %lf", &a, &b); d = a / b; r = (int)a % (int)b; f = a / b; printf("%d %d %.5f\n", d, r, f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130802/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130802/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_130846/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130846/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 dp[101]; int main(int argc, char** argv) { int i, n, x; memset(dp, 0, sizeof dp); dp[0] = 1; for (i = 1; i <= 100; i++) { if (i >= 3 && dp[i-3]) dp[i] = 1; if (i >= 7 && dp[i-7]) dp[i] = 1; } scanf("%d...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13089/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13089/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @dp = dso_local local_unnamed...
#include <stdio.h> int main(void) { int IN_A, IN_B, OUT_A, OUT_B; double OUT_C; scanf("%d %d", &IN_A, &IN_B); OUT_A = IN_A / IN_B; OUT_B = IN_A % IN_B; OUT_C = (double)IN_A / IN_B; printf("%d %d %f\n", OUT_A, OUT_B, OUT_C); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130932/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130932/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_130983/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130983/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a, b; scanf("%ld %ld", &a, &b); printf("%ld %ld %f\n", a/b, a%b, (double)a/b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131025/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131025/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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\n",d,r,f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131076/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131076/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 %d %f\n",x/y,x%y,(double)x/y); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131119/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131119/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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.00000*a/b; printf("%d %d %f\n",d,r,f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131162/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131162/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 %lf\n",d,r,f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131205/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131205/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d; scanf("%d %d",&a,&d); printf("%d %d %lf",a/d,a%d,(double)a/d); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131256/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131256/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 %lf\n",d,r,f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131306/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131306/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> #define true ( 1 ) #define false ( 0 ) #define maxn 20 typedef char bool; int main() { int T; scanf("%d",&T); while(T--){ int n; scanf("%d",&n); bool flag = false; for(int i=0;i<=100 && !flag;++i){ for(int j=0;j<=100 && !flag;++j){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13135/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13135/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ara[1]; char ch[1]; int main() { int i,j,k,n,m,a,b,c,tmp,sum,total,flag=0; scanf("%d",&a); for(i=0;i<a;i++){ flag=0; scanf("%d",&n); for(j=0;j*3<=n;j++){ if((n-(j*3))%7==0){ flag=1; break; } } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13140/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13140/source.c" target datalayout = "e-m:e-p270:32:32-p271: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; double c; scanf("%d%d",&a,&b); c=(double)a/b; printf("%d %d %lf\n",a/b,a%b,c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131443/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131443/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 %lf\n",a/b,a%b,(double)a/b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131500/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131500/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 %lf",d,r,f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131544/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131544/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); int d = a/b; int r = a%b; double f = (double)a / b; printf("%d %d %f\n",d,r,f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131588/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131588/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 %lf",a/b,a%b,(double)a/b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131630/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131630/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int d,r; double f; 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_131674/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131674/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 %.5lf\n", d, r, f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131717/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131717/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 %.5f\n", a / b, a % b, 1.0 * a / b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131775/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131775/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> int main(void) { int a,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_131825/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131825/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_131869/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131869/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int a,b; scanf("%d%d",&a,&b); printf("%d %d %f\n",a/b,a%b,(double)(a)/(double)(b)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131911/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131911/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); int d,r; double f; d=a/b; r=a%b; f=a*1.0/b; printf("%d %d %.5f\n",d,r,f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131962/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131962/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 = a / (double)b; printf("%d %d %.7f\n", d,r,f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132011/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132011/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_132055/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132055/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int a,b,r,d; double f; scanf("%d %d",&a,&b); d=a/b; r=a%b; f=((double)a/(double)b)*1; printf("%d %d %.5lf",d,r,f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132099/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132099/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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\n", d, r, f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132141/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132141/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; double a,b,f; scanf("%lf %lf",&a,&b); d = a / b; r = (int)a % (int)b; f = a / b; printf("%d %d %f\n",d,r,f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132185/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132185/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, const char * argv[]) { int a,b,d,r;; double f; scanf("%d %d",&a,&b); d = a/b; r = a%b; f = 1.0*a/b; // insert code here... printf("%d %d %lf\n",d,r,f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132235/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132235/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ double a, b; scanf("%lf %lf", &a, &b); printf("%d %d %lf\n", (int)a / (int)b, (int)a % (int)b, a / b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132279/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132279/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 scanf scanf_s typedef long long int lli; // ITP1_4_A // 2つの整数a,bを読み込み、a/b, a%b, a/b(float)を出力 int main() { lli iInputA, iInputB; scanf("%lld %lld", &iInputA, &iInputB); printf("%lld %lld %lf\n", iInputA/iInputB, iInputA%iInputB, (double)iInputA/iInputB); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132329/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132329/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 %.5f\n",d,r,f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132372/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132372/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("%i %i",&a,&b); d = a/b; r = a%b; f = (double)a/b; printf("%i %i %lf\n",d,r,f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132415/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132415/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 y; scanf("%d %d", &a, &b); y = (double)a / b; printf("%d %d %.5lf", a / b, a % b, y); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132459/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132459/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main (void) { double a , b; scanf("%lf %lf", &a , &b); int x = a , y = b; printf("%d %d %.5lf" , x/y , x%y , a / b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132501/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132501/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; if (scanf("%d%d", &a, &b) != 2) return 1; printf("%d %d %15f\n", a / b, a % b, (double)a / b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132552/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132552/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 d, r; double f; int main() { scanf("%d %d", &a, &b); d = a / b; r = 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_132602/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132602/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 f; scanf("%d %d",&a,&b); f = 1.000000*a / b; printf( "%d %d %.8lf\n", a / b, a % b, f ); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132646/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132646/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, max, temp, check = -1, count; scanf("%d",&n); char str[n+1]; scanf("%s",str); for(i=0; i<n; i++) { if(64<str[i] && str[i]<91) str[i] = '\0'; } count = 0; max = 0; for(i=0; i<n; i++) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13269/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13269/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <string.h> #define GIVEN_VALUE 7400000 char data[GIVEN_VALUE]; int main(void) { int m, n; while (scanf("%d%d", &m, &n) == 2 && (m > 0 || n > 0)) { int i, j; int left = n; memset(data, 0, sizeof(data)); for (i = m; ; i++) { if (!data[i]) { if (left > 0) { left--; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132732/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132732/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> // printf(), scanf() int main(int argc, char** argv) { char maze[9][5]; int x, y; int px, py; int mx, my; char dir; int i; for (i = 0; i < 9; ++i) scanf("%s", &maze[i][0]); x = 0, y = 0; dir = 'R'; printf("%c", dir); do { px = x + 1, py = y + 1; mx = x - 1, my = y - 1; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132783/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132783/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
// AOJ NTL_2_C Multiplication of Big Integers // 2019.3.8 bal4u #include <stdio.h> #include <stdlib.h> #define N 1000000000 int a[120], b[120], ab[500]; int a_minus, b_minus; char buf[5000]; char *mpStr2Num(int *num, char *str) { char *ss, *end; int *nn; int k, x; // while (*str == ' ' || *str == '\t') ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132840/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132840/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @buf = dso_local global [50...
#include <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_unlocked #define putchar pu...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132891/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132891/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct._IO_FILE = type { i...
/* ex 7_3 アカウント名 */ #include <stdio.h> #include <stdlib.h> int main(void){ int i, j, k, row, column; scanf("%d %d\n", &row, &column); int row_flag[row], column_flag[column]; for(i = 0; i < row; i++){ row_flag[i] = 0; } for(i = 0; i < column; i++){ column_flag[i] = 0; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132949/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132949/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 B30095 */ #include <stdio.h> #include <stdlib.h> void print_compressed(char ** grid, int rows, int cols); int main(void){ int rows, cols, isRowEmpty, isColEmpty, i, j; char ** grid; scanf("%d %d", &rows, &cols); // memory allocation grid = (char **)malloc(rows * sizeof(c...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132992/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132992/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 cy_an */ #include <stdio.h> #include <stdlib.h> int main(void){ // 変数の宣言 char **memory; int num_r, num_c, i, j, r_flag, c_flag, printflag; // numの入力 scanf("%d %d", &num_r, &num_c); // 二次元配列領域の動的確保 memory = (char**)calloc(num_r, sizeof(char*)); if(memory == NULL){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133034/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133034/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 L40S38 */ #include<stdio.h> #include<stdlib.h> int main(void){ int high,wide,i,j; //high,wide:マス目の縦,横の長さ char **cells; scanf("%d %d",&high,&wide); int *black_exist_high,*black_exist_wide; //black_exist_high:黒いマスがあった行番号を格納 //black_exist_wide:黒いマスがあった列番号を格納 cells=(char**)c...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133078/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133078/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 KKOO */ #include<stdio.h> int main(void){ int row, col, count; //マス目の行数、列数を入力 scanf("%d %d", &row, &col); //マス目に入る文字を入力 char grid[row][col]; for(int i=0; i<row; i++){ for(int j=0; j<col; j++){ scanf(" %c", &grid[i][j]); } } //余分な行、列を記憶する配列 ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133120/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133120/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 moka223711 */ #include <stdio.h> #define ROW 101 // マス目の行の上限 #define COL 101 // マス目の列の上限 int main(void){ // br = black_row, bc = black_column // 黒が少なくとも1マス含まれている行,列を記録する 0で初期化 int row, col, i, j, br[ROW]={0}, bc[COL]={0}; // マス目の配色を受け取る2次元配列 char sq[ROW][COL]; scanf("%d %d", &row, ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133164/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133164/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 kt125 */ #include<stdio.h> int main(void){ int height, width, //縦、横 count; //'.'をカウントする変数 scanf("%d %d", &height, &width); char board[height][width]; //与えられたマス目の配列 for(int i=0; i < height;i++){ for (int j=0; j < width; j++){ scanf(" %c", &board[i][j]); }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133207/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133207/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h,w,i,j; scanf("%d %d", &h, &w); char grid [h][w]; for (i=0;i<h;i++) for (j=0;j<w;j++) scanf(" %c", &grid[i][j]); int row[1000]={}; int col[1000]={}; for(i=0;i<h;i++) for (j=0;j<w;j++) { if (grid[i][j] == '#' ){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133250/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133250/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,w,i,j; scanf("%d%d\n",&h,&w); int a[114][514]; for(i=0;i<h;i++){ int check=0; for(j=0;j<w+1;j++){ scanf("%c",&a[i][j]); check+=a[i][j]; } if(check>=46*w){h--;i--;} } for(i=0;i<w;i++){ int chec...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133294/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133294/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,W,i,j,k,l; char a[101][101] = {'\0'}; char *o[101]; char *p; int is_removed = 0; scanf("%d %d", &H, &W); for(i=0;i<H;i++) { scanf("%s", a[i]); o[i] = a[i]; } /* remove col */ for(j=0,l=0;j<W;j++) { is_removed = 1...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133337/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133337/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h,w,i,j; for(;;){ scanf("%d%d",&h,&w); if(h==0&&w==0)break; for(i=0;i<h;i++){ for(j=0;j<w;j++) printf("#"); printf("\n"); } printf("\n...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133409/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133409/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h,w,i,j; while(1){ scanf("%d %d",&h,&w); if(h==0 && w==0) break; for(i=0;i<h;i++){ for(j=0;j<w;j++){ printf("#"); } printf("\n"); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133452/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133452/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int a,b,i,d; while(1){ scanf("%d %d",&a,&b); if(a==0 && b==0)break; for(i=0;i<a;i++){ for(d=0;d<b;d++) { printf("#"); } printf("\n"); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133496/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133496/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, W, i, j; while( 1 ){ scanf( "%d %d", &H, &W ); if( H == 0 && W == 0 ){ break; } for( i = 1; i <= H; i++ ){ for( j = 1; j <= W; j++ ){ printf( "#" ); } printf( "\n" ); } printf( "\n" ); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133546/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133546/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> int solve(int R, int G, int B, int W) { int total = R + G + B + W; if(total%2) { if(W%2) { if( (R%2 == 0) && (G%2 == 0) && (B%2 == 0) ) { return 1; } else if( R*G*B == 0 ) { return 0; } else if( (R%2) + (G%2)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13359/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13359/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 W,H,i,j; scanf("%d %d",&H,&W); while(H != 0 && W != 0) { for(i=0;i<H;i++) { for(j=0;j<W;j++) { printf("#"); } printf("\n"); } scanf("%d %d",&H,&W); printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133632/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133632/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int i, j; int H, W; while(1){ scanf("%d %d", &H, &W); if(H == 0 && W == 0){ break; } else{ for(i=0;i<H;i++){ for(j=0;j<W;j++){ printf("#"); } printf("\n"); } } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133676/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133676/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, w; int i,j; while(1){ scanf("%d", &h); scanf("%d", &w); if(h == 0) break; for(i = 0; i < h; i++){ for(j =0; j < w; j++) put...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133726/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133726/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int w; int a; int b; for (;;) { scanf("%d %d", &h, &w); if (w==0 && h==0) { return 0; } for (b=0;b<h;b++) { for (a=0;a<w;a++) { printf("#"); } printf("\n"); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133777/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133777/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n,m,x,y; scanf("%d %d %d %d",&n,&m,&x,&y); int a[101][101]={0}; // long k=n*m; for(int i=y;i<=m;i++){ printf("%d %d\n",x,i); a[x][i]++; } long k=1; for(int j=m;j>0;j--){ if(k%2==1){ for(int i=1;i<=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13382/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13382/source.c" target datalayout = "e-m:e-p270:32:32-p271: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(){ while(1){ int H , W , counth , countw; scanf("%d %d", &H , &W); if(H == 0 && W == 0){ break; } for(counth = 0 ; counth < H ; counth++){ for(countw = 0 ; countw <= W - 1 ; countw++){ printf("#"); } printf("\n"); } printf("\n")...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133863/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133863/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,W,i,j; while(1){ scanf("%d %d",&H,&W); if(H == 0 && W == 0){ break; } else{ if(H != 0){ for(i = 0;i < H;i++){ for(j = 0;j < W;j++){ printf("#"); } puts(""); } puts(""); } else{ for(j = 0;j < W;j++){ printf("#"); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133906/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133906/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n[101][101]; int main() { int a,b,x,y,i,j,k; scanf("%d %d %d %d",&a,&b,&x,&y); printf("%d %d\n",x,y); n[x][y]=1; printf("%d %d\n",1,y); n[1][y]=1; for(i=1;i<=a;i++) { if(i%2==1) { for(j=1;j<=b;j++) { if...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13395/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13395/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <string.h> long long int puertas[200001]; int main() { long long int n,si=0,sd=0,i=0,d=0,z=0; scanf("%I64d",&n); for(long long int x=0;x<n;x++) { scanf("%I64d",&puertas[x]); if(puertas[x]==1) sd++; else si++; } while(i!=si && d!=sd) { if(puertas[z]==1) d++; else ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1340/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1340/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr co...
#include <stdio.h> int main(void){ int i,j,H,W; while(1){ scanf("%d %d",&H,&W); if(H==0&&W==0) break; for(i=0;i<H;i++){ for(j=0;j<W;j++) putchar('#'); puts(""); } puts(""); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134042/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134042/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, W, i, j; do { scanf("%d %d", &H, &W); if (H == 0 && W == 0) break; for (i = 0; i < H; i++) { for (j = 0; j < W; j++) putchar('#'); putchar('\n'); } putchar('\n'); } while (1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134086/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134086/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){ for( ; ; ){ int h, w, i, j; scanf("%d%d", &h, &w); if(h == 0 & w == 0){return 0;} for(i = 0; i < h; i++){ for(j = 0; j < w; j++) {printf("#");} printf("\n"); } printf("\n"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134129/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134129/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main(void) { int min, n, m, i, x, y, z, k = 0, j; int ans[500][3], a[1000], b[1000], d[1000]; scanf("%d%d", &n, &m); for(i = 0; i < n; i++){ a[i] = -1; b[i] = -1; } for(i = 0; i < m; i++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13418/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13418/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 h,w,i,j,k; for(k=1;;k++){ scanf("%d %d",&w,&h); if(w==0&&h==0){ break; } // printf("\n"); for(i=1;i<=w;i++){ for(j=1;j<=h;j++) printf("#"); printf("\n"); } printf("\n"); } return 0; }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134222/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134222/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h,w; while(1){ scanf("%d %d",&h,&w); if((h|w)==0)break; for(int i=0;i<h;i++){ for(int j=0;j<w;j++){ printf("#"); } printf("\n"); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134266/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134266/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, H, W; while (scanf("%d %d", &H, &W) != EOF) { if(H == 0 && W == 0) { break; } for (i = 1; i <= H; i++) { for (j = 1; j <= W; j++) { printf("#"); } putchar('\n'); } putchar('\n'); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134309/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134309/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,h,w; while(1){ scanf("%d %d",&h,&w); if(h==0&&w==0) break; for(i=1;i<=h;i++){ for(j=1;j<=w;j++){ putchar('#'); } putchar('\n'); } putchar('\n'); } return(0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134352/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134352/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 high[100]; int width[100]; int i; int j; int count=0; int z; while(1){ scanf("%d %d",&high[count],&width[count]); if(high[count] == 0 && width[count]==0) break; count++; } for(z=0;z<count;z++){ for(i=0;i<high[z];i++){ for(j=0;j<width[z];j++){ pri...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134402/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134402/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 H,W,m,n; for(;;){ scanf("%d %d",&H,&W); if(H==W && H==0) break; for(m=0;m<H;m++){ for(n=0;n<W;n++) printf("#"); printf("\n"); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134446/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134446/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int a,b,i,j; while(1){ scanf("%d%d",&a,&b); if(a==0 && b==0) break; for(i=0;i<a;i++) { for(j=0;j<b;j++) { printf("#"); } printf("\n"); } printf("\n"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134497/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134497/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int n, k; scanf("%d %d", &n, &k); char str[51]; scanf("%s", str); int freq[26]={0}; int i=0; while(str[i]!='\0') { freq[str[i++]-'a']=1; } int wt=0; for(i=0; i<26; i++) { if(freq[i]==1) { k=k-1; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13454/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13454/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(){ int H,W,i,j; while(1){ scanf("%d %d",&H,&W); if(H == 0 && W == 0) { break; } for(j=1; j<=H; j++) { for(i=1; i<=W; i++) { printf("#"); } printf("\n"); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134583/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134583/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,j; while(1){ scanf("%d %d",&a,&b); if(a==0&&b==0) break; for(i=0;i<a;i++){ for(j=0;j<b;j++){ printf("#"); } printf("\n"); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134626/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134626/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 w,h; int i,j; while(1){ scanf("%d %d\n",&h,&w); if(h == 0 && w == 0) break; for(i = 0;i < h; i++){ for(j = 0; j < w; j++){ printf("#"); } printf("\n"); } printf("\n"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134677/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134677/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <math.h> int main(int argc, char *argv[]) { int H, W; for (;;) { scanf("%d%d", &H, &W); if ((H == 0) && (W == 0)) { break; } for (int i = 0; i < H; i++) { for (int j = 0; j < W; j++) { printf("#"); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134727/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134727/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int a,b,i,d; while(1){ scanf("%d %d",&a,&b); if(a==0 && b==0)break; for(i=0;i<a;i++){ for(d=0;d<b;d++) { printf("#"); } printf("\n"); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134770/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134770/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int i=0,j,n=0,a[1000],b[1000],k; while(1){ scanf("%d %d",&a[i],&b[i]); if(a[i]==0 && b[i]==0){ break; } i++; n++; } for(k=0;k<n;k++){ for(i=1;i<=a[k];i++){ for(j=1;j<=b[k];j++){ printf(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134820/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134820/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 H, W, h, w; while(1){ scanf("%d %d", &H, &W); if (H==0 && W==0) break; for (h=0; ++h<=H;){ for (w=0; ++w<=W;) putchar('#'); putchar('\n'); } putchar('\n'); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134864/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134864/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, W, i,j; while(1) { scanf("%d%d", &H, &W); if ((H == 0) && (W == 0)) break; for (j = 0;j < H;j++) { for (i = 0;i < W;i++) { printf("#"); } printf("\n"); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134907/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134907/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #define maxN 300000 #define repeat(i, N, M) for(int i = N; i < M; i++) int main(int argc, char *argv[]) { int n; char s[maxN + 1]; int w[maxN] = {}, e[maxN] = {}; scanf("%d", &n); scanf("%s", s); repeat(i, 1, n){ w[i] = w[i - 1] + (s[i - 1] == 'W' ? 1 : 0); e[i] = e[i - 1] + (s[i ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134950/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134950/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 compareInt(const void* a, const void* b) { int aNum = *(int*)a; int bNum = *(int*)b; return aNum - bNum; } int main(void){ int n, m, sum=0; scanf("%d %d", &n, &m); int x[m], c[m-1]; for(int i=0; i<m; i++){ scanf("%d", &x[i]); } qsort(x, m, sizeo...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134994/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134994/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 comp(const void *a, const void *b){ return *(int *)a-*(int *)b; } int main(){ int N; int M; int X[100000]; scanf("%d",&N); scanf("%d",&M); if(N>=M){ printf("0"); return 0; } int i; int Y[100000]; for(i=0;i<M;i++){ scanf("%d",&X[i]); } qsort(X,M,sizeof(int),c...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135036/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135036/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { long long int t,a,b,c,r,max1,max2; scanf("%lld",&t); while(t--) { scanf("%lld %lld %lld %lld",&a,&b,&c,&r); long long int temp; if(a>b) { temp=a; a=b; b=temp; } if(a<=c-r&&c+r<=b) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13508/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13508/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> #include<stdlib.h> int compare_int(const void *a, const void *b) { return *(long*)a - *(long*)b; } int main(){ int n,m,i; long x[100000]; long long ans=0; scanf("%d%d",&n,&m); for(i=0;i<m;i++)scanf("%ld",&x[i]); if(n>=m){ puts("0"); return 0; } long sa[100000]={0}; qsort(x,m,sizeof(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135122/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135122/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...