Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
// AOJ 2012: Space Coconut Grab
// 2017.10.1
#include <stdio.h>
int z3[102];
int y2[1002];
int bsch(int *a, int r, int x)
{
int m, l = 1;
while (l < r) {
m = (l + r) >> 1;
if (a[m] == x) return m;
if (a[m] < x) l = m + 1; else r = m;
}
return l-1;
}
int main()
{
int e, m, y, z, t, ans;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209485/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209485/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@z3 = dso_local local_unnam... |
#include <stdio.h>
int main(void){
char s[200001], s2[200001];
int i=0, j=0;
long count = 0, acount;
scanf("%s", s);
while(s[i] != '\0'){
if(s[i] == 'B' && s[i+1] == 'C'){
s2[j] = 'D';
j++;
i++; i++;
continue;
}
s2[j] = s[i];
i++;
j++;
}
i=0;
while(s2[i] != '... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209557/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209557/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 gcd(long long a,long long b)
{
if(a==0)
return b;
else
return gcd(b%a,a);
}
long long min(long long a,long long b)
{
if(a<b)
return b;
else
return a;
}
int main()
{
long long a,b,t,k=0;
scanf("%I64d %I64d",&a,&b);
while(1)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20960/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20960/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<string.h>
int main(void)
{
int n,ans=0,i=2,j;
char s[201];
scanf("%s", s);
n=strlen(s);
while(ans==0)
{
for(j=0; j<(n-i)/2; j++)
{
if(s[j]!=s[j+(n-i)/2])
break;
if(j==(n-i)/2-1)
ans=n-i;
}
i+=2;
}
printf("%d\n", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209643/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209643/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* ac */
/* gcc ac.c -o ac */
#include <stdio.h>
#include <string.h>
int main()
{
char s[201];
char mae[101], ato[101];
int len;
int half;
scanf("%s", s);
len = strlen(s);
do{
len = len -2;
strncpy(s, s, len);
s[len]='\0';
half = len/2;
strncpy(mae, s, half);
ato[half]='\0';
strncpy(ato, s+half, half);
mae[half... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209700/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209700/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[300] = {0};
int ans = 0;
int i,j;
scanf("%s",s);
ans = strlen(s);
while(1){
ans -= 2;
j = ans / 2;
int z = ans /2;
for(i=0;i<j;i++){
if(s[i] != s[z]){
//printf("%d %d %d\n",i,j... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209744/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209744/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
double x[4],y[4];
int yes;
double katamuki,seppen;
while(1) {
if(scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",
&x[0],&y[0],&x[1],&y[1],&x[2],&y[2],&x[3],&y[3])==-1)break;
yes=1;
if(x[0]==x[2]) {
if((x[1]-x[0])*(x[3]-x[0])>0)yes=0;
} else if(y[0]==y[2]) {
if((y[1]-y[0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209795/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209795/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int di[100000];
int hi[100000];
#define MIN(a, b) ((a) < (b) ? (a) : (b))
int main(){
int n, h; scanf("%d%d", &n, &h);
int i;
int pos = 0;
int hp = h;
int cnt = 0;
for(i = 0; i < n - 1; i++)
scanf("%d%d", di+i, hi+i);
while(1){
int mxv = -1;
int memohp = 0;
int me... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209845/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209845/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 STACK 1000
#define Q 200000
void push(int, int);
int top(int);
void pop(int);
int S[STACK][Q];
int sp[STACK];
int main(void) {
int n, q, op, t, x;
scanf("%d %d", &n, &q);
while(q--) {
scanf("%d %d", &op, &t);
switch(op) {
case 0: scanf("%d", &x);
p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209931/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209931/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int n,k,i;
char s[50];
scanf("%d %d %s",&n,&k,s);
s[k-1]+=32;
printf("%s\n",s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209975/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209975/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
char str[60];
int n, k;
scanf("%d %d", &n, &k);
int i = 0;
while (i <= n)
{
scanf("%c",&(str[i]));
i++;
}
str[i] = '\0';
str[k] = str[k] - ('A'-'a');
printf("%s\n",&(str[1]));
return(0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210016/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210016/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 lli long long int
lli mat[2005][2005];
lli dp[2005][2005];
lli ds[2005][2005];
int n;
void find_dp(int x, int y) {
int i, j;
lli aux = 0;
i = x;
j = y;
while(i <= n && j <= n) {
aux += mat[i][j];
i++;
j++;
}
dp[x][y] = aux;
}
void fin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21006/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21006/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@n = dso_local global i32 0, ... |
#include <stdio.h>
int main(void) {
int N, K;
scanf("%d %d", &N, &K);
char str[N];
scanf("%s", &str);
for (int i = 0; i < N; i++) {
if (i == K - 1) printf("%c", str[i] + 32);
else printf("%c", str[i]);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210102/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210102/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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;
scanf("%d%d ", &n, &k);
for (int i = 0; i < n; i++) {
int c = getchar();
if (i+1 == k) c += 32;
putchar(c);
}
printf("\n");
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210146/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210146/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[51];
int n,k;
scanf("%d %d",&n,&k);
scanf("%s",s);
s[k-1] += 0x20;
printf(s);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210197/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210197/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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;
int k;
int i;
int min = 10001;
int a[1001];
int b[1001];
int flag = 0;
int flag1 = 0;
scanf("%d %d", &n, &k);
for (i = 0; i < n; i++) {
scanf("%d %d", &a[i], &b[i]);
}
for (i = 0; i < n; i++) {
if (a[i] < k || (a[i]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21024/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21024/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 n, k;
scanf("%d%d", &n, &k);
char s[n + 1];
scanf("%s", s);
if ( s[k - 1] == 'A' )
{
s[k - 1] = 'a';
}
else if ( s[k - 1] == 'B' )
{
s[k - 1] = 'b';
}
else if ( s[k - 1] == 'C' )
{
s[k - 1] = 'c';
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210283/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210283/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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;
scanf("%d %d",&N,&K);
char S[N+1];
scanf("%s",S);
K = K-1;
if(S[K]>64 && S[K]<91){S[K]+=32;}
else if(S[K]>96 && S[K]<122){ S[K]-=32;}
printf("%s\n",S );
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210326/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210326/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 n,s,max=-1;
scanf("%d%d",&n,&s);
int a[n],i,b[n];
for(i=0;i<n;i++){
scanf("%d %d",&a[i],&b[i]);
if(s>a[i]&&b[i]!=0&& max < 100-b[i]){
max = 100-b[i];
}else if(s==a[i]&&b[i]==0&&max<b[i]){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21037/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21037/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 n,K;
char S[53]={'\0'};
scanf("%d %d",&n,&K);
scanf("%s",S);
S[K-1]+=32;
printf("%s\n",S);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210412/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210412/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 mod 1000000007
int main(void) {
int s;
scanf("%d", &s);
long A[2001] = { 1 };
if(s < 3) {
puts("0");
return 0;
}
for (int i = 3;i <= s;i++) {
A[i] = A[i-1] + A[i-3];
A[i] %= mod;
}
printf("%ld\n", A[s]);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210456/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210456/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <math.h>
int main()
{
long long int i,j,k,n,z,t,x;
scanf("%lld",&t);
for(int z1=1;z1<=t;z1++)
{
scanf("%lld",&n);
j=0;x=pow(2,n);
for(i=1;i<=n/2-1;i++)
{
k=pow(2,i);
x=x+k;
}
for(i=n/2;i<n;i++)
{
k=pow(2,i);
j=j+k;
}
printf("%lld\n",x-j);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2105/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2105/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include<string.h>
#include<math.h>
#include<time.h>
#define ll long long
#define lli long long int
#define pf printf
#define sf scanf
#define nl printf("\n")
#define pfx printf("x")
int main()
{
lli n,s,i,max,k,x,y;
sf("%I64d %I64d",&n,&s);
max=0;k=0;
for(i=0;i<n;i++)
{
sc... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21055/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21055/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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<math.h>
int main()
{
int n, i;
scanf("%d", &n);
int a[100005];
for(i = 0; i < n; i++)
scanf("%d", &a[i]);
int s = 0, count = 0, bb = 0, eng = 0;
for(i = 0; i < n; i++)
{
s = bb - a[i];
if(s < 0) {
eng += s;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21060/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21060/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
/* ex 5_4
series2 */
#include <stdio.h>
#include <string.h>
int main(void){
char str[11];
char count=0;
char max=0;
scanf("%s",str);
for(int i=0;i<strlen(str);i++){
if(str[i]=='A'||str[i]=='C'||str[i]=='G'||str[i]=='T'){
count++;
}else{
if(count>max){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210643/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210643/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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
shu_t */
#include <stdio.h>
int main(void){
char capital_str[11];//store str (1<=|S|<=10 + '\0')
char *ptr;//pointer
int length=0,ans=0;//length of partial str
//input str
scanf("%s",capital_str);
//store address
ptr = capital_str;
while(*ptr){//until null
if(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210687/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210687/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,h[100010],e[100010],d=0;
int i;
h[0]=e[0]=0;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
scanf("%d",&h[i]);
if(h[i]-h[i-1]>e[i-1])
{
d+=h[i]-h[i-1]-e[i-1];
e[i]=0;
}
else
e[i]=e[i-1]-h[i]+h[i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21073/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21073/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <math.h>
#include <string.h>
int main(){
char s[10];
scanf("%s",s);
int len = strlen(s);
//printf("%d\n",len);
//printf("%s\n",s);
int count = 0;
int max = -1;
for(int i=0;i<len;i++){
if(s[i] == 'A' || s[i] == 'G' || s[i] == 'C' || s[i] == 'T'){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210773/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210773/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 s[11];
int i = 0;
int count = 0;
int a[11];
int k = 0;
int temp = 0;
for(i = 0; i < 11; i++){
a[i] = 0;
}
scanf("%s", &s);
for(i = 0; i < 11; i++){
if(s[i] == 'A' || s[i] == 'C' || s[i] == 'G' || s[i] == 'T'){
count += 1;
}
else{
a[i] = count;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210823/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210823/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int a,b,c;
char s[101];
scanf("%s",s);
for(a=0;a<10;a++){
if(s[a]=='A'||s[a]=='T'||s[a]=='C'||s[a]=='G'){b++;if(b>c)c=b;}
else b=0;
}
printf("%d",c);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210867/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210867/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,s=0,e=0,d;
scanf("%d",&n);
int a[n+1],i;
a[0]=0;
for(i=1;i<=n;i++){
scanf("%d",&a[i]);
d = a[i]-a[i-1];
if(e-d<0){
s += (e-d) *-1 ;
e = 0;
}
else
e = e-d;
}
printf("%d",s);
ret... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21091/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21091/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include "stdio.h"
#include"string.h"
int main()
{
char s[10];
scanf("%s",&s);
int len;
len=strlen(s);
int c[10];
for (int i = 0; i < 10; ++i)
{
if (s[i]=='A'||s[i]=='T'||s[i]=='G'||s[i]=='C')
{
c[i]=1;
//printf("c[%d] is %d\n",i,c[i]);
}els... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210968/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210968/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 s[11];
int max, head, pointer, length;
scanf("%s", s);
head = 0;
max = 0;
while(s[head] != '\0'){
pointer = head;
length = 0;
while(s[pointer] == 'A' || s[pointer] == 'C' || s[pointer] == 'G' || s[pointer] == 'T'){
l... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211017/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211017/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
int *primes = NULL;
int max = 30000;
inline int prime(int n)
{
return primes[n];
}
void euclid(void)
{
int i,j;
int sqrt_max;
int *list;
list=(int*)malloc(sizeof(int)*max+1);
primes=(int*)malloc(sizeof(int)*max+1);
sqrt_max = (int)(s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211068/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211068/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@primes = dso_local local_u... |
#include <stdio.h>
int ar[100001] = {0};
int br[100001] = {0};
int main()
{
int t;
scanf("%d", &t);
int i, n, max=0, max2=0, idx=-1, idx2=-1, c[t+5], ans=0, ans2=0;
for (i=0; i<t; i++)
{
scanf("%d", &c[i]);
if(i%2)
ar[c[i]]++;
else
br[c[i]]++;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211110/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211110/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ar = dso_local local_unnam... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int int_sort( const void * a , const void * b ) {
if( *( int * )a < *( int * )b ) {
return -1;
}
else
if( *( int * )a == *( int * )b ) {
return 0;
}
return 1;
}
int main(void){
int N;
scanf("%d", &N);
int *A,*B;
A = (int*)mal... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211154/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211154/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<stdint.h>
#include<inttypes.h>
#include<string.h>
typedef int32_t flow_type;
const flow_type flow_inf=200;
typedef struct flow_edge{
int vertex;
int next;
flow_type capacity;
} flow_edge;
typedef struct maxFlowGraph{
flow_edge *edge;
int *start;
int vertex_n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211198/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211198/source.c"
target datalayout = "e-m:e-p270: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.maxFlowGraph = type... |
#include<stdio.h>
int main(void)
{
int n, k, m;
scanf("%d", &n);
scanf("%d", &k);
if(n%2 == 0){
m=n/2;
}else{
m=n/2+1;
}
if(m >= k){
printf("YES");
}else{
printf("NO");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211240/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211240/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,N,K,num=0;
scanf("%d",&N);
scanf("%d",&K);
for(i=1;i<=N;i++)
{
if(i%2!=0)
{
num++;
}
}
if(num>=K)
{
printf("YES\n");
}
else
{
printf("NO\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211284/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211284/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <inttypes.h>
#include <string.h>
#include <math.h>
int main (int argc, char const *argv[])
{
int64_t N, K;
int64_t ans = 0;
scanf("%"PRId64"%"PRId64, &N, &K);
if ((N / 2 + (N % 2)) >= K) {
puts("YES");
} else {
pu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211327/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211327/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
typedef struct {
int number;
int katiten;
int zyuni;
} team_t;
int comp(const void* x,const void* y) {
team_t* a=(team_t*)x;
team_t* b=(team_t*)y;
if(a->katiten<b->katiten)return 1;
if(a->katiten>b->katiten)return -1;
return 0;
}
int main(int argc,char* argv[]) {
int s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211385/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211385/source.c"
target datalayout = "e-m:e-p270: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.team_t = type { i32... |
#include <stdio.h>
typedef long long ll;
int main() {
ll a, b, c, k;
scanf("%lld%lld%lld%lld", &a, &b, &c, &k);
printf("%lld\n", k % 2 == 0 ? a - b : b - a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211442/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211442/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 COL 5
//ステップ1,2,3を一回実行する関数
int solve_1_time(int ** ban, int H) {
int i, j, k;
int score = 0;
//消滅の過程
for (i = H - 1; i >= 0; i--) {
int same_num = 1;
int max_id = -1;
int max = 0;
for (j = 1; j < COL; j++) {
if ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211565/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211565/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cmpint(const void *x, const void *y) {
return *(int *)x - *(int *)y;
}
int main() {
int n, x, a[100], sum = 0;
scanf("%d%d", &n, &x);
for (int i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
qsort(a, n, sizeof(int), cmpint);
for (int i = 0; i < n; i++) {
sum += a[i];
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211608/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211608/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,mem,n,x,count;
scanf("%d %d",&n,&x);
int ai[n];
for(i=0;i<n;i++){
scanf("%d",&ai[i]);
}
for(i=0;i<n;i++){
for(j=i;j<n;j++){
if(ai[i] >ai[j]){
mem = ai[i];
ai[i] = ai[j];
ai[j] = mem;
}
}
}
count=0;
for(i=0;(x>0)&&(i<n);i++){
x=x-ai[i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211651/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211651/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 1302 Twenty Questions
// 2018.2.6 bal4u
#include <stdio.h>
#include <string.h>
int m, n;
int s[129];
char memo[20148][2048];
//#define getchar_unlocked() getchar()
int in()
{
int n = 0;
int c = getchar_unlocked();
do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked();
while (c >= '0');
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211695/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211695/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct._IO_FILE = type { i... |
#include<stdio.h>
#include<stdlib.h>
struct node{
struct node *r;
struct node *l;
struct node *par;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
void insert(int k){
Node y = NIL;
Node x = root;
Node z;
z = malloc(sizeof(struct node));
z->key = k;
z->l = NIL;
z->r = NIL;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211738/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211738/source.c"
target datalayout = "e-m:e-p270: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;
int n;
/*
Node treeMinimum(Node x){
}
Node treeMaximum(Node x){
}
Node treeSearch(Node u, int k){
}
Node treeSuccessor(No... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211781/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211781/source.c"
target datalayout = "e-m:e-p270: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 treeMaximum(Node x){
while((x->right) !... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211824/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211824/source.c"
target datalayout = "e-m:e-p270: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 treeMaximum(Node x){
while(x->right !=N... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211875/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211875/source.c"
target datalayout = "e-m:e-p270: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 treeMaximum(Node x){
while(x->right != N... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211918/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211918/source.c"
target datalayout = "e-m:e-p270: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){
if(u == NIL ||... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211983/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211983/source.c"
target datalayout = "e-m:e-p270: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){
}
Node treeSearch(Node u, int k){
}
Node treeSuccessor(Node x){
}
void treeDelete(Node z){
Nod... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212025/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212025/source.c"
target datalayout = "e-m:e-p270: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 *r;
struct node *l;
struct node *p;
int key;
};
typedef struct node * Node;
Node root;
void ins(int k){
Node y = NULL;
Node x = root;
Node z;
z = malloc(sizeof(struct node));
z -> key = k;
z -> l = NULL;
z -> r = NULL;
while(x !... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212069/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212069/source.c"
target datalayout = "e-m:e-p270: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 *l;
struct Node *r;
struct Node *p;
};
typedef struct Node *node;
void insert(node,node);
void inorder(node);
void preorder(node);
int main(){
node root,T[500000];
int i,m,num;
char str[7];
scanf("%d",&m);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212119/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212119/source.c"
target datalayout = "e-m:e-p270: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>
#define NIL -1
typedef struct{
int k;
int l;
int r;
} Node;
void insert(Node *T, int index, int key){
int x = 0;
int y;
T[index].k = key;
T[index].l = NIL;
T[index].r = NIL;
if( index == 0 ){
return;
}
while( x != NIL ){
y = x;
if( key < T[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212177/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212177/source.c"
target datalayout = "e-m:e-p270: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>
typedef struct node{
struct node *left;
struct node *right;
struct node *parent;
int key;
}node;
node *T;
void Insert(int);
void Inorder(node*);
void Preorder(node*);
void Free(node*);
int main(){
int n, i, key;
char func[6];
T = (node *)malloc(sizeo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212227/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212227/source.c"
target datalayout = "e-m:e-p270: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;
Node treeSearch(Node x, int k){
if(x == NIL || k == x->key) return x;
if(k < x->key) return treeSearch(x->left,k);
else retu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212270/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212270/source.c"
target datalayout = "e-m:e-p270: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 cell{
int id;
struct cell *right;
struct cell *left;
}cell;
void preorder(cell *root){
cell *p=root;
printf(" %d",p->id);
if(p->left!=NULL){preorder(p->left);}
if(p->right!=NULL){preorder(p->right);}
return;
}
void inorder(cell *root){
cell *p=root;
if(p->le... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212320/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212320/source.c"
target datalayout = "e-m:e-p270: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.cell = 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
void inorder(Node);
void prerder(Node);
void insert(int);
Node root = NIL;
void insert(int k){
Node y = NIL;
Node x = root;
Node z;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212371/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212371/source.c"
target datalayout = "e-m:e-p270: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){
/*while(u!=NIL && ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212421/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212421/source.c"
target datalayout = "e-m:e-p270: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 *R,*L,*oya;
int s;
};
typedef struct node *tree;
tree run;
tree treeMinimum(tree x){
while(x->L!=NULL) x =x->L;
return x;
}
void make(int x){
tree b=NULL;
tree a=run;
tree c;
c=malloc(sizeof(struct node));
c->s=x;
c->L=NULL;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212465/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212465/source.c"
target datalayout = "e-m:e-p270: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=NIL;
Node treeMinimum(Node x){
if(x->left == NIL) return x;
else treeMinimum(x->left);
}
Node treeMaximum(Node x){
if(x->right... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212508/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212508/source.c"
target datalayout = "e-m:e-p270: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 treeMaximum(Node x){
while(x->right != ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212551/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212551/source.c"
target datalayout = "e-m:e-p270: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;
Node root,NIL;
Node treeMinimum(Node x){
while(x->left!=NIL)
x=x->left;
return x;
}
Node treeMaximum(Node x){
while(x->right!=NIL)
x=x->right;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212595/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212595/source.c"
target datalayout = "e-m:e-p270: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;
Node treeMinimum(Node);
Node treeMaximum(Node);
Node treeSearch(Node, int);
Node treeSuccessor(Node);
void treeDelete(Node);
void tra... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212638/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212638/source.c"
target datalayout = "e-m:e-p270: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_212681/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212681/source.c"
target datalayout = "e-m:e-p270: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(1){
if (x->left!=NIL){
x=x->left;
return x;
}
else{
break;
}
}
}
Node ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212724/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212724/source.c"
target datalayout = "e-m:e-p270: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<stdlib.h>
#define MAX 500000
struct Node {
int key;
struct Node *pa,*l,*r;/*parents left child right child*/
};
struct Node *root,*NIL;
void insert(int k){/*挿入 挿入するキー*/
struct Node *y=NIL;
struct Node *x=root;
struct Node *z;
z=(struct Node *)malloc(sizeof(struc... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212775/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212775/source.c"
target datalayout = "e-m:e-p270: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;
void insert(int k){
Node y=NIL;
Node x=root;
Node z;
z=malloc(sizeof(struct node));
z->key=k;
z->left=NIL;
z->righ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212818/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212818/source.c"
target datalayout = "e-m:e-p270: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;
Node root,NIL;
void insert(int k){
Node y = NIL;
Node x = root;
Node z;
z = malloc(sizeof(struct node));
z->key = k;
z->left = NIL;
z->right =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212861/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212861/source.c"
target datalayout = "e-m:e-p270: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<math.h>
int main(){
int n,y,b,r,t;
int i,mi;
double m,max;
while(1){
scanf("%d",&n);
if(n==0)break;
scanf("%d",&y);
max=0.0;
for(i=0;i<n;i++){
scanf("%d %d %d",&b,&r,&t);
if(t==1)m=1.0+(double)y*r/100.0;
else m=pow((1.0+r/100.0),(double)y);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212911/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212911/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 () {
long N;
scanf("%ld", &N);
long *A = malloc((N + 2) * sizeof(long));
long *B = malloc((N + 1) * sizeof(long));
for (long i = 1; i <= N + 1; i++) {
scanf("%ld", &A[i]);
}
for (long i = 1; i <= N; i++) {
scanf("%ld", &B[i])... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212955/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212955/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#define N 100000
int min(int a, int b) {
return a < b ? a : b;
}
int main() {
static int aa[N + 1], bb[N];
int n, i, x;
long long ans;
scanf("%d", &n);
for (i = 0; i < n + 1; i++)
scanf("%d", &aa[i]);
for (i = 0; i < n; i++)
scanf("%d", &bb[i]);
ans = 0;
for (i = 0; i < n; i++) {
x... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212999/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212999/source.c"
target datalayout = "e-m:e-p270: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.aa = internal global ... |
#include<stdio.h>
long long int min(long long int a,long long int b){
if(a>b) return b;
return a;
}
int main(void){
int n,i;
long long int ans=0;
scanf("%d",&n);
long long int a[n+1],b[n];
for(i=0;i<n+1;i++) scanf("%lld",&a[i]);
for(i=0;i<n;i++) scanf("%lld",&b[i]);
for(i=0;i<n;i++){
if((a[i]+a[i+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213040/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213040/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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;
scanf("%d",&N);
long A[N+1];
for(int i=0;i<N+1;i++)
scanf("%ld",&A[i]);
long B[N];
for(int i=0;i<N;i++)
scanf("%ld",&B[i]);
long count=0;
for(int i=0;i<N;i++){
if(B[i]>A[i]){
if((A[i+1]+A[i]-B[i])>0){
count=count+A[i]+(B[i]-A[i]);
A[i+1]=A[i+1]-(B[i]-A[i])... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213084/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213084/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
long long llmax(long long a,long long b){if(a>b){return a;}return b;}
long long llmin(long long a,long long b){if(a<b){return a;}return b;}
int main(){
long long i,n,r=0,t;
long long *a=malloc(sizeof(long long)*131072);
long long *b=malloc(sizeof(long long)*131072);
scanf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213127/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213127/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
int a, b, c, d;
scanf("%d%d%d%d", &a, &b, &c, &d);
printf("%d", a != c ? 1 : 0);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213178/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213178/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(void)
{
int a,b,c,d;
scanf("%d %d",&a,&b);
scanf("%d %d",&c,&d);
if(a==c)
{
printf("0");
return 0;
}
if(a+1==c)
{
if(d==1)
{
printf("1");
return 0;
}
}
else
{
printf("0");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213220/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213220/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 ma;
int da;
int mb;
int db;
scanf("%d %d %d %d",&ma,&da,&mb,&db);
if(ma != mb){
printf("1");
}else{
printf("0");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213264/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213264/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 M1,D1,M2,D2;
scanf("%d %d",&M1,&D1);
scanf("%d %d",&M2,&D2);
if(M1 == M2){
printf("0\n");
}else{
printf("1\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213307/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213307/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdlib.h>
#include <stdio.h>
long long Max(long long x,long long y){
return x>y?x:y;
}
long long Min(long long x,long long y){
return x<y?x:y;
}
long long p=1000000000,n,a,b,c,l[10];
void dfs(long long i,long long A,long long B,long long C,long long T){
if(i==n+1){return;}
if(A>0&&B>0&&C>0){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213365/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213365/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@p = dso_local local_unname... |
#include<stdio.h>
int main(void){
int x, y;
scanf("%d%d", &x, &y);
if((y <= 4*x && y >= 2*x)&&(y%2 == 0)){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213422/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213422/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 x,y;
scanf("%d%d",&x,&y);
if(y%2==0&&y<=x*4&&x*2<=y){
printf("Yes");
}else{
printf("No");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213466/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213466/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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, w=1;
scanf("%d%d",&x, &y);
for(int i=0; i<x+1; i++)
{
if(4*x-2*i==y)
{printf("Yes"); w=0; break;}
}
if(w) printf("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213509/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213509/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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;
double c, t;
scanf("%d%d", &x, &y);
c = (4 * x - y) / 2.0;
t = (y - 2 * x) / 2.0;
if(c>=0 && t >=0 && c-(int)c==0 && t-(int)t==0){
printf("Yes");
}else{
printf("No");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213552/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213552/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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;
int y;
scanf("%d%d",&x,&y);
int a=x,b=0,k;
while(1){
k=((a*2)+(b*4));
if(k==y){
printf("Yes");
return 0;
}
a--;
b++;
k=0;
if(a<0){
break;
}}
printf("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213596/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213596/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main(void){
// Your code here!
int x, y,z=0, kaunnto = 0;
scanf("%d%d", &x, &y);
int turu = x, kame=0;
for(int i=0;i<=x;i++){
z = turu*2 + kame*4;
if(z==y){
printf("Yes");
kaunnto = 1;
}
turu = turu-1;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213646/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213646/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int n, k, i;
int a[50];
scanf("%d %d", &n, &k);
for (i = 0; i < n; i++) scanf("%d", &a[i]);
if (a[k - 1] > 0) {
for (i = k; i < n; i++) {
if (a[i] != a[k - 1]) break;
}
printf("%d\n", i);
} else {
for (i = k - 1; i >= 0; i--) {
if (a[i] > 0) bre... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21369/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21369/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
int main(){
int x,y;
scanf("%d%d",&x,&y);
puts(y%2||y<2*x||y>4*x?"No":"Yes");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213732/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213732/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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);
if (y % 2 == 0 && 4 * x - y >= 0 && y - 2 * x >= 0) {
printf("Yes");
}
else printf("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213776/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213776/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 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_213826/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213826/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s[7];
scanf("%s",s);
if(s[0]=='S')
printf("Cloudy");
else if(s[0]=='C')
printf("Rainy");
else if(s[0]=='R')
printf("Sunny");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213877/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213877/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t[10];
scanf("%s",t);
if(t[0]=='S'){
printf("Cloudy");
}else if(t[0]=='C'){
printf("Rainy");
}else{
printf("Sunny");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213934/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213934/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 C "Cloudy"
#define S "Sunny"
#define R "Rainy"
int main()
{
char s[6];
scanf("%s",s);
if(strcmp(s,S)==0)
{
printf("%s",C);
}
if(strcmp(s,C)==0)
{
printf("%s",R);
}
if(strcmp(s,R)==0)
{
printf("%s",S);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213992/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213992/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 x[10];
scanf(" %s", &x);
if(x[0]=='S'){
printf("%s","Cloudy");
}else if(x[0]=='C'){
printf("%s","Rainy");
}else if(x[0]=='R'){
printf("%s","Sunny");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214041/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214041/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
char a[6];
scanf("%s",a);
if(a[0]=='S'){
printf("Cloudy\n");
}
else if(a[0]=='C'){
printf("Rainy\n");
}
else{
printf("Sunny\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214106/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214106/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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, c[5], i, t, res;
for (i = 1; i <= 4; i++)
c[i] = 0;
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &t);
c[t]++;
}
res = c[4] + c[3];
if (c[1] > c[3]) {
c[1] -= c[3];
} else
c[1] = 0;
res... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21415/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21415/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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) {
char s[10];
scanf("%s", s);
if(s[0] == 'S') {
printf("Cloudy\n");
} else if(s[0] == 'C') {
printf("Rainy\n");
} else {
printf("Sunny\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214207/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214207/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>
#include <math.h>
#define N_MAX (100)
#define P_MAX (100)
#define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1)
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214258/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214258/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.