Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
int main(void){
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(c == a) printf("%d\n" , b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208317/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208317/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(int argc,char** argv)
{
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_208360/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208360/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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", c);
else if(a == c)
printf("%d", b);
else
printf("%d", a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208410/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208410/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[200001],t[200001],c[26]={0},d[26]={0};
scanf("%s %s",s,t);
long long len = strlen(s),i,j;
for(i=0;i<len;i++){
c[(int)(s[i])-97]++;
d[(int)(t[i])-97]++;
}
for(i=0;i<26;i++){
int num = c[i];
for(j=0;j<26;j++){
if(d[j]==num){
d[j]=0;
br... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208461/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208461/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
int main(void){
char s[200005],t[200005];
scanf("%s",s);
scanf("%s",t);
int i,j,flag=0;
int len=strlen(s);
char R[26],Rd[26];
rep(i,26){
R[i]=-1;
Rd[i]=-1;
}
for(i=0;i<len;i++){
flag=0;
if(R... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208519/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208519/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
void checkint(int N,int*Sn,int*Tn){
int i;
int flag=0;
for(i=0;i<N;i++){
if(Sn[i]!=Tn[i]){
flag=flag+1;
}
}
if(flag==0){
printf("Yes");
}else{
printf("No");
}
}
void sortchar(int N,int*S,int*Sn){
int i,k;
int count=1;
int R[1000];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208562/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208562/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 koiwaikotori, sakuraayane, asumikana, murakawarie, nadukakaori;
int fukuennmisato;
if (scanf("%d", &koiwaikotori) != 1) return 1;
if (scanf("%d", &sakuraayane) != 1) return 1;
if (scanf("%d", &asumikana) != 1) return 1;
if (scanf("%d", &murakawarie) != 1) return 1;
if (sc... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208605/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208605/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int MIN(int a,int b){return a<b?a:b;}
int main(){
int a,b,c,d,n;
scanf("%d %d %d %d %d",&a,&b,&c,&d,&n);
if(c<n)b+=(n-c)*d;
printf("%d\n",MIN(a*n,b));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208649/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208649/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 fun1(int price1, int basicPrice, int addLitter, int addPrice, int usedLitter);
int main()
{
int A,B,C,D,P;
scanf("%d %d %d %d %d",&A,&B,&C,&D,&P);
printf("%d\n",fun1(A,B,C,D,P));
return 0;
}
int fun1(int price1, int basicPrice, int addLitter, int addPrice, int usedLitter)
{
int pay, price... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208692/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208692/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(void)
{
int A,B,C,D,P,money_x,money_y;
scanf("%d%d%d%d%d",&A,&B,&C,&D,&P);
money_x=A*P;
if(P<C) money_y=B;
if(P>C) money_y=B+(P-C)*D;
if(money_x<money_y) printf("%d\n",money_x);
else printf("%d\n",money_y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208735/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208735/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 sets[10000];
void same(int smaller, int greater) {
if (smaller == greater)
printf("1\n");
else if (sets[greater] < smaller)
same(sets[greater], smaller);
else if (smaller != sets[smaller])
same(sets[smaller], greater);
else if (greater != sets[greater])
same(smaller, set... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208779/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208779/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@sets = dso_local local_unn... |
#include <stdio.h>
#define M 10000
int main(){
int i,str[M];
scanf("%d",&i);
int j;
for(j=0; j<i; j++){
scanf("%d",&str[j]);
}
int m,n,k,flag=0;
for(m=0; m<i-1; m++){
k=m;
for(n=m+1; n<i; n++){
if(str[k]>str[n])
k = n;
}
if(k!=m){
flag = str[k];
str[k] = str[m];
str[m] = flag;
}
}
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208836/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208836/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
void merge(long long int [],long long int ,long long int ,long long int );
void part(long long int [],long long int ,long long int );
int main()
{
long long int i,n,k,ans;
scanf("%lld %lld",&n,&k);
char word[n];
scanf("%s",word);
long long int arr[26]={0};
for(i=0;i<n;i++)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20888/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20888/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 swap (int *x, int *y) {
int temp; // 値を一時保存する変数
temp = *x;
*x = *y;
*y = temp;
}
/* pushdouwn操作 */
void pushdown (int array[], int first, int last) {
int parent = first; // 親
int child = 2*parent; // 左の子
while (child <= last) {
if ((child < last) && (array[child] < arr... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208922/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208922/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int n;
scanf("%d", &n);
int i;
int a;
unsigned long long int ans = 0;
int x = 0;
for (i = 0; i < n; i++)
{
scanf("%d", &a);
if (a == 0)
x = 0;
else
{
if (x == 1)
{
ans++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208966/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208966/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <memory.h>
int y[24*3600];
int main(void){
int n,h,m,s,i,max;
while(scanf("%d",&n),n){
max=0;
memset(y,0,sizeof(y));
for(i=0;i<2*n;i++){
scanf("%d:%d:%d",&h,&m,&s);
if(!(i%2))y[h*3600+m*60+s]++;
else y[h*3600+m*60+s]--;
}
for(i=0;i<24*3600;i++){
if(i>0)y[i]+=y[i-1];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209008/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209008/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d%d",&H,&W);
int 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_209059/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209059/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d %d %d",&H,&W,&h,&w);
printf("%d",(H*W)-(h*W)-(H*w)+(h*w));
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209109/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209109/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 goes here
int n,i,j,f,c;
scanf("%d",&n);
int a[n+2][n+2];
char s[n][n+1];
for(i=0;i<n;i++){
scanf("%s",s[i]);
}
for(i=0;i<n+2;i++){
for(j=0;j<n+2;j++){
if(i==0||j==0||i==n+1||j==n+1)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20916/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20916/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include <stdlib.h>
int main(void) {
char buffer[10];
int H, W, h, w;
if (fgets(buffer, 10, stdin) != NULL) {
H = atoi(strtok(buffer, " "));
W = atoi(strtok(NULL, " "));
} else {
return 1;
}
if (fgets(buffer, 10, stdin) != NULL) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209202/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209202/source.c"
target datalayout = "e-m:e-p270: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(void)
{
int H, W, h, w;
scanf("%d %d", &H, &W);
scanf("%d %d", &h, &w);
printf("%d\n", H*W - (h*W + w*H - h*w));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209246/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209246/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
char S[400000];
char T[400000];
int s[256][256];
int e0[256];
int e1[256];
int main(void){
int n,i,x=-1,y=-1,r=0,rv=0;
scanf("%d",&n);
scanf("%s",S);
scanf("%s",T);
for(i=0;i<n;i++){
if(S[i]!=T[i]){
r++;
s[S[i]][T[i]]=i+1;
e0[T[i]]=i+1;
e1[S[i]]=i+1;
if(s[T[i]][S[i]]&&rv<2){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20929/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20929/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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() {
long long int a, b, cnt = 0, n;
scanf("%lld", &a);
scanf("%lld", &b);
while(a != b && a && b) {
if(a > b) {
n = a / b;
a = a - n * b;
cnt += n;
}
else {
n = b / a;
b = b - n * a;
cnt += n;
}
}
if(a && b)
cnt++;
printf("%lld", cnt);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20934/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20934/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(){
int H,W,h,w;
scanf("%d%d%d%d",&H,&W,&h,&w);
printf("%d",(H*W)-((h*W+H*w)-(h*w)));
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209383/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209383/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 2212 Stolen Jewel
// 2018.3.14 bal4u
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int H, W;
char map[52][52];
int SR, SC, GR, GC;
typedef struct { int ban, len; } T;
T t[12]; int P, max;
int mv[4][2] = { {-1,0},{0,1},{1,0},{0,-1} };
char visited[50][50][16][73];
int tbl[73][4]; int root = 1, sz;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209426/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209426/source.c"
target datalayout = "e-m:e-p270: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.T = type { i32, i32... |
#include <stdio.h>
#include <math.h>
int line[101],line1[1001];
int main(void){
int sum,min,i,o;
for(;min=1000000,scanf("%d",&sum),sum;){
for(i=0;i<101;i++){
if(!line[i])
line[i]=(int)pow(i,3);
if(line[i]>sum)
break;
for(o=0;o<1001;o++)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209484/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209484/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[200001];
scanf("%s", s);
long int k = 0, ans = 0;
int i;
for (i = 0; i < strlen(s); i++) {
if (s[i] == 'A')
k++;
else if (s[i] == 'B' && s[i + 1] == 'C') {
ans += k;
i++;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209563/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209563/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 str [201];
scanf("%s",str);
int n=strlen(str);
for (int i=n-2;i;i-=2){
if(strncmp(str,str+i/2,i/2)==0){
printf("%d\n" ,i) ;
return 0;
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209606/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209606/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
long long a,b,rem,temp,count;
scanf("%I64d %I64d",&a,&b);
count = 0;
while(a%b != 0)
{
count += a/b;
temp = a%b;
a = b;
b = temp;
}
count += a/b;
printf ("%I64d\n",count);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20965/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20965/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define ll long long int
int main()
{ll rem;
ll sum=0,a,b;
scanf("%I64d%I64d",&a,&b);
while(b>0)
{
sum+=(a/b);
rem=a%b;
a=b;
b=rem;
//printf("%d\n",b);
}
printf("%I64d",sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20970/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20970/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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){
char c [200];
int length,i;
int j,z;
int ans1 = 0,ans2 = 0;
scanf("%s",c);
length = strlen(c);
for(i = length -1; i >= 2; i--){
if(i % 2)
continue;
j = i / 2;
for(z = 0; z < j; z++){
if(c[z] != c[z+j])
break;
}
if(z == j){
pri... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209743/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209743/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
double x[4], y[4];
double vx[2], vy[2];
double ans[4];
int i, k;
while(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])!=EOF){
k=0;
for(i=0; i<4; i++){
vx[0]=x[(i+1)%4]-x[i];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209787/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209787/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define min(p,q)((p)<(q)?(p):(q))
//*
//遅延セグ木ここから
//↓ここを変える
typedef struct sayouso{ll a,b;}sayouso;
typedef struct atai{ll a;}atai;
//↑ここを変える
typedef struct node{sayouso T;atai x;}node;
node *lsegN,*lseg;
ll lsegNU... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209851/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209851/source.c"
target datalayout = "e-m:e-p270: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.sayouso = type { i6... |
// AOJ 0604: Take the 'IOI' train
// 2017.12.5 bal4u@uu
#include <stdio.h>
#include <string.h>
char s[2002], t[2002];
int dp[2][2002][2002];
int main()
{
int n, m, i, j, ans;
char *p;
fgets(s, 20, stdin);
sscanf(s, "%d%d", &m, &n);
fgets(s, 2002, stdin);
fgets(t, 2002, stdin);
for (p = s; *p > ' '; p++) *p ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209901/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209901/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@s = dso_local global [2002... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
void swap (int *x, int *y) {
int temp;
temp = *x;
*x = *y;
*y = temp;
}
int gcd(int a,int b){
if(a<b){
swap(&a,&b);
}
if(b==0){
return a;
}
int r=a%b;
while(r!=0){
a = b;
b = r;
r = (a%b)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209952/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209952/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 str[100];
scanf("%d %d",&N,&K);
scanf("%s",str);
if(str[K-1] =='A')
str[K-1] = 'a';
if(str[K-1] =='B')
str[K-1] = 'b';
if(str[K-1] =='C')
str[K-1] = 'c';
printf("%s\n",str);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210000/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210000/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<ctype.h>
int main(void) {
char s[100];
int i, n, k;
scanf("%d %d", &n, &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_210044/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210044/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#define MAX(X, Y) (((X) > (Y))? (X) : (Y))
#define MIN(X, Y) (((X) < (Y))? (X) : (Y))
int compare_int(const void *a, const void *b){
return *(long int*)b - *(long int*)a; // 大きい順
}
int compare_int_small(const void *a, const void *b){
retur... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210088/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210088/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <ctype.h>
int main(void){
char s[51];
int k=0;
int i;
int n=0;
scanf("%d",&n);
scanf("%d",&k);
scanf("%s",s);
s[k-1]=tolower(s[k-1]);
for(i=0;i<n;i++){
printf("%c",s[i]);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210130/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210130/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#include<stdbool.h>
int main() {
int n, k;
scanf("%d%d", &n, &k);
char s[52];
scanf("%s", s);
s[k - 1] = s[k - 1] + 32;
printf("%s", s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210174/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210174/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
int main() {
int num, num1;
char str[50];
scanf("%d %d", &num, &num1);
scanf("%s", str);
for (int i = 0; i < num; i++) {
if (num1 -1== i) {
if ('A'==str[i]) {
str[i ] = 'a';
}
else if ('B'==str[i ]) {
str[i] = 'b';... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210224/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210224/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
if (s[k - 1] == 'A')
s[k - 1] = 'a';
else if (s[k - 1] == 'B')
s[k - 1] = 'b';
else
s[k - 1] = 'c';
printf("%s",s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210268/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210268/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int i,j,K,N;
char s[60];
scanf("%d",&N);
scanf("%d",&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_210310/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210310/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,cnt,sabun,ptA,ptB,tmp;
char s[60];
//char s[101];
// 整数の入力
scanf("%d %d", &N,&K);
scanf("%s",&s);
s[K-1]= s[K-1]+0x20;
// 文字列の入力
printf("%s\n",s);
// 出力
//printf("%d %s\n",a+b+c,s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210354/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210354/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100];
scanf("%s", S);
S[K-1] = S[K-1]-'A'+'a';
printf("%s\n", S);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210404/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210404/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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
//Ver.20190820
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#include<assert.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210448/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210448/source.c"
target datalayout = "e-m:e-p270: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.sd = type { i32, i3... |
#include<unistd.h>
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<stdint.h>
#include<time.h>
#include<tgmath.h>
inline int max(int a, int b){return a>b?a:b;}
inline int min(int a, int b){return a>b?b:a;}
long gcd(long a, long b){return b?gcd(b, a%b):a;}
//fast(?) Input
#define buf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210491/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210491/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@nextint.idx = internal unn... |
#include <stdio.h>
#include <string.h>
int main(void){
int h,w;
scanf("%d %d", &h, &w);
char s[h][w][6];
for (int i = 0; i < h; i++) {
for (int j = 0; j < w; j++) {
scanf("%s", s[i][j]);
}
}
char snuke[6] = "snuke";
for (int i = 0; i < h; i++) {
for (int j = 0; j < w; j++) {
if (... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210549/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210549/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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
yy8332 */
#include <stdio.h>
#include <string.h>
int main(void){
char str1[11], *str2;
int len1, len2, ans, i;
//入力読み取り
scanf("%s", str1);
len1 = strlen(str1);
//最長部分文字列の取得
ans = 0;
for(i = 0; i < len1; i++){
if(str1[i] == 'A' || str1[i] == 'C' || str1[i] == 'G' || str1[i] == 'T')... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210606/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210606/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 int power=0,a,i,n,min;
int main()
{
scanf("%lld",&n);
long long int x=0;
for(i=1;i<=n;i++)
{
scanf("%lld",&a);
power=power+(x-a);
//printf("%d \n",power);
if(power<min)
min=power;
x=a;
}
if(min>0)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21065/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21065/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@power = dso_local local_unna... |
#include <stdio.h>
#include <string.h>
int main(){
char s[11];int i,a=0,l=0;
scanf("%s",s);
for(i=0;i<strlen(s);i++){
if(s[i]=='A'||s[i]=='T'||s[i]=='G'||s[i]=='C'){l++;a=(a<l?l:a);}
else l=0;
}
printf("%d",a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210693/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210693/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define max(a,b) ((a) > (b) ? (a) : (b))
int get_int(char *line, int size) {
if(!fgets(line, size, stdin)) return 0;
int num;
sscanf(line, "%d", &num);
return num;
}
static char table[256] = {
['A'] = 1,
['T'] = 1,
['G'] = 1,
['C'] = 1,
};
#d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210743/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210743/source.c"
target datalayout = "e-m:e-p270: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 atgc_q(char s) {
char atgc[4] = { 'A','T','G','C' };
int i;
for (i = 0; i < 4; i++) {
if (atgc[i] == s) {
return 1;
}
}
return 0;
}
int main(void) {
int flag[11];
char s[11];
int cnt = 0;
int max = 0;
scanf("%s", &s);
for (int i = 0; i < 10; i++) {
flag[i] = atgc_q(s[i]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210787/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210787/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int a[100005];
int main()
{
int n,i,ans,cur,p;
scanf("%d",&n);
a[0]=0;
for(i=1;i<=n;i++)
scanf("%d",&a[i]);
ans=0;
cur=0;
for(i=1;i<=n;i++)
{
p=cur+a[i-1]-a[i];
if(p<0)
{
ans-=p;
a[i-1]-=p;
}
cur+=(a[i-1]-a[i]);
}
printf("%d\n",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21083/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21083/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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()
{
int i,j = 0,k,reset = 0;
char s[11];
scanf("%s",s);
for(i = 0;i < strlen(s);i++){
if(s[i] == 'A' || s[i] == 'T' || s[i] == 'C' || s[i] == 'G'){
j++;
}else
reset = 1;
if(j > k)
k = j;
if(reset){
j = 0;
reset = 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210880/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210880/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,count,ans;
count=0;
ans =0;
scanf("%s",s);
for (i=0; i<11; i++){
if(s[i]=='A'||s[i]=='C'||s[i]=='G'||s[i]=='T'){
count++;
}
else{
if(ans<count){
ans = count;
}
count=0;
}
}
if(ans<count){
ans = c... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210923/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210923/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,c,cm,ln;
char s[11];
scanf("%s",s);
ln = strlen(s);
for(i = 0,c = 0,cm = 0;i < ln;i++){
if(s[i] == 'A' || s[i] == 'C' || s[i] == 'G' || s[i] == 'T'){
c++;
}else{
if(cm < c){
cm = c;
}
c = 0;
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210967/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210967/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
char str[10];
for(int i = 0;i < 10;i++)str[i] = 'x';
scanf("%s",str);
int i = 0;
int cnt = 0;
int max = 0;
while(str[i]!='x' && i<10){
if(str[i] == 'A' ||str[i] == 'T'||str[i] == 'G'||str[i] == 'C'){
cnt ++;
}else{
if(max < cnt) max = cnt;
cnt = 0;
}
i++;
}
prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211016/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211016/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n = 0;
int i = 0;
int res = 0;
int en = 0;
int h = 0;
int oldh = 0;
scanf ("%d", &n);
scanf ("%d", &h);
res = h;
for (i = 1; i < n; i++) {
oldh = h;
scanf ("%d", &h);
if (h - oldh <= en) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21106/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21106/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
typedef struct num {
int idx;
int cnt;
}num;
int cmp(const void *x, const void *y) {
return ((num *)y)->cnt - ((num *)x)->cnt;
}
int main() {
int n, v, ans=0;
scanf("%d", &n);
num me[100005], mo[100005];
for (int i=0; i<100000; i++) {
me[i].cnt=0; me[i].idx=i;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211102/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211102/source.c"
target datalayout = "e-m:e-p270: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.num = type { i32, i... |
int bw(const void *a, const void *b)
{
return *(int*)b - *(int*)a;
}
#include<stdio.h>
#include<stdlib.h>
int main()
{
int n, o[100010] = {}, e[100010] = {};
int o1[100010] = {}, e1[100010] = {};
int oo, ee;
int ans1,ans2,ans;
scanf("%d", &n);
for (int i = 0; i < n; i+=2)
{
scanf("%d%d", &oo,&ee);
o[oo]+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211146/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211146/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_211197/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211197/source.c"
target datalayout = "e-m:e-p270: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>
# include <stdlib.h>
# define max(a,b) (a > b) ? a : b
typedef struct{
int dollar;
int cent;} money;
money q[110];
int w[110];
int main()
{int i,j,n,m,k = 0,l = 0;
scanf("%d%d",&n,&m);
for(i = 1;i <= n;i++)
scanf("%d%d",&q[i].dollar,&q[i].cent);
for(i = 1;i <= n;i++)
{ if(q[i].dollar < m || (q... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21124/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21124/source.c"
target datalayout = "e-m:e-p270: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.money = type { i32, i... |
#include <stdio.h>
int main(void) {
int N, K;
scanf("%d%d", &N, &K);
if (K > N)
puts("NO");
else if (K * 2 - 1 <= N)
puts("YES");
else
puts("NO");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211283/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211283/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
int main() {
int n,k;
scanf("%d %d",&n,&k);
if((n+1)/2>= k)
printf("YES");
else printf("NO");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211326/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211326/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ll long long int
int gcd(int n1,int n2)
{
if(n2!=0)
{
return gcd(n2,n1%n2);
}
else
return n1;
}
int main(void)
{
int t;
scanf("%d",&t);
int k;
int s;
int d;
for(int i=0;i<t;i++)
{
scanf("%d",&k);
if(k==100)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21137/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21137/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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()
{
long int t;
scanf("%ld",&t);
while(t--)
{
long int n;
scanf("%ld",&n);
long int a[n];
for(int i=0;i<n;i++)
{
scanf("%ld",&a[i]);
}
int flag=0;
for(int i=0;i<n-1;i++)
{
if(a[i]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21142/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21142/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define W 5
#define H_MAX 10
#define THRESHOLD 3
#define EMPTY -1
int field[W + 1][H_MAX];
int h;
int main(void)
{
int x, y, i, stable, score;
for(y = 0; y < H_MAX; y++)
field[W][y] = EMPTY;
while(scanf("%d", &h), h)
{
for(y = 0; y < h; y++)
for(x = 0; ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211528/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211528/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@field = dso_local global [... |
#include <stdio.h>
int main()
{
long long T[3], A[3], B[3];
scanf("%lld %lld", &(T[1]), &(T[2]));
scanf("%lld %lld", &(A[1]), &(A[2]));
scanf("%lld %lld", &(B[1]), &(B[2]));
if (A[1] * T[1] + A[2] * T[2] == B[1] * T[1] + B[2] * T[2]) {
printf("infinity\n");
fflush(stdout);
return 0;
}
if (A[1] > B[1]) {... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211571/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211571/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
long x;
scanf("%d %ld", &n, &x);
int i = 0;
long a[n];
long sum = 0;
while (i < n)
{
scanf("%ld", &a[i]);
sum += a[i];
i++;
}
if (sum == x)
{
printf("%d", i);
return 0;
}
int flg = 1;
int tmp;
while (flg == 1)
{
i = 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211614/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211614/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, i, j;
int tmp, ans;
scanf("%d %d", &n, &x);
int a[n];
for(i = 0; i < n; i++){
scanf("%d", &a[i]);
}
for(i = 0; i < n; i++){
for(j = i + 1; j < n; j++){
if(a[i] > a[j]){
tmp = a[i];
a[i] = a[j];
a[j] = tmp;
}
}
}
/* for(i = 0; i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211658/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211658/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//set many funcs template
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int min(int a,int b){if(a<b){return a;}return b;}
int ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211708/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211708/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
struct node{
int key;
struct node *right;
struct node *left;
struct node *parent;
};
typedef struct node *NodePointer;
NodePointer root;
NodePointer nil;
void insert(int k){
NodePointer y,x,z;
y=nil;
x=root;
z=(NodePointer)malloc(sizeof(stru... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211751/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211751/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { i32, ... |
#include <stdio.h>
#include <stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while(x->left != NIL){
x = x->left;
}
return x;
}
Node treeMaximum(Node x){
while(x->right... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211795/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211795/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include<stdio.h>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
void insert(int);
void preorder(Node);
void inorder(Node);
void treeDelete(Node);
Node treeSearch(Node, int);
#define NIL NULL
Node root;
Node treeSearch(Nod... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211845/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211845/source.c"
target datalayout = "e-m:e-p270: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, ... |
// Binary Search Tree I
#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;
// 二分探索木へkを挿入 //
void insert(int k){
Node y = nil; // x の親
Node x = root; // T の根
Node z;
//z->parent = y... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211889/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211889/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include <stdio.h>
#include <stdlib.h>
struct Node {
int key;
struct Node *right, *left, *parent;
};
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->left = NIL;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211939/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211939/source.c"
target datalayout = "e-m:e-p270: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 NULL
struct node{
struct node *left;
struct node *right;
struct node *parent;
int key;
};
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 = NIL;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211982/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211982/source.c"
target datalayout = "e-m:e-p270: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;
void insert(int k){
Node y = NIL;
Node x = root;
Node z;
z = malloc(sizeof(struct node));
z->key = k;
z->left = NIL;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212031/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212031/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include <stdio.h>
#include <stdlib.h>
#define NIL NULL
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
Node root;
void Tree_insert(int);
void Tree_print(int);
void preorder(Node u);
void inorder(Node u);
int main(){
int n,x,i;
char c[1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212082/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212082/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define NIL NULL
typedef struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
}*N;
N root = NIL;
void insert(int);
void inorder(N);
void preorder(N);
int main(){
int m, i, n;
char str[256];
scanf("%d", &m);
fo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212125/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212125/source.c"
target datalayout = "e-m:e-p270: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>
typedef struct Node{
int key;
struct Node *parent, *left, *right;
}Node;
Node *root,*NIL;
void insert(int key){
Node *x,*y,*z;
y = NIL;
x = root;
z = (Node *)malloc(sizeof(Node));
z->key = key;
z->left = NIL;
z->right = NIL;
while(x != ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212169/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212169/source.c"
target datalayout = "e-m:e-p270: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>
#define NIL NULL
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
Node root;
void insert(int);
void inorder(Node );
void preorder(Node );
int main(){
int n, i, x;
char s[10];
scanf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212211/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212211/source.c"
target datalayout = "e-m:e-p270: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;
void insert(int k){
Node y = NIL;
Node x = root;
Node z;
z = malloc(sizeof(struct node));
z->key = k;
z->left = NIL;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212262/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212262/source.c"
target datalayout = "e-m:e-p270: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{
int key;
int left;
int right;
} Node;
void insert(Node*, int, int);
void print1(Node*, int);
void print2(Node*, int);
int main()
{
char s[10];
Node *t;
int m;
int a;
int i;
scanf("%d", &m);
t=(Node*)malloc(sizeof(Node... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212305/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212305/source.c"
target datalayout = "e-m:e-p270: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>
#define LEN 4000000
#define NIL -1
int trance_command(char []);
void insert(int);
void print();
void inorder(int);
void preorder(int);
int P[LEN], L[LEN], R[LEN], Key[LEN];
int root=NIL;
int main()
{
char command[10];
int n, id;
int z=0;
int i, j, k;
//intelization
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212349/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212349/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@root = dso_local local_unn... |
///BISMILLAHIR-RAHMANIR-RAHIM
#include <stdio.h>
#include <stdlib.h>
int main()
{
int t;
scanf("%d", &t);
int n, k, count, i;
int *tot;
while(t--){
scanf("%d %d", &n, &k);
int ara[n];
count = 0;
tot = (int *)calloc(sizeof(int), 101);
for(i = 0; i < n; i++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2124/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2124/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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... |
/*
* FileName: binary_tree_1
* CreatedDate: 2020-04-22 21:32:11 +0900
* LastModified: 2020-04-23 00:47:13 +0900
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define node_max 500000
typedef struct _node{
int number;
struct _node *pare;
struct _node *left;
struct _node *right;
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212457/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212457/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct._node = type { i32,... |
#include<stdio.h>
int gcd(int a, int b)
{
// Everything divides 0
if (a == 0)
return b;
if (b == 0)
return a;
// base case
if (a == b)
return a;
// a is greater
if (a > b)
return gcd(a-b, b);
return gcd(a, b-a);
}
int main()
{
int q;
scanf("%d"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21250/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21250/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
int flag = 0;
int flag2 = 0;
Node treeMinimum(Node x){
while( x->left != NULL )
{
x = x->left;
}
return x;
}
Node tr... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212543/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212543/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include<stdio.h>
#include<stdlib.h>
struct Node{
int key;
struct Node *p;
struct Node *l;
struct Node *r;
};
typedef struct Node * Nodepointer;
Nodepointer root,nil;
void insert(int i){
Nodepointer x = root;
Nodepointer y = nil; /*parent*/
Nodepointer z;
z = (struct Node *)malloc(sizeof(struct Node... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212594/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212594/source.c"
target datalayout = "e-m:e-p270: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;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212637/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212637/source.c"
target datalayout = "e-m:e-p270: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_212680/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212680/source.c"
target datalayout = "e-m:e-p270: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... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212723/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212723/source.c"
target datalayout = "e-m:e-p270: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;
void insert(int k){
Node y = NIL;
Node x = root;
Node z;
z = malloc(sizeof(struct node));
z->key = k;
z->left = NIL;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212767/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212767/source.c"
target datalayout = "e-m:e-p270: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_212817/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212817/source.c"
target datalayout = "e-m:e-p270: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){
/*while(u != NIL && k != u->key){
if(k < u->key){
u = u->left;
}else{
u = u-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212860/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212860/source.c"
target datalayout = "e-m:e-p270: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>
typedef struct{
int num;
double money;
}bank;
int main(void){
while(1){
int n, y, r, t, i;
bank b[50];
scanf(" %d", &n);
if(n==0) break;
scanf(" %d", &y);
for(i=0; i<n; i++){
scanf(" %d %d %d", &b[i].num, &r, &t);
if(t==1){
b[i].money = 1 + y*r/1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212910/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212910/source.c"
target datalayout = "e-m:e-p270: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.bank = type { i32, ... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <ctype.h>
#include <string.h>
#define lli long long int
int main(void)
{
lli n;
scanf("%lld", &n);
lli *a;
lli *b;
a = (lli *)malloc(sizeof(lli)*(n+1));
b = (lli *)malloc(sizeof(lli)*(n+1));
lli i = 0;
while (i < n+1)
{
scanf("%lld",&a[i])... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212954/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212954/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#define NEW(p,n){p=malloc((n)*sizeof(p[0]));if(p==NULL){printf("not enough memory\n");exit(1);};}
//pの型の変数n個の要素分のメモリを確保し、そのアドレスをpに代入するマクロ
#define MIN(a, b) ((a) < (b) ? (a) : (b))
int main(void){
int N;
scanf("%d",&N);
//A[0]~A[N]に格納
int* A;
NEW(A,N+1);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212998/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212998/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.