Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#define OP_UNDEFINED (-1000)
#define OP_NULL (-2000)
#define OP_MALLOC (-3000)
#define OP_CLONE (-4000)
#define OP_FREE (-5000)
int heap_size;
int heap_rest;
int memory_map_size;
int memory_map[10000];
char statement[400];
int operation_num;
int operat... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_377020/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_377020/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@values = dso_local local_u... |
#include<stdio.h>
int main()
{
int x,y,z,i,n;
while(scanf("%d%d%d",&x,&y,&z)==3)
{
n=0;
for(i=1;i<=10;i++)
if(i<=20-x-y&&i!=x&&i!=y&&i!=z)
n++;
printf((double)n/7>=0.5?"YES\n":"NO\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_377086/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_377086/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
typedef struct{
char name[20];
int p;
long m;
}classes;
int main(void){
classes cla[9];
int a, b, i;
for(i=0; i<9; i++){
scanf(" %s %d %d", cla[i].name, &a, &b);
cla[i].p = a+b;
cla[i].m = 200*a + 300*b;
}
for(i=0; i<9; i++)
printf("%s %d %ld\n", cla[i].name, cla[i].p, cla[i].m... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_377129/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_377129/source.c"
target datalayout = "e-m:e-p270: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.classes = type { [2... |
#include <stdio.h>
int main(int argc, char **argv)
{
char s[16];
unsigned int a, b;
while(scanf("%s %d %d", s, &a, &b) != EOF){
printf("%s %d %d\n", s, (a+b), (200*a+300*b));
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_377172/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_377172/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
int n,m,k,a,b,i,j,t,r1,p1,p2=5001;
int main(void) {
scanf("%d", &n); for (i=0; i<n; ++i) {
scanf("%d", &t); if (t>r1) r1=t;
}
scanf("%d", &m); for (i=0; i<m; ++i) {
scanf("%d", &t); if (t>p1) p1=t;
}
scanf("%d", &k); for (i=0; i<k; ++i) {
scanf("%d",... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37723/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37723/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@p2 = dso_local local_unnamed... |
#include <stdio.h>
int main(){
int x, A, B;
scanf("%d", &x);
A = (x / 500);
B = ((x % 500) / 5);
printf("%d\n", A * 1000 + B * 5);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_377273/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_377273/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int s=0;
int sum=0;
scanf("%d", &n);
s=n%500;
sum=((s/5)*5)+((n/500)*1000);
printf ("%d", sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_377316/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_377316/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
long long int x, h_1000, h_5, rem;
scanf("%lld", &x);
h_1000=x/500;
h_1000*=1000;
rem=x%500;
h_5=rem/5;
h_5*=5;
printf("%lld\n", h_1000+h_5);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_377402/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_377402/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, happy = 0;
scanf("%d", &X);
happy += (X / 500) * 1000;
X -= (X / 500) * 500;
happy += (X / 5) * 5;
printf("%d\n", happy);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_377446/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_377446/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[1000005];
int main()
{
int i,j,m,n;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
scanf("%d",&a[i]);
if(a[i]%2==0)
a[i]=a[i]-1;
}
for(i=1;i<=n;i++)
{
printf("%d ",a[i]);
}
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37749/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37749/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x;
int hap=0;
scanf("%d",&x);
while(x>=500){
hap+=1000;
x-=500;
}
while(x>=5){
hap+=5;
x-=5;
}
printf("%d",hap);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_377532/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_377532/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
long int X, ureshisa;
scanf("%ld",&X);
ureshisa = 1000*(X/500);
X = X%500;
ureshisa += 5*(X/5);
printf("%ld",ureshisa);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_377576/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_377576/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main()
{
int x, h=0;
scanf("%d", &x);
while(x>=5)
{
if(x>=500)
{
h=h+1000;
x-=500;
}
else if(x>=5)
{
h=h+5;
x-=5;
}
}
printf("%d", h);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_377619/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_377619/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a,b,t,n,c,i;
scanf("%d",&x);
if(x>=500)
{
a=x/500;
x=x%500;
b=a*1000;
x=x/5;;
c=x*5;
t=c+b;
printf("%d",t);
}
else
{
a=x/5;
b=a*5;
printf("%d\n",b);
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_377662/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_377662/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x,a,i,max=0;
scanf("%ld",&x);
a=x/500;
max=x-500*a;
max/=5;
printf("%ld",a*1000+max*5);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_377705/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_377705/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include<math.h>
#define ll long long
int main(){
ll int x,p=0,pt=0;
scanf("%lld",&x);
if(x>=500){
p = x/500;
x = x%500;
}
if(x>=5){
pt = x/5;
}
printf("%lld",p*1000 + pt*5);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_377749/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_377749/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x=0,gohyaku=0,goen=0;
char token[200]={};
fgets(token, sizeof(token), stdin);x=atoi(token);
gohyaku=x/500;
x=x%500;
goen=x/5;
printf("%d",(gohyaku*1000)+(goen*5));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_377792/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_377792/source.c"
target datalayout = "e-m:e-p270: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>
#include<string.h>
#include<stdlib.h>
#include<math.h>
#define PI 3.141592653589793
#define MOD 1000000007
long int combination(long int n, long int r);
//qsort用、昇順
int compare_int(const void *a, const void *b)
{
return *(int*)a-*(int*)b;
}
//qsort(data, 10, sizeof(int), compare_int)
long int comb... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_377835/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_377835/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int N,S=0;
int B[102];
scanf("%d",&N);
for(int i=1;i<N;i++)
scanf("%d",B+i);
B[0]=B[1];
B[N]=B[N-1];
for(int i=1;i<=N;i++){
S+=(B[i-1]<=B[i]?B[i-1]:B[i]);
}
printf("%d\n",S);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_377879/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_377879/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n,a=100000,b,sum=0;
scanf("%d",&n);
for(i=0;i<n-1;i++){
scanf("%d",&b);
if(a>=b)
sum+=b;
else
sum+=a;
a=b;
}
printf("%d",sum+b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_377921/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_377921/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 rep(i, n) for (int i = 0; i < (int)(n); i++)
#define min(a, b) ((a) < (b) ? (a) : (b))
#define scani(i) scanf("%d", &(i))
#define scanc(c) scanf("%c", &(c))
#define scand(d) scanf("%lf", &(d))
#define printi(i) printf("%d", i)
#define pr printf("\n")
#define NUM (100)
int main(int argc, ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_377965/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_377965/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 num,temp,pre,i,ans=0;
scanf("%d",&num);
for (i=1;i<num;i++) {
scanf("%d",&temp);
if (i==1) {
ans+=temp;
}
else if (temp<pre) { //今の数が前の数より大きいとき
ans+=temp;
}
else { //前の数が今の数より大きいとき
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_378007/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_378007/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, ans=0;
int *tmp;
scanf("%d",&n);
tmp=(int *)malloc(sizeof(int)*n-1);
for(int i=0;i<n-1;i++) scanf("%d",&tmp[i]);
for(int i=n-2;i>-2;i--){
if((i!=n-2&&tmp[i]>tmp[i+1])||i==-1){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_378050/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_378050/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int min(int x, int y){
return x < y ? x : y;
}
int main(void){
int N;
scanf("%d", &N);
int i;
int *B = (int *) malloc(sizeof(int) * (N - 1));
for(i = 0; i < N - 1; i ++){
scanf("%d", B + i);
}
int sum = B[0];
for(i = 1; i < N - 1; ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_378094/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_378094/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 now=0, wri=1, sta[65536][5], X, Y, tx, ty, kx, ky, in[52][52];
static char ch[51][51][51][51];
int i, j, k, dtx, dty, dkx, dky;
scanf("%d %d", &X, &Y);
while(X!=0 && Y!=0)
{
scanf("%d %d", &tx, &ty);
scanf("%d %d", &kx, &ky);
for(i=0;i<=Y+1;i++)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_378159/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_378159/source.c"
target datalayout = "e-m:e-p270: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.ch = internal unnamed... |
#include<stdio.h>
#include<stdlib.h>
#define D 365
int main()
{
int d=D;
int i,j,k,l;
int c[26]={0};
int s[D][26]={0};
int t[365]={0};
int bestcon[365]={0};
int bestnum=0;
scanf("%d",&d);
for(i=0;i<26;i++)
{
scanf("%d",(&c[i]));
}
for(j=0;j<365;j++)
{
bestnum=0;
for(k=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_378201/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_378201/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 d;
scanf("%d", &d);
long c[26];
for (int i = 0; i < 26; i++) {
scanf("%ld", &c[i]);
}
long s[d][26];
for (int i = 0; i < d; i++) {
for (int j = 0; j < 26; j++) {
scanf("%ld", &s[i][j]);
}
}
int t[d];
long score,max;
int max_contest;
lon... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_378245/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_378245/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int n,pos;
int a[40],b[40];
void solve(int l,int r){
if(l>r)return;
if(l==r){
if(b[l]==a[0])printf("%d",b[l]);
else printf("%d ",b[l]);
pos++;
return;
}
int x=a[pos],i;
pos++;
for(i=l;i<=r;i++){
if(b[i]==x)break;
}
solve(l,i-1);
solve(i+1,r);
if(x=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_378368/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_378368/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@b = dso_local global [40 x... |
#include<stdio.h>
#include<stdlib.h>
int n,*pre,*in,*post,prenumber=-1,cnt=0;
int infind(int number)//numberが格納されているinの要素番号を返す
{
int i;
for(i=0;i<n;i++) if(in[i]==number) return i;
printf("error\n");
return 100000;
}
void reconstraction(int l,int r)//後行順巡回を出力する関数
{
int c,m;
if(l>=r) return;
prenumber++;
c=pr... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_378425/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_378425/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@prenumber = dso_local loca... |
#include<stdio.h>
#include<string.h>
int main(void)
{
int i,b;
char s[4],a[4];
scanf("%s",s);
scanf("%s",a);
b=0;
for(i=0;i<3;i++){
if(s[i]==a[i]){
b++;
}
}
printf("%d",b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_378476/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_378476/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ans=0;
char s[4]={};
char t[4]={};
scanf("%s%s", s,t);
for (int i = 0; i < 3; i++) {
if(s[i]==t[i]){
ans++;
}
}
printf("%d\n", ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_378519/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_378519/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 count=0;
char s[10],t[10];
scanf("%s",s);
scanf("%s",t);
for(int i=0;i<3;i++){
if(s[i]==t[i])count++;
}
printf("%d\n",count);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_378562/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_378562/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
int i, count;
count = 0;
char S[3];
char T[3];
scanf("%s", S);
scanf("%s", T);
for (i = 0; i < 3; ++i) {
if (S[i] == T[i]) {
++count;
}
}
printf("%d", count);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_378605/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_378605/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() {
char tab1[3],tab2[3];
int count=0;
scanf("%s",tab1);
scanf("%s",tab2);
for (int i = 0; i < 3; i++) {
if (tab1[i]==tab2[i]) {
count++;
}
}
printf("%d\n",count );
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_378649/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_378649/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MAXN 100005
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define ABS(a) ((a) > 0 ? (a) : -(a))
long long fast_input()
{
static long long j_fast;
static char c_fast;
j_fast = 0;
c_fast = getchar();
while (c_fast < '0' || c_fast > '9')
c_fast = g... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3787/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3787/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@fast_input.j_fast = internal u... |
#include "stdio.h"
int main(){
int i,k;
scanf("%d", &i);
if (i<=2) {
printf("1\n1");
return 0;
}
if (i==3) {
printf("2\n3 1\n");
return 0;
}
printf("%d\n", i);
for(k=1;k<=i/2;k++) {
printf("%d ", 2*k);
}
for(k=1;k<i-1;k+=2){
prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37875/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37875/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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()
{
char S[4];
char T[4];
scanf("%s", S);
scanf("%s", T);
int count = 0;
for(int i=0; i<3; i++)
{
if (S[i] == T[i]) count++;
}
printf("%d\n", count);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_378793/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_378793/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[4];
char t[4];
int a=0;
scanf("%s",&s);
scanf("%s",&t);
if(s[0]==t[0]){a++;}
if(s[1]==t[1]){a++;}
if(s[2]==t[2]){a++;}
printf("%d",a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_378836/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_378836/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int n,en[1000];
long long s;
int fu(int can){
long long r=0;
int i;
for(i=0;i<n;i++)r+=en[i]-can;
if(r>=s)return 1;
return 0;
}
int main(){
scanf("%d %lld",&n,&s);
int i,mi=1000000000;
long long sum=0;
for(i=0;i<n;i++){
scanf("%d",&en[i]);
if(en[i]<mi)mi=en[i];
sum+=en[i];
}
if(s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37888/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37888/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@n = dso_local global i32 0, ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX(a,b) (a > b) ? a : b
#define MIN(a,b) (a < b) ? a : b
const int inf = 1000000000; // 10^9
int main(){
int a,b;
char op;scanf("%d %c %d",&a,&op,&b);
if(op == '+')printf("%ld",a+b);
else printf("%d",a-b);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_378922/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_378922/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@inf = dso_local local_unna... |
#include <stdio.h>
int main(){
int a, b;
char op;
scanf("%d %c %d", &a, &op, &b);
if(op == '-'){
printf("%d\n", a - b);
}else{
printf("%d\n", a + b);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_378973/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_378973/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,j,m,n,d;
char c;
scanf("%d %c %d",&a,&c,&b);
if(c=='+')
{
d=a+b;
printf("%d\n",a+b);
}
else if(c=='-')
{
d=a-b;
printf("%d\n",d);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_379015/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_379015/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
char op;
scanf("%d %c %d",&a,&op,&b);
if(op=='+'){
printf("%d",a+b);
}
else if(op=='-'){
printf("%d",a-b);
}
else{
printf("\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_379059/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_379059/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a,b;
char c;
scanf("%ld %c %ld",&a,&c,&b);
if(c=='+')
printf("%ld\n",a+b);
else
printf("%ld\n",a-b);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_379152/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_379152/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,r;
char op;
while(scanf ("%d %c %d",&a,&op,&b)!=EOF){
switch(op)
{
case '+': r=a+b;
printf("%d\n",r);
break;
case '-': r=a-b;
printf("%d",r);
break;
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_379196/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_379196/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//AtCoder用
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <stdlib.h>
#include <stdbool.h>
#define MOD 1000000007
void input_array(int how_data,int *data);
int get_random(int min, int max);
int factorial(int n);
int fibonacci(int n);
int qsort_09(const int *sys1 , const int *sys2);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_379239/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_379239/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main()
{
int x, y, tmp;
int ans;
while (scanf("%d %d", &x, &y) != EOF) {
x = abs(x);
y = abs(y);
if (x + y == 1) {
ans = 1;
} else if (!(x % 2) && !(y % 2)) {
ans = x + y;
} else if ((x % 2) && (y % 2)) {
ans = x + abs(y - 1);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_379282/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_379282/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, tmp;
int w[10] = {};
int k[10] = {};
int sum_w = 0;
int sum_k = 0;
for (i = 0; i < 10; i++){
scanf("%d", &w[i]);
}
for (i = 0; i < 10; i++){
scanf("%d", &k[i]);
}
for (i = 0; i < 9; i++){
for(j = 0; j < 9; j++){
if (w[j] < w[j + 1])... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_379325/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_379325/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100],b[100],i,j,sw,totala,totalb;
for(i=0;i<20;i++){
if(i>=0&&i<=9){
scanf("%d",&a[i]);
}else if(i>=10&&i<=19){
scanf("%d",&b[i-10]);
}
}
for(i=0;i<10;i++){
for(j=i;j<10;j++){
if(a[i]<=a[j]){... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_379383/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_379383/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#define TITLE_NUM 100
#define MUSIC_NUM 50
typedef struct playlist{
char music_title[TITLE_NUM];
int music_time;
} PlayList;
int total_music;
char x_music[TITLE_NUM];
PlayList playlist[MUSIC_NUM];
void input(){
int i;
scanf("%d", &total_music);
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_379426/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_379426/source.c"
target datalayout = "e-m:e-p270: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.playlist = type { [... |
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <limits.h>
#include <math.h>
int acs(const void *a, const void *b){return *(int*)a - *(int*)b;} /* 1,2,3,4.. */
int des(const void *a, const void *b){return *(int*)b - *(int*)a;} /* 8,7,6,5.. */
int cmp_char(con... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_379477/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_379477/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
#include<string.h>
int main()
{
int n,k,i,j;
scanf("%d%d",&n,&k);
long long int a[n],s;
for(i=0;i<n;i++)
{
scanf("%lld",&a[i]);
}
if(k>n)
printf("-1\n");
else
{
for(i=0;i<n-1;i++)
{
for(j=0;j<n-i-1;j++)
{
if(a[j]>a[j+1])
{
s=a[j];
a[j]=a[j+1];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37952/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37952/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 PMAX 1000000000
#define MAX 100000
int wmax=0;
int n,k,w[MAX];
int check(int P){
int i;
int count=1,now=P;
if(P<wmax) return 0;
for(i=0;i<n;i++){
if(now>=w[i]){
now-=w[i];
}else{
count++;
now=P-w[i];
}
}
if(co... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_379563/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_379563/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@wmax = dso_local local_unn... |
#include <stdio.h>
int get_uint() {
int n = 0;
int c = getchar_unlocked();
if(c < 48 || 57 < c) return c;
while(47 < c && c < 58) {
n = 10 * n + (c & 0xf);
c = getchar_unlocked();
}
return n;
}
int loadable_num(const int cap, int qty, const int *arr, const int N) {
int i = 0;
// while truck exi... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_379613/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_379613/source.c"
target datalayout = "e-m:e-p270: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>
#define ll long long
#define N 100000
int n,k,a[N];
int chex(ll b){
int i = 0,j,c;
for(j = 0; j < k; j++){
c = 0;
while(c+a[i] <= b){
c += a[i];
i++;
if(i == n)return n;
}
}
return i;
}
int main(){
int i,b;
ll mid,min = 0,ma... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_379657/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_379657/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@k = dso_local global i32 0... |
#include <stdio.h>
#define N 100001
#define MAX 10000
int search(int*, int, int, unsigned int, unsigned int);
int getNumPackage(int*, int, int, unsigned int);
int main () {
int n, k;
int array[N];
scanf("%d %d", &n, &k);
for (int i = 0; i < n; i++) {
scanf("%d", &array[i]);
}
int p = search(array, ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_379721/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_379721/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
char str[n];
scanf ("%s", str);
int ctr = 0;
int maks = 0;
for (int i = 0; i < n; i++){
if (str[i] == 'I'){
ctr+=1;
}
else if (str[i] == 'D'){
ctr -= 1;
}
if (maks < ctr){
maks = ctr;
}
}
printf ("%d", maks);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_379765/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_379765/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 max=0,x=0,n,i;
char str[1000];
scanf("%d",&n);
scanf("%s",str);
for(i=0;i<n;i++){
if(str[i]=='I') x++;
if(str[i]=='D') x--;
if(max<x) max=x;
}
printf("%d",max);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_379808/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_379808/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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>
#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(a, b) ((a) > (b) ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_379851/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_379851/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x=0,ans=0,n ;
scanf("%d",&n);
char s[n] ;
scanf ("%s",s);
for(int i=0; i<n; i++){
if (s[i]=='I'){
x++;
} else {
x--;
}
if (ans<x){
ans=x;
}
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_379909/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_379909/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i, count = 0;
char yourinput[1024],check;
int go=0;
scanf("%d", &a);
scanf("%s", yourinput);
check = 'I';
for (i = 0; yourinput[i] != '\0'; i++)
{
if (yourinput[i] == check)
{
count++;
}
else {
count--;
}
if (go < count) {
go... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_379967/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_379967/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ch;
while(1){
scanf("%c",&ch);
if(ch=='\n')break;
else if(ch>='A'&&ch<='Z')ch+=32;
else if(ch>='a'&&ch<='z')ch-=32;
printf("%c",ch);
}
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_380022/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_380022/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
char str[1048576];
memset(str,'\0',sizeof(str));
scanf("%[^\n]s",str);
for(i=0;i<strlen(str);++i){
if(str[i]>='A'&&str[i]<='Z'){
str[i] = str[i]+0x20;
}else if(str[i]>='a'&&str[i]<='z'){
str[i] = str[i]-0x20;
}
}
for(i=0;i<strlen(st... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_380073/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_380073/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
{
int c;
while ((c = getchar()) != '\n') {
if (isupper(c))
putchar(tolower(c));
else if (islower(c))
putchar(toupper(c));
else
putchar(c);
}
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_380123/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_380123/source.c"
target datalayout = "e-m:e-p270: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>
#include <ctype.h>
int main(void) {
char s;
int ch;
while (1) {
s = getchar();
if(s=='\n') break;
if (islower(s)!=0) {
ch = toupper(s);
printf("%c",ch);
} else if(isupper(s)!=0) {
ch = tolower(s);
printf("%c",ch);
} else {
printf("%c",s);
}
}
printf("\n");
return 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_380196/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_380196/source.c"
target datalayout = "e-m:e-p270: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>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#define ll long long
#define rep(i,n) for(ll i=0;i<(n);i++)
#define max(p,q) ((p)>(q)?(p):(q))
#define min(p,q) ((p)<(q)?(p):(q))
#define chmax(a,b) ((a)=(a)>(b)?(a):(b))
#define chmin(a,b) ((a)=(a)<(b)?(a):(b))
#define abs(p) ((p)>=(0)?(p):(-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_380260/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_380260/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 S[30],ST[9],N[7]={0,0,0,0,43,45,42},i,p,F[4]={0};
int calc()
{
int i=p=0;
for(i=0;i<7;i++)
{
if(S[i]>9)
{
if(p<2)return 0;
else if(S[i]==43)ST[p-2]=ST[p-2]+ST[p-1];
else if(S[i]==45)ST[p-2]=ST[p-2]-ST[p-1];
else if(S[i]==42)ST[p-2]=ST[p-2]*ST[p-1];
p-=1;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_380310/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_380310/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@N = dso_local global [7 x ... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define PI 3.14159265358979323
//int calc1(float a,float b,float c,float d,float e,float f,float *x,float *y);
//void quick(int *,long long,long long);
//int comp(char *a,char *b);
int make(int *a,int n,int b,char *c[4],char *buf);
int main(){
char buf[100];... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_380361/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_380361/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
long n;
scanf("%ld",&n);
printf("%ld",(long)sqrt(n)*(long)sqrt(n));
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_380404/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_380404/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ans;
int inp;
scanf("%d",&inp);
for(ans=0;;ans++){
if(ans*ans>inp){printf("%d",(ans-1)*(ans-1));break;}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_380448/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_380448/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ans=0;
while(ans*ans<=n)
ans++;
ans--;
printf("%d\n",ans*ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_380499/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_380499/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,ans=0;
scanf("%d",&N);
for(int i=1;i*i<=N;i++)
{
if(ans<i*i){
ans = i*i;
}
}
printf("%d",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_380541/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_380541/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
long long int n;
double s;
scanf("%lld",&n);
s=sqrt(n);
n=s;n*=n;
printf("%d\n",n);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_380585/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_380585/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#pragma warning(disable:4996)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include <float.h>
#pragma region 定義
typedef long long ll;
typedef unsigned long long ull;
#define _itoa(A,N) sprintf(A, "%d", N);
int i_dsort(const void* a, const void* b);
int i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_380635/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_380635/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@pc = internal unnamed_addr... |
#include <stdio.h>
#include <stdlib.h>
int asc(const void *a, const void *b) {
return *(int *)a - *(int *)b;
}
int main() {
int K, N, h[100000], i, min = 1000000000, dif;
scanf("%d %d", &N, &K);
for (i = 0; i < N; i++) {
scanf("%d", &h[i]);
}
qsort(h, N, sizeof(int), asc);
for (i = K - 1; i < N; i++) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_380679/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_380679/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
#include<stdlib.h>
int com(const void *a, const void *b){
return *(int*)a - *(int*)b;
}
int main(){
int N,K,i,min;
int h[100000]={'0'};
unsigned int res= 1000000001;
scanf("%d %d\n",&N,&K);
for(i = 0; i < N; i++) scanf("%d\n",&h[i]);
qsort(h,N,sizeof(h[0]),com);
for(i =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_380729/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_380729/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 asc(const void *a, const void *b)
{
return *(int *)a - *(int *)b;
}
int main()
{
int n, k;
scanf("%d %d", &n, &k);
k--;
int i;
int h[100005];
for (i = 0; i < n; i++)
scanf("%d", &h[i]);
qsort(h, n, sizeof(int), asc);
int ans = h[n - 1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_380794/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_380794/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdlib.h>
#include <stdio.h>
int main(){
long int a = 1;
long int b = 2;
int n;
scanf("%d", &n);
if(n!=1){
for(int i=2;i<=n;i++){
long int tmp = a;
a = a + b;
b = tmp;
}
}
printf("%ld\n", a);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_380837/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_380837/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
long int L[87];
int n,i;
L[0] = 2;
L[1] = 1;
scanf("%d",&n);
for(i=2;i<=n;i++){
L[i] = L[i-1]+L[i-2];
}
printf("%ld\n",L[n]);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_380880/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_380880/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
typedef long long i64;
i64 lucas[90] = {};
i64 get_lucas(int n){
if(n == 0) return 2;
else if(n == 1) return 1;
else{
if(lucas[n] != 0) return lucas[n];
else return lucas[n] = get_lucas(n - 1) + get_lucas(n - 2);
}
}
int main(void){
int n;
scanf("%d", &n);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_380923/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_380923/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@lucas = dso_local local_un... |
#include<stdio.h>
int main(void){
long N,L[87],i;
L[0] = 2;
L[1] = 1;
scanf("%ld",&N);
for(i=2;i<=N;i++){
L[i] = L[i-1] + L[i-2];
}
printf("%ld\n",L[N]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_380967/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_380967/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
long long int l[86];
l[0]=2;l[1]=1;
scanf("%d", &n);
int cnt = 2;
while(cnt<=n){
l[cnt] = l[cnt-1]+l[cnt-2];
cnt++;
}
printf("%lld\n",l[n]);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_381023/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_381023/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r,g,b,n,count=0;
int i,j;
scanf("%d %d %d %d",&r,&g,&b,&n);
for(i=0;i<=n/r;i++){
for(j=0;j<=(n-r*i)/g;j++){
if((n-r*i-g*j)%b==0)
count++;
}
}
printf("%d\n",count);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_381067/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_381067/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 max(a,b) (((a)>(b)) ? (a):(b))
#define min(a,b) (((a)<(b)) ? (a):(b))
int cp(const int *a,const int *b){
return *a-*b;
}
int main(void){
int r,g,b,n;
scanf("%d %d %d %d",&r,&g,&b,&n);
int cnt=0;
for(int i=0;i<=n;i++){
for(i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_381124/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_381124/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r,g,b,n;
scanf("%d%d%d%d",&r,&g,&b,&n);
int ans=0,i,j;
for(i=0;i*r<=n;i++){
for(j=0;j*g+i*r<=n;j++){
if((n-r*i-j*g)%b==0)ans++;
}
}
printf("%d\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_381168/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_381168/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#if 0
cat <<EOF >mistaken-paste
#endif
// thanks for @rsk0315_h4x
#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <time.h>
#define BIG 2000000007
#def... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_381210/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_381210/source.c"
target datalayout = "e-m:e-p270: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.hwll = type { i64, ... |
#include <stdio.h>
int main(void) {
int n,p,x1,y1,z1,w1,x2,y2,z2,w2;
int t,i,j,k;
while(scanf("%d",&n),n != 0){
for(p = 1;p <= n;p++){
scanf("%d%d%d%d%d%d%d%d",&x1,&y1,&z1,&w1,&x2,&y2,&z2,&w2);
t = x1*x2-y1*y2-z1*z2-w1*w2;
i = y1*x2+x1*y2-w1*z2+z1*w2;
j = z1*x2+w1*y2+x1*z2-y1*w2;
k = w1*x2-z1*y2+y1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_381276/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_381276/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int cnt = 0;
scanf("%d", &n);
for (int a = 1; a < n; a++)
{
for (int b = 1; a * b < n; b++)
cnt++;
}
printf("%d\n", cnt);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_381326/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_381326/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 alphabet[26];
int main() {
int n;
scanf("%d", &n);
int i;
for(i = 0; i < 26; ++i) {
alphabet[i] = 0;
}
char current = getchar();
for(i = 0; i < n; ++i) {
current = getchar();
++alphabet[current - 'a'];
}
int j;
for(i = 0; i < 26; ++i) {
for(j = 0; j < alphabet[i]; ++j) {
pu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_38137/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_38137/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
long long f(long long a,int b){
if(b==0||b==4)return a;
if(b==1||b==3)return a?a%2:2;
return 1-a%2;
}
long long MIN(long long a,long long b){return a<b?a:b;}
int main(){
long long n,a,i,j,k,min,d[200010][5]={};
scanf("%lld",&n);
for(i=1;i<5;i++)d[0][i]=1e18;
for(i=0;i<n;i++){
scanf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_381412/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_381412/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
int main(void) {
int N,P;
int j=0,cnt=0,i;
scanf("%d",&N);
scanf("%d",&j);cnt++;
for(i=1;i<N;i++) {
scanf("%d",&P);
if(j<P) continue;
j=P; cnt++;
}
printf("%d",cnt);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_381463/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_381463/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <ctype.h>
#include <limits.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <tgmath.h>
int main(int argc, char **argv)
{
int n;
scanf("%d", &n);
int q = INT_MAX;
int r = 0;
for (int i = 0; i < n; i++) {
int p;
scanf("%d", &p);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_381506/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_381506/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
void swap(int *x,int *y)
{
int temp;
temp=*x;
*x=*y;
*y=temp;
return;
}
int main()
{
int a,b,c,x;
scanf("%d%d%d", &a,&b,&c);
if(a>b)
{
swap(&a,&b);
}
if(a>c)
{
swap(&a,&c);
}
if(b>c)
{
swap(&b,&c);
}
// printf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_38155/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_38155/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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<math.h>
#define ARR_LEN 200000
int main() {
int P[ARR_LEN];
int N, i, j;
scanf("%d", &N);
for (i = 0; i < N; i++) {
scanf("%d", &P[i]);
}
int R = 0;
int R_flag, P_min;
P_min = P[0];
for (i = 0; i < N; i++) {
if (P_min >= P[i]) {
P_min = P[i];
R++;
}
}
printf("%d\n", R... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_381593/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_381593/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 int N;
long int p[200200];
int i;
scanf("%ld",&N);
for(i=0;i<N;i++){
scanf("%ld",p+i);
}
long st = p[0];
long cnt=0;
for(i=1;i<N;i++){
if(st>=p[i]){
st = p[i];
cnt++;
}
}
cnt++;
printf("%ld\n",cnt);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_381636/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_381636/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,sum=0;
scanf("%d%d%d",&a,&b,&c);
if(a>b&&a>c)
{
sum=b+c;
if(sum<=a)
{
printf("%d\n",(a-sum+1));
}
else {
printf("0\n");
}
}
else if(b>a&&b>c)
{
sum=a+c;
if(sum<=b)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_38168/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_38168/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
int n; // さいころ数
int k; // 隣接するさいころの数
int i;
scanf("%d %d", &n, &k);
double ex_value[n];
int p[n];
double cum_sum[n - k + 1];
double tmp = 0;
double index = 0;
for(i = 0; i < n; i++) {
scanf("%d", &p[i]);
}
for(i = 0; i < n; i+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_381722/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_381722/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 PI 3.141592653589793
#define MOD 1000000007
//qsort用、昇順
int compare_int(const void *a, const void *b)
{
return *(int*)a-*(int*)b;
}
int main(){
int k, n;
scanf("%d%d", &n, &k);
int pro[n];
for(int i=0; i<n; i++){
scanf("%d", &pr... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_381773/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_381773/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int n, arr[100005];
int main(){
int i, j;
scanf("%d", &n);
for(i = 0;i < n;i++)scanf("%d", arr + i);
j = 1;
for(i = 0;i < n;i++){
if(arr[i]&1){
arr[i] += j;
j *= -1;
}
arr[i] >>= 1;
printf("%d\n", arr[i]);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_38197/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_38197/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <stdbool.h>
#include <stdlib.h>
int ascPair(const void *pa, const void *pb) {
int *a = (int *)pa;
int *b = (int *)pb;
if (a[0] == b[0]) return a[1] - b[1];
else return a[0] - b[0];
}
int descPair(const void *pa, const void *pb) {
int *a = (int *)pa;
int *b = (int *... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_38247/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_38247/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.