Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include <stdio.h> int egara(char c){ if(c=='S')return 0; if(c=='H')return 1; if(c=='C')return 2; if(c=='D')return 3; return 0; } char Egara(int n){ if(n==0)return 'S'; if(n==1)return 'H'; if(n==2)return 'C'; if(n==3)return 'D'; return 'S'; } int main(){ int n,a[4][13],i,j,m; char c,d; for(i=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214423/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214423/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i,n,s; int a[52]; char m; for (i = 0; i < 52; i++){ a[i] = 0; } scanf("%d", &n); for (i = 0; i < n; i++){ //scanf("%c %d",&m, &s); //入力の問題でwrong answerになってた.. scanf(" %c", &m); scanf("%d",&s); if (m == 'S'){ a[s - 1] = 1; }else if(m=='H')...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214467/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214467/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* ????????????S=0 ?????????H=1 ?????????C=2 ?????????D=3 */ #include <stdio.h> int main(void) { int n, i, j, rank, card[4][14] = {0}; char mark; scanf("%d",&n); for(i=0; i<n; i++) { scanf(" %c %d",&mark,&rank); switch(mark) { case 'S': card[0][rank] = 1; break; case 'H': card[1][rank] = 1...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214517/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214517/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 card[2]; int i, j, taro, mark, number, str[4][13] = { 0 }; scanf("%d", &taro); for (i = 0; i<taro ; i++){ scanf("%s %d", card, &number); if (strcmp(card, "S") == 0){ mark = 0; } else if (strcmp(card, "H") == 0){ mark = 1;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214560/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214560/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 CARD 52 #define CD 13 int main(void) { int n,a,c[CARD],i; char mark; for(i=0;i<CARD;i++){ c[i]=0; } scanf("%d", &n); for(i=0;i<n;i++){ scanf(" %c %d", &mark,&a); a -= 1; if(mark == 'S'){ c[a]=1; }else if(mark == 'H'){ c[a+CD]=1; }else if(mark == 'C'){ c[a+CD*2]=1; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214610/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214610/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, num; char c; int kind[4] = {'S', 'H', 'C', 'D'}; int data[4][13] = {}; int i, j; scanf("%d", &n); while (n--){ scanf(" %c %d", &c, &num); num--; switch(c) { case 'S': data[0][num] = 1; break; case 'H': data[1][num] = 1; break; case 'C': data[2][nu...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214654/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214654/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @__const.main.kind = privat...
#include <stdio.h> int main(){ int n; scanf("%d",&n); int C[14], D[14], H[14], S[14]; int i; for(i = 0; i < 14; ++i) { C[i] = 1; D[i] = 1; H[i] = 1; S[i] = 1; } char cardName; int cardNumber; for(i = 0; i < n; ++i) { scanf(" %c %d",&cardName ,&cardNumber); switch (cardN...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214698/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214698/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[4][13],i,j,k,x,n; char m; for(i=0;i<4;i++){ for(j=0;j<13;j++){ a[i][j]=0; } } scanf("%d",&n); for(k=0;k<n;k++){ scanf(" %c%d",&m,&x); if(m=='S')a[0][x-1]=1; else if(m=='H')a[1][x-1]=1; else if(m=='C')a[2][x-1]=1; else if(m=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214740/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214740/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, r, i, a[13][4] = { {0} }, x, y; char e; scanf("%d", &n); for (i = 0; i < n; i++) { scanf(" %c", &e); scanf("%d", &r); if (e == 'S') { a[r-1][0] = 1; } if (e == 'H') { a[r-1][1] = 1; } if (e == 'C') { a[r-1][2] = 1; } if (e == 'D') { a...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214784/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214784/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,t; int data[4][13]; char c; char gara[4]={'S','H','C','D'}; scanf("%d",&n); for (i=0;i<4;i++){ for (j=0;j<13;j++){ data[i][j]=0; } } scanf("%d",&n); for (i=0;i<n;i++){ scanf(" %c",&c); scanf("%d",&t); if (c=='S'){ data[0][t...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214827/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214827/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @__const.main.gara = privat...
#include <stdio.h> int toPosition(char, int); void printCard(int); int main(void) { int numberOfCards, i; int cards[52] = {}; scanf(" %d", &numberOfCards); for (i = 0; i < numberOfCards; i++) { char suit; int number; scanf(" %c %d", &suit, &number); cards[toPosition(suit, number)] = 1; } f...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214878/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214878/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int n,i,j,x,rank,S,H,C,D; char mark;//mark:文字 x:数字 int card[4][13]; int a[4][13]; scanf("%d",&n); for(i = 0; i < n; i++){ scanf(" %c%d",&mark,&rank); rank -= 1; switch(mark){//文字を数値に変換 case 'S': x = 0; break; case 'H': x...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214928/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214928/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 card[4][13] = { 0 }; char pattern; int number, n, i=0, j; scanf("%d", &n); for (i = 0; i < n;i++) { scanf(" %c %d", &pattern, &number); if (pattern == 'S') card[0][number - 1] = 1; else if (pattern == 'H') card[1][number - 1] = 1; el...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214971/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214971/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int t[4][14]; int n, i,j,c; char m, d; for(i=0; i < 4; i++){ for(j=0; j < 14; j++){ t[i][j]=0; } } scanf("%d", &c); for(i = 0; i < c; i++){ scanf("%c", &d); scanf("%c %d", &m, &n); if(m == 'S'){ t[0][n] = 1; } else if(m == 'H'){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215013/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215013/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 cards[4][13]; int i,j,x,b,c; char a; for (i=0;i<4;i++){ //?????????????????? for (j=0;j<13;j++){ cards[i][j]=0; } } scanf("%d",&x); getchar(); for (i=0;i<x;i++){ scanf("%c %d%*c",&a,&b); if (a=='S') c=0; else if (a=='H') c=1; else if (a=='C') c=2; else c=3; cards[c][b-1]=1; } fo...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215057/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215057/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int suit_to_int(char c) { switch (c) { case 'S': return 0; case 'H': return 1; case 'C': return 2; case 'D': return 3; default: return 9; } } char int_to_suit(int m) { switch (m) { case 0: return 'S'; case 1: return 'H'; case 2: return 'C'; case 3: re...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215107/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215107/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int n,i,j,num; char a,S[4]={'S','H','C','D'}; int cards[4][13]; for(i=0;i<4;i++){ for(j=0;j<13;j++){ cards[i][j]=0; } } scanf("%d",&n); for(i=0;i<n;i++){ scanf("%*c%c %d",&a,&num); switch (a){ case ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215150/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215150/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @__const.main.S = private u...
#include<stdio.h> int main() { int t[4][14]; int n, i,j,c; char m, d; for(i=0; i < 4; i++){ for(j=0; j < 14; j++){ t[i][j]=0; } } scanf("%d", &c); for(i = 0; i < c; i++){ scanf("%c", &d); scanf("%c %d", &m, &n); if(m == 'S'){ t[0][n] = 1; } else if(m == 'H'){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215194/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215194/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> /*手持ちのトランプから山札のトランプを計算する*/ /*S:0, H:1, C:2, D:3*/ int mark2num(char c); int kari(int a); int main(){ int i,j; int hand; char mark; int mark_n,num; int deck[4][13]={0}; scanf("%d",&hand); for(i=0; i<hand; i++){ (void)getchar(); scanf("%c %d",&mark,&num); mark_n = mark2num(mark); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215237/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215237/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,a,b,month[14][5],x,y; char d; scanf("%d\n",&a); for(y=1;y<=4;y++){ for(x=1;x<=13;x++){ month[x][y]=0; } } for(i=1;i<=a;i++){ scanf("%c %d\n",&d,&b); if(d=='S'){ month[b][1]=1; } if(d=='H'){ month[b][2]=1; } if(d=='C'){ month[b][3]=1; } if(d=='D'){ month[b][4]=1; } } for(i=1;i<=13;i+...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215280/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215280/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 6-2 #include<stdio.h> int main(void) { int repeatNumber = 0; scanf("%d", &repeatNumber); //printf("%d\n", repeatNumber);//デバック用 int spade[13] = {0}; int heart[13] = {0}; int chulab[13] = {0}; int dia[13] = {0}; char judge1= 'A'; int judge2 = 0; for (int i = 0; i < repeatNumber; i++) { scanf(" %c %d",...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215323/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215323/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 t,c; int abc[52],a,b,d; for(a=0;a<52;a++){ abc[a]=0; } scanf("%d",&a); for(b=0;b<=a;b++){ scanf("%c %d%c",&t,&d,&c); switch(t){ case 'S': abc[d-1]=1; break; case 'H': abc[d+12]=1; break; case 'C': abc[d+25]=1; break; case 'D': a...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215374/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215374/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,k; int min,max; scanf("%d %d %d",&a,&b,&k); int num1=a+k-1; int num2=b-k+1; int num3=a+k; if(b>=num1){ min=num1; }else if(b<=num1){ min=b; } if(num2>=num3){ max=num2; }else if(num2<=num3){ max=num3; } for(int loop=a;loop<=min;loop++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215431/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215431/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,k,i; scanf("%d%d%d",&a,&b,&k); for(i=a;i<=b;i++){ if(i<a+k||i>b-k) printf("%d\n",i); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215475/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215475/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,k,i; scanf("%d %d %d",&a,&b,&k); for(i=a;i<=b;i++){ if(i<a+k||i>b-k){ printf("%d\n",i); } else{ continue; } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215518/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215518/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 (x<y) return(x); else return(y); } int max(int x,int y) { if (x<y) return(y); else return(x); } int main() { int a,b,k,i; scanf("%d%d%d",&a,&b,&k); for (i=a;i<=min(b,a+k-1);i++) printf("%d\n",i); for (i=max(a+k,b-k+1);i<=b;i++) printf("%d\n",...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215569/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215569/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int culc(int c,int b,int a){ int price = 0; price += (a/5)*1520+(a%5)*380; price += (b/4)*1870+(b%4)*550; price += (c/3)*2244+(c%3)*850; return price; } int main(void) { int g,i,j,k,min,t; while(scanf("%d",&g),g){ min = 9500; for(i = 0;i <= g/500;i++){ for(j = 0;j <= (g-i*500)/3...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215611/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215611/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> #include <string.h> #include <stdlib.h> #include <time.h> #define GYOU_MAX 256 #define rep(i, n) for(int i = 0; i < (int)(n); i++) #define PRINT(str) printf(#str "\n") #define FOR(i, m, n) for(int i = m; i < n; i++) #define MIN(a, b) ((a) < (b) ? (a) : (b)) #define MAX(a, b) ((a) >...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215691/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215691/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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; char a[4]; scanf("%s",a); if(a[2]=='\0'){ printf("%s",a); return 0; } printf("%c%c%c",a[2],a[1],a[0]); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215749/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215749/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int t[5005][5]; int u[5005][5]; void init(){ int i,j; for(i=0;i<5005;i++){ for(j=0;j<5;j++){ if(i==0)t[i][j]=1; else t[i][j]=0; } } } void Delete(){ int i,j; for(i=0;i<5005;i++) for(j=0;j<5;j++) u[i][j]=t[i][j]; init(); int H=1,cnt; for(i=0;i<5005;i+...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215792/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215792/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @t = dso_local local_unname...
#include <stdio.h> int main() { int N,n; scanf("%d",&N); n = N%10; if(n == 3) printf("bon"); else if (n == 0 || n == 1 || n == 6 || n == 8) printf("pon"); else printf("hon"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215835/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215835/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 p; scanf("%d",&p); if(p%10==2||p%10==4||p%10==5||p%10==7||p%10==9){ printf("hon"); }else if(p%10==0||p%10==1||p%10==6||p%10==8){ printf("pon"); }else if(p%10==3){ printf("bon"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215879/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215879/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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; scanf("%d",&N); a=N%10; if(a==2||a==4||a==5||a==7||a==9){ printf("hon\n"); } if(a==0||a==1||a==6||a==8){ printf("pon\n"); } if(a==3){ printf("bon\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215921/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215921/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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; long int n; long long int a[100000]; scanf("%ld",&n); for(i=0;i<n;i++) { scanf("%lld",&a[i]); } printf("%lld ",a[1]-a[0]); printf("%lld\n",a[n-1]-a[0]); for(i=1;i<n-1;i++) { if(a[i+1]-a[i]<a[i]-a[i-1]) { printf("%lld ",a[i+1]-a[i]); } else { prin...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21598/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21598/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 i; scanf("%d", &i); int amari = 0; amari = i % 10; if(amari == 2 || amari == 4 || amari == 5 || amari == 7 || amari == 9) { printf("hon"); } if(amari == 0 || amari == 1 || amari == 6 || amari == 8) { printf("pon"); } if(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216029/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216029/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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_2 melo */ #include <stdio.h> int main(void){ int N, n; scanf("%d",&N); n = N%10; switch(n){ case 2:case 4:case 5:case 7:case 9://2または4または5または7または9であった場合 printf("hon\n"); break; case 0:case 1:case 6:case 8://0,1,6,8のいずれかであった場合 printf("pon\n"); break;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216072/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216072/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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_2 moriai ryo 19B30920*/ #include <stdio.h> int main(void){ int pencil; scanf("%d",&pencil); int digit_1=pencil%10;/*一桁目 = mod10*/ if(digit_1==3){ printf("bon\n"); } else if(digit_1==0 || digit_1==1 || digit_1==6 || digit_1==8){ printf("pon\n"); } else{ printf("hon\n"); } return...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216115/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216115/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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_2 sak_Citrus*/ #include <stdio.h> int main(void){ int num; scanf("%d",&num); //1桁目だけが欲しいので num = num % 10; switch(num){ //3だったらbon case 3: printf("bon"); break; //0,1,6,8だったらpon case 0: case 1: case 6: case ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216159/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216159/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a; char yomi[4]; scanf("%d", &n); a = n % 10; switch(a) { case 2: case 4: case 5: case 7: case 9: strcpy(yomi, "hon"); break; case 0: case 1: case 6: case 8: strcpy(yomi, "pon"); break; default: strcpy(yomi, "bon...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216201/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216201/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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(;;){ n %= 10; if(0 <= n && n <= 9){ break; } } if(n == 3){ printf("bon"); }else if(n == 0 || n == 1 || n == 6 || n == 8){ printf("pon"); }else{ printf("hon"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216245/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216245/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,count; scanf("%d",&n); count=n%10; switch(count) { case 2: case 5: case 7: case 9: case 4:puts("hon"); break; case 0: case 6: case 8: case 1:puts("pon"); break; case 3:puts("bon"); break; } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216289/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216289/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 buf[100]; fgets(buf, sizeof(buf), stdin); int n; sscanf(buf, "%d", &n); int amari = n%10; if(amari == 2||amari==4||amari==5||amari==7 ||amari==9){ printf("hon\n"); }else if(amari == 0|| amari==1||amari==6||amari==8){ printf("pon\n"); }else i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216331/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216331/source.c" target datalayout = "e-m:e-p270: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 n, wa; scanf("%d", &n); wa=n; while(wa>=10){ wa=wa%10; } if(wa==0||wa==1||wa==6||wa==8){ printf("pon"); } if(wa==3){ printf("bon"); } if(wa==2||wa==4||wa...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216375/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216375/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 input[4]; scanf("%s", input); char endChar; for (short i = 0; i < 4; i += 1) { if (input[i] == '\0') { break; } endChar = input[i]; } char output[4]; if (endChar == '2' || endChar == '4' || endChar == '5' || endChar == '7' || e...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216425/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216425/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = 0; int m = 0; scanf("%d", &n); m = n % 10; if(m == 2 || m == 4 || m == 5 || m == 7 || m == 9) { puts("hon"); } else if(m == 0 || m == 1 || m == 6 || m == 8) { puts("pon"); } else { puts("bon"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216476/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216476/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,m; scanf("%d",&n); m=n%10; if(m==2||m==4||m==5||m==7||m==9){ printf("hon"); return 0; }else if(m==0||m==1||m==6||m==8){ printf("pon"); return 0; }else{ printf("bon"); return 0; } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216519/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216519/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n[100]; scanf("%s", &n); int len = strlen(n); if (n[len - 1] == '3') { printf("bon\n"); } else if (n[len - 1] == '0' || n[len - 1] == '1' || n[len - 1] == '6' || n[len - 1] == '8') { printf("pon\n"); } else { printf("hon\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216562/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216562/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
//#include "oj/atcoder.h" //#include "std.h" #include <stdlib.h> #include <stdbool.h> #include <limits.h> #include <stdio.h> #include <string.h> #include <math.h> #include <assert.h> #include <float.h> #define MIN(a,b) ((a)<(b)?(a):(b)) #define MAX(a,b) ((a)>(b)?(a):(b)) #define SWAP(T,a,b) do { T _tmp=a; a=b; b=_tmp;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216605/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216605/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str.1 = private unnamed_a...
#include <stdio.h> #include <string.h> int main(){ int k; char s[101], t[101]; scanf("%d %s", &k, s); if(strlen(s) <= k){ puts(s); return 0; } else{ int i; for(i = 0; i < k + 3; ++i){ if(i < k) t[i] = s[i]; else t[i] = '.'; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216656/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216656/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> int main(void){ int k; char s[100]; char S[100]; scanf("%d", &k); scanf("%s", s); int x = strlen(s); strncpy(S, s, k); S[k] = '\0'; if(x <= k){ printf("%s\n", s); }else{ printf("%s...\n", S); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216706/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216706/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t,n,i,j; scanf("%d",&t); while(t--) { char x[101]; scanf("%s",x); n=strlen(x); for(i=1;i<n;i++) { if(x[i]!=x[0]) break; } if(i==n) printf("%s\n",x); else { for(i=0;i<n...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21675/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21675/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 num_K; char str_S[101]; int i; int word_count; scanf("%d", &num_K); scanf("%s", str_S); word_count = 0; for (i = 0; str_S[i] != '\0'; i++) { word_count++; } if (word_count > num_K) { for (i = 0; i < num_K; i++) { printf("%c", str_S[i]); } printf(".....
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216793/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216793/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#pragma warning(disable:4996) #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <float.h> #pragma region 定義 #define i_cin(X) scanf("%d", &X) #define i_cin2(X,Y) scanf("%d %d",&X,&Y) #define i_cin4(X,Y,Z,W) scanf("%d %d %d %d",&X,&Y,&Z,&W) #define i_cin3(X,Y,Z) scanf("%d %d %d",&X,...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216843/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216843/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> int main(void) { //宣言 int K,i; char S[100],s[101]; S[0] = '\n'; s[0] = '\n'; //読み込み scanf("%d",&K); scanf("%s",S); //結果 if(strlen(S)>K) { for(i=0;i<K;i++) { printf("%c",S[i]); } printf("..."); }else{ printf("%s",S); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216894/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216894/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 k,l,i; char s[100]; scanf("%d",&k); scanf("%s",s); l = (int)strlen(s); if(l <= k) printf("%s\n",s); else{ for(i=0;i<k;i++){ printf("%c",s[i]); } printf("...\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216944/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216944/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 k; char s[128]; scanf("%d",&k); scanf("%s",s); int size=0; while (s[size]!=0) { size++; } if (size>k) { for (int i=0;i<k;i++) { printf("%c",s[i]); } printf("...\n"); } else { printf("%s",s); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216988/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216988/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 I64 long long int int main() { int t; scanf("%d",&t); while(t--) { I64 x,y,a,b,p,p1; scanf("%I64d%I64d%I64d%I64d",&x,&y,&a,&b); if(x==0&&y==0) printf("0\n"); else if(a==b) printf("%I64d\n",x>y?x*a:y*a); else if(x>y...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21703/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21703/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #define MOD 1000000007 #define INF 2000000000 #define ull unsigned long long int main(){ int i,k,num=0; char s[101]={},tmp; scanf("%d",&k); scanf("%s",s); while (s[num]!='\0') num++; if (num>k) { for (i=0; i<k; i++) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217073/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217073/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 test; char S[150]; scanf("%d",&test); int p; for(int t=0;t<test;t++) { p=1; scanf("%s",S); for(int i=1;S[i]!='\0';i++) { if(S[i]!=S[i-1]) { p=0; break;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21716/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21716/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(void) { int H, W, i, j; while (1) { scanf("%d %d", &H, &W); if (H == 0 && W == 0) { break;//終了 } else { for (i = 1; i <= H; i++) { for (j = 1; j <= W; j++) { if ((i + j) % 2 == 0)//記号の判定 { printf("#");//0のとき } else { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217246/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217246/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> long long minimum(int x, int y, long long a, long long b){ long long max, min; if (x>=y){ max=x; min=y; } else{ max=y; min=x; } if (b*min+a*(max-min)<=a*min+a*max) return b*min+a*(max-min); else return a*min+a*max; } int main(){ int ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21729/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21729/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> int main(void){ int h,w; int i,j; while(scanf("%d %d",&h,&w)!=EOF){ if(h==0 && w==0) break; for(i=0;i<h;i++){ for(j=0;j<w;j++){ if(i%2==0){ if(j%2 == 0) printf("#"); else printf("."); } else{ if(j%2 == 0) printf("."); else prin...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217354/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217354/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[300],W[300],i=0,j,k; while(1){ scanf("%d%d",&H[i],&W[i]); if(H[i]==0&&W[i]==0){ break; } i++; } i=0; while(H[i]!=0&&W[i]!=0||H[i]!=0&&W[i]==0||H[i]==0&&W[i]!=0){ for(j=0;j<H[i];j++){ for(k=0...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217440/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217440/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 check(int, int); int main(void) { int h, w; while(scanf("%d %d", &h, &w), h || w) { check(h, w), printf("\n"); } return 0; } void check(int h, int w) { int i, j; for(i = 0; i < h; i++) { for(j = 0; j < w; j++) { if((i + j) % 2) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217484/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217484/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, ii, a; scanf("%d%d", &h, &w); for (a = 0; a < 1 ; a--) { for (i = 0; i < h; i++) { for (ii = 0; ii < w; ii++) { if (((ii % 2 == 0) && (i % 2 == 0)) || ((ii % 2 == 1) && (i % 2 == 1))) { printf("#"); } else { printf("."); } } print...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217534/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217534/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,d,e,f,g; while(1){ scanf("%d %d",&a,&b); c=a; d=b; if(a==0&b==0){ goto hata; }else{ for(e=1;e<=c;e++){ for(f=1;f<=d;f++){ g = (e+f) % 2; if(g==0){ putchar('#'); }else if(g==1){ putchar('.'); } }putchar('\n'); }putch...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217578/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217578/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int H,W,i,j; while(1){ scanf("%d %d",&H,&W); if(H == 0 && W == 0)break; else{ for(i=1;i<=H;i++){ for(j=1;j<=W;j++){ if((i+j) % 2 == 0) putchar('#'); else putchar('.'); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217620/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217620/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int i, j; int h, w; while(scanf("%d %d", &h, &w), h > 0 && w > 0){ for(i = 0; i < h; ++i){ for(j = 0; j < w; ++j){ putchar((i + j) % 2 == 0 ? '#' : '.'); } putchar('\n'); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217671/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217671/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int i,j,H,W; char H_c,W_c; while(1){ H_c='#'; scanf("%d %d",&H,&W); if((H==0) && (W==0)){break;} for(i=0;i<H;i++){ W_c = H_c; for(j=0;j<W;j++){ printf("%c",W_c); if(W_c=='#'){W_c='.';}else{W_c='#';} } if(H_c=='#'){H_c='.';}else{H_c='#';} printf("\n")...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217714/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217714/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int i,j; int h,w; scanf("%d %d",&h,&w); while(h!=0 && w != 0){ for(i=0;i<h;i++){ for(j=0;j<w;j++){ if((i+j)%2 == 0){ printf("#"); }else{ printf("."); } } printf("\n"); } scanf("%d %d",&h,&w); printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217758/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217758/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,a,b,k=1; while(k != 0){ scanf("%d %d",&H,&W); if(H==0 && W==0){ break; } for(a=1;a<=H;a++){ for(b=1;b<=W;b++){ if((a+b) % 2 == 0){ printf("#"); }else{ printf("."); } } printf("\n"); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217800/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217800/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int i,j,h,w; while(1){ scanf("%d %d",&h,&w); if(h==0&&w==0)break; for(i=0;i<h;i++){ for(j=0;j<w;j++){ if(i%2==0&&j%2==0){ printf("#"); }else if(i%2==0&&j%2==1){ printf("."); }else if(i%2==1&&j%2==0){ printf("."); }else if(i%2==1&&j%2==1){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217851/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217851/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 w,h; int i,j; while(1){ scanf("%d %d",&h,&w); if(w == 0 && h == 0){ break; } for(i = 1;i <= h;i++){ for(j = 1;j <= w;j++){ if((i+j) % 2 == 1){ printf("."); } if((i+j) % 2 == 0){ printf("#"); } } printf("\n"...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217901/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217901/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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++){ if(i % 2 == 1 && j % 2 == 1){ printf("#"); }else if(i % 2 == 0 && j % 2 == 0){ printf("#"); }else{ printf("."); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217989/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217989/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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++){ if((i%2==0 && j%2==0)||(i%2==1 && j%2==1)){ printf("#"); }else{ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218030/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218030/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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; for(;;){ scanf("%d %d",&H,&W); if(H==0 && W==0)break; for(h=0; h<H; h++){ for(w=0; w<W; w++){ if((w+h)%2==0) printf("#"); else printf("."); } printf("\n"); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218074/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218074/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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; char row[2][301]; while (1) { scanf("%d %d", &h, &w); if (h == 0 && w == 0) break; for (i = 0; i < w; i++) { row[0][i] = "#."[i&1]; row[1][i] = ".#"[i&1]; } row[0][i] = row[1][i] = '\0'; for (i = 0; i < h; i++) { puts(row[i&1]); } putcha...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218117/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218117/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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++) { if((i+j)%2 == 0) { printf("#"); } else { printf("."); } } printf("\n"); } printf("\n...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218175/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218175/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 goes here int h,w,i,j; scanf("%d %d",&h,&w); while(h!=0&&w!=0){ for(i=0;i<h;i++){ for(j=0;j<w;j++){ if(0==(i+j)%2){ printf("#"); }else{ printf("."); } } printf("\n"); } printf("\n"); scanf("%d %d",&h,&w); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218218/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218218/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int H,W,i,j; scanf("%d %d",&H,&W); while(H!=0&&W!=0){ for(i=0;i<H;i++){ for(j=0;j<W;j++){ if((i+j)%2==0){ printf("#"); }else{ printf("."); } }printf("\n"); }printf("\n"); scanf("%d ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218261/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218261/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 j = 0; j < W; j++) { if (i % 2 == 0) { if(j % 2 == 0) printf("#"); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218304/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218304/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int a,b; int main () { scanf("%d %d",&a,&b); while (a!=0||b!=0) { for (int i=1;i<=a;i++) { for (int j=1;j<=b;j++) { if ((i+j)%2==0) { printf("#"); } else { printf("."); } } printf("\n"); } scanf("%d %d",&a,&b); printf ("\n"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218355/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218355/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 H,W; char s[2]={'#','.'}; while(1){ scanf("%d %d",&H,&W); if(H==0 && W==0){ break; }else{ for(int i=0;i<H;i++){ for(int j=0;j<W;j++){ printf("%c",s[(i+j)%2]); } printf("\n"); } printf("\n"); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218405/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218405/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @__const.main.s = private u...
#include<stdio.h> #include<stdlib.h> int main() { int t,i; scanf("%d",&t); for(i=1;i<=t;i++){ int n; scanf("%d",&n); long long int ara[n]; int j,a=2; ara[0]=a; for(j=1;j<n;j++){ ara[j]=ara[j-1]*2; } long long int sum1=0,sum2=0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2185/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2185/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr co...
#include "stdio.h" int main(void) { int num[10000],i,j,k,tmp; for(i=0;;i++){ scanf("%d",&num[i]); if(i%2 != 0){ if(num[i]==0 && num[i-1]==0){ tmp = i; break; } } } for(i=0;i<tmp-1;i++){ for(j=0;j<num[i];j++){ for(k=0;k<num[i+1];k++){ if( (j+k)%2 == 0) printf("#"); else pr...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218557/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218557/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ long long a, b, k; scanf("%lld%lld%lld", &a, &b, &k); if( a-k < 0 ){ if( a+b-k < 0 ){ a=0; b=0; }else{ b-=(k-a); a=0; } }else{ a-=k; } printf("%lld %lld\n", a, b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218607/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218607/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 int a,b,k,p,q; scanf("%li",&a); scanf("%li",&b); scanf("%li",&k); if(a+b<k) { p=0; q=0; printf("%li %li\n",p, q); return 0; } if(a>k) { p=a-k; q=b; printf("%li %li\n",p, q); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218650/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218650/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ long long a, b, k; scanf("%lld %lld %lld", &a, &b, &k); if (k >= a+b){ printf("%d %d", 0, 0); } else{ if (a>=k){ printf("%lld %lld", a-k, b); } else{ printf("%d %lld", 0, (a+b-k)); } } return ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218694/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218694/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 int a, b, k; long int i; scanf("%ld %ld %ld", &a, &b, &k); if(a>=k){ a=a-k; } else if (a<k && a+b >=k){ k -= a; a = 0; b -= k; }else{ a=0; b=0; } printf("%ld %ld", a, b); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218737/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218737/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> #include <string.h> int main() { long long int a,b,k,x,y; scanf("%lld %lld %lld", &a,&b,&k); if(k-a==0) { x=0; y=b; } else if(k-a>0) { x=0; if(k-a>=b) { y=0; } else {...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218795/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218795/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { long long A, B, K; scanf("%lld%lld%lld", &A, &B, &K); if (K<=A) printf("%lld %lld", A-K, B); else if (K<=A+B) printf("%lld %lld", 0, A+B-K); else printf("%lld %lld", 0, 0); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218838/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218838/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 digit(long long int n) { int f,r; r=log10(n); f=n/(pow(10,r)); return f; } int main() { long long int n,i,f1,c,j; scanf("%lld",&n); int a[10][10]={0}; for(i=1;i<=n;i++) { if(i%10==0) { continue; } else ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218881/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218881/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 p(int *x, int *y, int n) { *x = n % 10; while(n){ if(n / 10 == 0) *y = n; n /= 10; } } int main() { int count = 0,i,j, n; int std; int x1, y1, x2, y2; scanf("%d",&n); if(n < 10) printf("%d\n",n); else { std = (n / 10) *(n / 10) + 8; f...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218931/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218931/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int X, K; int Taka, i; scanf("%d", &X); Taka = X; K = 1; while(Taka % 360 != 0){ Taka += X; K++; } printf("%d", K); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218975/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218975/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 2253: Brave Force Story // 2017.11.10 bal4u@uu #include <stdio.h> #include <string.h> #define BASE 100 typedef struct { int x, y, k; } Q; Q q[4000]; int top, end; char b[200][200]; char mk[200][200]; int mv[6][2] = {{1,1},{-1,-1},{0,-1},{-1,0},{0,1},{1,0}}; int main() { int t, n, i, x, y, x2, y2, k, an...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219031/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219031/source.c" target datalayout = "e-m:e-p270: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.Q = type { i32, i32...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #define ll long long #define rep(i,n) for(ll i=0;i<(n);i++) #define max(p,q) ((p)>(q)?(p):(q)) #define min(p,q) ((p)<(q)?(p):(q)) #define chmax(a,b) ((a)=(a)>(b)?(a):(b)) #define chmin(a,b) ((a)=(a)<(b)?(a):(b)) #define abs(p) ((p)>=(0)?(p):(-...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219082/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219082/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#if 0 cat <<EOF >mistaken-paste #endif // thanks for @rsk0315_h4x #pragma GCC diagnostic ignored "-Wincompatible-pointer-types" #define _USE_MATH_DEFINES #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> #include <time.h> #define BIG 2000000007 #def...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219132/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219132/source.c" target datalayout = "e-m:e-p270: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.hwll = type { i64, ...
#include<stdio.h> int calc(int start, int end, char *S){ int a; } int main(void){ char S[5*100000+3]; long long cnt_p = 0, cnt_m = 0; long long ans = 0; scanf("%s", S); int i = 0; for(i = 0; S[i] != '\0'; i++){ if(S[i] == '>'){ cnt_m++; }else{ cnt_...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219190/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219190/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <float.h> #include <limits.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> // 内部定数 #define D_MASS_MAX 100 // 最大マス数 #define D_RES_INI -1 // 結果 - 初期値 #define D_RES_WIN 0 // 結果 - 勝ち #define D_RES_LOSE 1 // 結果 - 負け // 内部変数 ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219233/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219233/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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; scanf("%d %d %d", &N, &A, &B); if ((B - A - 1)%2 == 1) { printf("Alice"); } else { printf("Borys"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219284/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219284/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...