Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
#include<string.h>
int main(){
char s[13],t[14];
scanf("%s\n",s);
scanf("%s\n",t);
int k,l,m,count=0;
k=strlen(s);
l=strlen(t);
if(l-k==1){
for(int i=0;i<k;i++)
if(s[i]==t[i])
count++;
else break;
if(count==k)
printf("Yes");
else
printf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207543/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207543/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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( )
{
int i,p=1;
char a[20];
char b[20];
scanf("%s",a);
scanf("%s",b);
for(i=0;a[i];i++)
if(a[i]!=b[i])
p=0;
if((strlen(b)-strlen(a))!=1)
p=0;
if(p==0)
{printf("No");return 0;}
if(p==1)
{printf("Yes");return 0;}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207594/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207594/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[11], t[11];
scanf("%s%s", s, t);
if (strncmp(s, t, strlen(s)) == 0 && strlen(t) == strlen(s) + 1)
printf("Yes\n");
else
printf("No\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207659/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207659/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
char s[11],t[12];
scanf("%s",&s);
scanf("%s",&t);
for(i=0;s[i]!=0;i++){
if(s[i]!=t[i]) break;
}
if(s[i]==0){
printf("Yes");
}else{
printf("No");
}
return(0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207723/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207723/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int compare_int(const void *a,const void *b){
return *(int*)a-*(int*)b;
}
int main(){
int a[5];
while( scanf("%d,%d,%d,%d,%d",&a[0],&a[1],&a[2],&a[3],&a[4])!=EOF){
qsort(a,5,sizeof(int),compare_int);
if((a[0]==a[1]&& a[1]==a[2] && a[2]==a[3]) || (a[1]==a[2] && a[2]==... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207774/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207774/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 pair(int a, int b, int c, int d, int e)
{
int card[14] = {0};
int i, t, u=0;
t = a;
card[t] = card[t] + 1;
t = b;
card[t] = card[t] + 1;
t = c;
card[t] = card[t] + 1;
t = d;
card[t] = card[t] + 1;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207817/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207817/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int k;
int a[1000001];
scanf("%d", &k);
a[1] = 7 % k;
for(int i = 2; i <= k; ++i){
a[i] = (10 * a[i-1] + 7) % k;
}
int flag = 0;
for(int i = 1; i <= k; ++i){
if(a[i] == 0){
printf("%d\n", i);
flag = 1;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207875/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207875/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int k, l;
int ans = 1;
scanf("%d", &k);
if (k % 7 == 0)
l = 9 * k / 7;
else
l = 9 * k;
if (l % 2 == 0 || l % 5 == 0)
ans = -1;
else
{
int remain = 10 % l;
while (remain != 1) {
remain = remain ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207918/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207918/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 K;
int N=1;
long long int S=7LL;
scanf("%lld",&K);
if(K%2LL==0 || K%5LL==0){
printf("-1\n");
}else{
while(S%K!=0){
S=(S*10LL+7LL)%K;
N++;
}
printf("%d\n",N);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207961/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207961/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 long long ll;
typedef const void cv;
int downint(cv *a, cv *b) {
return *(int *)a < *(int *)b ? 1 : *(int *)a > *(int *)b ? -1 : 0;
}
int main(void){
int n,k,i,h[200000];
ll result=0;
scanf("%d",&n);
scanf("%d",&k);
for(i=0;i<n;i++){
scanf("%d",&h[i]);
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208003/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208003/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
void merge(int arr[], int l, int m, int r)
{
int i, j, k;
int n1 = m - l + 1;
int n2 = r - m;
/* create temp arrays */
int L[n1], R[n2];
/* Copy data to temp arrays L[] and R[] */
for (i = 0; i < n1; i++)
L[i] = arr[l + i];
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208054/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208054/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 Swap(int x[ ], int i, int j)
{
int temp;
temp = x[i];
x[i] = x[j];
x[j] = temp;
}
/* クイックソートを行う */
void QSort(int x[ ], int left, int right)
{
int i, j;
int pivot;
i = left; /* ソートする配列の一番小さい要素の添字 */
j = right; ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208104/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208104/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cmp(const int *a,const int *b){
return *a > *b ? -1 : *a < *b ? 1 : 0 ;
}
//qsort(pa,n,sizeof(int),(int(*)(const void* ,const void*))cmp);
//syoujiyunn
int main(void){
int n;
int k;
scanf("%d%d",&n,&k);
long long int h[n];
int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208162/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208162/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
int A,B,C;
scanf("%d %d %d",&A,&B,&C);
if(A == B)
printf("%d\n",C);
if(B == C)
printf("%d\n",A);
if(A == C)
printf("%d\n",B);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208205/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208205/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 p,q,r;
scanf("%d%d%d",&p,&q,&r);
if(p==q){printf("%d",r);}
else if(q==r){printf("%d",p);}
else if(r==p){printf("%d",q);}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208256/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208256/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
while (scanf("%d %d %d", &a, &b, &c) == 3)
printf("%d\n", a*b+(c-1)*b+(c-1)*(a-1));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2083/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2083/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include<stdio.h>
int main(void)
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a==b){
printf("%d\n",c);
}
else if(a==c){
printf("%d\n",b);
}
else{
printf("%d\n",a);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208342/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208342/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int y;
int z;
scanf("%d%d%d", &x, &y, &z);
if (x == y)
printf("%d\n", z);
else if (y == z)
printf("%d\n", x);
else
printf("%d\n", y);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208393/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208393/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//set many funcs template
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define inf 1072114514
#define llinf 1145141919810364364
#define mod 1000000007
int max(int a,int b){if(a>b){return a;}return b;}
int min(int a,int b){if(a<b){return a;}return b;}
int zt(int a,int b){return max(a,b)-min(a,b);}
int round(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208436/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208436/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
int compare (const void *q,const void *w)
{
return *(int*)w-*(int*)q;
}
int main()
{
int n,k,i;
long long int result;
char c;
scanf("%d%d",&n,&k);
int a[26]={0};
getchar();
for(i=0;i<n;i++)
{
c=getchar();
a[c-'A']+=1;
}
qsort(a,26,sizeof(int),compare);
result=0;
i=0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20848/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20848/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<string.h>
#define MYSTRINGMAX 200000 // 配列20万分取る
#define SIZE MYSTRINGMAX + 2 // MYSTRINGMAX+2した値をSIZEに入れたものを定義する SIZE = 200002
int main(void) {
char s[SIZE], t[SIZE];
char c1[SIZE] = {0};
char c2[SIZE] = {0};
fgets(s, SIZE, stdin);
fgets(t, SIZE, stdin);
int length = strlen(s) - 1;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208522/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208522/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include<stdio.h>
int main()
{
int A;
int B,C,D;
int P;
int costa,costb;
scanf("%d",&A);
scanf("%d",&B);
scanf("%d",&C);
scanf("%d",&D);
scanf("%d",&P);
costa=A*P;
if(P>=C)costb=B+(P-C)*D;
else costb=B;
if(costa>costb)printf("%d\n",costb);
else printf("%d\n",costa);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208595/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208595/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,p,x,y;
scanf("%d %d %d %d %d",&a,&b,&c,&d,&p);
x = a * p;
if(c <= p){
y = b + (d * (p - c));
}else{
y = b;
}
if(x < y){
printf("%d\n",x);
}else{
printf("%d\n",y);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208645/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208645/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main(){
int a,b,c,d,p,ans;
scanf("%d %d %d %d %d",&a,&b,&c,&d,&p);
a=a*p;
if(p-c>0){
b=b+(p-c)*d;
}
ans=fmin(a,b);
printf("%d\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208696/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208696/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a,b,c,d,p,x,y;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
scanf("%d",&d);
scanf("%d",&p);
x=a*p;
if(p<=c) y=b;
else y=(p-c)*d+b;
if(x<y) printf("%d\n",x);
else printf("%d\n",y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208739/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208739/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 _set{
int *element;
int eCnt;
struct _set *next;
}SET;
SET* initSet(int n){
int i;
SET *p,*head;
for(i=0;i<n;i++){
if(i==0){
head=(SET*)malloc(sizeof(SET));
p=head;
}else{
p->next=(SET*)ma... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208782/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208782/source.c"
target datalayout = "e-m:e-p270: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._set = type { ptr, ... |
#include <stdio.h>
int main()
{
int n,i,j,count,flag=0;
scanf("%d",&n);
char a[n][n];
for(i=0;i<n;i++)
scanf("%s",&a[i]);
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
count=0;
if((i-1)>=0&&a[i-1][j]=='o') count++;
if((j-1)>=0&&a[i][j-1]=='o') count++;
if((i+1)<n&&a[i+1][j]=='o') count++;
if((j+1)<n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20884/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20884/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
void sort(int l[], int n)
{
for (int i = 0; i < n - 1; i++){
for (int j = n - 1; j > i; j--){
if (l[j] > l[j - 1]){
int temp = l[j];
l[j] = l[j - 1];
l[j - 1] = temp;
}
}
}
}
#include <stdio.h>
int coun... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208890/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208890/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*2019/10/19 */
/*template*/
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#define MOD 1000000007
#define MIN 999999999
#define MAX -999999999
typedef long long int ll;
typedef unsigned long long int ull;
void llswap(ll *x,ll *y){ll tmp;tmp=*x;*x=*y;*y=tmp;}
void swap(int *x,int *y){int tmp;t... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208948/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208948/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N;
int a;
int main(){
int i;
int x=0;
long long int ans=0;
scanf("%d",&N);
for(i=0;i<N;i++){
scanf("%d",&a);
ans=ans+(a+x)/2;
if(a==0)x=0;
else x=(a+x)%2;
}
printf("%lld\n",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208991/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208991/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 time[86400]={},h,m,s,i,n,sum,ans;
while(scanf("%d",&n)){
if(n==0) break;
for(i=0;i<n;i++){
scanf("%d:%d:%d",&h,&m,&s);
s+=3600*h+60*m;
time[s]+=1;
scanf("%d:%d:%d",&h,&m,&s);
s+=3600*h+60*m;
time[s]-=1;
}
ans=0;
sum=0;
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209033/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209033/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int a,b,c,d;
scanf("%d%d%d%d",&a,&b,&c,&d);
printf("%d",a*b-c*b-d*a+c*d);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209077/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209077/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
int H, W;
do {
scanf("%d %d", &H, &W);
} while (H < 1 || H > 20 || W < 1 || W > 20);
int h, w;
do {
scanf("%d %d", &h, &w);
} while (h < 1 || h > H || w < 1 || w > W);
int n;
n = (H * W) - (h * W) - (w * H) + (h * w);
printf("%d\n", n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209127/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209127/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 osero(int c,int d, int e, int f){
int a = c -e;
int b = d - f;
printf("%d\n", a * b);
return 0;
}
int main(){
int H,W,h,w;
scanf("%d %d",&H,&W);
scanf("%d %d",&h,&w);
osero(H,W,h,w);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209170/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209170/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int H,W,h,w;
scanf("%d%d",&H,&W);
scanf("%d%d",&h,&w);
printf("%d",H*W-h*W-(H*w-h*w));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209213/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209213/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int
main()
{
int H,W,h,w;
int answer;
scanf("%d %d",&H,&W);
scanf("%d %d",&h,&w);
answer=H*W-H*w-h*W+h*w;
printf("%d\n",answer);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209271/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209271/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 str[20][20];
int H,W,h,w;
int i,j,result = 0;
scanf("%d %d",&H,&W);
scanf("%d %d",&h,&w);
for(i = 0;i < H;i++){
for(j = 0;j < W;j++){
str[i][j] = 0;
}
}
for(i = 0;i < h;i++){
for(j = 0;j < W;j++){
str[i][j] = 1;
}
}
for... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209314/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209314/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*
* main.c
*
* Created on: 2019/03/09
* Author: family
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main()
{
int H, W, h, w;
int remain = 0;
scanf("%d %d", &H, &W);
scanf("%d %d", &h, &w);
remain = H * W;
remain -= (W * h);
remain -= ((H - h) * w);
printf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209358/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209358/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#include <time.h>
int main(int argc, char const *argv[])
{
int H,W,a,b;
scanf("%d%d%d%d",&H,&W,&a,&b);
printf("%d\n",(H - a) * (W - b));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209408/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209408/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//
// main.c
// Space Coconut Grab
//
// Created by x15071xx on 2016/06/09.
// Copyright ?? 2016??´ AIT. All rights reserved.
//
#include <stdio.h>
int main(int argc, const char * argv[]) {
int x=0,y=0,z=0;
int e,m=99999;
while (1) {
m=99999999;
scanf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209473/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209473/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a,b,count=0,temp;
scanf("%I64d %I64d",&a,&b);
while(a&&b){
if(a>b){
temp=a/b;
a=a-temp*b;
count+=temp;
}
else{
temp=b/a;
b=b-temp*a;
count+=temp;
}
}
printf("%I64d",count);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20956/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20956/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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) {
long long int a,b,ans,temp;
scanf("%lld%lld",&a,&b);
ans=0;
while(a%b!=0)
{
ans=ans+a/b;
temp=b;
b=a%b;
a=temp;
}
ans=ans+a/b;
printf("%lld\n",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20961/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20961/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <string.h>
#include <stdio.h>
int main()
{ char s[201];
scanf("%s",s);
int l=strlen(s);
for(int i=l/2-2;i>0;i--){
int cnt=0;
for(int j=0;j<i;j++){
if(s[j]==s[i+j]){
cnt++;
}else{
break;
}
if(cnt==i){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209660/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209660/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
char s[401];
int main(void)
{
int sn;
char tmp_s[200];
scanf( "%s", s );
sn = strlen( s );
while(1) {
sn -= 2;
strcpy( tmp_s, s + sn/2 );
if ( strncmp( s, tmp_s, sn / 2 ) == 0 ) break;
}
printf( "%d\n", sn );
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209710/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209710/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[200] = {};
int i = 0, len = 0, half = 0, j, count = 0;
scanf("%s", s);
len = strlen(s);
for (i = len - 2; i >= 2;i -= 2){
count = 0;
half = i / 2;
for (j = 0;j < half;j++) {
if (s[j] == s[half + j]) {
count++;
}
}
if (count == ha... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209754/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209754/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 Volume 0 Problem 0012
#include <stdio.h>
#include <math.h>
typedef struct {
double x1;
double y1;
double x2;
double y2;
} LINE;
int cross(LINE *l1, LINE *l2)
{
double ta, tb, tc, td;
// ta=(x3-x4)*(y1-y3)+(y3-y4)*(x3-x1)
// tb=(x3-x4)*(y2-y3)+(y3-y4)*(x3-x2)
// tc=(x1-x2)*(y3-y1)+(y1-y2)*(x1-x3)
// t... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209798/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209798/source.c"
target datalayout = "e-m:e-p270: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.LINE = type { doubl... |
#include <stdio.h>
int main()
{
long long int a,b,c,d,sum=0;
scanf("%I64d %I64d", &a, &b);
do {
d = a / b;
c = a % b;
a = b;
b = c;
sum = sum + d;
}while(c!=0);
printf("%I64d",sum );
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20987/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20987/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define INIT_CAP 100
typedef struct Stack {
int size;
int capacity;
int *data;
} Stack;
static inline void s_init(Stack* s) {
s->size = 0;
s->capacity = INIT_CAP;
s->data = (int *)malloc(sizeof(int) * s->capacity);
}
static inline vo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209912/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209912/source.c"
target datalayout = "e-m:e-p270: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.Stack = type { i32,... |
#include <stdio.h>
int main(){
char S[50];
int N,K;
scanf("%d %d",&N,&K);
getchar();
scanf("%s",&S);
S[K-1]=S[K-1]+32;
printf("%s",&S);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209963/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209963/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <math.h>
int main() {
int n, k;
char s[50];
scanf("%d %d", &n, &k);
scanf("%s", s);
s[k - 1] = s[k - 1] + 32;
printf("%s", s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210011/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210011/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100];
scanf("%d%d", &N, &K);
scanf("%s" ,S);
S[K-1]+=32;
printf("%s" ,S);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210062/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210062/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d%d",&N,&K);
char S[50];
scanf("%s",S);
S[K-1]=S[K-1]+32;
printf("%s\n",S);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210105/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210105/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i;
char S[50];
scanf("%d %d",&N,&K);
scanf("%s",S);
S[K-1] = S[K-1] + 32;
printf("%s",S);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210149/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210149/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
char s[50];
scanf("%d %d",&n,&k);
scanf("%s",s );
s[k-1] = s[k-1] + 32;
printf("%s\n",s );
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210192/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210192/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[256];
int N = 0;
int K = 0;
scanf("%d %d",&N,&K);
scanf("%s",&S);
if (S[K - 1] == 'A')
{
S[K - 1] = 'a';
}
if (S[K - 1] == 'B') {
S[K - 1] = 'b';
}
if (S[K - 1] == 'C') {
S[K - 1] = 'c';
}
printf("%s\n",S);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210235/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210235/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <ctype.h>
#include <stdio.h>
int main()
{
int n, k;
char s[51];
scanf("%d", &n);
scanf("%d", &k);
scanf("%s",s);
s[k - 1] = tolower(s[k - 1]);
printf("%s", s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210286/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210286/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d", &n, &k);
getchar();
char s[n];
scanf("%s", s);
for ( int i = 0; i < n; i++ ) {
if ( i + 1 != k ) printf("%c", s[i]);
else {
if ( s[i] == 'A' ) printf("a");
else if ( s[i] == 'B' ) printf("b");
else printf("c");
}
}
printf("\n");
return 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210329/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210329/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[50],num;
int N,K;
scanf("%d%d",&N,&K);
scanf("%s",S);
num=S[K-1];
switch(num){
case 'A':
S[K-1]='a';
break;
case 'B':
S[K-1]='b';
break;
case 'C':
S[K-1]='c';
break;
default:
break;
}
printf("%s\n",S);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210372/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210372/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d%d",&n,&k);
char s[n];
scanf("%s",s);
s[k-1]+=32;
printf("%s",s);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210415/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210415/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s;
scanf("%d", &s);
long long dp[s];
for (int i = 0; i <= s; i++) {
if (i < 3)
dp[i] = 0;
else if (i == 3)
dp[i] = 1;
else
dp[i] = dp[i - 3] + dp[i - 1];
dp[i] %= 1000000007;
}
printf("%lld\n", dp[s]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210459/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210459/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 Double double
#define Int int
#define For for
#define Scanf scanf
#define If if
#define Printf printf
#define Roop(i,n) for(i=0;i<n;i++)
#define Roop2(i,n) for(i=1;i<=n;i++)
#define Roop3(i,n) for(i=2;i<=n;i++)
Double dp[101][101],x[101][101];
int main(){
Int i,j,k,n,m;
Double max=0.0;
whi... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210501/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210501/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(void) {
int i, j;
int h, w;
scanf("%d", &h);
scanf("%d", &w);
char s[100][100][100];
for (i = 0; i < h; i++) {
for (j = 0; j < w; j++) {
scanf("%s", s[i][j]);
}
}
int ansh;
char answ;
for (i = 0; i < h; i++) {
for (j = 0; j < w; j++) {
if (!strcmp(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210552/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210552/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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
supercomputerjoi */
#include <stdio.h>
int main(void){
char str[11];
int len = 0, maxLen = 0;
int i;
// input S
scanf("%s", str);
// calculate max length
for(i = 0; i < 11; i++){
// if ATGC len + 1
if(str[i] == 'A' || str[i] == 'T' || str[i] == 'G' || s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210602/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210602/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* ex2-4
kas056*/
#include<stdio.h>
#define SIZE 15
int main(void){
char sentence[SIZE];
char *p;
int length = 0;
int maxlen = 0;
scanf("%s", sentence);
p = sentence;//ポインタを連結
//ヌル文字に到達するまで操作を行う
while(*p){
//該当する文字があったらカウント開始。
if(*p == 'A' || *p == 'C' || *p == ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210646/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210646/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int n,x,y,ans=0,i,dol=0;
scanf("%d",&n);
x=0;
for(i=1;i<=n;i++)
{
scanf("%d",&y);
ans+=x-y;
if(ans<0)
{
dol+=(-ans);
ans=0;
}
x=y;
}
printf("%d",dol);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21069/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21069/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <limits.h>
#include <string.h>
#define ll long long int
int cont(char *s,char *res)
{
int count = 0;
int max = 0;
for (int i = 0; i<strlen(s); i++)
{
for (int j=0; j<strlen(res); j++)
{
if (s[i]==res[j])
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210732/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210732/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[10];
scanf("%s", S);
int m;
int n = 0;
for (int i = 0; i < strlen(S); i++) {
m = 0;
if (S[i] == 'A' || S[i] == 'C' || S[i] == 'G' || S[i] == 'T') {
m++;
for (int j = i + 1; j < strlen(S); j++) {
if (S[j] == 'A' || S[j] == '... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210776/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210776/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 str[10];
scanf("%s",str);
int i;
int count = 0;
int count_max = 0;
for(i=0; i<strlen(str); i++){
if(str[i]=='A'||str[i]=='C'||str[i]=='G'||str[i]=='T'){
count++;
if(count>count_max)
count_max=count;
}
else
count=0;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210819/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210819/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i,n=0,x=0;
scanf("%s",s);
for(i=0;i<10;i++){
if(s[i]=='\0') break;
else{
if(s[i]=='A'||s[i]=='C'||s[i]=='G'||s[i]=='T'){
n++;
if(n>x)
x=n;
}
else n=0;
}
}
printf("%d",x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210862/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210862/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int cnt=0;
int ans=0;
for(i=0;S[i]!='\0';i++){
if(S[i]=='A'||S[i]=='T'||S[i]=='C'||S[i]=='G') {
cnt++;
}
else{
if(cnt>ans) ans=cnt;
cnt=0;
}
}
if(cnt>ans) ans=cnt;
printf("%d",ans);
return 0;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210905/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210905/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(){
char *S;
int count=0;
int max=0;
S = (char *)malloc(sizeof(char));
scanf("%s",S);
for(int i=0;i<strlen(S);i++){
if(S[i] == 'A' || S[i] == 'C' || S[i] == 'G' || S[i] == 'T'){
count++;
if(count>max){
max=count;
}
}else{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210949/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210949/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t,i,n;
scanf("%d",&t);
int a[t];
for(i=0;i<t;i++)
{
scanf("%d",&a[i]);
n=a[i]/7;
if(a[i]<=7)
{
printf("1\n");
}
else if(a[i]%7==0)
{
printf("%d\n",n);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr cons... |
#include <stdio.h>
int main()
{
char s[11], i;
int dp[11], max = 0;
scanf("%s", s);
for (i = 0; i <= 10; i++)
dp[i] = 0;
if (s[0] == 'A' || s[0] == 'C' || s[0] == 'T' || s[0] == 'G')
dp[0] = 1;
for (i = 1; s[i] != 0; i++) {
if (s[i] == 'A' || s[i] == 'C' || s[i] == 'T' || s[i] == 'G')
dp[i] = dp[i - 1] ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211049/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211049/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<ctype.h>
#include<limits.h>
#include<float.h>
#include<math.h>
#include<stdbool.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define ll long long
#define min(x, y) ((x<=y) ? x : y)
#define max(x, y) ((x<=y) ? y : x)
#define loop(a, b, c) for(ll int a = b; a < c; a++)
#define loop_(a, b, c) for(ll... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2111/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2111/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include<stdio.h>
int main()
{
int n;
int v[100005];
int odd[100005];
int even[100005];
int i;
int maxvalodd=0;
int maxvaleven=0;
int maxeven=-1;
int maxevenindex=-1;
int maxevenold=-1;
int maxevenindexold=-1;
int maxodd=-1;
int maxoddindex=-1;
int maxoddold=-1;
int maxoddindexold=-1;
int change;
int ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211142/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211142/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 {
int32_t vertex;
int32_t next;
flow_type capacity;
} flow_edge;
typedef struct maxFlowGraph {
flow_edge *edge;
int32_t *start... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211193/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211193/source.c"
target datalayout = "e-m:e-p270: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;
scanf("%d%d",&N,&K);
if( (N + 1) / 2 >= K){
printf("YES");
}
else{
printf("NO");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211236/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211236/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,min,i,x,y;
scanf("%d%d",&n,&s);
min=100;
int flag=0;
for(i=0;i<n;i++)
{
scanf("%d%d",&x,&y);
if(y!=0)
x=x+1;
if(s>=x)
{
if(y!=0&&y<min)
min=y;
flag=1;
}
}
if(flag==1)
printf("%d\n",100-min);
else
printf("-1\n");
return ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21128/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21128/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, ans;
scanf("%d%d", &n, &k);
if(n%2==0){
ans=n/2;
}
else{
ans=n/2+1;
}
if(ans>=k) printf("YES\n");
else printf("NO\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211322/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211322/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N 128
#define INT(X) \
( *( (const int *)(X) ) )
static int
compare (
const void * a,
const void * b
)
{
return ( INT( b ) - INT( a ) );
}
/** Application main entry point. */
int
main (
int argc,
char * argv[ ]
)
{
struct ti
{
int pt;
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211380/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211380/source.c"
target datalayout = "e-m:e-p270: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.ti = type { i32, i3... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(void){
long long A,B,C;
long long K;
scanf("%lld %lld %lld %lld",&A,&B,&C,&K);
//printf("%lld %lld %lld %lld\n",A,B,C,K);
long long ans=A-B;
if(K%2==0){
if(ans>1000000000000000000) printf("Unfair\n");
else pri... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211430/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211430/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 <ctype.h>
#include <limits.h>
#define inf 100000000
#define INF 9223372036854775807
#define EPS 1e-10
#define sq(n) ((n)*(n))
#define rep(i,n) for(i=0;i<n;i++)
#define rev(i,n) for(i=n-1;i>=0;i--)
#define... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211489/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211489/source.c"
target datalayout = "e-m:e-p270: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 <string.h>
int a[11][6], b[11][6];
int main(void)
{
int n, m=5;
while (scanf("%d", &n), n) {
int i, j, k, l, res, changed;
memset(a, -1, sizeof(a));
for(i=0;i<n;++i) for(j=0;j<m;++j) scanf("%d", &b[i][j]);
res=0;
changed=1;
while (cha... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211531/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211531/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 <limits.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... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211575/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211575/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 selection(int a[], int l, int r);
int main(void)
{
int n, x;
int a[110];
scanf("%d %d", &n, &x);
for (int i=0; i < n; i++) {scanf("%d", &a[i]);}
selection(a,0,n);
int ans = 0;
for (int i=0;i<n;i++) {
if (x >= a[i]) {
ans++;
x -= a[i];
}
}
if (x > 0&&ans ==... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211618/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211618/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 list[105];
void qsort_v2(int d[], int s, int e)
{
int i, j, p, temp;
if(e - s <= 1) {
return;
}
p = d[s];
i = s;
j = e - 1;
while (1) {
while (d[i] < p && i < e)
i++;
while (p < d[j] && j > s)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211676/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211676/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@list = dso_local global [1... |
#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;
#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;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211726/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211726/source.c"
target datalayout = "e-m:e-p270: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, ... |
/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21177/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21177/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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> // 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_211812/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211812/source.c"
target datalayout = "e-m:e-p270: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;
};
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_211856/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211856/source.c"
target datalayout = "e-m:e-p270: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 treeMaximum(Node x){
}
Node treeSearch(Node u, int k){
}
Node treeSuccessor(Node x){
}
voi... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211913/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211913/source.c"
target datalayout = "e-m:e-p270: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
typedef struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
}*Node;
Node root;
void insert(int);
void inorder(Node);
void preorder(Node);
int main(){
int n, i, x;
char S[20];
scanf("%d", &n);
for ( i = 0; i < n; i++ )... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211957/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211957/source.c"
target datalayout = "e-m:e-p270: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 treeSearch(Node u, int k){
if(u==NIL || k==u->key) return u;
if(k<u->key)return treeSearch(u->left,k);
else return tr... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212020/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212020/source.c"
target datalayout = "e-m:e-p270: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 *right;
struct node *left;
struct node *parent;
};
typedef struct node * Node;
Node root;
void insert(int k){
Node y = NIL;
Node x = root;
Node z;
z = malloc(sizeof(struct node));
z->key = k;
z->left = ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212064/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212064/source.c"
target datalayout = "e-m:e-p270: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 treeSearch(Node u, int k){
if(u==NIL || k... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212107/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212107/source.c"
target datalayout = "e-m:e-p270: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 *parent;
struct node *left;
struct node *right;
};
struct node *tree = NULL;
void insert(struct node **root, struct node *node)
{
struct node *parent = NULL;
struct node *current = *root;
while (current !... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212158/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212158/source.c"
target datalayout = "e-m:e-p270: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 <string.h>
#include <stdlib.h>
struct Node{
int key;
struct Node *right,*left,*parent;
};
//typedef struct Node;
struct Node *root,*NIL;
void insert(int k){
struct Node *y=NIL;
struct Node *x=root;
struct Node *z;
z=(struct Node *)malloc(sizeof(struct Node));
z->key=k;
z->l... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212200/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212200/source.c"
target datalayout = "e-m:e-p270: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 MAX 500001
#define NIL NULL
struct node{
int key;
struct node *p;
struct node *l;
struct node *r;
};
typedef struct node * Node;
void insert(int);
void preorder(Node);
void inorder(Node);
Node root;
int main(){
int n, i, x;
char com[20];
scanf("%d", &n)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212244/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212244/source.c"
target datalayout = "e-m:e-p270: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 <string.h>
#include <stdlib.h>
typedef struct Tree{
int key;
struct Tree *parent;
struct Tree *left;
struct Tree *right;
}Tree;
Tree *t;
void Print1(Tree*);
void Print2(Tree*);
void Insert(int);
int main(){
int m,i,key;
char comma[7];
scanf("%d",&m);
t=(Tree*)malloc(size... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212295/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212295/source.c"
target datalayout = "e-m:e-p270: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.Tree = type { i32, ... |
#include <stdio.h>
#include <stdlib.h>
typedef struct Node_ Node;
struct Node_
{
int key;
Node* parent;
Node* left;
Node* right;
};
Node* root;
static void insert(int key)
{
Node* node = (Node*)malloc(sizeof(Node));
node->key = key;
node->parent = NULL;
node->left = NULL;
node->r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212338/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212338/source.c"
target datalayout = "e-m:e-p270: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,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.