Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
int main() {
int N, D, ans, sum;
scanf("%d%d", &N, &D);
sum = 2 * D + 1;
ans = 0;
for(;;){
N -= sum;
ans++;
if(N <= 0){
break;
}
}
printf("%d\n", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204900/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204900/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>
#include <math.h>
#define N_MAX (100)
#define P_MAX (100)
#define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1)
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204944/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204944/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,A;
scanf("%d\n%d",&N,&A);
if((N%500)<=A)
printf("Yes");
else printf("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204988/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204988/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int x,y;
scanf("%d%d",&x,&y);
if(x%500>y) printf("No");
else printf("Yes");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205073/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205073/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
int n,a;
scanf("%d\n%d",&n,&a);
if(n%500>a) printf("No");
else printf("Yes");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205116/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205116/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0,i,sum,j,s,m=0,n,ar[10000],br[10000];
scanf("%d %d",&a,&b);
for(i=1;i<=a;i++)
{
scanf("%d",&ar[i]);
br[ar[i]]++;
}
for(i=1;i<=100;i++)
{
if(br[i]>m)
{
m=br[i];
}
if(br[i]>0)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20516/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20516/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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){
// Your code here!
int N,A;
scanf("%d %d",&N,&A);
while(N>=500){
N = N - 500;
}
if(N<=A){
printf("Yes");
}
else{
printf("No");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205202/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205202/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main (void)
{
int N=0,A=0;
scanf("%d", &N);
scanf("%d", &A);
if(N%500<=A)
{
printf("Yes\n");
}
else
{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205246/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205246/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,A;
scanf("%d",&N);
scanf("%d",&A);
N=N%500;
if(N<=A){
printf("Yes");
} else {
printf("No");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205297/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205297/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 temp2=n;
double ans=0.0;
while(n-- > 0)
{
int temp;
scanf("%d",&temp);
ans+=(float)temp*1.0/100;
// printf("%lf\n",ans);
}
ans/=temp2;
printf("%.12lf\n",ans*100);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20534/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20534/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 n,i,a=0,b;
char s[100010];
scanf("%d %s",&n,s);
for(i=0;s[i];i++){
if(s[i]=='(')a++;
else a--;
if(a<0){
b++;
a=0;
}
}
for(i=0;i<b;i++)printf("(");
printf("%s",s);
a=b=0;
while(n--){
if(s[n]==')')a++;
else a--;
if... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205398/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205398/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 argc, char * argv[])
{
int a,b,c;
scanf("%d %d %d",&a, &b,&c);
if ( ( a == b ) && ( b == c ) && ( c == a ) )
printf("Yes");
else printf("No");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205440/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205440/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[3];
scanf("%d %d %d",&a[0],&a[1],&a[2]);
if((a[0]==a[1])&&(a[1]==a[2])){
printf("Yes");
}else{
printf("No");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205484/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205484/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
void inp_str(int instr[]){
char *ptr;
int z,i,count;
char str[100]={'\0'};
char *ln;
fgets(str, 100, stdin); // 入力:"123456\n"
ln = strchr(str, '\n'); /* 改行文字を検索 */
if (ln != NULL) { /* 改行が読み取られていたかどうか */
*ln = '\0'; /* 改行文字を終端文字に置き換える */
}
else { ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205527/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205527/source.c"
target datalayout = "e-m:e-p270: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,b,c;
scanf("%d%d%d", &a, &b, &c);
if(a == b && b == c){
puts("Yes");
}else{
puts("No");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205578/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205578/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m, d;
scanf("%*d/%d/%d", &m, &d);
printf("2018/%02d/%02d\n", m, d);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205714/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205714/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[20];
scanf("%s", s);
printf("2018/01/%c%c\n", s[8], s[9]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205916/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205916/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main ()
{
char s[100000];
int q,n,m,i,j,flag,a[100001];
scanf("%d",&q);
for(i=0;i<q;i++)
{
scanf("%d",&n);
getchar();
for(j=0;j<n;j++)
{
scanf("%c",&s[j]);
a[j]=s[j]-'0';
}
if(n==2)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20596/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20596/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 MAX (2000000)
char prime[MAX + 1];
int main(void)
{
int i, j;
int a, d, n;
prime[0] = prime[1] = 0;
for (i = 2; i <= MAX; i++){
prime[i] = 1;
}
for (i = 2; i * i <= MAX; i++){
for (j = i * i; j <= MAX; j += i){
prime[j] = 0;
}
}
while (1){
scanf("%d %d %d", &a, &d,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206052/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206052/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@prime = dso_local local_un... |
#include <stdio.h>
#include <string.h>
#define MAX 1000020
int p[MAX],size;
int flg[MAX];
int isPrime(int x){
int i;
for(i=0;p[i]*p[i]<=x;i++){
if(x % p[i] == 0) return 0;
}
return 1;
}
int main(void){
int i;
int a,d,n;
p[0] = 2;
size = flg[2] = 1;
flg[0] = flg[1] = 0;
for(i=3;i<MAX;i++){
if(isPrime(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206096/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206096/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@p = dso_local local_unname... |
/* Coached by rainboy */
#include <stdio.h>
#include <string.h>
#define N 100000
int main() {
static char s[N + 1];
int n, i, tcd;
scanf("%s", s);
n = strlen(s);
tcd = 0;
for (i = 0; i < n; i++)
if (s[i] == 'p')
tcd++;
printf("%d\n", n / 2 - tcd);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206139/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206139/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main.s = internal global [... |
// AOJ GRL_3_C Connected Components - Strongly Connected Components
// 2018.4.26 bal4u
#include <stdio.h>
#include <malloc.h>
#include <string.h>
#define MAX_V 10002
int V; // 頂点数
int *to[MAX_V], hi[MAX_V];
int *r_to[MAX_V], r_hi[MAX_V];
int vs[MAX_V], vsz;
char used[MAX_V];
int cmp[MAX_V]; // 属する強連結成分のトポロ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206182/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206182/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct._IO_FILE = type { i... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#include<time.h>
#define FOR(i,n) for(int i=0;i<n;i++)
#define PRN(n) printf("%d\n",n)
#define PRF(n) printf("%lf\n",n)
#define PRL(n) printf("%lld\n",n)
#define PRS(s) printf("%s\n",s)
#define PRC(c) printf("%c",c)
#define INI(n) scanf("%d",&n)
#... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206254/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206254/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@fac = dso_local local_unna... |
#include<stdio.h>
#include<string.h>
#include<math.h>
#include<ctype.h>
int main()
{
double L;
scanf("%lf",&L);
{
printf("%lf\n",(L/3)*(L/3)*(L/3));
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206298/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206298/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d",&X);
printf("%.12f\n",(double)X*X*X/27);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206340/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206340/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
double L,V;
scanf("%lf",&L);
V=pow(L/3,3);
printf("%lf",V);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206384/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206384/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){
double L;
scanf("%lf", &L);
double max = 0, res = 0;
max = L / 3;
res = max * max * max;
printf("%lf", res);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206427/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206427/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main(void)
{
int l;
double n,sum;
scanf("%d",&l);
n=1.0*l/3;
sum=pow(n,3);
printf("%.12f",sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206470/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206470/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
//3変数の相加相乗平均の関係式より、p+q+r=Lでp, q, rが正数の時に、
//L/3=(p+q+r)/3 >= (pqr)^1/3
//よりVの最大値は(L/3)^3=L*L*L/27.0
int main (void)
{
int L; //unsignedは使わなかった。
scanf ("%d", &L);
double V = ((double) L) * ((double) L) * ((double) L) / 27.0;
printf ("%lf\n", V);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206513/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206513/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 l;
scanf("%d",&l);
long double num = l/3.0l;
printf("%Lf",num*num*num);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206557/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206557/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
struct node{
int key;
struct node *left;
struct node *right;
struct node *parent;
};
typedef struct node* Node;
Node rootnode,NIL;
Node getMinimum(Node node){
while(node->left!=NIL)
node=node->left;
return node;
}
Node getSuccessor(Node node){
Node delete=node... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206607/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206607/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { i32, ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct node {
int key;
struct node *parent, *left, *right;
};
struct node *tree, *z;
void insert(struct node *T, struct node *z);
struct node *find(int key);
void delete(int key);
void inorder(struct node *p);
void preorder(struct node *p);
int main(int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206650/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206650/source.c"
target datalayout = "e-m:e-p270: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 ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206694/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206694/source.c"
target datalayout = "e-m:e-p270: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, ... |
/*
I used a template program in C.
*/
#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){
/*my code beginning*/
while ( x->left != NIL ){
x = ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206744/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206744/source.c"
target datalayout = "e-m:e-p270: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>
struct Node{
int key;
struct Node *l, *r, *p;
};
struct Node *root, *NIL;
struct Node * tMin(struct Node *v){
while(v->l != NIL) v = v->l;
return v;
}
struct Node *tSuc(struct Node *v){
struct Node *y;
if(v->r != NIL) return tMin(v->r);
y = v->p;
while... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206788/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206788/source.c"
target datalayout = "e-m:e-p270: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
#define DEBUG
typedef struct node{
struct node* parent;
struct node* left;
struct node* right;
int k;
}Node;
Node* tree;
void insert(int);
void inorder(Node*);
void preorder(Node*);
void delete(Node*);
Node* find(Node*,int);
Node* Minimum(Node*);
Node* ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206838/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206838/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include<stdio.h>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while(x -> left != NIL){
x = x -> left;
}
return x;
}
Node treeSearch(Node u, int k){
if(u =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206881/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206881/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include<stdio.h>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while(x->left != NIL){
x = x->left;
}
return x;
}
Node treeSearch(Node u, int k){
if(u == NI... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206924/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206924/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include<stdio.h>
#include<stdlib.h>
struct node{
struct node *r;
struct node *l;
struct node *p;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node minimum(Node x){
while(x->l != NIL)
x = x->l;
return x;
}
Node search(Node u, int k){
if(u == NIL || u->key == k)
return u... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206968/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206968/source.c"
target datalayout = "e-m:e-p270: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);
void inorder(Node);
void preorder(Node);
Node treeSearch(Node,int);
Node treeMinimum(Node);
Node treeSuccessor(No... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207017/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207017/source.c"
target datalayout = "e-m:e-p270: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_207060/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207060/source.c"
target datalayout = "e-m:e-p270: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>
#include <string.h>
#include <stdlib.h>
#define N 200001
#define MAX 1000
struct node_t {
int key;
struct node_t *pare;
struct node_t *left;
struct node_t *right;
};
typedef struct node_t Node;
Node *tree_insert(Node *top, Node *z) {
Node *y, *x;
x = top;
y = NULL;
while (... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207103/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207103/source.c"
target datalayout = "e-m:e-p270: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_t = type { i32... |
#include<stdio.h>
#include<stdlib.h>
struct node{
int key;
struct node *p;
struct node *l;
struct node *r;
};
typedef struct node *NodePointer;
NodePointer r,NIL;
NodePointer getMinimum(NodePointer x){
while(x->l != NIL){
x = x->l;
}
return x;
}
NodePointer find(NodePointer x,int k){
while(x !... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207147/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207147/source.c"
target datalayout = "e-m:e-p270: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 treeSearch(Node u, int k){
Node n;
if(u->key == k) return u;
else if(u->key > k){
if(u->left != NIL){
n = tr... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207190/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207190/source.c"
target datalayout = "e-m:e-p270: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>
#define nn 500000
typedef struct nnode_tbl{
int k;
int p;
int l;
int r;
} nnode;
const int nil=-1;
nnode t[nn];
int root;
int room;
int ix;
int tmin(int u){
while (t[u].l!=nil)u=t[u].l;
return u;
}
int find(int u, int k){
while (u!=nil && k!=t[u].k){
if (k<t[u].k)u=t[u].l;
else u=t[u]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207233/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207233/source.c"
target datalayout = "e-m:e-p270: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.nnode_tbl = type { ... |
#include <stdio.h>
#include <string.h>
int main(){
char s[11];
char t[12];
int n;
scanf("%s%s",s,t);
n = strlen(s);
for(int i=0;i<n;i++){
if(s[i]!=t[i]){
printf("No\n");
return 0;
}
}
printf("Yes\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207284/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207284/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h>
int main() {
char s[15], t[15];
scanf("%s %s", s, t);
bool ok = 1;
for (int i = 0; i < strlen(s); i++) {
if (s[i] != t[i]) ok = 0;
}
if (ok) printf("Yes\n");
else printf("No\n");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207327/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207327/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[15], t[15];
scanf("%s", s);
scanf("%s", t);
//printf("%lu\n", sizeof(s));
int flag = 0;
int i = 0;
while(s[i] != '\0'){
//printf("%c\n", s[i]);
//printf("%c\n", t[i]);
if(s[i] != t[i]) flag = 1;
//printf("%d\n", i);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207378/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207378/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100], T[100];
int i = 0;
int result = 0;
scanf("%s", S);
scanf("%s", T);
while(S[i] != '\0'){
if(S[i] != T[i]){
printf("No");
result = 1;
break;
}
i++;
}
if(result == 0){
printf("Yes");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207420/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207420/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main() {
char S[11],T[12];
long len_S,len_T;
scanf("%s",S);
scanf("%s",T);
len_S = strlen(S);
len_T = strlen(T);
if (strncmp(S,T,len_S) == 0){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207464/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207464/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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];
char T[11];
int i,a,b;
scanf("%s",S);
scanf("%s",T);
a=0;
b=0;
for(i=0;S[i]!='\0';i++){
if(S[i]!=T[i]){
a=1;
}
if(S[i+1]!=T[i+1]){
b=1;
}
if(S[i+1]==T[i+1]){
b=0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207507/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207507/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[12];
char t[12];
int i;
int flagone=1;
int flagtwo=0;
scanf("%s",s);
scanf("%s",t);
for(i=0;s[i]!='\0';i++){
if(s[i]!=t[i]){flagone=0;break;}
}
if(flagone==1){
if(t[i]!='\0'){flagtwo=1;}
}
if(flagtwo==1){
printf("Yes");
}else{
printf("No");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207550/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207550/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(){
int i, j, n, m, flag=0;
char s[11], t[12];
scanf("%s", s);
scanf("%s", t);
n = strlen(s);
m = strlen(t);
for(i=0; i<n; i++){
if(s[i]!=t[i]){
flag = 1;
}
}
if(m-n!=1){
flag = 1;
}
if(flag==0){
printf("Yes");
}else{
printf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207608/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207608/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[20],T[20];
int main()
{
//変数宣言
int can=0;
int i=0;
//初期入力
scanf("%s",S);
scanf("%s",T);
while(can==0)
{
if(S[i] == '\0')
{
if(T[i]!='\0' && T[i+1]=='\0')
{
can = 1;
}
else
{
can = -1;
}
}
else if(S[i] != T[i])
{
can = -1;
}
else
{
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207666/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207666/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[12],t[12];
scanf("%s",s);
scanf("%s",t);
int i=0;
while(s[i]!='\0'){
if(s[i]!=t[i]){
printf("No\n");
return 0;
}
i++;
}
printf("Yes\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207730/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207730/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// Aizu Vol0 0038: Poker Hand
// 2017.7.30
#include <stdio.h>
#include <stdlib.h>
#define MAX 14
int main()
{
int card[MAX+3];
int max;
int i, j, d[5];
while (scanf("%d,%d,%d,%d,%d", &d[0], &d[1], &d[2], &d[3], &d[4]) == 5) {
for (i = 1; i <= MAX; i++) card[i] = 0;
max = 0;
for (i = 0; i < 5; i++) {
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207781/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207781/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 sort(int array[], const int size) {
int i, last, sorted = size;
while(sorted) {
last = 0;
for(i = 0; i < sorted - 1; ++i) {
if(array[i] > array[i + 1]) {
int temp = array[i];
array[i] = array[i + 1];
array[i + 1] = temp;
last = i + 1;
}
}
sorted = last;
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207824/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207824/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(void){
int ans=-1,i,K,a[1000001];
scanf("%d",&K);
a[1]=7%K;
for(i=2;i<=K;i++){
a[i] = (a[i-1]*10 + 7) % K;
}
for(i=1;i<=K;i++){
if(a[i]==0){
ans = i;
break;
}
}
printf("%d\n",ans);
ret... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207882/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207882/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n,i,k,a=7;
scanf("%lld",&k);
for(i=0;i<k;i++){
if(a%k==0){
printf("%lld\n",i+1);
return 0;
}
a=a%k;
a=a*10+7;
}
printf("-1\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207969/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207969/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 quicksort(int i,int j,int *A);
int partition(int i,int j,int a,int *A);
int pivot(int i,int j,int *A);
void swap(int i,int j,int *A);
int main(void){
int N,K,i;
long total = 0;
int h[200009];
scanf("%d %d\n",&N,&K );
for(i=0; i<N; i++){
scanf("%d",&h[i] );
}
quicksort(0,N-1,h)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208010/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208010/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#include <time.h>
typedef long long ll;
typedef long double ld;
#define INF (1LL<<60)
/*swap 交換*/
void swap(ll *a, ll *b){ll c;c=*b;*b=*a;*a=c;}
/*2つのうち大きい数を返す*/
ll max2(ll a,ll b){return a>=b?a:b;}
/*2つのうち小さい数を返す*/
ll min2(ll a,ll b){return a>=b?... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208061/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208061/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 H[200005];
int comp(const void*a,const void*b)//用来做比较的函数。
{ return *(int*)a-*(int*)b;}
int main()
{
int N,K;
scanf("%d%d",&N,&K);
long long i;
for(i=0;i<N;i++)
{
scanf("%d",&H[i]);
}
qsort(H,N,sizeof(int),comp);
long long sum;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208111/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208111/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#define MAX 100010
int main()
{
int a, b, c, d, i;
scanf("%d%d%d%d", &a, &b, &c, &d);
if (b < d) {
int t = b;
b = d;
d = t;
t = a;
a = c;
c = t;
}
for (i = 0; i < c; i++) {
if (((b - d) + i*a) % c == 0) break;
}
if (i == c) {
printf("-1\n");
}
else printf("%d\n", i*a+b);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20817/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20817/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 a, b, c;
scanf("%d%d%d", &a, &b, &c);
if (a == b) printf("%d\n", c);
if (a == c) printf("%d\n", b);
if (c == b) printf("%d\n", a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208212/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208212/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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",&a);
scanf("%d",&b);
scanf("%d",&c);
d = 0;
if(a -c ==0){
d = b;
}else if(b-c==0){
d = a;
}else if(a-b==0){
d = c;
}else{
}
printf("%d",d);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208263/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208263/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &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_208306/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208306/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,s[3];
for(i=0; i<=2; i++){
scanf("%d",&s[i]);
}
if(s[0]==s[1]){
printf("%d\n",s[2]);
}
else if(s[1]==s[2]){
printf("%d\n",s[0]);
}
else{
printf("%d\n",s[1]);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208357/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208357/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[3];
int n1, n2;
int c1, c2;
int i;
c1 = 0; c2 = 0;
n1 = -200; n2 = -200;
for ( i=0; i<3; i++ ) {
scanf("%d", &a[i]);
if ( n1 == -200 ) {
n1 = a[i];
c1 = 1;
} else if ( n1 == a[i] ) {
c1 = 2;
} else if ( n2 == -200 ) {
n2 ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208443/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208443/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define FOR(n) for(int i=0;i<n;i++)
#define FORJ(n) for(int j=0;j<n;j++)
#define PRN(n) printf("%d\n",n)
#define PRF(n) printf("%lf\n",n)
#define PRL(n) printf("%lld\n",n)
#define PRS(s) printf("%s\n",s)
#define PRC(c) printf("%c",c)
#define mod 1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208487/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208487/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
//環境で固定された変数を宣言
#define IN 200000
#define INPUTSIZE IN+2
int main() {
//変数宣言
int i, j;
char Sin[INPUTSIZE], Tin[INPUTSIZE];
char c;
//入力受付
fgets(Sin, INPUTSIZE, stdin);
fgets(Tin, INPUTSIZE, stdin);
int size = strlen(Sin);
//文字列交換
for (i = 0; i < siz... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208537/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208537/source.c"
target datalayout = "e-m:e-p270: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 a, b, c, d;
int p;
int com_x, com_y;
scanf("%d %d %d %d %d", &a, &b, &c, &d, &p);
com_x = a * p;
if (c >= p){
com_y = b;
}
else if (c < p){
com_y = b + (p - c) * d;
}
if (com_x < com_y){
printf("%d\n", com_x);
}
else {
printf("%d\n", com_y);
}
ret... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208601/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208601/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d %d %d %d", &A, &B, &C, &D, &P);
if (P > C){
if ( A * P > B + ((P - C) * D)){
printf("%d\n", B + ((P - C) * D));
}
else if( A * P < B + ((P - C) * D)){
printf("%d\n", A * P);
}
}
else {
if ( A * P > B ){
printf("%d\n", B... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208652/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208652/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void) {
int a, b, c, d, e;
int x, y;
scanf("%d%d%d%d%d", &a, &b, &c, &d, &e);
x = a * e;
y = (e > c) ?
(b + d*(e - c)): b;
int n = x < y ? x : y;
printf("%d\n", n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208702/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208702/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 (p<=c){
y=b;
}
else{
y=b+(p-c)*d;
}
if (x<y)
printf("%d\n",x);
else
printf("%d\n",y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208746/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208746/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 2000
int compare(const void *a, const void *b) {
int ia = *(int *) a;
int ib = *(int *) b;
return ia - ib;
}
int main() {
static int ll[N];
int n, i, j, k, ans;
scanf("%d", &n);
for (i = 0; i < n; i++)
scanf("%d", &ll[i]);
qsort(ll, n, sizeof *ll, compare)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208854/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208854/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main.ll = internal global ... |
#include<stdio.h>
#include<stdlib.h>
int comp(const void*a,const void*b){
if(*(int*)a > *(int*)b)return 1;
else return -1;
}
int main(){
int n;scanf("%d",&n);int tri=0;
int* arr = (int*)malloc(sizeof(int)*2003);
for(int i=0 ;i<n;i++)scanf("%d",&arr[i]);
qsort(arr,n,sizeof(int),comp);
/*int stopper = -1,prev,k,bi... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208904/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208904/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// Aizu 2372: IkaNumber
// 2017.10.30 bal4u@uu
#include <stdio.h>
#define INF 0x7fffffff
#define M 1000000007
void multiply(int f[2][2], int m[2][2])
{
unsigned long long x, y, z, w;
x = (unsigned long long)f[0][0]*m[0][0] + (unsigned long long)f[0][1]*m[1][0];
y = (unsigned long long)f[0][0]*m[0][1] + (unsig... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208955/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208955/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.fib.f = private un... |
#include<stdio.h>
#include<stdlib.h>
typedef struct UnionFind{
int *parent;
int n;
} UnionFind;
UnionFind* newUnionFind(int n){
UnionFind *u=(UnionFind *)calloc(1,sizeof(UnionFind));
u->parent=(int *)calloc(n,sizeof(int));
u->n=n;
for(int i=0;i<n;i++) u->parent[i]=-1;
return u;
}
int root(UnionFind *u,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208999/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208999/source.c"
target datalayout = "e-m:e-p270: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.UnionFind = type { ... |
#include<stdio.h>
int main()
{
int H, W, h, w;
H>0, W>0;
H>=h, W>=w;
scanf("%d %d", &H ,&W);
scanf("%d %d", &h ,&w);
printf("%d\n", (H-h)*(W-w));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209040/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209040/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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%d%d", &H, &W, &h, &w);
printf("%d\n", H*W-(h*W+w*H-h*w));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209084/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209084/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,white;
scanf("%d %d %d %d",&H,&W,&h,&w);
white = H*W-h*W-w*H+h*w;
printf("%d",white);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209134/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209134/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 all,h,w,y,s;
scanf("%d %d",&h,&w);
all = h*w;
scanf("%d %d",&y,&s);
all = all-y*w;
all = all-(s*h);
all = all+y*s;
printf("%d\n",all);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209178/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209178/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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\n", (H-h)*(W-w));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209220/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209220/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(int argc, const char * argv[]) {
// insert code here...
int a, b, c, d, ans;
scanf("%d %d %d %d", &a, &b, &c, &d);
ans = a*b - b*c -(d*(a-c));
printf("%d\n", ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209279/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209279/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 argc, char *argv[])
{
int gyo, retsu, h, w;
int mas;
int jokyo1, jokyo2;
int kyo;
int nokori;
scanf("%d", &gyo);
scanf("%d", &retsu);
scanf("%d", &h);
scanf("%d", &w);
mas = gyo * retsu;
jokyo1 = h * retsu;
jokyo2 = w... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209321/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209321/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int h,w;
scanf("%d %d", &H, &W);
scanf("%d %d", &h, &w);
//int remain_row = H-h;
printf("%d", (H-h)*(W-w));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209365/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209365/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,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_209415/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209415/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,x,y,z=0;
int num[100000];
int min = 1000006;
int result[100000];
int main(void) {
while(scanf("%d",&a) && a!=0){
num[i]=a;
i++;
}
for(int k=0;k<i;k++){
//printf("y\n");
for(int y=0;y*y<=num[k];y++){
//printf("y\n");
for(int z=0;z*z*z <= num[k];z++){
//printf("y\n")... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209488/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209488/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@z = dso_local local_unname... |
#include <stdio.h>
int main(){
char s[200001],t[200001];
int i,m,bl[200001];
long n;
scanf("%s",s);
for (i=m=0;s[i]!='\0';)
if (s[i]=='A') {
t[m++]='A';
i++;
} else if (s[i]=='B' && s[i+1]=='C') {
if (t[m-1]=='B') bl[m-1]++;
else {
bl[m]=1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209567/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209567/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// ABC066 B - ss
#include <stdio.h>
#include <string.h>
int main(void) {
char S[201];
scanf("%s", S);
int slen = strlen(S);
int flag = 1;
for (int i = slen - 2; i > 0; i -= 2) {
int center = i / 2;
flag = 1;
for (int j = 0; j < center; j++) {
if (S[j] != S[center... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209624/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209624/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[201];
scanf("%s",s);
int len=strlen(s);
fprintf(stderr,"%s\nlen=%d\n",s,len);
int ans=0,i;
while(ans==0)
{
len-=2;
{fprintf(stderr,"\n%d",len); }
ans=len;
for(i=0;i<=len/2-1;i++)
{
if(s[i]!=s[len/2+i])
{ans=0; break;}
}
if(l... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209668/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209668/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[200];
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_209718/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209718/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(int argc, char **argv){
char str[200];
scanf("%s\n", str);
for (int i = strlen(str) - 2;; i -= 2) {
int flag = 1;
for (int j = 0; j < (i / 2); j++) {
if(str[j] != str[j + (i / 2)]){
flag = 0;
break;
}
}
if(flag) {
printf("%d\n", i);
return 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209761/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209761/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 SQ(X) \
( (X) * (X) )
#define SQD(X,Y) \
( SQ(X) + SQ(Y) )
int zcos (
double x1,
double y1,
double x2,
double y2
)
{
double pred = ( x1 * y2 - y1 * x2 );
if ( pred > 0. )
{
return ( 1 );
}
else if ( pred < 0. )
{
return ( -1 );
}
return ( 0 );
}
/*... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209804/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209804/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#define N 100005
int a[N];
int main(void)
{
int n, i, max;
scanf("%d", &n);
for (i=1; i<=n; ++i)
scanf("%d", &a[i]);
max = 0;
for (i=1; i<=n; ++i)
if (a[i] > max)
max = a[i];
printf("%d\n", max);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20992/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20992/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 n,l;
scanf("%d %d",&n,&l);
char alpha[51];
scanf("%s",alpha);
alpha[l-1]+=32;
printf("%s",alpha);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209970/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209970/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int n,k,i;
scanf("%d%d",&n,&k);
char s[n+1];
scanf("%s",s);
for(i=0;i<n;i++)
if(i+1==k)
printf("%c",s[i]+32);
else
printf("%c",s[i]);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210019/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210019/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int n, s; // n types of sugar, s dollars
int i;
int d, c;
int max = -1;
scanf("%d %d", &n, &s);
for(i=0; i<n; i++)
{
scanf("%d %d", &d, &c);
if(d<s || (d==s && c==0))//can buy
{
if( (100-c)%100 > max)
max = (100-c)%1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21007/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21007/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <ctype.h>
int main(void){
int N, K;
scanf("%d%d", &N, &K);
char S[N], ans[N];
scanf("%s", S);
S[K-1] = tolower(S[K-1]);
printf("%s\n", S);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210112/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210112/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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(void)
{
int N, K;
char S[55];
scanf("%d%d%s", &N, &K, S);
S[K-1] = tolower(S[K-1]);
printf("%s\n", S);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210156/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210156/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.