Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include <stdio.h> int main(void){ int N, K; char S[50]; if(scanf("%d %d", &N, &K) == 1); if(scanf("%s", S) == 1); S[K-1] += 'a' - 'A'; printf("%s\n", S); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210269/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210269/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,k; char s[n]; scanf("%d %d",&n,&k); scanf("%s",s); if(s[k-1]=='A') { s[k-1]='a'; } else if(s[k-1]=='B') { s[k-1]='b'; } else { s[k-1]='c'; } printf("%s",s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210311/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210311/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d", &N); int K; scanf("%d", &K); char S[50] = {}; int i; for(i = 0; i <= N; i++){ scanf("%c", &S[i]); if(i == K){ if(S[i] == 'A') S[i] = 'a'; if(S[i] == 'B') S[i] = 'b'; if(S[i] == 'C') S[i] = 'c'; } } printf...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210355/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210355/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> int main (void){ int N,K; char S[100]; scanf("%d",&N); scanf("%d",&K); scanf("%s",S); if (S[K-1]=='A') { S[K-1]='a'; } if (S[K-1]=='B') { S[K-1]='b'; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210399/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210399/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> const int sz = 1<<23; const long mod = 998244353l; long modpow(long x, long y, long m){ long res = 1l, tmp = x; while(y){ if(y&1) res = res * tmp % m; tmp = tmp * tmp % m; y >>= 1; } return res; } void dft(long f[], int n){ if(n == 1)return; long f0[n/2]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210441/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210441/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @sz = dso_local local_unnam...
#include<stdio.h> #define mod 1000000007 long long ans=0; long long a[1005]; long long s[3000][2000]={0}; int main(){ int n;int i,j; a[0]=1; for (int i=1;i<=1000;i++) a[i]=a[i-1]*i%mod; scanf("%d",&n); for (i=3;i<=n;i++){ s[i][1]=1; for (j=2;j<=i/3;j++) for (int k=i-3;k>=0;k--){ s[i][...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210485/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210485/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @ans = dso_local local_unna...
#include<stdio.h> #include<stdlib.h> int main(void) { int i; int dx,dy,x,y,mx,my; int n; scanf("%d ",&n); for(i=0;i<n;i++) { x=0; y=0; mx = 0; my = 0; while(1) { scanf("%d %d ",&dx,&dy); if(dx == 0 && dy ==0)break; x += dx; y += dy; if(mx*mx+my*my < x*x+y*y) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210535/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210535/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 rep(i,l,r) for(int i=l; i<(int)(r); i++) #define chmax(a,b) a=(a>b?a:b) int main(){ char S[15]; scanf("%s", S); int tmp = 0, ans = 0; rep(i, 0, strlen(S)){ if(S[i] == 'A' || S[i] == 'C' || S[i] == 'G' || S[i] == 'T'){ tmp++; }el...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210586/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210586/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* ex 5_4 kanon */ #include <stdio.h> #include <string.h> #define SIZE 80 int main(void) { //与えられる値を入れる数を宣言 char str[SIZE], *ptr; int longest_len = 0, temp_len = 0; //変数に値を入力する scanf("%s", str); //文字列内で探索 ptr = &str[0]; while (*ptr != '\0') { //ATCGならtemp_lenを更新していく ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210629/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210629/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* ex5_4 masaaki52 */ #include <stdio.h> #include <string.h> int main(void){ char string[11]; int i,count=0,max=0; scanf("%s",string); for(i=0;i<strlen(string)+1;i++){ switch(string[i]){ case 'A': case 'C': case 'G': case 'T': count++; break; default: if(count > max)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210672/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210672/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 S[11]; scanf("%s", S); int i, j, k, l, ans = 0; for (l = 0; S[l] != 0; l++); for (i = 0; i < l; i++) { for (j = i + ans; j < l; j++) { for (k = i; k <= j; k++) { if (S[k] != 'A' && S[k] != 'G' && S[k] != 'T' && S[k] != 'C') break; } if (k > j && ans < j - i + ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210715/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210715/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 S[11]; scanf("%s", S); char acgt[] = {'A', 'C', 'G', 'T'}; int nn = 4; int answer = 0; int tmpsum = 0; for(int i=0; i<11; i++){ //printf("%c:\n", S[i]); if(S[i] == '\0') break; int addflag = 0; for(int j=0; j<n...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210759/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210759/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdbool.h> int size(char *s); int main() { int i, j, count = 0, max = 0; char s[11]; char *sp; char acgt[5] = { 'A', 'C', 'G', 'T' }; bool ittiflag = false; scanf("%s", &s); sp = &s[0]; for (i = 0; i < size(sp); i++) { for (j = 0; j < 4; j++) { if (s[i] == acgt[j]) { it...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210809/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210809/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 count = 0, tmp = 0, i = 0; char s[11]; scanf("%s",s); while (1) { if ( s[i] == '\0' ) break; if ( s[i] == 'A' || s[i] == 'T' || s[i] == 'C' || s[i] == 'G' ) { tmp++; } else { tmp = 0; } if ( count < tmp ) { count = tmp; } i++; } printf("%d\n",count); re...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210896/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210896/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 S[10]; int r; int c=0; int d=0; scanf("%s", S); for(r=0; r<10; r++) { if(S[r]=='A' || S[r]=='T' || S[r]=='G' || S[r]=='C') { c++; if(d < c) d = c; } else { c = 0; } } printf("%d", d); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210953/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210953/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> int main(void) { char s[12]; int i; int max = 0; int size = 0; scanf("%s", s); for (i = 0; i < strlen(s); i++){ if (s[i] == 'A' || s[i] == 'T' || s[i] == 'C' || s[i] == 'G'){ size++; } else { if (max < size){ max = s...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211002/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211002/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 str[11]; int i, maxcount = 0,count = 0; scanf("%s", str); for (i = 0; str[i] != 0; i++) { if (str[i] == 'A' || str[i] == 'T' || str[i] == 'G' || str[i] == 'C') { count++; if (count > maxcount) { maxcount = count; } } else { count = 0; } } printf("%d\n", maxcount);...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211053/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211053/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 min(int a,int b){return a < b ? a : b;} int main() { int n,v[100000],num[100005][2] = {0},i,j,max[2][2] = {0}; scanf("%d",&n); for (i = 0; i < n; i++) { scanf("%d",&v[i]); num[v[i]][i % 2]++; } for (i = 0; i < 2; i++) { f...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211097/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211097/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> int main() { int n,cost,height[100002],i,temp; scanf("%d",&n); for(i=1;i<=n;i++) { scanf("%d",&height[i]); } height[0] = 0; temp = cost = height[1]; for(i=0;i<n;i++) { temp += height[i] - height[i+1]; i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21114/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21114/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ...
// AOJ 1516: Nasty Boys // 2017.9.27 bal4u@uu #include <stdio.h> int rr[9] = { 0,0,0,1,1,1,2,2,2 }; int cc[9] = { 0,1,2,0,1,2,0,1,2 }; int main() { int i, r, c, r2, c2, f; char buf[20], *p; for (i = 0; i < 1000; i++) { scanf("%s", p = buf); r = rr[*p-'A'], c = cc[*p-'A'], p++; f = 1; while (*p && f) { f...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211183/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211183/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @rr = dso_local local_unnam...
# include"stdio.h" int main(){ int n,k; scanf("%d %d",&n,&k); if((((n-1)/2)+1)>=k) printf("YES\n"); else printf("NO\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211226/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211226/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,s,i; scanf("%d%d",&n,&s); int a[n]; int b[n]; int c = 100,m = 0; for(i=0;i<n;i++) scanf("%d%d",&a[i],&b[i]); for(i=0;i<n;i++) { if(a[i]<s) { m = 1; if(b[i] !=0 && b[i]<c) c = b[i]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21127/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21127/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ...
//set many funcs template //Ver.20181228 #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){i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211312/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211312/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 game,n,i,j,team[100]; int a,b,c,d,ban[100]; scanf("%d",&n); for(i=0;i<n;i++){ team[i]=0; ban[i]=1; } game=n*(n-1)/2; for(i=0;i<game;i++){ scanf("%d %d %d %d",&a,&b,&c,&d); if(c>d){ team[a-1]+=3; } else if(c==d){ team[a-1]+=1; team[b-1]+=1; } else{ team[b-1]+=3; } } for(i=0;i<n;i++...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211356/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211356/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ABS(a) ((a)>0?(a):-(a)) typedef long long int int64; typedef struct inode{ int x,y; int index; } point; int cmp(const void *a,const void *b){ point *p=(point *)a; point *q=(point *)b; int c=p->x+p->y; int d=q->x+q->y; if(c!=d) return c<d?-1:1; return p->x...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211413/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211413/source.c" target datalayout = "e-m:e-p270: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.inode = type { i32,...
#include <stdio.h> #include <string.h> #define ll long long #define rep(i,l,r)for(ll i=(l);i<(r);i++) #define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k)) #define INF ((1LL<<62)-(1LL<<31)) #define max(p,q)((p)>(q)?(p):(q)) #define min(p,q)((p)<(q)?(p):(q)) int main(){ ll a,b,k; scanf("%lld%lld%*d%lld",&a,&b,&k); printf(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211479/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211479/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int Block[30][6]; int score=0,n; void Jo(); int main() { int i,j,score1[1000],m=0; while(1){ scanf("%d",&n); if(n==0)break; for(i=0;i<20;i++){ for(j=0;j<6;j++){ Block[i][j]=0; } } for(i=10;i<n+10;i++){ for(j=0;j<5;j++){ scanf("%d",&Block[i][j]); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211536/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211536/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @score = dso_local local_un...
#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_211594/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211594/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 _USE_MATH_DEFINES #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <limits.h> #include <stdbool.h> #define inf (INT_MAX-1) #define INF 9223372036854775807; #define PI 3.14159265358979323846; #define EPS 1e-10 #define sq(n) ((n)*(n)) #define rep(i,n) for(i=0;i<n;i++) #d...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211637/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211637/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @mod = dso_local local_unna...
#include <stdio.h> #include <stdlib.h> int q(const void *a,const void *b) { return *(int*)a-*(int*)b; } int main(void) { int n,x,a[100],s=0,i; scanf("%d%d",&n,&x); for(i=0;i<n;++i)scanf("%d",&a[i]); qsort(a,n,sizeof(int),q); for(i=0;i<n-1;++i){ if(x>=a[i]){ x-=a[i]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211680/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211680/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> // printf(), scanf() #define MAX_N 500000 typedef struct node_tbl { int key; int parent; int left; int right; } node; const int nil = -1; node t[MAX_N + 1]; int root; int ix; void insert(int k) { int y = nil; int x = root; int z = ix++; t[z].key = k; t[z].left = nil; t[z].right...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211723/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211723/source.c" target datalayout = "e-m:e-p270: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_tbl = type { i...
#include<stdio.h> #include<stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; void insert(int k); typedef struct node * Node; void inorder(Node u); void preorder(Node u); #define NIL NULL Node root; int main(){ int n, i, x; char com[20]; scanf("%d", &n); for (...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211767/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211767/source.c" target datalayout = "e-m:e-p270: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 { ptr, ...
#include<stdio.h> int main() { int t,i; scanf("%d",&t); for(i=0;i<t;i++){ int k,l,a,b; scanf("%d",&k); if(k==100){ printf("1\n"); } else{ l=100-k; a=k; b=l; while((a-b)!=0){ if(a>b){ a=a-b; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21181/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21181/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> struct Node{ int key; struct Node *right,*left,*parent; }; struct Node *root,*NIL; void insert(int k){ struct Node *x=root,*y=NIL,*z; z=(struct Node *)malloc(sizeof(struct Node)); z->key=k; z->right=NIL; z->left=NIL; while(x!=NIL){ y=x; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211853/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211853/source.c" target datalayout = "e-m:e-p270: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> #include <stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL Node root; Node treeMinimum(Node x){ while(x->left!=NIL) x=x->left; return x; } Node treeMaximum(Node x){ while(x->right!=NIL) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211903/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211903/source.c" target datalayout = "e-m:e-p270: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 { ptr, ...
#include<stdio.h> #include<stdlib.h> #define NIL NULL struct node { int key; struct node *left; struct node *right; struct node *parent; }; typedef struct node* Node; Node root; Node treeSearch(Node x,int k) { if(x == NIL || k == x-> key) return x; if(k < x->key) return treeSearch(x->left,k)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211954/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211954/source.c" target datalayout = "e-m:e-p270: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> #include<stdlib.h> typedef struct Node { struct Node *parent; struct Node *left; struct Node *right; int key; } node; void preOrder(node *); void inOrder(node *); void insert(int); node *root; int n; int main() { int i, j, key; char command[7]; scanf("%d", &n); for (i = 0; i < n; i++)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212010/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212010/source.c" target datalayout = "e-m:e-p270: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 { ptr, ...
#include<stdio.h> #include<stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL Node root; Node treeMinimum(Node x){ while(x->left!=NIL){ x=x->left; } return x; } Node treeSearch(Node u, int k){ Node x; if(u==NIL || k==x...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212054/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212054/source.c" target datalayout = "e-m:e-p270: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 { ptr, ...
#include <stdio.h> #include <stdlib.h> typedef struct node{ int key; struct node *parent,*left,*right; }Node; Node *root,*NIL; void Insert(int); void Inorder(Node *); void Preorder(Node *); int main(){ int m,i,k; char com[20]; scanf("%d",&m); for(i=0; i<m; i++){ scanf("%s",com); if(com[0] == '...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212104/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212104/source.c" target datalayout = "e-m:e-p270: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> #include<stdlib.h> #include<string.h> struct Node{ int key; struct Node* per; struct Node* l; struct Node* r; }; typedef struct Node node; node* insert(node* px,int k); void printI(node* x); void printP(node* x); int main(void){ int i; int n,k; node* x=NULL; char com[1...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212148/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212148/source.c" target datalayout = "e-m:e-p270: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> #include<stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; Node root; void insert(int k){ Node y = NULL; Node x = root; Node z; z = malloc(sizeof(struct node)); z->key = k; z->left = NULL; z->right = NUL...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212212/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212212/source.c" target datalayout = "e-m:e-p270: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 { ptr, ...
#include <stdio.h> #include <stdlib.h> #define NIL NULL struct node{ struct node *right; struct node *left; struct node *p; int key; }; typedef struct node * Node; Node root; void insert(int k) { Node x; Node y; Node z; y = NIL; x = root; z = (Node)malloc(sizeof(struct node)); z->key = k; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212256/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212256/source.c" target datalayout = "e-m:e-p270: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 { ptr, ...
#include<stdio.h> #include<stdlib.h> #include<string.h> #define MAX 500001 struct node{ struct node *parent; struct node *left; struct node *right; int key; }; typedef struct node Node; Node *root,*NIL; void Insert(int id){ Node *x,*y,*z; y = NIL; x = root; z = (Node *)malloc(sizeof(Node)); z-...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212306/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212306/source.c" target datalayout = "e-m:e-p270: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 { ptr, ...
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> int main() { int potion=0,tc,water=0; scanf("%d",&tc); for(int i=0;i<tc;i++){ int percent; scanf("%d",&percent); potion=percent; water=100-percent; int x1=potion; int x2=water,gcd=100; if (x1 < x2) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21235/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21235/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL Node root; Node treeMinimum(Node x){ } Node treeSearch(Node u, int k){ } Node treeSuccessor(Node x){ } void treeDelete(Node z...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212407/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212407/source.c" target datalayout = "e-m:e-p270: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 { ptr, ...
#include<stdio.h> #include<stdlib.h> #include<string.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; struct node *root, *NIL; struct node *find(struct node *u, int k){ while(u != NIL && k != u->key){ if(k < u->key) u = u->left; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212450/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212450/source.c" target datalayout = "e-m:e-p270: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 { ptr, ...
#include<stdio.h> #include<stdlib.h> #include<string.h> int s=0,h=0; struct node { struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; Node treeSearch(Node,int); void insert(int); void inorder(Node ); void preorder(Node); #define NIL NULL Node root; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212494/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212494/source.c" target datalayout = "e-m:e-p270: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 { ptr, ...
#include<stdio.h> #include<stdlib.h> struct Node{ int key; struct Node *a; struct Node *b; struct Node *c; }; typedef struct Node * Nodepointer; Nodepointer root,nil; void insert(int i){ Nodepointer x = root; Nodepointer y = nil; /*parent*/ Nodepointer z; z = (struct Node *)malloc(sizeof(struct Node...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212537/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212537/source.c" target datalayout = "e-m:e-p270: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> #include <stdlib.h> struct node { struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL Node root; /* Node treeMinimum(Node x) { } Node treeMaximum(Node x) { } Node treeSearch(Node u, int k) { } N...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212580/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212580/source.c" target datalayout = "e-m:e-p270: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 { ptr, ...
#include <stdio.h> #include <stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node *Node; void insert(int); void Inorder(Node); void Preorder(Node); Node root; int main() { char mozi[7]; int a,n,i; scanf("%d",&n); for(i=0;i<n;i++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212623/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212623/source.c" target datalayout = "e-m:e-p270: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 { ptr, ...
#include <stdio.h> #include <stdlib.h> #include <string.h> struct Node { int key; struct Node *right, *left, *parent; }; typedef struct Node Node; Node *root, *NIL; void insert(int k) { Node *y = NIL; Node *x = root; Node *z; z = (Node *)malloc(sizeof(Node)); z->key = k; z->lef...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212667/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212667/source.c" target datalayout = "e-m:e-p270: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 in[100001][2]; int abs(int x){ return x>0?x:-x; } int Max(int a, int b){ return a>b?a:b; } int main() { int n, m, max = 0; int i, j; scanf("%d%d", &n, &m); for(i=1; i<=m; i++)scanf("%d%d", &in[i][0], &in[i][1]); max = in[1][1] + in[1][0] - 1; for(i=1; i<m; i++) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21271/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21271/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL Node root; Node treeMinimum(Node x){ while(x->left!=NIL)x=x->left; return x; } Node treeMaximum(Node x){ while(x->right!=NIL)x=x->ri...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212760/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212760/source.c" target datalayout = "e-m:e-p270: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 { ptr, ...
#include <stdio.h> #include <stdlib.h> #define NIL NULL struct node { struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node *Node; Node root; void insert(int); void inorder(Node); void preorder(Node); int main() { int n, i, x; char com[20]; scanf( "%d" , &n )...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212803/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212803/source.c" target datalayout = "e-m:e-p270: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 { ptr, ...
#include<stdio.h> #include<stdlib.h> #define MAX 500000 struct NODE{ int key; struct NODE *parent; struct NODE *left; struct NODE *right; }; typedef struct NODE NODE; NODE T[MAX]; NODE *root,*NIL; int scancommand(char *); void insert(int); void inorder(NODE *); void preorder(NODE *); int main() { int n; i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212847/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212847/source.c" target datalayout = "e-m:e-p270: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> #define rep(i,l,r)for(int i=(l);i<(r);i++) #define add(x)(x=(x+t)%MOD) int dp[210][1100]; int N,K,MOD; int main(){ scanf("%d%d%d",&N,&K,&MOD); dp[0][0]=1; rep(n,0,2*N)rep(k,0,(1<<K)-1){ int t=dp[n][k]; if(k<1<<(K-1))add(dp[n+1][2*k+1]); if(k)add(dp[n+1][(k^(1<<(31-__builtin_clz(k))))*2]); }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212898/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212898/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m,y,n,i,t,u; double s,r; double a(){return (double)(1+y*r/100);} double b(){return pow((double)(1+r/100),y);} int main() { double(*f[3])(); f[1]=a;f[2]=b; for(;~scanf("%d%d",&n,&y),n;) { for(i=0,s=0;i<n;i++) { scanf("%d%lf%d",&m,&r,&t); if(s<f[t]()) s=f[t](),u=m...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212940/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212940/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @y = dso_local global i32 0...
#include <stdio.h> int main(){ int n,i; long a[100001],b; long result=0; scanf("%d",&n); for(i=0;i<n+1;i++){ scanf("%ld",&a[i]); } for(i=0;i<n;i++){ scanf("%ld",&b); if(a[i]>=b){ result+=b; } else { result+=a[i]; b-=a[i]; if(a[i+1]>=b){ result+=b...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212984/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212984/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ long long int n; long long int a[200000]; long long int b[200000]; scanf("%lld",&n); int i; for(i=1;i<=n+1;i++){ scanf("%lld",&a[i]); } for(i=1;i<=n;i++){ scanf("%lld",&b[i]); } long long int k=0; for(i=1;i<=n;i++){ if(b[i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213026/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213026/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 find(char s[],char a) { int i; for(i=0;i<26;i++) if(s[i]==a) break; return i; } int jian(int a,int b) { if(a>b) return a-b; else return b-a; } int main() { int a; scanf("%d",&a); for(int i=0;i<a;i++) { int max=0; char s[26],v[50]; scanf("%s",s); scanf("%s",v); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21307/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21307/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 <stdbool.h> #include <math.h> int main(void){ int i,j,k; int N,A[100001],B[100000]; unsigned long long answer = 0; scanf("%d",&N); for(i = 0;i < N;i++){ scanf("%d\n",&A[i]); } scanf("%d",&A[i]); for(i = 0;i < N-1;i++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213112/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213112/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 WIDTH 6 #define HEIGHT 12 enum { YET, ALREADY }; int del( void ); int search( int, int ); int search_body( int, int, char ); void fall( void ); typedef struct { char color; int state; } FIELD; FIELD field[ WIDTH + 2 ][ HEIGHT + 2 ] = {}; const int dx[ 4 ] = { -1, 0, 1, 0 }, dy[ 4 ] = {...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213163/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213163/source.c" target datalayout = "e-m:e-p270: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.FIELD = type { i8, ...
#include<stdio.h> int main() { int d[2], m[2], checker = 0; scanf("%d %d", &m[0], &d[0]); scanf("%d %d", &m[1], &d[1]); if (m[0]+1 == m[1]) { if (d[1] == 1) { checker = 1; } } else if (m[0] == 12) { if (d[0] == 31) { checker = 1; } } printf("%d", checker); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213206/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213206/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 pai 3.1415926535 int main(void) { int M[2], D[2]; for (int i = 0; i < 2; i++) { scanf("%d%d", &M[i], &D[i]); } int a = M[0]; a++; if ((M[0] != M[1]) && (D[1] == 1)) { printf("%d",1); }else{ printf("%d",...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213293/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213293/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* Coached by rainboy */ #include <stdio.h> #include <stdlib.h> #define N 8 #define INF 0x3f3f3f3f int main() { static int ll[N]; int n, a, b, c, i, p, x, ans; scanf("%d%d%d%d", &n, &a, &b, &c); for (i = 0; i < n; i++) scanf("%d", &ll[i]); p = 1; for (i = 0; i < n; i++) p *= 4; ans = INF; for (x = 1; x <...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213336/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213336/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @main.ll = internal global ...
#include<stdio.h> int main() { int x, y; scanf("%d %d", &x, &y); if (y % 2 != 0) { // 足の数が奇数なら不可 puts("No\n"); return 0; } if (y > 4 * x) { // 全て鶴と仮定したときよりも足の数が多いのは不可 puts("No\n"); return 0; } if (y < 2 * x) { // 全て亀と仮定したときより足の数が少ないのは不可 puts("No\n"); return 0;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213400/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213400/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 X, Y; scanf("%d%d", &X, &Y); int x = 2*X - Y/2; //つる int y = Y/2 - X; //かめ if(x<0 || y<0 || x+y!=X || 2*x+4*y!=Y){ printf("No\n"); } else{ printf("Yes\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213451/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213451/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int x, y; scanf("%d %d", &x, &y); for (int i = 0; i <= x; i++) { if ((i * 2 + (x - i) * 4) == y) { printf("Yes\n"); return 0; } } printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213495/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213495/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x, y; int i; int out = 0; scanf("%d %d", &x, &y); for (i = 0; i <= x; i++){ if ((i * 2 + (x - i) * 4) == y){ out = 1; break; } } if (out == 1){ printf("Yes"); } else { printf("...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213538/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213538/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ float x, y, x1, x2; int aux1, aux2; scanf("%f%f", &x, &y); float m[2][3] = {{1, 1, x}, {2, 4, y}}; float k = m[1][0]/m[0][0]; for(int i = 0; i < 2; i++){ for(int j = 0; j < 3; j++){ if(i == 1){ m[1][j] = (m[1][j] - (k*m[0][j])...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213581/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213581/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x, y; int main( int argc, char *argv[] ) { int ppp; scanf( "%d %d", &x, &y ); if( y < x*2 ) puts( "No" ); else if( y > x*4 ) puts( "No" ); else if( y % 2 ) puts( "No" ); else puts( "Yes" ); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213624/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213624/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() { int x,y; int a,b; scanf("%d %d", &x,&y); a = 2 * x - y/2; b = y/2 -x; if(a < 0 || b < 0) { printf("No\n"); } else if( x != a + b|| 2 * a + 4 *b != y) { printf("No\n"); } else { printf("Yes\n"); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213675/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213675/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int X, Y; scanf("%d %d", &X, &Y); for (int i = 0; i <= X; i++) { if (Y == 4 * X - 2 * i) { printf("Yes\n"); return 0; } } printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213718/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213718/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int x,y; scanf("%d%d",&x,&y); for(int a=0;a<=x;a++){ int b=x-a; if(2*a+4*b==y){printf("Yes"); return 0; } } printf("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213761/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213761/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main(void){ int x,y; scanf("%d %d",&x,&y); for(int i=0;i<1000;i++){ for(int j=0;j<1000;j++){ if(i+j==x&&4*j+i*2==y){printf("Yes");return 0;} } } {printf("No");} }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213811/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213811/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) { char a[8]; scanf("%s",a); if(strcmp(a,"Sunny")==0)printf("Cloudy"); else if(strcmp(a,"Rainy")==0)printf("Sunny"); else if(strcmp(a,"Cloudy")==0)printf("Rainy"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213855/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213855/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 L; int pos[100000]; int cnt; char inp[500]; struct node { char name[211]; struct node *succ; struct node *prev; } pool[10000]; struct node *cur; struct node *tail; struct node * const root = pool; int main() { int N; root->name[0] = '\0'; root->succ = root->prev = NUL...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21392/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21392/source.c" target datalayout = "e-m:e-p270: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 { [211 x ...
#include<stdio.h> #include<string.h> int main(void) { char s[10] = "Sunny"; char c[10] = "Cloudy"; char r[10] = "Rainy"; char a[10]; scanf("%s",&a); if (strcmp(s, a) == 0) printf("%s", c); if (strcmp(c, a) == 0) printf("%s", r); if (strcmp(r, a) == 0) printf("%s", s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213970/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213970/source.c" target datalayout = "e-m:e-p270: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(void) { char s[11]; scanf("%s", &s); if (s[0] == 'S') printf("Cloudy"); if (s[0] == 'C') printf("Rainy"); if (s[0] == 'R') printf("Sunny"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214027/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214027/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 s[10]; scanf("%s",s); if(s[0]=='S'){ printf("Cloudy"); }else if(s[0]=='C'){ printf("Rainy"); }else{ printf("Sunny"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214092/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214092/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s[10]; scanf("%s", s); if (strcmp(s, "Sunny") == 0) puts("Cloudy"); if (strcmp(s, "Cloudy") == 0) puts("Rainy"); if (strcmp(s, "Rainy") == 0) puts("Sunny"); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214135/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214135/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> int main(void){ char S[10]; scanf("%s", S); if (strcmp(S,"Sunny")==0) { puts("Cloudy"); } if (strcmp(S,"Cloudy")==0) { puts("Rainy"); } if (strcmp(S,"Rainy")==0) { puts("Sunny"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214193/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214193/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 main(void){ char S[100]; scanf("%s", S); if(S[0] == 'S'){ printf("Cloudy\n"); } else if(S[0] == 'C'){ printf("Rainy\n"); } else{ printf("Sunny\n"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214243/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214243/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_214294/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214294/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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] = {//カードの枚数分の要素をもつ配列 {0,0,0,0,0,0,0,0,0,0,0,0,0},//スペード {0,0,0,0,0,0,0,0,0,0,0,0,0},//ハート {0,0,0,0,0,0,0,0,0,0,0,0,0},//クラブ {0,0,0,0,0,0,0,0,0,0,0,0,0} //ダイヤ }; char mark; //絵柄を表す文字 int rank; //カードのランク int n; //現在持っているカードの枚数 scanf("%d",&n);//持っているカードの枚数を...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214337/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214337/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 card[52]={0}; char mark[4]={'S','H','C','D'}; char c; int b; int n; int i,j; scanf("%d",&n); for(i=0;i<n;i++){ scanf(" %c %d",&c,&b); for(j=0;j<4;j++){ if(c == mark[j]) card[j*13+b-1]=1; } } for(i=0;i<52;i++){ if(card[i] == 0)printf("%c %d\n",mark[i/13]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214388/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214388/source.c" target datalayout = "e-m:e-p270: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.mark = privat...
#include<stdio.h> #include<string.h> void inputcards(char type, int number); int main(void){ int n, i, number = 0, x=0, array[53], d; char type = 'a'; for(i = 1; i <= 52; i ++){ array[i] = 0; } scanf("%d", &n); for(i = 1 ;i <= n ;i++){ scanf("%s %d", &type, &number); if(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214430/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214430/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,N,M; char k; int card[4][14]; for(i=0;i<4;i++){ for(j=1;j<14;j++){ card[i][j] = 0; } } scanf("%d",&N); for(i=0;i<N;i++){ scanf("%s",&k); scanf("%d",&j); if(k=='S'){ M=0; } else if(k=='H'){ M=1; } else if(k=='C'){ M=2; } else if(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214474/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214474/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, no, a, i, j; char m; int x[4][13] ={{0}}; scanf("%d",&n); while(n > 0){ scanf(" %c",&m); scanf("%d",&no); if(m == 'S') a = 0; if(m == 'H') a = 1; if(m == 'C') a = 2; if(m == 'D') a = 3; x[a][no - 1] = 1; n--; } for(i = 0; i < 4; i++){ for(j = 0; j < 13; j++){ if(x[i][j] =...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214524/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214524/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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; int y[4][13]; char c; scanf("%d",&n); for (i=0;i<4;i++){ for (j=0;j<13;j++){ y[i][j]=0; } } scanf("%d",&n); for (i=0;i<n;i++){ scanf(" %c",&c); scanf("%d",&x); if (c=='S'){ y[0][x-1]=1; }else if (c=='H'){ y[1][x-1]=1; }else if (c=='C'){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214568/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214568/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 card[4][13] = {0}; int i, j, k, x, n; char m; scanf("%d", &n); for(k = 0; k < n; k++) { scanf(" %c%d", &m, &x); if(m == 'S') card[0][x-1] = 1; else if(m == 'H') card[1][x-1] = 1; if(m == 'C') card[2][x-1] = 1; if(m == 'D') card[3][x-1] = 1; } f...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214618/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214618/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, suits[4][13], i, j, number; char suit; for (i = 0; i < 4; i++) { for (j = 0; j < 13; j++) { suits[i][j] = 0; } } scanf("%d", &n); getchar(); for (i = 0; i < n; i++) { scanf("%c %d", &suit, &number); getchar()...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214661/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214661/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, n, a; int card[5][16] = {0}; scanf("%d", &n); for(i = 1;i <= n;i++) { char c; scanf(" %c %d", &c, &a); if(c == 'S') { card[0][a-1]=1; } else if(c == 'H') { card[1][a-1]=1; } else if(c == 'C') { card[2][a-1]=1; } else{ card[3][a-1...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214704/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214704/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(int argc, const char * argv[]) { int cards[4][13]; int i,j,n,Number; char Mark; scanf("%d",&n); for (i=0; i<4; i++) { for (j=0; j<13; j++) { cards[i][j]=0; } } for (i=0; i<n; i++) { scanf(" %c %d",&Mark,&Number);...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214791/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214791/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,k=1,cards[4][14]={0},n,b; char a; scanf("%d",&n); for(i=0;i<n;i++){ scanf(" %c %d",&a,&b); if(a=='S')cards[0][b]=1; if(a=='H')cards[1][b]=1; if(a=='C')cards[2][b]=1; if(a=='D')cards[3][b]=1; } for(j=0;j<4;j++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214834/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214834/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_214885/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214885/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> static long bitset; enum kind { S, H, C, D }; long exists(enum kind k, int n) { long bit; bit = 1l << (k * 13 + n); return bitset & bit; } void setbit(enum kind k, int n) { long bit; bit = 1l << (k * 13 + n); bitset |= bit; } int main(void) { int n, r,...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214935/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214935/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @bitset = internal unnamed_...
#include <stdio.h> #include <stdbool.h> int main(){ int i, j, n; char mark; char marks[4]={'S', 'H', 'C', 'D'}; int num; bool cards[4][13]={false}; scanf("%d ", &n); for(i=0;i<n;i++){ scanf("%c %d ", &mark, &num); for(j=0;j<4;j++){ if(mar...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214979/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214979/source.c" target datalayout = "e-m:e-p270: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.marks = priva...
#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_215020/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215020/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MAX (52) int main(void) { char SUITS[] = "SHCD"; char suit; int cards[MAX] = {}; int count, number; int i; scanf("%d\n", &count); for (i = 0; i < count; i++) { scanf("%c %d\n]", &suit, &number); switch (suit) { case 'H': number += 13; break; case 'C': number += 13 * 2; brea...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215064/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215064/source.c" target datalayout = "e-m:e-p270: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.SUITS = priva...