Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#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/(double)b; printf("%d %d %lf\n",d,r,f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131068/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131068/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,c; scanf("%d%d",&a,&b); c=a%b; printf("%d %d %d.%d",(int)a/b,a%b,a/b,c*100000/b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131110/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131110/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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\n",a/b,(double)a/(double)b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131154/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131154/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_131198/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131198/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 %.8f\n",d ,r ,f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131248/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131248/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_131291/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131291/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)/(1.0*b); printf("%d %d %.5lf\n",d,r,f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131334/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131334/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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/(double)b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131385/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131385/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_131435/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131435/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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\n",d,r,f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131493/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131493/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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.0; 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_131536/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131536/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 chk=0; for (int big= n/7; big>=0; big--){ int remain = n-big*7; if (remain%3==0) chk=1; } printf(chk?"YES\n":"NO\n"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13163/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13163/source.c" target datalayout = "e-m:e-p270:32:32-p271: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; int 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_131673/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131673/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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.c * * Created on: 2017/06/13 * Author: AWV060608 */ #include <stdio.h> int main(void) { int a, b; int d, r; double f; scanf("%d",&a); scanf("%d",&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_131716/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131716/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x,i,j,flag=0,b,y; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&x); b=0;flag=0; y=x-7*b; while(y>=0){ b++; if(y%3==0){ printf("YES\n"); flag=1; break;} y=x-7*b;} if(flag==0){ printf("NO\n");}} return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13176/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13176/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(int argc, const char * argv[]) { int a,b; double a2,b2; int d,r;//?????????????????´??°??? double f;//???????°???°?????° scanf("%d %d",&a,&b);//?????°?????\??? d = a/b;//??? r = a%b;//?????? a2 = a;//?????°????????´ b2 = b;//???" f...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131853/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131853/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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\n",&a,&b); printf("%d %d %.5lf\n",a/b,a%b,(double)a/(double)b); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131897/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131897/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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",&a); printf(""); scanf("%d",&b); printf(""); printf("%d %d %f\n",a/b,a%b,(double)a/b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131983/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131983/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); scanf("%d",&d); scanf("%d",&r); scanf("%lf",&f); 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_132025/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132025/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a, b, d, r; double f; scanf("%ld %ld", &a, &b); d = a / b; r = a % b; f = (double)a / b; printf("%ld %ld %.5lf\n", d, r, f); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132069/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132069/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); double x,y; x = a; y = b; printf("%ld %ld %.7f\n",a/b,a%b,x/y); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132111/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132111/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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.0; 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_132155/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132155/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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\n", a / b); printf("%d\n", a % b); printf("%lf\n", a * 1.0 / b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132205/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132205/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132256/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132256/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 = 0, b = 0, d = 0, r = 0; double f = 0; // float → 精度が足りないので double に修正 // データの入力 scanf("%d %d", &a , &b ); if( a < 1 || a > 1000000000 || b < 1 || b > 1000000000 ){ return 0; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132313/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132313/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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", d, r, f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132357/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132357/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x; int i, j; scanf("%d", &n); while(n--) { scanf("%d", &x); for(i=0; x >= i * 7; i++) { int remainder = x - i * 7; if(remainder % 3 == 0) { printf("YES\n"); break; } } if(i * 7 > x) printf("NO\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13240/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13240/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <stdlib.h> int main() { int a, b; 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_132443/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132443/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 = (double)a / b; printf("%d %d %f", a / b, a % b, f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132487/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132487/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> int main() { int n, m[110]; scanf("%d",&n); int a = -1, b = -1, anum = 0, bnum = 0; for(int i=1; i<=n; i++) scanf("%d",&m[i]); a = m[1]; for(int i=1; i<=n; i++) { if(m[i] != a) { b = m[i]; break; } } if(b == -1) { printf("NO\n"); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13253/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13253/source.c" target datalayout = "e-m:e-p270:32:32-p271: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; double f, g; scanf("%d %d", &a, &b); f = 1.00000*a / b; printf("%d %d %.8lf\n", a/b, a%b, f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132573/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132573/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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", d, r, f); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132616/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132616/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,temp,temp1,i; scanf("%d",&n); int arr[n]; for(i=0; i<n; i++) scanf("%d",&arr[i]); temp=arr[0]; for(i=1; i<n; i++) { if(arr[i]!=temp) { temp1=arr[i]; break; } } int cnt=0,cnt1=0; for(i=0; i<n; i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13266/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13266/source.c" target datalayout = "e-m:e-p270:32:32-p271: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; scanf("%d %d",&a,&b); double f1; f1=1.0*a/b; printf("%d %d %f\n",a/b,a%b,f1); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132702/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132702/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 min(int x,int y) { if(y!=0 && y<x) return y; return x; } int main(void) { int i,j,N,M,d[1000],C[1000],dp[1001][1001],s; scanf("%d%d",&N,&M); for(i=0;i<N;i++) { scanf("%d",&d[i]); } for(i=0;i<M;i++) { scanf("%d",&C[i]); } for(i=0;i<N+1;i++) { dp[i][0]=0; } for(i=1;i<M+1;i++...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132753/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132753/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> unsigned shift(unsigned b, int x) { return x>=0 ? (b>>x) : (b<<-x); } #define P(x,y) (fp[y]&shift(fb,x)) #include<stdio.h> char map[9][11]; int right_wall (int x, int y, int d) { switch (d) { case 0: // R if (x < 4) return map[y*2][x] - '0'; else return 0; case 1: // D if (y < 4) re...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132797/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132797/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @map = dso_local global [9 ...
#include<stdio.h> int main(){ int n,a[60],b[60],c[60],i,r=0,d[20],l; scanf("%d",&n); for(i=n;i;i/=2)r++; l=r;//printf("%d\n",r); for(i=n;i;i/=2)d[--r]=i%2; //for(i=0;i<l;i++)printf("%d",d[i]);printf("\n"); r=0; for(i=1;i<l;i++){ a[r ]=a[r+1]=i+0; b[r ]=b[r+1]=i+1; c[r++]=1<<(l-i-1); c[...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132854/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132854/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> #include <math.h> int main() { long long n, i; scanf("%lld", &n); long long a[n]; long long sum = 0; for(i = 0; i <= n; i++){ scanf("%lld", &a[i]); sum = sum + a[i]; } long long int eda = 1, result = 1; if(n == 0 && a...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132898/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132898/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 アカウント名 */ #include <stdio.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; } char matrix[row][...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132948/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132948/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 Tarara */ #include <stdio.h> #include <stdlib.h> // height, widthの最大長+5 #define MAX_LENGTH 100 + 5 int exsitsBlackCellinRow(int row, int height, char **field); int exsitsBlackCellinCol(int col, int width, char **field); int main(void) { int height, width; // 場の横幅, 高さ char **field; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132999/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132999/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 melo */ #include <stdio.h> #include <stdlib.h> int main(void){ int row_N,col_N,i,j;//整数の箱を4つ用意する char **arrayc; int *row_TorF, *col_TorF; scanf("%d %d",&row_N,&col_N);//行と列を代入 arrayc=(char**)calloc(row_N,sizeof(char*)); if(arrayc==NULL){ fprintf(stderr,"memory allocation error....
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133040/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133040/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 potter0723sw */ #include <stdio.h> #include <stdlib.h> int main(void){ int height, width, i, j, rowblack[100]={0}, colblack[100]={0}; char cell[100][100]; scanf("%d %d", &height, &width); for(i=0; i < height; i++){//マスの入力を受け取る for(j=0; j < width; j++){ scanf(" %c", ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133084/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133084/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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.c Grid Compression dada__ */ #include<stdio.h> int main(void){ int row, col, i, j; scanf("%d %d", &row, &col); //行と列の数の入力 int judge_row[row], judge_col[col]; char grid[row][col]; //各マス目の記号の入力 for(i=0;i<row;i++){ for(j=0;j<col;j++){ scanf(" %c", &...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133127/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133127/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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.c Grid Compression dada__ */ #include<stdio.h> int main(void){ int row, col, i, j; scanf("%d %d", &row, &col); //行と列の数の入力 int judge_row[row], judge_col[col]; char grid[row][col]; //各マス目の記号の入力 for(i=0;i<row;i++){ for(j=0;j<col;j++){ scanf(" %c", &gr...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133170/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133170/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/*5_3 hightierra*/ #include <stdio.h> #define limit 100 int main(void){ int row,col,i,j; scanf("%d %d",&row,&col); int rowjudge[100]={0},coljudge[100]={0}; char matrix[row][col]; // 入力(初期化) for(i=0; i<row; i++){ for(j=0; j<col; j++){ scanf(" %c",&matrix[i][j]); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133213/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133213/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d%d", &h, &w); char g[h][w+1]; for (int i=0; i<h; i++) scanf("%s", g[i]); for (int i=0; i<h; i++) { int j=0; while (g[i][j] == '.' && j<w) j++; if (j==w) { for (int j=0; j<w; j++) g[i][j] = '0'; } } for (int i=0; i<w; i++) { int ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133257/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133257/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> int main() {int a,b,c,k=0,i=0,j,s=0; scanf("%d%d%d",&a,&b,&c); while (i*a<=c) {j=0; while (j*b<=c) {s=i*a+j*b; if(s==c) k=1; j++; } i++; } if(k==1) printf("YES"); else printf("NO"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13330/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13330/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(){ int N,W,i,j; char A[100][100]; scanf("%d %d", &N,&W); for(i=0;i<N;i++){ scanf("%s",A[i]); } int B[100]={0}; int C[100]={0}; for(i=0;i<N;i++){ for(j=0;j<W;j++){ if(A[i][j]=='#'){ B[i]=1; } } } for(i=0;i<W;i++){ for(j=0;j<N;j++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133350/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133350/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ // Your code here! int H,W,i,j; char a[101][101]; char Hmask[100] = {0}; char Wmask[100] = {0}; scanf("%d %d",&H,&W); for(i = 0; i < H; i++) { scanf("%s",&a[i]); } for(i = 0; i < H; i++) { for(j = 0; j < W && a[i][j] == '.'; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133394/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133394/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> int main() { int i, j, k,ip; int h_array[300], w_array[300]; for (i = 0; i < 300; i++) { scanf("%d %d", &h_array[i], &w_array[i]); if (h_array[i] == 0 && w_array[i] == 0) { ip = i; break; } } for ( k = 0; k < ip; k++) { for (i = 0; i < h_array[k...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133444/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133444/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n; while(1){ scanf("%d %d",&a,&b); if(a==0 && b==0)break; for(i=0;i<a;i++){ for(n=0;n<b;n++){ printf("#"); } printf("\n"); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133495/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133495/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[]) { while (1) { int h,w; scanf("%d %d",&h,&w); if(h==0 && w==0){ break; } int i,j; for (i=0; i<h; i++) { for(j=0;j<w;j++){ printf("#"); } pr...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133538/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133538/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){ 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_133589/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133589/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_133631/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133631/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,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_133675/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133675/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_133718/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133718/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int i,t; while(1){ scanf("%d %d", &h, &w); if(h==0 && w==0)break; for(i = 0;i < h;i++){ for(t = 0;t < w;t++){ printf("#"); } puts(""); } puts(""); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133761/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133761/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 = 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_133804/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133804/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 H,W,i,k; while(1) { scanf("%d%d",&H,&W); if(H == 0 && W == 0) { return 0; } for(i = 0;i < H;i++) { for(k = 0;k < W;k++) { printf("#"); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133848/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133848/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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", &H,&W); while( H != 0 || W != 0){ for( j=1; j<=H; j++){ for( i= 1; i<=W; i++){ printf("#"); } printf("\n"); } scanf("%d %d", &H,&W); printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133891/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133891/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,H,W,j; scanf("%d%d",&H,&W); while(H*H+W*W){ for(j=0;j<H;j++){ for(i=0;i<W;i++){ printf("#");} printf("\n");} printf("\n"); scanf("%d%d",&H,&W);} return 0;}
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133934/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133934/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) { unsigned int H = 1; unsigned int W = 1; unsigned int i; unsigned int j; while(H != 0 && W != 0) { 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"); } pri...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134027/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134027/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[301]; int w[301]; int i; int t; int u; int v; for( i=1;i<=300;i++){ scanf("%d %d",&h[i],&w[i]); if ((h[i] == 0) && (w[i] == 0))break; } for ( t = 1; t <= 300; t++) { if (i==t)break; for (v = 1; v <= h[t]; v++) { for (u = 1; u <= w[t]; u++) { printf("#");...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134070/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134070/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=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_134113/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134113/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; while(1){ scanf("%d %d",&H,&W); if(H == 0&& W == 0)break; for(int i = 0; i < H; i++){ for(int k = 0;k < W; k++){ printf("#"); } printf("\n"); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134164/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134164/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; 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_134214/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134214/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 %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_134258/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134258/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 lp(i,n) for(i=0;i<n;i++) int main(){ int i; int j; int h; int w; while(1){ scanf("%d %d", &h, &w); if(h == 0 && w == 0){break;} lp(i,h){ lp(j,w){ printf("#"); }printf("\n"); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134300/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134300/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <ctype.h> #include <stdlib.h> int main() { int H, W; int h, w; while (1) { scanf("%d%d", &H, &W); if (H == 0 && W == 0) break; for (h = 0; h < H; h++) { for (w = 0; w < W; w++) putchar('#'); putchar('\n'); } putc...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134388/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134388/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> int main(int argc, char *argv[]) { int h,w; char line[256]; while (1) { if (!fgets(line, sizeof(line), stdin)) { fprintf(stderr, "error input val\n"); return -1; } if (sscanf(line, "%d %d", &h, &w) != 2) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134430/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134430/source.c" target datalayout = "e-m:e-p270: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 H,W; int i; int 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_134474/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134474/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[10000], w[10000], i, j, k = 0; while(1){ scanf("%d %d", &h[k], &w[k]); if(h[k] == 0 && w[k] == 0) break; k++; } k = 0; while(h[k] != 0 && w[k] != 0){ for(i = 1; i <= h[k]; i++){ for(j = 1; j <= w[k]; j++){ printf("#"); } pri...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134517/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134517/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m; while(1){ scanf("%d%d",&n,&m); if(n==0)return 0; for(int i=0;i<n;i++){ for(int j=0;j<m;j++) printf("#"); printf("\n"); } printf("\n"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134560/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134560/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> int main() { int alt, anch, t, i; while(1) { scanf("%d %d", &alt, &anch); if(alt == 0 && anch == 0) break; for(t = 0;t < alt;t++) { for(i = 0;i < anch;i++) printf("#"); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134603/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134603/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int H,W; while(1){ scanf("%d %d",&h,&w); if(h==0&&w==0) break; for(H=0;H<h;H++){ for(W=0;W<w;W++){ printf("#"); } printf("\n"); } printf("\n"); }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134647/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134647/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d %d", &x, &y); while (x != 0 || y != 0) { for (int i = 0; i < x; i++) { for (int j = 0; j < y; j++) { printf("#"); } printf("\n"); } printf("\n"); s...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134690/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134690/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W, H; while(1){ scanf("%d %d", &H, &W); if((H==0)&&(W==0)){ break; } for(int h=0; h<H; h++){ for(int w=0; w<W; w++){ printf("#"); } printf("\n"); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134733/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134733/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("%c",'#'); } printf("\n"); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134791/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134791/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N 100000 int main(void){ int a, b, p[N], q[N],i=0, j=0; int k, l; while(scanf("%d %d", &a, &b), a!=0 && b !=0){ p[i] = a; q[i] = b; i++; } while(j<i){ for(k=1; k<=p[j]; k++){ for(l=1; l<=q[j]; l++){ printf("#"); } printf("\n"); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134834/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134834/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 height, width; int i, j; int main() { for(;;){ scanf("%d %d", &height, &width); if (height == 0 && width == 0) break; for (i = 0; i < height; i++) { for (j = 0; j < width; j++) { printf("#"); } printf("\n"); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134878/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134878/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cmp[100010],r=0,f[10010]={0}; int Ta[110],To[1010],Co[1010],Nt[1010]; void sdfs(int e,int s,int k,int *ta,int *to,int *nt,int *id){ int i; f[s]++; for(i=ta[s];i+1;i=nt[i]){ if(i<e&&k<0&&f[to[i]]<0||i>=e&&k>=0&&!f[to[i]])sdfs(e,to[i],k,ta,to,nt,id); } k<0?(id[r++]=s):(cmp[s]=k); } voi...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134920/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134920/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @r = dso_local local_unname...
#include<stdio.h> int MIN(int a,int b){return a<b?a:b;} int main(){ int n,m=1e9,i,d[2][300010]={}; char s[300010]; scanf("%d %s",&n,s); for(i=0;i<n;i++)d[0][i+1]=d[0][i]+(s[i ]=='W'); for(i=n;i ;i--)d[1][i-1]=d[1][i]+(s[i-1]=='E'); for(i=0;i<n;i++)m=MIN(m,d[0][i]+d[1][i+1]); //for(i=0;i<=n;i++)printf("%...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134971/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134971/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 asc(const void *a,const void *b); int main(void) { int N,M,count1,count2,room1,max,min,move,pa; scanf("%d %d",&N,&M); int X[M],def[M-1]; for(count1=0;count1<M;count1++){ scanf("%d",&X[count1]); } qsort(X,sizeof(X)/sizeof(int),sizeof(int),asc); max=X[M-1]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135020/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135020/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(void) { int N,M,ans=0; scanf("%d %d",&N,&M); int X[M+1]; for(int i=0;i<M;i++){ scanf("%d",&X[i]); } qsort(X,M,sizeof(int),comp); for(int l=0;l<M-1;l++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135071/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135071/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> int cmp(const void *a, const void *b) { return *(int*)a - *(int*)b; } int main() { int N, M, *X, *diff, ans = 0; if (scanf("%d %d%*c", &N, &M) == -1) return -1; X = (int *)malloc(sizeof(int) * M); diff = (int *)malloc(sizeof(int) * (M - 1...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135114/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135114/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 rep(i,n) for(int i=0; i<(int)(n); i++) int W, H; int a[101][101]; int cnt[101][101]; typedef struct{int x; int y;} P; P que[10101]; int qf, qb; int solve() { int ans = 0; rep(i, H) rep(j, W) cnt[i][j] = -1; qb = 0; qf = 0; cnt[0][0] = 1; que[qb].x = 0, que[qb++].y = 0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135158/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135158/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.P = type { i32, i32...
#include<stdio.h> #include<string.h> int main(void){ int f = 0, i,o, j, l, z, q, k[6], s[100][6], n[6], n2[6]; char c; scanf("%d",&q); for (z = 0; z < q; z++){ for (i = 0; i < 6; i++){ scanf("%d", &s[z][i]); n[i] = i; } } for (i = 0; i < q; i++){ for (z = 0; z < q; z++){ if (i != z){ for (j = 0...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135200/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135200/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <math.h> typedef struct dice{ int face[6]; }dice; void rotate(dice*d,char dir) { int temp; switch(dir){ case 'N': temp=d->face[0]; d->face[0]=d->face[1]; d->face[1]=d->face[5]; d->face[5]=d->face[4]; d->face[4]=temp; break; case 'E': temp=d->face[0]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135259/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135259/source.c" target datalayout = "e-m:e-p270: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.dice = type { [6 x ...
#include <stdio.h> int main () { int n;//サイコロの個数 int dice[100][7]; int i,j,k,l; scanf("%d",&n); for(i=0;i<n;i++) { for(j=1;j<7;j++) { scanf("%d",&dice[i][j]); } } //処理 for (l=1;l<n;l++) { for (i=0;i<6;i++) { if (dice[0][1]==dice[l][1]) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135309/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135309/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#define _CRT_SECURE_NO_WARNINGS #define _USE_MATH_DEFINES #include<stdio.h> typedef struct { int d0; int d1; int d2; int d3; int d4; int d5; }DICE; int DiceRoll(DICE[], int); void Dice(char p, DICE[], int); int Count(DICE[], int); int main() { DICE d[100]; int i = 0, flg = 0, n; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135352/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135352/source.c" target datalayout = "e-m:e-p270: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.DICE = type { i32, ...
#include <stdio.h> void rotate_S(int minase_inori[6]) { int hayami_saori = minase_inori[0]; minase_inori[0] = minase_inori[4]; minase_inori[4] = minase_inori[5]; minase_inori[5] = minase_inori[1]; minase_inori[1] = hayami_saori; } void rotate_NES(int kugimiya_rie[6]) { int kitamura_eri = kugimiya_rie[1]; kugim...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135402/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135402/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 2275: Fox Number // 2017.12.11 bal4u@uu #include <stdio.h> #include <string.h> #include <math.h> #define MAX 707106 // sqrt(10^12/2) char tbl[MAX+1]; int sz; // max sz = 57084, prime[0] = 2, prime[57083] = 707099 int prime[57100] = { // prime[146] = 853, prime[147] = 857 2, 3, 5, 7, 11, 13, 17,...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135460/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135460/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @prime = dso_local local_un...
#include<stdio.h> int p[100001]; long dis[100001]={}; int dfs(int x){ if(p[x]==x) return x; return dfs(p[x]); } long kyori(int x,long k){ if(p[x]==x) return k; return kyori(p[x],dis[x]+k); } int main(){ int n,m,i,l,r,x,y; long d,d1,d2; scanf("%d %d",&n,&m); for(i-0;i<n+1;i++) p[i]=i; f...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135525/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135525/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @dis = dso_local local_unna...
#include <stdio.h> typedef long long ll; #define rep(i,n) for(int i=0; i<(int)(n); i++) int main() { int N,X,T; scanf("%d%d%d", &N,&X,&T); int ans; ans=(N+X-1)/X; ans=ans*T; printf("%d", ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135569/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135569/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,X,T,a,b,c; scanf("%d%d%d",&N,&X,&T); a=N/X; b=N%X; if(b!=0) c=(a+1)*T; else c=a*T; printf("%d\n",c); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135619/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135619/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x,t; int a; scanf("%d %d %d",&n,&x,&t); a=n/x; if(n%x!=0){ a=a+1; } printf("%d\n",a*t); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135662/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135662/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,X,T,x; scanf("%d %d %d",&N,&X,&T); x = N / X * T; int k = 0; k = N - N /X * X ; if(k == 0){ printf("%d\n",x); return 0; } if(k == 0 || k <= X){ k = T; printf("%d\n",x + k); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135712/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135712/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,X,T; scanf("%d %d %d",&N,&X,&T); printf("%d",(N+X-1)/X*T); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135756/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135756/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&a);scanf("%d",&b);scanf("%d",&c); if (a%b==0){ printf("%d", (a/b)*c); } else printf("%d", ((a/b)+1)*c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135806/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135806/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,color[100002][2]; int ans[100002][2]={0}; int i,j,home,away; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d %d",&color[i][0],&color[i][1]); ans[color[i][0]][0]++; ans[color[i][1]][1]++; } for(i=0;i<n;i++){ home = n-1 + ans[color[i][1]][0]; away = 2*(n-1)-home; print...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13585/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13585/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ...