Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
/* 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_133189/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133189/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 field[102][102]; for(int i=0; i<h; i++) scanf("%s", field[i]); int rows[101] = {0}; int columns[101] = {0}; int i, j; for(i=0; i<h; i++){ for(j=0; j<w; j++) if(field[i][j] == '#') break; if(j == w) rows[++...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133231/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133231/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,l,r) for((i)=(l);(i)<(r);(i)++) int main(){ int i,j,h,w; scanf("%d%d",&h,&w); char s[h][w]; int row[h],col[w]; rep(i,0,w)col[i]=1; rep(i,0,h){ scanf("%s",s[i]); row[i]=1; rep(j,0,w){ if(s[i][j]!='.'){ col[j]*=0;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133275/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133275/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 r,c,i,j,ok; char a[1000][1000]; scanf("%d %d",&r,&c); for(i=0;i<r;i++) scanf("%s", a[i]); for(i=0;i<r;i++){ ok=1; for(j=0;j<c;j++) if(a[i][j]!='.' && a[i][j]!=' ') ok=0; if(ok==1) for(j=0;j<c;j++) a[i][j]=' '; } for(j=0;j<c;j++...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133325/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133325/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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, 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("#"); } printf("\n"); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133419/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133419/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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",&W,&H); if(H==0&&W==0)break; 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_133462/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133462/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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("#"); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133505/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133505/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 = 0,w = 0,i = 0,j = 0; scanf("%d %d",&h,&w); while(h != 0 && w != 0){ // scanf("%d %d",&h,&w); /* if( h == 0 && w == 0){ puts(""); break; }else { */ for( i = 1;i <= h;i++){ for( j = 1;j <= w; j++){ printf("#");...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133549/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133549/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> #define MAX 301 int main(void) { int H, W; char buf[MAX]; for(; scanf("%d %d", &H, &W), H || W; printf("\n")) { for(memset(buf, '#', W), buf[W] = 0; H--; printf("%s\n", buf)); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133642/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133642/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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_133686/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133686/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,h, w; while(1){ scanf("%d %d", &h, &w); if(w == 0 && h == 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_133729/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133729/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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, r, g, b, w, count; scanf("%d", &t); for (int i = 0; i < t; i++) { count = 0; scanf("%d %d %d %d", &r, &g, &b, &w); if (r % 2 == 0) count++; if (g % 2 == 0) count++; if (b % 2 == 0) count++; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13378/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13378/source.c" target datalayout = "e-m:e-p270:32:32-p271: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() { for (;;) { int w, h; scanf("%d %d", &h, &w); if (w == 0 && h == 0) break; int x, y; for (y = 0; y < h; y++) { for (x = 0; x < w; x++) { printf("#"); } printf("\n"); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133837/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133837/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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, 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++) { printf("#"); } printf("\n"); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133880/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133880/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,k,H,W; while (1){ scanf("%d %d",&H,&W); if (H != 0 && W != 0){ for (j = 0; j < H; j++){ for (i = 0; i < W; i++){ printf("#"); } printf("\n"); } printf("\n"); } else { break; } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133923/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133923/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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); /* H??¨W?????\??? */ if(h==0&&w==0)break; /* H??¨W????????????0??????????????¢?????????????????? */ for(i=0;i<h;i++){ /* ???H????????? */ for(j=0;j<w;j++){ /* ?¨?W????????? */ printf("#"); /* H??W?????§?????...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133967/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133967/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 = 1, W = 1, 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_134009/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134009/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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; H = 1; W = 1; 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"); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134052/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134052/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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; 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++) putchar('#'); printf("\n"); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134160/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134160/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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[10000],i=0,k=0,j,l; while(k==0){ scanf("%d %d",&a[i],&a[i+1]); if(a[i]==0 && a[i+1]==0){ k=1; }else{ i=i+2; } } l=i/2; int x,y; for(j=1;j<=l;j++){ for(x=1;x<=a[2*j-2];x++){ for(y=1;y<=a[2*j-1];y++){ printf("#"); } printf("\n"); } printf("...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134203/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134203/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,a,b; 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_134247/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134247/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,H, W; while (1) { scanf("%d %d", &H, &W); for (h = 1; h <= H; h++) { for (w = 1; w <= W; w++) { printf("#"); } printf("\n"); } if (H == 0 && W == 0) break; printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134290/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134290/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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(scanf("%d %d",&h,&w),h+w){ 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_134340/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134340/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,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"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134384/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134384/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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); for(i=0;i<h;i++) { for(j=0;j<w;j++) { if(h!=0 && w!=0)printf("#"); } if(h!=0 && w!=0)printf("\n"); } if(h!=0 && w!=0)printf("\n"); }while(h!=0 && w!=0); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134434/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134434/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 tate,yoko; int x,y; while(1){ scanf("%d %d",&x,&y); if(x == 0 && y == 0) break; else for(tate = 0; tate < x; tate++){ for(yoko = 0; yoko < y; yoko++){ printf("#"); } printf("\n"); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134478/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134478/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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_134520/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134520/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134579/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134579/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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=0; int W=0; do{ 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("#"); } puts(""); } puts(""); }while(H*W!=0); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134621/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134621/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 = 0; int w = 0; while (1) { scanf("%d %d", &h, &w); if (h == 0 && w == 0) break ; int i; int j; j = 0; while (j < h) { i = 0; while (i < w) { printf("%c", '#'); i++; } printf("%c", '\n'); j++; } printf("%c", '\n'); } return...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134665/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134665/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 c = 0; int i,q; while(c == 0){ scanf("%d", &a); scanf("%d", &b); if(a==0){ if(b==0){ break;}} for(i=1;i<=a;i++){ for(q=1;q<=b;q++){ printf("#"); } printf("\n"); } printf("\n");...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134715/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134715/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 height, width; int i, r; while (1) { scanf("%d %d", &height, &width); if (height == 0 && width == 0) break; for (i = 0; i < height; i++) { for (r = 0; r < width; r++) { printf("#"); } printf("\n"); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134766/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134766/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134809/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134809/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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, a, b; while(1){ scanf("%d%d", &a, &b); if( a == 0 && b == 0 ){ break; } for( h = 0; h < a; h++ ){ for( w = 0; w < b; w++ ){ printf("#"); } printf("\n"); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134852/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134852/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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=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_134896/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134896/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 n = 0; char str[300000] = {}; long i = 0; long letnum = 0; long height = 0; long highest = 0; long highi = 0; long cnt = 0; scanf("%ld",&n); scanf(" %s",str); for(i=0;i<n;i++){ if(str[i] == 'W'){ height--; }else if(str[i] == 'E'){ height++; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134946/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134946/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){ return *(int*)a-*(int*)b; } int main(void){ int n,m,i,x[100000],y[100000],ans=0; scanf("%d%d",&n,&m); for(i=0;i<m;i++) scanf("%d",&x[i]); qsort(x,m,sizeof(x[i]),asc); for(i=1;i<m;i++){ y[i-1] = x[i]-x[i-1]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134997/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134997/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> #include<stdint.h> #include<inttypes.h> #include<string.h> typedef int32_t i32; typedef int64_t i64; static i64 read_int(void){int prev='\0';int c=getchar();while(!('0'<=c && c<='9')){prev=c;c=getchar();}i64 res=0;while('0'<=c && c<='9'){res=10*res+c-'0';c=getchar();}return prev==...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135039/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135039/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @radix_type_max = dso_local...
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #define MOD 1000000009 #define MAX(a,b) (a>b?a:b) #define MAX3(a,b,c) MAX(a,MAX(b,c)) #define MIN(a,b) (a<b?a:b) #define MIN3(a,b,c) MIN(a, MIN(b,c)) typedef long long lli; typedef unsigned short int usi; typedef struct { int a; int d...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135082/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135082/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <inttypes.h> #include <string.h> #include <math.h> int compare (const void *a, const void *b) { if(*(int64_t *)a - *(int64_t *)b < 0) return 1; if(*(int64_t *)a - *(int64_t *)b > 0) return -1; return 0; } int main (int arg...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135125/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135125/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 - ITP11_1_d Date: 20181025 Author: Mikoron * ♡mikoiwate351♡ */ #include<stdio.h> #include<string.h> #define DMAX 101 #define TOP 1 #define FRONT 2 #define RIGHT 3 #define LEFT 4 #define BACK 5 #define BOTTOM 6 typedef struct { short suf[7]; } dice_state_t; void show_surface(dice_state_t *dice, sh...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135176/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135176/source.c" target datalayout = "e-m:e-p270: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_state_t = type...
//============================================================================ //dice1 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> //---------------------------------------------------------------------------- enum {pos1, pos2, pos3, pos4, pos5, pos6, posEND}; enum {posT, posS, posE, p...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135219/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135219/source.c" target datalayout = "e-m:e-p270: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.TCycoro = type { [6...
#include <stdio.h> #include <math.h> long int max(long int a, long int b); long int min(long int a, long int b); int main(void) { int t; scanf("%d", &t); for (int i = 0; i < t; i++) { long int a, b, c, r, ans, maxab, minab; scanf("%ld %ld %ld %ld", &a, &b, &c, &r); long int tt, ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13527/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13527/source.c" target datalayout = "e-m:e-p270:32:32-p271: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, char * argv[]) { 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]==...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135312/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135312/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> char str[110]; int i,j,k,l,m,n; int n,e,s,w; int a[105][7],b[105][7]; int t; void input() { scanf("%d",&n); for(j=0;j<n;j++){ for(i=0;i<6;i++){ scanf("%d",&a[j][i+1]); b[j][i+1] = a[j][i+1]; // printf("a[%d] = %d\n",i+1,a[i+1]); } } } void N() { t...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135356/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135356/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cmp_ll (const void *ap, const void *bp) { long long a = *(long long *)ap; long long b = *(long long *)bp; if (a < b) { return -1; } if (a > b) { return 1; } return 0; } int main () { int n = 0; int p = 0; long long a[200000] = {}; in...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1354/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1354/source.c" target datalayout = "e-m:e-p270:32:32-p271: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...
// AOJ 2275: Fox Number // 2017.12.11 bal4u@uu #include <stdio.h> #include <string.h> #include <math.h> #define MAX 1000005 // sqrt(1e12) char tbl[MAX+1]; int sz; // max sz = 78500, prime[0] = 2, prime[78499] = 1000005 int prime[79000] = { // prime[168] = 1009, prime[169] = 1013, 1009^2 = 1018081 2, 3, ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135457/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135457/source.c" target datalayout = "e-m:e-p270: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> struct node{ int parent; long int distance; }; int root(int i, struct node *x){ int k = i; while(x[k].parent != k){ k = x[k].parent; } return k; } long int get_distance(int i, struct node *x){ int k = i; long int d = 0; while(x[k].parent != k){ d += x[k].distance; k = x...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135521/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135521/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { i32, ...
#include <stdio.h> int main(void){ int n,x,t; setbuf(stdout,NULL); scanf("%d%d%d",&n,&x,&t); if(n%x==0){ printf("%d",(n/x)*t); }else{ printf("%d",(n/x)*t+t); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135565/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135565/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @stdout = external local_un...
#include<stdio.h> #include<math.h> int main(){ int n, x, t; scanf("%d%d%d", &n, &x, &t); printf("%.0f\n", ceil(n*1.0/x*1.0)*t); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135615/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135615/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,ans=0; scanf("%d%d%d", &n, &x, &t); if(n%x){ ans = ((n/x)+1) *t; } else { ans = n/x *t; } printf("%d\n", ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135659/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135659/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,y,z=0; scanf("%d" "%d" "%d",&n,&x,&y); while(n>0){ n=n-x; z=z+y; } printf("%d",z); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135701/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135701/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,ans; scanf("%d %d %d",&n,&x,&t); if (n%x==0) ans = (n/x) * t; else ans = ((n/x) + 1) * t; printf("%d\n",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135752/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135752/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 _USE_MATH_DEFINES #include <math.h> #include <stdlib.h> #include <sys/stat.h> #include <string.h> int N_in; int X_in; int T_in; int out; int main(int argc, char* argv[]){ int i,j; scanf("%d %d %d",&N_in, &X_in, &T_in); out = N_in/X_in; if(N_in % X_in >=1){ out ++; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135802/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135802/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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; scanf("%d%d%d",&n,&x,&t); int ans = 0; while(n > 0){ n -= x; ans += t; } printf("%d\n",ans); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135846/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135846/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> struct node { int ho,aw; }; /*inline void fastRead_int(int &x) { register int c = getchar_unlocked(); x = 0; int neg = 0; for(; ((c<48 || c>57) && c != '-'); c = getchar_unlocked()); if(c=='-') { neg = 1; c = getchar_unlocked(); } for(; c>47 && ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13589/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13589/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { i32, i3...
#include <stdio.h> int main(void) { int m, j, b, a, c; scanf("%d" "%d" "%d", &m, &j, &b); a = b - m; if(a > 0){ c = j - a; if(c < 0){ printf("NA\n"); } else{ printf("%d\n", a); } } else{ printf("0\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135932/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135932/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int n; scanf("%d",&n); for(int i=1;i<10;i++){ for(int j=1;j<10;j++){ if(i*j==n){ printf("Yes"); return 0; } } } printf("No"); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135983/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135983/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* ex3_4 key_tree */ #include <stdio.h> // Nを1-9で割った商が1-9かつ余りが0になればよい int main(void) { int N; scanf("%d", &N); int i = 1; // 1-9まで調べる while(i < 10){ int quotient = N / i; int remainder = N % i; //商が1-9かつ余り0 if(quotient >= 1 && quotient <= 9 && remainder == 0){ printf("Yes\n"); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136025/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136025/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* ex3_4 potter0723sw */ //方針:Nを1〜9で割ってみて商が1〜9かつ余りが0か調べる #include <stdio.h> int main(void) { int number,quotient,remainder,d;//dはdevide scanf("%d", &number); d = 1; while(d <= 9){//1~9まで調べる quotient = number / d;//商 remainder = number % d;//余り if(quotient >= 1 && quotient <= 9 && remainder == 0){//商が...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136069/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136069/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* ex3_4 kanon */ #include <stdio.h> int main(void) { //与えられる値を入れる変数を宣言 int number; //変数に値を入力する scanf("%d", &number); //九九に含まれる値全てについてNと一致しないか調べる //一致すればflagを1にする、flagを使って答えの出力の場合分けをする int flag=0; for(int i=1;i<=9;i++){ for(int j=1;j<=9;j++){ if(i*j==number){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136111/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136111/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/*3.4 hightierra*/ #include <stdio.h> int main(void){ //変数Nを定義、値を入力 int N; scanf("%d",&N); int i,j; //for文のカウンタ int judge = 0; //九九で表せるかの判定 /*二重ループで九九にあるかを判定*/ for(i=1; i<10; i++){ for(j=1; j<10; j++){ if(N == i*j){ judge = 1; //表せたらjudgeを1に break; //内側for文を抜ける } }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136155/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136155/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,a,b,i; scanf("%d",&n); for(i=1;i<=9;i++){ a = n % i; b = n / i; if((a == 0) &&(b <= 9)){ printf("Yes\n"); return 0; } } printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136199/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136199/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,i,c=0; scanf("%d",&a); for(i=1;i<10;i++){ if((a%i==0)&&((a/i)<10))c=1; } c==1?printf("Yes"):printf("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136241/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136241/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int N,i,j; scanf("%d", &N); for(i=1;i<=9;i++){ for(j=1;j<=9;j++){ if(N==i*j){ puts("Yes"); return 0; } } } puts("No"); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136285/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136285/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 = 0; int flag = 0; int i,j = 0; scanf("%d",&a); for(i = 1 ; i < 10;i++){ for(j = 1;j < 10;j++){ if(i*j == a){ flag = 1; printf("Yes\n"); break; }else{ flag = 0; } } if(flag == 1) break; } if(flag == 0){ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136328/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136328/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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, n; scanf("%d", &n); for (a = 1; a <= 9; a++) { for (b = 1; b <= 9; b++) { if (a*b == n) { puts("Yes"); return 0; } } } puts("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136371/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136371/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int N; int flag=0; scanf("%d",&N); for(int i=1;i<=9;i++) { if(N%i==0 && 1<=N/i && N/i<=9) { flag=1; } } if(flag==1) { printf("Yes"); } else printf("No"); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136414/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136414/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 num; int count=0; int check=0; scanf("%d",&num); for(int i = 1; i <= 9; i++){ if(check==1)break; for(int j = 1; j <= 9; j++){ if(i*j==num) { printf("Yes\n"); check = 1; break; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136458/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136458/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> int main() { int input; int i,j; scanf("%d",&input); if(input<10){ printf("Yes\n"); } else if(input>81){ printf("No\n"); } else if(1){ j = 0; for(i=2;i<=9;i++){ if( (input%i)==0 && (input/i)<10 ){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136500/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136500/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int N; int flag; int i,j; flag=0; scanf("%d",&N); for(i=1; i<10; i++){ for(j=1; j<10; j++){ if(i*j == N) flag=1; }if(flag==1) break; } if(flag==1) printf("Yes\n"); else printf("No\n"); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136551/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136551/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #define max(a, b) (((a) > (b)) ? (a) : (b)) /* 2個の値の最大値 */ #define min(a, b) (((a) < (b)) ? (a) : (b)) /* 2個の値の最小値 */ #define ENTER printf("\n") /* 改行プリント */ int DBG = 1; /* デバッグプリント 提出時は0 */ /* main **************************...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136595/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136595/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @DBG = dso_local local_unna...
#include <stdio.h> int main(void) { int W[15], L[15], r; int i, j, n, max; char t[15]; while (1){ scanf("%d", &n); if (n == 0){ break; } for (i = 0; i < n; i++){ scanf(" %c", &t[i]); W[i] = 0; L[i] = 0; for (j = 0; j < n - 1; j++){ scanf ("%d", &r); if (r == 0){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136696/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136696/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> void merge_sort(long long x[], int n) { static long long y[51] = {}; if (n <= 1) return; merge_sort(&(x[0]), n/2); merge_sort(&(x[n/2]), (n+1)/2); int i, p, q; for (i = 0, p = 0, q = n/2; i < n; i++) { if (p >= n/2) y[i] = x[q++]; else if (q >= n) y[i] = x[p++]; else y[i] = (x[p] < x[q...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136746/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136746/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @merge_sort.y = internal un...
#include<stdio.h> #include<string.h> #include<stdlib.h> #define SORT(a,n) qsort(a,n,sizeof(int),intcmp) #define s(n) scanf("%d",&n) #define sc(n) scanf("%c",&n) #define sl(n) scanf("%I64d",&n) #define sf(n) scanf("%lf",&n) #define...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13679/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13679/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 SIZE 11 int main(void) { char s1[SIZE], s2[SIZE], s3[SIZE]; int a, b; scanf("%s %s %s", s1, s2, s3); a = strlen(s1); b = strlen(s2); if (s1[a-1] == s2[0] && s2[b-1] == s3[0]) printf("YES"); else printf("NO"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136832/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136832/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 = 0, j = 0; char s1[11], s2[11], s3[11], a, b; scanf("%s %s %s", s1, s2, s3); while (i < 10 && s1[i] != '\0') a = s1[i++]; while (j < 10 && s2[j] != '\0') b = s2[j++]; if (a == s2[0] && b == s3[0]) printf("YES\n"); else printf("NO\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136876/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136876/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() { char a[105], b[105], c[105]; int len_a, len_b, len_c; scanf("%s %s %s", a, b, c); len_a = strlen(a); len_b = strlen(b); //len_c = strlen(c); if ((a[len_a - 1] == b[0]) && b[len_b - 1] == c[0]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136919/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136919/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> //絶対値 long long int change_plus(long long int a) { if (a < 0) { return -a; } if (a >= 0) { return a; } } //大小比較(大) long long int big(long long int a, long long int b) { if (a >= b) { return a; } else { return b; } } //大小比較(小) long long int small(long lo...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136962/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136962/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { char a[100], b[100], c[100]; int i, j; scanf("%s %s %s", a, b, c); for(i=0; a[i]!='\0'; i++); for(j=0; b[j]!='\0'; j++); if(a[i-1]==b[0] && b[j-1]==c[0]) printf("YES\n"); else printf("NO\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137004/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137004/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { char A[11], B[11], C[11]; int i,j; scanf("%s", A); scanf("%s", B); scanf("%s", C); for (i = 0; A[i] != '\0';i++) { } for (j = 0; B[j] != '\0'; j++) { } if (A[i-1]==B[0]) { if (B[j - 1] == C[0]) { printf("YES"); } else { printf("NO"); } } else { printf("NO...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137048/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137048/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> int main() { char A[20], B[20], C[20]; scanf("%s %s %s", A, B, C); int la = strlen(A), lb = strlen(B); if (A[la - 1] == B[0] && B[lb - 1] == C[0]) { printf("YES\n"); } else { printf("NO\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137099/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137099/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> char str[3][15]; int main() { int i; for (i = 0; i < 3; i++) { scanf(" %s",str[i]); } if (str[0][strlen(str[0]) - 1] == str[1][0] && str[1][strlen(str[1]) - 1] == str[2][0]) { printf("YES\n"); } else { printf("NO\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137141/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137141/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 num; while(~scanf("%d",&num)) { int c; c=num/3; if(c>0) printf("%d\n",c); else printf("0\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137228/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137228/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int N; scanf("%d", &N); if(N % 3 == 0) printf("%d\n", N/3); if(N % 3 == 1) printf("%d\n", (N-1)/3); if(N % 3 == 2) printf("%d\n", (N-2)/3); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137365/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137365/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
//set many funcs template #include<stdio.h> #include<string.h> #include<stdlib.h> #include<stdbool.h> #include<time.h> #define inf 1072114514 #define llinf 4154118101919364364 #define mod 1000000007 #define pi 3.1415926535897932384 int max(int a,int b){if(a>b){return a;}return b;} int min(int a,int b){if(a<b){return a...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137451/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137451/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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; scanf("%d %d", &n, &i); printf("%d\n", n-i+1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137509/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137509/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> //scanf("%d",&x); //printf("%d",x); //for(i=0;i<N;i++){ } //if( == ){ }else{ } //while( ){ } /* int N, i; int H[100]; scanf("%d", &N); for (i = 0; i < N; i++) scanf("%s", &H[i]); */ int main() { int i, N...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137552/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137552/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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; if(scanf("%d %d", &n, &i) == 1); printf("%d", n - i + 1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137596/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137596/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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; scanf("%d%d",&n,&i); printf("%d",n-i+1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137639/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137639/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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; scanf("%d %d",&N,&i); printf("%d\n",N-i+1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137682/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137682/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int n,i; scanf("%d", &n); scanf("%d", &i); printf("%d\n", n-i+1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137732/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137732/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int N, i; scanf("%d %d", &N, &i); printf("%d\n", N - i + 1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137776/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137776/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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",a-b+1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137819/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137819/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,f,g,best,point=0; char moji[100]={0}; int count[100]={0}; int flag; scanf("%d",&N); char M[100][100]; for(i=0;i<3;i++){ scanf("%s",&M[i]); } /* for(i=0;i<3;i++){ printf("%c\n",M[i][3]); } */ for(i=0;i<N;i++){//N文字を1文字ずつ char moji[100]={0}; int...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137862/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137862/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> #define NEW(p,n){p=malloc((n)*sizeof(p[0]));if(p==NULL){printf("not enough memory\n");exit(1);};} //pの型の変数n個の要素分のメモリを確保し、そのアドレスをpに代入するマクロ #define INFTY 999999 //char型のポインタ(=配列と意味は同じ)をString型と定義 typedef char* String; //文字列の長さを求める関数 int string_len(String str){ int len=0; w...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137905/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137905/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 swap(type, x, y) do{ type t = x; x = y; y = t; }while(0) int main(){ int n; scanf("%d", &n); int v[55]; for(int i=1; i<=n; i++) scanf("%d", v+i); for(int i=1; i<n; i++) for(int j=i+1; j<=n; j++){ if(v[i] > v[j]) swap(int, v[i], v[j]); } double ans = (double)v[...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137949/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137949/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,p[6],i,l; scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); p[0]=a+b*c; p[1]=a*(b+c); p[2]=a*b*c; p[3]=(a+b)*c; p[4]=(a*b)+c; p[5]=a+b+c; l=p[0]; for(i=0;i<6;i++) { if(p[i]>=l) l=p[i]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_138/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_138/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 cons...
//#define _CRT_SECURE_NO_WARNINGS = false //#include <stdlib.h>; #include <stdio.h>; //#include "Main.h" void bubbleSort1(int arr[], int len) // { int temp; int i, j; for (i = 0; i < len - 1; i++) {/* 外循环为排序趟数,len个数进行len-1趟 */ for (j = 0; j < len - 1 - i; j++) { /* 内循环为每趟比较的次数,第i趟比较len-i次 */ if (arr[j] >...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_138041/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_138041/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 compare(const void*a,const void *b){ if(*(int *)a>*(int *)b)return 1; return -1; } int main() { int n; scanf("%d",&n); int v[n]; for(int i=0;i<n;i++) scanf("%d",&v[i]); qsort(v,n,sizeof(int),compare); double ans=v[0]; for(int i=1;i<n;i++)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_138085/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_138085/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...