Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
#include <stdlib.h>
#include<string.h>
int main ()
{
int n ; int a; int b ; int k =0 ; int t =0 ; int i ; int j ;
scanf("%d",&n);
scanf("%d",&a);
scanf("%d\n",&b);
if(a>b)
{
t=a;
a=b;
b=t;}
char str[n];
for(i=0;i<n;i++){
scanf("%c",&str[i]);
}
int p = a-1;
int q = b-1;
if(str[p]==s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22243/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22243/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 rep(i, n) for (int i = 0; i < (int) (n); i++)
#define MOD 1000000007
typedef long long ll;
#include <string.h>
int main(){
char s[10], t[10], u[10];
scanf("%s%s", s, t);
int a, b, len_s, len_u, i;
scanf("%d%d", &a, &b);
scanf("%s", u);
len_s = strlen(s);
len_u = strlen(u);
for(i = 0;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222473/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222473/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(void)
{
char s[11],t[11],u[11];
int a,b;
scanf("%s %s",s,t);
scanf("%d %d %s",&a,&b,u);
if(!strcmp(s,u)){
printf("%d %d\n",a-1,b);
}else if(!strcmp(t,u)){
printf("%d %d\n",a,b-1);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222523/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222523/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[20], T[20], U[20];
int A, B, b, i;
scanf("%s%s%d%d%s", S, T, &A, &B, U);
b=0;
for (i=0; i<strlen(S); i++) {
if (S[i]!=U[i]) {
b=1;
break;
}
}
if (b==0) A--;
else B--;
printf("%d %d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222567/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222567/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n,m,num[100010];
long long ans;
int comp(const void *a, const void *b)
{
return *(int*)b - *(int*)a;
}
int main()
{
int i,x;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
scanf("%d",&x);
if(x&1) num[++m] = x;
else ans += x;
}
qsort(num+1,m,sizeof(int),comp);
if(m&1) m--;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22261/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22261/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <string.h>
int main() {
char s[11] = {0}, t[11] = {0}, u[11] = {0};
int ns, nt;
scanf("%s %s", s, t);
scanf("%d %d", &ns, &nt);
scanf("%s", u);
if (strcmp(s, u) == 0) {
printf("%d %d", ns - 1, nt);
} else {
printf("%d %d", ns, nt - 1);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222668/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222668/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#ifdef TEST
struct test {
int ans;
} td[] = {
{},
};
#endif
void
solver(char *s, char *t, int a, int b, char *u)
{
if(strcmp(s, u) == 0)
a--;
else {
b--;
}
printf("%d %d\n", a, b);
}
int
main(int argc, char *argv[])
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222718/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222718/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 2101: Perfect Number
// 2017.9.20 bal4u@uu
#include <stdio.h>
#include <math.h>
int ptbl[] = {
3, 5, 7, 11, 13, 17, 19, 23, 29,
31, 37, 41, 43, 47, 53, 59, 61, 67, 71,
73, 79, 83, 89, 97, 101, 103, 107, 109, 113,
127, 131, 137, 139, 149, 151, 157, 163, 167, 173,
179, ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222769/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222769/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ptbl = dso_local local_unn... |
#include<stdio.h>
int main(){
int n,q[1010],p[1010],r=1,rr=1,t=0,i,j,c=0,d[1010][1010],e[1010]={};
int m[1010];
scanf("%d",&n);
for(i=0;i<n;i++){
for(j=0;j<n-1;j++){
scanf("%d",&d[i][j]);
d[i][j]--;
}
}
for(i=0;i<n;i++){
e[i]=0;
q[r++]=i;
}
for(i=c=0;c<n;i++){//printf("c%d %d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222840/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222840/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t,sum=0;
scanf("%d",&t);
if(t%1000==0){
printf("");
}else if(1000>t){
sum=1000-t;
}else if(t>1000){
sum=1000-(t%1000);
}
printf("%d\n",sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222884/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222884/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 fee;
scanf("%d",&fee);
//printf("%d\n", fee);
fee = fee % 1000;
if (fee == 0)
printf("%d", fee);
else
printf("%d", 1000 - fee);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222927/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222927/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void) {
int N;
scanf("%d", &N);
printf("%d\n", (1000 - N % 1000) % 1000);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222970/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222970/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <math.h>
int main() {
int n;
scanf("%d", &n);
if (n % 1000 == 0) {
printf("0");
} else {
int num = n / 1000 + 1;
printf("%d", num * 1000 - n);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223012/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223012/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d",&a);
while(a>1000){
a=a-1000;
}
a=1000-a;
printf("%d\n",a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223056/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223056/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 test;
scanf("%d",&test);
while(test--)
{
int n,result;
scanf("%d",&n);
result=(pow(2,n)+(2*(pow(2,((n/2)-1))-1)))-(pow(2,(n/2))*(pow(2,(n/2))-1));
printf("%d\n",result);
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2231/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2231/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include <stdio.h>
int main(void) {
int N;
scanf("%d", &N);
printf("%d\n" ,(1000 - N%1000)%1000);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223142/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223142/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 price, change;
scanf("%d", &price);
if (price % 1000 == 0)
change = 0;
else
change = 1000 - (price % 1000);
printf("%d\n", change);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223186/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223186/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N;
scanf("%lld",&N);
while(N >1000)
{
N -= 1000;
}
printf("%lld\n",(1000-N));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223229/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223229/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 main()
{
int n,r,yen=1000;
scanf("%d",&n);
r=n%yen;
if(r==0)
{
printf("0");
}
else
{
r=yen-r;
printf("%d",r);
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223272/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223272/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m,as;
scanf("%d",&m);
if((m%1000)!=0)
printf("%d",(1000-(m%1000)));
else
printf("0");
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223315/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223315/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int n;
scanf("%d", &n);
int i;
int min=11;
for(i=11; i>0; i--){
if(1000*i>=n){
min=i;
}
}
printf("%d\n", min*1000-n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223359/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223359/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, b;
scanf ("%d", &a);
n = 1000 - (a % 1000);
if (n == 1000) {
printf ("0");
return 0;
}
printf ("%d", n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223409/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223409/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
{
unsigned long int a, b, c;
scanf("%ld", &a);
if (a % 1000 != 0) {
printf("%ld", 1000 - (a % 1000));
}
else {
printf("%ld", 0);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223452/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223452/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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_223502/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223502/source.c"
target datalayout = "e-m:e-p270: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.hwreal = type { dou... |
#include <stdio.h>
#include <string.h>
int main(void)
{
int i,j,ans,len,key,row[32];
char left[16]={"qwertasdfgzxcvb"};
char right[12]={"yuiophjklnm"};
for(;;){
char str[33];
scanf("%s", str);
if(strcmp(str,"#")==0) break;
len=strlen(str);
ans=0;
for(i=0;i<len;i++){
for(j=0;j<15... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223553/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223553/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 sum = 0;
int i;
int a[6];
for (i = 0; i < 6; i++){
scanf("%d", &a[i]);
}
sum += a[0] + a[1] * 5 + a[2] * 10 + a[3] * 50 + a[4] * 100 + a[5] * 500;
if (sum >= 1000){
printf("1\n");
}
else {
printf("0\n");... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223597/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223597/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c1,c5,c10,c50,c100,c500;
scanf("%d%d%d%d%d%d",&c1,&c5,&c10,&c50,&c100,&c500);
if(1*c1+5*c5+10*c10+c50*50+c100*100+c500*500<1000){
printf("0\n");
}
else printf("1\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223654/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223654/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// AOJ DSL_1_B Weighted Union Find Trees
// 2018.4.28 bal4u
#include <stdio.h>
// <重み付きUnion Find>
#define MAX 100003
int par[MAX], ws[MAX];
void initWeightedUnionFind(int n)
{
int i;
for (i = 0; i < n; i++) par[i] = -1;
}
int find(int x)
{
int p;
if (par[x] < 0) return x;
p = find(par[x]), ws[x] += ws[par... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223698/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223698/source.c"
target datalayout = "e-m:e-p270: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>
int main(void)
{
int p,m,c,ninzuu;
scanf("%d",&p);
scanf("%d",&m);
scanf("%d",&c);
printf("%d\n",p+m+c);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223748/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223748/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 p,m,c,i;
scanf("%d %d %d",&p,&m,&c);
i=p+m+c;
printf("%d\n",i);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223791/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223791/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 main(){
int c1x, c1y, c1z;
int c2x, c2y, c2z;
int z1, z2;
double result;
scanf("%d %d %d", &c1x, &c1y, &c1z);
scanf("%d %d %d", &c2x, &c2y, &c2z);
result = sqrt((c1x - c2x) * (c1x - c2x) + (c1y - c2y... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223834/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223834/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define INF ((1LL<<62)-(1LL<<31))
ll n,k;
ll ans;
int main(){
scanf("%lld%lld",&n,&k);
rep(b,k+1,n+1){
//商がいくつま... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223878/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223878/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 b, r, g, c, s, t;
while(scanf("%d%d%d%d%d%d", &b, &r, &g, &c, &s, &t) && b + r + g + c + s + t)
printf("%d\n", 100 + b * 95 + r * 63 + g * 7 + c * 2 + s * 3 - t * 3);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223971/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223971/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 coin,money,num;
while(1){
scanf("%d",&num);
if(num==0) break;
money=1000-num;
coin=money/500;
money%=500;
coin+=money/100;
money%=100;
coin+=money/50;
money%=50;
coin+=money/10;
money%=10;
coin+=money/5;
money%=5;
coin+=mo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224013/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224013/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
{
while(1){
int n,p=0;
scanf("%d",&n);
if(n==0)
break;
n=1000-n;
p+=n/500;
n=n%500;
p+=n/100;
n=n%100;
p+=n/50;
n=n%50;
p+=n/10;
n=n%10;
p+=n/5;
n=n%5;
p+=n;
printf("%d\n",p);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224057/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224057/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 w1,h1,w2,h2,ans;
scanf("%d%d%d%d",&w1,&h1,&w2,&h2);
ans = 2*(h1+h2+w1)+4;
printf("%d",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22410/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22410/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 en;
int f=0;
while(1){
scanf("%d",&en);
if(en==0)break;
en=1000-en;
f=0;
while(1){
if(en==0)break;
else if(en>=500){
en=en-500;
f++;
continue;
}
else if(en<500 && en>=100){
en=en-100;
f++;
continue;
}
else if(en<100 && en>=50){
en=en-50;
f++;
continue;
}
else if(en<50 && en>=10){
en... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224158/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224158/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 %d %d", &a, &b, &c);
if (1<=a<=100 && 1<=b<=100 && 1<=c<=100) {
if (a+b==c || b+c==a || a+c==b){
printf("Yes");
} else{
printf("No");
}
} else {
printf("Invalid!");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224200/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224200/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ABC42(void);
void ABC43(void);
void ABC44(void);
void ABC45(void);
void ABC46(void);
void ABC47(void);
int main(void){
ABC47();
return 0;
}
void ABC42(void){
int a,b,c,n=0;
scanf("%d %d %d",&a,&b,&c);
if(a==7||b==7||c==7){
if((a==5&&b==5)||(b==5&&c==5)||(c==5&&a==5)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224244/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224244/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a+b==c || b+c==a || c+a==b){
printf("Yes");
}
else {
printf("No");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224288/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224288/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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%d%d", &a, &b, &c);
if (a == b + c || b == c + a || c == a + b)
puts("Yes");
else
puts("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224330/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224330/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int a,b,c;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
int max;
int min;
int mid;
if(a>=b){
if(a>=c){
max=a;
}else{
max=c;
}
}else{
if(b>=c){
max=b;
}else{
m... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224374/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224374/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
// Your code here!
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if( a==b+c || b==a+c || c==a+b ){
printf("Yes");
}
else{
printf("No");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224424/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224424/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0,b=0,c=0;
scanf("%d %d %d",&a,&b,&c);
if(a+b==c||a+c==b||b+c==a)
printf("Yes\n");
else
printf("No\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224468/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224468/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[]) {
/* if (argc != 4) return 1; */
int buf1, buf2, buf3;
int a, b, c;
/* a = atoi(argv[1]); */
/* b = atoi(argv[2]); */
/* c = atoi(argv[3]); */
scanf("%d %d %d", &a, &b, &c);
if (0 <= a <= 100 | 0 <= b <= 100 | 0 <= c <=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224510/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224510/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100010],w[100010];
int i,j,n,a,b,c[100010]={};
int d[100010]={};
scanf("%s %s",s,w);
for(i=0;s[i];i++){
if(s[i]=='A')d[i+1]=1;
else d[i+1]=2;
d[i+1]+=d[i];
}
for(i=0;w[i];i++){
if(w[i]=='A')c[i+1]=1;
else c[i+1]=2;
c[i+1]+=c[i];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224561/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224561/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 %d %d",&a,&b,&c);
if((a<c && c<b) || (b<c && c<a)){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224611/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224611/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 %d %d",&a,&b,&c);
if((a<c&&c<b) || (b<c&&c<a)){
printf("Yes");
}
else{
printf("No");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224655/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224655/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a,b,c;
scanf("%d %d %d",&a,&b,&c);
if((a<c&&c<b)||(a>c&&c>b)){
printf("Yes");
}else{
printf("No");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224705/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224705/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int flag=0;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
if(c >= a && c <= b){
flag = 1;
}
if(c >= b && c <= a){
flag = 1;
}
if(flag == 1){
printf("Yes");
}else{
printf("No");
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224749/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224749/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t;
scanf("%d",&t);
int weights[30], i;
weights[0]=2;
for(i=1; i<30; i++)
{
weights[i]=2*weights[i-1];
}
while(t>0)
{
int n,i,a=0,b=0;
scanf("%d",&n);
if(n==2)
{
printf("%d\n", 2);
}
else if(n==4)
{
printf("%d\n", 6);
}
else{
for(i=0; i<n; i++)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2248/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2248/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include <stdio.h>
#define N 21
#define M 31
#define T 35
int main(void){
int n;
char name[N][15];
int point[N];
int m[M];
int d[N][M];
int time[T];
int i,j;
int min;
char c1,c2;
while( 1 ){
scanf( "%d ",&n );
if( !n )
break;
for( i=0;i<T;i++ )
time[i] = 0;
for( i=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224842/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224842/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, i, j, k;
char s[10];
long long int m=0, a=0, r=0, c=0, h=0, head[5], cnt=0;
int x[10] = {0,0,0,0,0,0,1,1,1,2};
int y[10] = {1,1,1,2,2,3,2,2,3,3};
int z[10] = {2,3,4,3,4,4,3,4,4,4};
scanf("%d", &n);
for(i=0; i<n; i++){
scanf("%s", s);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224886/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224886/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, i;
long long int m=0, a=0, r=0, c=0, h=0, ans;
char s[100000][10];
scanf("%d", &N);
for(i=0; i<N; i++){
scanf("%s", s[i]);
}
for(i=0; i<N; i++){
if(s[i][0]=='M'){
m++;
}else if(s[i][0]=='A'){
a++;
}else if(s[i][0]=='R'){
r++;
}else if(s[i][0]=='C'){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224929/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224929/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 board[3][3];
int i, j;
while (scanf("%s", board[0]) + board[0][0] != '1'){
char win = '+';
for (i = 1; i < 3; i++){
scanf("%s", board[i]);
}
for (i = 0; i < 3; i++){
if (board[i][0] == board[i][1] && board[i][1] == board[i][2]){
win = board[i][0];
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224972/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224972/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 PI 3.14159265358979323846264338
int main(){
int a,b;
int i,j;
while(1) {
scanf("%d %d", &a, &b);
if(a==0 && b==0)
break;
for (i=0;i<a;i++){
for(j=0;j<b;j++) {
if(i%2 == j%2)
printf("#");
else
printf(".");
}
printf("\n");
}
printf("\n");
}
return... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225021/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225021/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int i,j,k,l;
while(1){
scanf("%d %d",&i,&j);
if(i == 0 && j == 0){
break;
}
for(k = 1;k <= i;k++){
switch(k % 2){
case 0:
for(l = 1;l <= j;l++){
if(l % 2 == 0){
printf("#");
}else{
printf(".");
}
}
break;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225065/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225065/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[]){
int i, j;
int x, y;
while (1) {
scanf("%d %d", &x, &y);
if (x==0 && y==0) {
break;
}else if(x<=300 && 1<=y){
for ( i = 0; i < x; i++ ){
for ( j = 0; j < y; j++ ){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225108/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225108/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int w;
int i;
int j;
while (1){
scanf("%d %d", &h, &w);
if (h == 0 && w == 0){
break;
}
for (i = 0; i < h; i++){
if (i % 2 == 0){
for (j = 0; j < w; j++){
if (j % 2 == 0){
printf("#");
}
else {
printf(".");
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225151/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225151/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, i, k;
while(1){
scanf("%d %d", &h, &w);
if(h == 0 && w == 0){
break;
}
for(i = 0; i < h; i++){
for(k = 0; k < w; k++){
if(i%2 == 0){
if(k%2 == 0){
printf("#");
}else{
printf(".");
}
}else{
if(k%2 == 0){
printf(".");
}else{
printf("#");
}
}
}
printf("\n");
}
prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225195/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225195/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
unsigned short i, j;
while(1){
scanf("%d %d", &h, &w);
getchar();
if(h==0 && w==0){ break; }
for(i=0; i<h; i++){
for(j=0; j<w; j++){
if(i%2 == 1){
if(j%2 == 1){
printf("#");
}else{
printf(".");
}
}else{
if(j%2 == 1)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225238/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225238/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=-1,b,i,j;
while(1){
scanf("%d %d",&a,&b);
if(a==0&&b==0)
break;
for(i=0;i<a;i++){
for(j=0;j<b;j++)
if((i+j)%2==0)
printf("#");
else
printf(".");
printf("\n");
}
printf("\n");
}
//for(i=0;i<=1000000000;i++);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225281/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225281/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,h,w;
while(1){
scanf("%d%d" , &h , &w);
if(h==0 && w==0)break;
for(i=0;i<h;i++){
for(j=0;j<w;j++)printf("%s" , ((i+j)%2==0) ? "#" : ".");
printf("\n");
}
printf("\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225346/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225346/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
typedef struct node{
char s[11];
int p;
int id;
}node;
int cmp(const void* a, const void* b){
if(strcmp(((node*)a)->s, ((node*)b)->s) == 0){
return ((node*)b)->p - ((node*)a)->p;
}else{
return strcmp(((node*)a)->s, ((node*)b)-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225397/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225397/source.c"
target datalayout = "e-m:e-p270: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 { [11 x... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define REP(I, B, E) for (int I = (B); (I) < (E); (I)++)
#define ARRAY_LEN(A) ((long long)(sizeof((A)) / sizeof(*(A))))
int compare_int(int l, int r) {
if (l < r) {
return -1;
}
if (l > r) {
return 1;
}
return 0;
}
typedef... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225447/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225447/source.c"
target datalayout = "e-m:e-p270: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.City = type { [11 x... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#define ll long long int
#define lim 100010
#define INF 1e9
#define mod 1000000007
#define MIN(x,y) ((x)<(y)?(x):(y))
#define MAX(x,y) ((x)<(y)?(y):(x))
#define ABS(x) ((x)>0?(x):-(x))
typedef struct{
int i,p;
char s[11];
}data;
int com... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225498/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225498/source.c"
target datalayout = "e-m:e-p270: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.data = type { i32, ... |
#include <stdio.h>
#include <string.h>
int main(){
char s[20];
scanf("%s",s);
s[5]=' ';
s[13]=' ';
printf("%s\n",s);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225548/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225548/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 A[30];
scanf("%s", A);
for (int i = 0; A[i] != '\0';i++){
if(A[i]!=',')printf("%c", A[i]);
else printf(" ");
}
printf("\n");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225591/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225591/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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
int main(){
char str[20];
scanf("%s", str);
str[5] = ' ';
str[13] = ' ';
printf("%s\n", str);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225634/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225634/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
int i;
char s[19];
scanf("%s", s);
for (i = 0; i < 19; i++) {
if (s[i] == ',')s[i] = ' ';
}
printf("%s\n", s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225678/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225678/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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];
int i;
scanf("%s",s);
for(i=0;i<19;i++){
if(i==5 || i==13){
s[i]=' ';
}
}
printf("%s\n",s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225728/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225728/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[20];
scanf("%s",s);
printf("%c%c%c%c%c %c%c%c%c%c%c%c %c%c%c%c%c\n",s[0],s[1],s[2],s[3],s[4],s[6],s[7],s[8],s[9],s[10],s[11],s[12],s[14],s[15],s[16],s[17],s[18]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225771/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225771/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
s[5] = ' ';
s[13] = ' ';
puts(s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225829/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225829/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s1[100];
scanf("%s",s1);
s1[5]=' ';
s1[13]=' ';
printf("%s",s1);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225887/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225887/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#include <stdlib.h>
#include <time.h>
#define pai 3.1415926535
int main(void) {
int A, B, C;
scanf("%d%d%d", &A, &B, &C);
int sum = 0;
if (B >= C) {
sum += B + C;
printf("%d", sum);
return 0;
}
else {
sum += 2*B;
C-= B;
}
if (A >= C) {
s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225944/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225944/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int count_1=0;
int count_2=0;
scanf("%d %d %d",&a,&b,&c);
if(b>=c){
printf("%d\n",b+c);
}else{
while(b!=0&&c!=0){
b--;
c--;
count_1++;
}
if(b!=0){
printf("%d\n",count_1*2);
}else{
while(a!=0&&c!=0){
a--;
c--;
count_2++;
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225988/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225988/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a,int b)
{
if(a<b)
return a;
else
return b;
}
int main()
{
int n,m;
int i,j,cmax=-1,c[101],wr[101],cmin=100000000,wmin=10000000;
scanf("%d%d",&n,&m);
for(i=0;i<n;i++)
{
scanf("%d",&c[i]);
cmin=min(cmin,c[i]);
if(c[i]>cmax)
cmax=c[i];
}
for(i=0;i<m;i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22603/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22603/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 fac(int x){
if(x==0) return 1;
else return x*fac(x-1);
}
long pp(int a, int b){
int i;
long ans=1;
for(i=b; i<=a; i++) ans*=i;
return ans;
}
int main(void){
while(1){
long count=0;
int i, j, k, n;
scanf(" %d", &n);
if(n==0) break;
for(i=0; i<=30; i++){
for(j=0;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226073/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226073/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// AOJ Volume 1 Problem 0168 Kannondou
#include <stdio.h>
#include <string.h>
int main(void)
{
int step[34];
int i;
int n;
memset(step, 0, sizeof(step));
step[1] = step[2] = step[3] = 1;
for (i = 1; i <= 30; i++){
step[i + 1] += step[i];
step[i + 2] += step[i];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226130/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226130/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,c,x,y,p[100],i;
y=0;
scanf("%d %d",&n,&c);
for(i=0;i<c;i++){
scanf("%d",&p[i]);
y=y+p[i];
}
x=y/(n+1);
if(y%(n+1)!=0){
printf("%d\n",x+1);
}
else {
printf("%d\n",x);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226181/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226181/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,h,w;
scanf("%d %d %d", &n, &h, &w);
printf("%d\n", (n-h+1)*(n-w+1));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226224/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226224/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
printf("%d\n",(a-b+1)*(a-c+1));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226282/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226282/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int p, j, count1=0,count2=0, i, k;
scanf("%d", &p);
int ara[p];
for(j=0;j<p;j++)
{
scanf("%d",&ara[j]);
}
for(i=1;i<p-1;i++)
{
if(ara[i-1]<=ara[i] && ara[i]<=ara[i+1])
{
coun... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226347/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226347/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int p1,p2,p3;
int ans=0;
scanf("%d%d%d",&n,&p1,&p2);
for(i=0;i<n-2;i++){
scanf("%d",&p3);
if(p1>p2 && p2>p3)
ans++;
else if(p1<p2 && p2<p3)
ans++;
p1=p2;
p2=p3;
}
printf("%d",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226390/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226390/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,p[21],x=0,i;
scanf("%d", &n);
for(i=0; i<n; i++)
scanf("%d", &p[i]);
for(i=1; i<n-1; i++)
{
if(p[i-1]>p[i]&&p[i+1]<=p[i])
x++;
if(p[i-1]<=p[i]&&p[i+1]>p[i])
x++;
}
printf("%d\n", x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226433/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226433/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,ans=0;
scanf("%d",&n);
int a[n];
for(i=0;i<n;i++) scanf("%d",&a[i]);
for(i=1;i<n-1;i++){
if((a[i-1]<a[i] && a[i]<a[i+1]) || (a[i+1]<a[i] && a[i]<a[i-1])) ans++;
}
printf("%d\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226477/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226477/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<limits.h>
#include<math.h>
int main()
{
int q=0,a,b,m,n,max=0,min1=INT_MAX,min2=INT_MAX;
scanf("%d %d",&m,&n);
while(m--)
{
scanf("%d",&a);
if(a>max) max=a;
if(a<min1) min1=a;
}
while(n--)
{
scanf("%d",&b);
if(b<min2) min2=b;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22652/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22652/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 i,j,k=0,N;
scanf("%d",&N);
int A[N];
for(i=0;i<N;i++)
scanf("%d ",&A[i]);
for(i=0;i<N-2;i++){
if(A[i] < A[i+1]){
if(A[i+1] < A[i+2])
k++;
}
if(A[i] > A[i+1]){
if(A[i+1] > A[i+2])
k++;
}
}
printf("%d\n",k);
return 0;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226563/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226563/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[20];
int n,js=0;
scanf("%d",&n);
for (int i=0;i<n;i++){
scanf("%d",&a[i]);
}
for (int i=1;i<n-1;i++){
if ( (a[i-1] > a[i] && a[i] > a[i+1]) || ((a[i-1] < a[i] && a[i] < a[i+1]))){
js++;
}
}
printf("%d",js);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226606/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226606/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//in the name of god
#include <stdio.h>
int main() {
int n = 0, t = 0, k = 0, d = 0;
scanf("%d %d %d %d", &n, &t, &k, &d);
if(n > ((d / t) + 1) * k)
printf("YES");
else
printf("NO");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22665/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22665/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
int p[22];
int i,cont=0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",p+i);
}
for(i=1;i<n-1;i++){
if((p[i-1]<p[i] && p[i]<p[i+1]) || (p[i-1]>p[i] && p[i]>p[i+1])){
cont++;
}
}
printf("%d\n",cont);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226693/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226693/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{ int A, B, C, D;
scanf("%d %d %d %d", &A,&B,&C,&D);
if((A+B)>(C+D)){
printf("Left");
}
else if((A+B)<(C+D)){
printf("Right");
}
else printf("Balanced");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226736/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226736/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n, t, k, d;
scanf("%d%d%d%d", &n, &t, &k, &d);
int time1 = ceil((float)n / k) * t;
int time2 = d + t;
if (time1 > time2)
{
printf("YES");
}
else
{
printf("NO");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22678/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22678/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(void){
int a,b,c,d,left,right;
scanf("%d %d %d %d",&a,&b,&c,&d);
left=a+b;
right=c+d;
if(left>right){
printf("Left\n");
}else if(left==right){
printf("Balanced\n");
}else{
printf("Right\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226822/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226822/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a,b,c,d;
scanf("%d %d %d %d",&a,&b,&c,&d);
if(a+b>c+d) puts("Left");
else if(a+b<c+d) puts("Right");
else puts("Balanced");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226873/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226873/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int a,b,c,d;
scanf("%d %d %d %d",&a,&b,&c,&d);
int left=a+b;
int right=c+d;
if(left>right)printf("Left");
else if(left<right)printf("Right");
else printf("Balanced");
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226916/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226916/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 unsigned u;
int main()
{
u a,b,x,y,lo,hi,mi,X,Y,XY,F,A,B;
scanf("%u%u%u%u",&a,&b,&x,&y);
lo=a+b-1;hi=-(a+b);
while((mi=((lo+hi)>>1))>lo)
{
X=mi/x;Y=mi/y;XY=X/y;
F=mi+XY-X-Y;X-=XY;Y-=XY;
A=a>Y?a-Y:0;B=b>X?b-X:0;
(A+B>F)?(lo=mi):(hi=mi);
}
printf("%u\n",hi);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22696/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22696/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 min(int a, int b)
{
if (a < b) return a;
else return b;
}
int getMinSet(int amount, int set)
{
int ans;
ans = amount / set;
if (ans * set < amount) ans++;
return ans;
}
int main() {
int n, a, b, c, d;
int setX, setY;
int price;
scanf("%d %d %d %d %d", &n, &a, &b, &c, &d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227001/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227001/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, b, c, d;
scanf("%d%d%d%d%d", &n, &a, &b, &c, &d);
int x = (n + a - 1) / a * b;
int y = (n + c - 1) / c * d;
printf("%d\n", x < y ? x : y);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227052/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227052/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d",&a,&b);
if(a<b){
printf("%d\n",b-a);
}
else{
printf("%d\n",a-b);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227096/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227096/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.