Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
int main() {
int x, a;
scanf("%d %d", &x, &a);
printf(x < a ? "0\n" : "10\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79649/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79649/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 X, A;
scanf ("%d %d", &X, &A);
if (X < A) {
printf ("0");
} else {
printf ("10");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79692/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79692/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
int main(void)
{
int a,b,c;
scanf("%d %d",&a,&b);
if(a>=b)
{
printf("10");
}else{
printf("0");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79735/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79735/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, a;
scanf("%d%d", &x, &a);
if ( x < a ) {
printf("0\n");
}
else {
printf("10\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79779/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79779/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,A;
scanf("%d %d\n",&X,&A);
if(X < A){
printf("0\n");
}else{
printf("10\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79821/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79821/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,s,i;
int a[100005]={0};
while(scanf("%d",&N)!=EOF)
{
for(i=0;i<N;i++)
{
scanf("%d",&s);
if(s==0)
{
a[s]++;
a[s+1]++;
}
else
{
a[s]++;
a[s+1]++;
a[s-1]++;
}
}
int max=0;
for(i=0;i<=100000;i++)
if(max<a[i]) max=a[i];
printf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79865/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79865/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,a,b,c,i,j,k,t=0;
scanf("%d%d%d%d",&a,&b,&c,&x);
for(i=0;i<=a;i++)for(j=0;j<=b;j++)for(k=0;k<=c;k++)if(500*i+100*j+50*k==x)t++;
printf("%d",t);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79908/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79908/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,x,ans=0;
scanf("%d%d%d%d",&a,&b,&c,&x);
for(int i=0;a>=i;++i){
for(int j=0;b>=j;++j){
for(int k=0;c>=k;++k){
if(500*i+100*j+50*k==x)
++ans;
}
}
}
printf("%d",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79951/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79951/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <ctype.h>
#include <limits.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char **argv)
{
int a, b, c, x;
scanf("%d %d %d %d", &a, &b, &c, &x);
int ans = 0;
for (int i = 0; i <= a; i++) {
int s = 500 * i;
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79995/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79995/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 a500,b100,c50,total,result = 0;
scanf("%d",&a500);
scanf("%d",&b100);
scanf("%d",&c50);
scanf("%d",&total);
for(int i50 = 0;i50<=c50;i50++){
for(int i100 = 0;i100<=b100;i100++){
for(int i500 = 0;i500<=a500;i500++){
if(i500*500 + i100*100 + i50*50 == tota... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80036/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80036/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 int h[200005];
int l;
void f1(long long int n)
{
h[l] = n;
int now = l;
l++;
while (l > 0)
{
if (h[now] < h[(now - 1) / 2])
{
long long int f = h[now];
h[now] = h[(now - 1) / 2];
h[(now - 1) / 2] = f;
now = (now - 1) / 2;
}
else
break;
}
return;
}
long long int ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_8008/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_8008/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@h = dso_local local_unnamed_ad... |
#include<stdio.h>
int main()
{
int A,B,C,X,answ=0,subans[500];
int i,j,k,l;
////////// Scan
scanf("%d %d %d %d",&A,&B,&C,&X);
for (i=0;i<=X/500 && i<=A;i++){
for (j=0;j<=X-500*i && j<=B;j++){
for (k=0;k<= X-500*i-100*j && k<=C;k++){
if (X==500*i+100*j+50*k) answ += 1;
else ;
}}}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80122/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80122/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main()
{
int a,b,c,x,i,j,k,cnt=0;
scanf("%d%d%d%d",&a,&b,&c,&x);
for(i=0;i<=a;i++)
{
for(j=0;j<=b;j++)
{
for(k=0;k<=c;k++)
{
if(500*i+100*j+50*k==x)
{
cnt++;
}
}
}
}
printf("%d\n",cnt);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80166/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80166/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
/*
AtCoder AXC 000
*/
#include <stdio.h>
int main(void){
int a,b,c,x; //xは50の倍数
int p=0;
int i,j,k,n,m;
int temp_x;
(void)scanf("%d",&a);
(void)scanf("%d",&b);
(void)scanf("%d",&c);
(void)scanf("%d",&x);
temp_x = x;
for(i=0; x >= 500 && i < a; i++) x -= 500;
for(j=0; x >= 100 && j < b; j++) x ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80216/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80216/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<string.h>
int main()
{
int t;
scanf("%d",&t);
while(t--)
{
char A[500],b;
int B[26];
int a,c;
scanf("%s",A);
for(a=0;a<26;a++)
B[a]=0;
for(a=0;a<strlen(A);a++)
{
c=A[a]-1-'0'-48;
if(A[a]==A[a+1]&&B[c]!=2)
{
B[c]=1;
a++;
}
else
B[c]=2;
}
for(b='a';b<='z';b++)
{
c=b-1-'0'-48;
if(B[c]==2)
printf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_8026/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_8026/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include<string.h>
int flag[26];
int main(void) {
int t;
char str[510];
scanf("%d", &t);
for(int i=0;i<t;i++) {
scanf("%s", str);
for(int k=0;k<26;k++) {
flag[k] = 0;
}
for(int j=0;j<strlen(str);j++) {
int count = 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_8031/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_8031/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include<stdio.h>
int main(){
int x1,x2,x3,x4,x5,total;
scanf("%d %d %d %d %d",&x1,&x2,&x3,&x4,&x5);
total=x1+x2+x3+x4+x5;
printf("%d\n",15-total);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80353/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80353/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
char CheckZero(int* a_acX);
int main(void) {
int acX[5] = { 0,0,0,0,0 };
int i;
//5つの変数それぞれに数値を入力
for (i = 0;i < 5;i++) {
scanf("%d", &acX[i]);
}
//0が何番目の変数に代入されたかを判断し、それを出力
printf("\n%d\n", CheckZero(acX));
return 0;
}
/**********
* 5つの変数のうち何番目の変数に0が代入されたか確認する関数
* *a_acX 入力された5つの変数
*/
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80397/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80397/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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<stdint.h>
#include<inttypes.h>
typedef int64_t i64;
typedef int32_t i32;
static void print_int(i64 n){if(n<0){putchar('-');n=-n;}if(n==0){putchar('0');return;}int s[20],len=0;while(n>0){s[len++]=n%10+'0';n/=10;}while(len>0){putchar(s[--len]);}}
static i64 read_int(void){i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_8044/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_8044/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include <stdio.h>
int main(){
int i, x;
for (i=0; i<5; i++){
scanf("%d", &x);
if (x == 0){
printf("%d\n", i+1);
return 0;
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80483/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80483/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x;
int i, size = 5;
for (i = 0; i < size; i++) {
scanf("%d", &x);
if (x == 0) {
break;
}
}
printf("%d\n", i+1);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80526/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80526/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 MIN(a,b) (a<b)?a:b
int noisus = 26*4;
int main(){
//ACTG
int n;scanf("%d",&n);
char x[n+1];scanf("%s",x);
for(int i=0;i<n-3;i++){
int sc=0;
sc+=MIN((x[i]-'A'+26)%26,('A'-x[i]+26)%26);
//printf("PLUS %d(A)\n",sc);
sc+=MIN(((x[i+1]-'C'+26)%26),((... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_8057/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_8057/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@noisus = dso_local local_unnam... |
#include <stdio.h>
int main(void)
{
int A[5] = {0};
int i = 0;
scanf("%d %d %d %d %d",
&A[0], &A[1], &A[2], &A[3], &A[4]);
for (i = 0; i < 5; i++)
{
if (A[i] == 0)
{
printf("%d", i + 1);
break;
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80612/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80612/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main()
{
int A,C,B,D,E;
scanf("%d %d %d %d %d", &A, &B, &C, &D, &E);
if(A==0)
{
printf("1");
}
if(B==0)
{
printf("2");
}if(C==0)
{
printf("3");
}if(D==0)
{
printf("4");
}if(E==0)
{
printf("5");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80663/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80663/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x[5];
for(int i=0;i<5;i++){
scanf("%d",&x[i]);
}
for(int i=0;i<5;i++){
if (x[i]==0) printf("%d",i+1);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80706/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80706/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
char st1[5]="ACTG";
int main()
{
int n;
scanf("%d",&n);
char st[n+2];
scanf("%s",st);
int i,j,cnt=0,min=1000;
int sum=0;
for(i=0; i<n-3; i++)
{
sum=0;
for(j=i; j<i+4; j++)
{
if(st1[j-i]==st[j])
sum... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_8075/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_8075/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@st1 = dso_local local_unnamed_... |
#include <stdio.h>
int main(){
int ans;
for(int i=1; i<=5; i++){
int s; scanf("%d", &s);
if(!s) ans = i;
}
printf("%d\n", ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80793/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80793/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
scanf("%d",&n);
if(n>=1 && n<=999){
printf("ABC\n");
}
else if(n>999 && n<=1998){
printf("ABD\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80836/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80836/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 numbits(long long x) {
int count = 0;
while(x) {
count += x&1;
x >>= 1;
}
return count;
}
int main() {
int n, m, k, i, count = 0;
long long a[1050], x;
scanf("%d%d%d", &n, &m, &k);
for(i = 0; i < m; ++i) {
scanf("%lld", a+i);
}
scanf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_8088/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_8088/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include<stdio.h>
int main()
{
int n,p,q;
scanf("%d",&n);
int count = 0;
while(n--)
{
scanf("%d%d",&p,&q);
if(q-p>=2)
count++;
}
printf("%d\n",count);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_8093/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_8093/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include <stdio.h>
int main()
{
int n;
scanf("%d",&n);
if(n<=999)
{
printf("ABC");
}
else
{
printf("ABD");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80980/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80980/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main()
{
int a;
scanf("%d", &a);
if(a>=1000){
printf("ABD",a);
}else{
printf("ABC",a);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81022/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81022/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(void) {
int N;
char str[100] = "ABC";
scanf("%d", &N);
if (N>999) {
str[2] += 1;
}
printf("%s\n", str);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81066/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81066/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 L 10007
typedef struct Hash {
struct Hash *n;
long long k,v;
}hash;
int main(){
long int s=0,t,n,m,i,j,x=0;
hash *h[L],d[100001],*p;
scanf("%ld%ld",&n,&m);
d[0].k=0;d[0].v=1;d[0].n=NULL;h[0]=&d[0];
for(i=1;i<=n;i++){
scanf("%ld",&t);s=(s+t)%m;
for(p=h[s%L];p!=NULL;p=p->n)if... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81109/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81109/source.c"
target datalayout = "e-m:e-p270: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.Hash = type { ptr, i6... |
#include <stdio.h>
int main(){
char S, A, B;
scanf("%s=c", &S, &A, &B);
if(S, A != B){printf("Yes\n");}
else if(S, B != A){
printf("Yes\n");
}else if(A, B != S){
printf("Yes\n");
}else if( S == A, A == B){
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81152/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81152/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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){
char S[3];
scanf("%s",S);
if(S[0]==S[1]&&S[1]==S[2])printf("No");
else printf("Yes");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81196/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81196/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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)
{
char s[5];
scanf("%c %c %c",&s[0],&s[1],&s[2]);
if(s[0]==s[1]&&s[0]==s[2]){
puts("No");
}else{
puts("Yes");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81239/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81239/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
int main(){
char S[3];
scanf("%s",S);
if(((S[0])==(S[1]))&&(S[0])==(S[2])){
printf("No");
}else{
printf("Yes");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81282/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81282/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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)
{
char a[5];
scanf("%s", a);
if(a[0] == a[1] && a[1] == a[2])
{
printf("No\n");
}
else
{
printf("Yes");
}
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81332/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81332/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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];
int i;
for(i=0;i<4;i++){
scanf("%s",&S[i]);
}
if(S[0]==S[1]&&S[1]==S[2]) printf("No");
else printf("Yes");
return(0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81376/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81376/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 str[3];
for(int i=0;i<3;i++)
scanf("%s",&str[i]);
if(str[0]==str[1]&&str[1]==str[2])
printf("No");
else
printf("Yes");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81419/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81419/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
int main()
{
char a,b,c;
scanf("%c%c%c",&a,&b,&c);
if((a=='A'&&b=='B')||(a=='A'&&c=='B')||(b=='A'&&a=='B')||(b=='A'&&c=='B')||(c=='A'&&a=='B')||(c=='A'&&b=='B')) printf("Yes");
else printf("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81477/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81477/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,n,x,y,count=0;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d %d",&x,&y);
if((y-x)>=2)
count++;
}
printf("%d\n",count);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_8152/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_8152/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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()
{
char s[3];
scanf("%s",s);
int i,sum=0;
for(i=0;i<3;i++)
{
if(s[i]=='A') sum++;
}
if(sum==3||sum==0) printf("No");
else printf("Yes");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81563/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81563/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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) {
char S[4];
int i;
int flag[2] = {0,0};
scanf("%s", S);
for (i = 0; i < 3; i++) {
if (S[i] == 'A') flag[0] = 1;
if (S[i] == 'B') flag[1] = 1;
}
if (flag[0] == 1 && flag[1] == 1) {
printf("Yes\n");
}
else {
printf("No\n");
}
return (0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81606/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81606/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
int n,p,q,i,ans;
int main()
{
scanf("%d",&n);
for(i=1;i<=n;i++)
{
scanf("%d %d",&p,&q);
if(p+2<=q)
ans++;}
printf("%d\n",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_8165/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_8165/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include<stdio.h>
int main()
{
int X, Y;
scanf("%x%x",&X,&Y);
if (X<Y){
printf("<");
}
else if(X>Y)
{
printf(">");
}
if(X==Y)
{
printf("=");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81693/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81693/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,y;
scanf("%x %x",&x,&y);
if(x>y){
printf(">");
}else if(x<y){
printf("<");
}else{
printf("=");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81736/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81736/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,y;
scanf("%x%x",&x,&y);
if(x>y){
printf(">\n");
}else if(x==y){
printf("=\n");
}else if(x<y){
printf("<\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81794/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81794/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 X,Y,Z;
scanf("%c%c%c",&X,&Z,&Y);
if(X<Y){
printf("<");
}
else if(X>Y){
printf("> ");
}
else if (X==Y){
printf("=");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81844/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81844/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 a, b;
scanf("%c %c", &a, &b);
if (a > b) printf(">\n");
else if (a < b) printf("<\n");
else printf("=\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81895/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81895/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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) {
char a, b;
scanf("%c %c",&a, &b);
if (a == b) {
printf("=\n");
} else {
printf("%c\n", a < b ? '<' : '>');
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81938/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81938/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(){
long long int h,w; //linha x coluna
long long int res;
scanf("%lli %lli",&h,&w);
if((h==1) || (w==1)){
printf("1\n");
}else if(h%2==0 && w%2==0){
res = (h*w)/2;
printf("%lli\n",res);
}else if(h%2==0 && w%2!=0){
res =(h*w)/2;
printf("%lli\n",res);
}else if(h%2!=0 && ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81981/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81981/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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){
unsigned long int h,w;
scanf("%ld%ld",&h,&w);
if(h==1 || w == 1){
printf("1");
}else if(h != 1 && w != 1){
if((h*w)%2 == 1){
printf("%ld",(h*w)/2 + 1);
}else if((h*w)%2 == 0){
printf("%ld",(h*w)/2);
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_82023/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_82023/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define ll long long
int main(){
ll int h,w,ans=0;
scanf("%lld%lld",&h,&w);
if(h==1 || w==1){
printf("1");
return 0;
}
else if(h%2==0 || w%2==0){
ans = w*h/2;
printf("%lld",ans);
return 0;
}
else{
ans =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_82067/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_82067/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,M,K,arr[1005],i,num,ctr;
scanf("%d%d%d",&N,&M,&K);
for(i=0;i<M;i++)
scanf("%d",&arr[i]);
scanf("%d",&num);
ctr=0;
for(i=0;i<M;i++) {
if(__builtin_popcount(arr[i]^num)<=K) {
ctr++;
}
}
printf("%d\n",ctr);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_8211/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_8211/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include<string.h>
int main(void){
int n, a, i, j;
char w[100][11];
scanf("%d",&n);
for(i=0; i<n; i++){
scanf("%s",w[i]);
}
for(i=0; i<n-1; i++){
a = strlen(w[i]);
if(w[i][a-1] != w[i+1][0]){
printf("No\n");
return 0;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_82160/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_82160/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
void init(char W[][11],int N);
int judge(char W[][11],int N);
int main(){
int N;
char W[100][11];
int i;
scanf("%d",&N);
init(W,N);
if(judge(W,N))printf("No\n");
else printf("Yes\n");
return 0;
}
void init(char W[][11],int N){
for(int i=0;i<N;i++){
scanf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_82203/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_82203/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
char list[100][11], p = 0;
int check(char*s){
int i;
for (i = 0; i < p; i++){
if(strcmp(s, list[i]) == 0){
return 0;
}
}
strcpy(list[p++], s);
return 1;
}
int main(){
int N, len, flag = 1;
char W[100][11];
scanf("%d", &N);
for (int i = 0; i < N;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_82247/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_82247/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@p = dso_local local_unnamed_... |
#include <stdio.h>
#include <string.h>
int main(){
int n;
int i, j;
int l;
scanf("%d", &n);
char w[n][100];
for (i = 0; i < n; ++i){
scanf("%s", w[i]);
}
for (i = 0; i < n-1; ++i){
l = strlen(w[i]);
if(w[i][l-1] != w[i+1][0]){
printf("No");
return 0;
}
}
for (i = 0; i <... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_82304/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_82304/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<string.h>
int main(){
int n,i,len,c=0,j;
char w[110][15],s[2];
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%s",w[i]);
}
for(i=1;i<n;i++){
len=strlen(w[i-1]);
if(w[i-1][len-1]==w[i][0]){
for(j=0;j<i;j++){
if(strcmp(w[i],w[j])==0){
c=1;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_82348/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_82348/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
char map[20][13][13];
int nya;
void a_land(char x,char y){
if(map[nya][x][y-1]=='1'&&y!=0){
map[nya][x][y-1]='0';
a_land(x,y-1);
}
if(map[nya][x+1][y]=='1'&&x!=11){
map[nya][x+1][y]='0';
a_land(x+1,y);
}
if(map[nya][x][y+1]=='1'&&y!=11){
map[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_82399/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_82399/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@map = dso_local global [20 x... |
#include<stdio.h>
#include<string.h>
int main(){
int zu[14][14],w,h,i,j,flag,land;
while(0<=scanf("%1d",&h)){
memset(zu,0,sizeof(zu));
zu[1][1]=h;
for(i=2;i<=12;i++){
scanf("%1d",&zu[1][i]);
}
for(i=2;i<=12;i++){
for(j=1;j<=12;j++){
scanf("%1d",&zu[i][j]);
}
}
w=12;
h=12;
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_82441/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_82441/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 WIDTH 12
#define HEIGHT 12
void delIsland( int, int );
char field[ WIDTH ][ HEIGHT ];
const int dx[ 4 ] = { -1, 0, 1, 0 }, dy[ 4 ] = { 0, -1, 0, 1 };
int main( void ) {
int x, y, island;
do {
for ( y = 0; y < HEIGHT; y++ ) {
for ( x = 0; x < WIDTH; x++ )
field[ x ][ y ] = getc... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_82492/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_82492/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@dx = dso_local local_unnamed... |
#include <stdio.h>
#include <stdlib.h>
int c[21][50001];
int i[21];
int minv(int a, int b){
if(a > b)
return b;
else
return a;
}
int main(){
int m, n, count, count2 = 0;
for(m = 0; m < 21; m++){
c[m][0] = 0;
}
for(m = 1; m < 50001; m++){
c[1][m] = m;
}
scanf("%d", &m);
scanf("%d", &n);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_82586/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_82586/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@c = dso_local local_unnamed_... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
#define inf 9999999
int min(int a,int b)
{
if(a<b)
return a;
else
return b;
}
int main(void)
{
int i,j,m,n,*T,*c;
scanf("%d %d",&n,&m);
T=malloc(sizeof(int)*(n+1));
c=malloc(sizeof(int)*(m));
for(i=0;i<m;i++)
scanf("%... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_82636/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_82636/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ans=0;
char s[7];
scanf("%s",s);
for (int i=0; i<6; i++){
if (s[i]=='1'){
ans++;
}
}
printf("%d\n",ans);
return 0 ;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_82687/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_82687/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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[8];
int i;
int count=0;
for(i=0;i<6;i++)
{
scanf("%c",&s[i]);
if(s[i]=='1') count++;
}
printf("%d\n",count);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_82737/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_82737/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, t[100], m, p, x, sum = 0;
scanf("%d", &n);
for (int i = 0; i < n; i++) {
scanf("%d", &t[i]);
sum += t[i];
}
scanf("%d", &m);
for (int i = 0; i < m; i++) {
scanf("%d%d", &p, &x);
printf("%d\n", sum - t[p - 1] + x);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_82788/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_82788/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, m, t[100] = {}, p[100] = {}, x[100] = {};
scanf("%i", &n);
for (int i = 0; i < n; ++i) {
scanf("%i", &t[i]);
}
scanf("%i", &m);
for (int i = 0; i < m; ++i) {
scanf("%i %i", &p[i], &x[i]);
}
for (int i = 0; i < m; ++i) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_82830/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_82830/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 n,m,a[105];
int sum=0;
int main(){
scanf("%d",&n);
for(int i=1;i<=n;i++){
scanf("%d",&a[i]);
sum+=a[i];
}
scanf("%d",&m);
while(m--){
int p,x;
scanf("%d%d",&p,&x);
printf("%d\n",sum-a[p]+x);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_82881/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_82881/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@sum = dso_local local_unname... |
#include<stdio.h>
int main(void)
{
int n,t[100],m,p,x,i,ans[100],sum=0;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&t[i]);
sum += t[i];
}
scanf("%d",&m);
for(i=0;i<m;i++)
{
scanf("%d %d",&p,&x);
ans[i] = sum - (t[p-1]-x);
}
for(i=0;i<m;i++)
{
printf("%d\... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_82931/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_82931/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(){
int n,i,time_total=0;
scanf("%d",&n);
int t[n];
for(i=0;i<n;i++){
scanf("%d",&(t[i]));
time_total+=t[i];
}
int m;
scanf("%d",&m);
int p[m],x[m];
for(i=0;i<m;i++){
scanf("%d %d",p+i,x+i);
}
for(i=0;i<m;i++){
printf("%d\n",time_total-t[p[i]-1]+x[i]);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_82975/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_82975/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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[102],N,min=100,max=0;
scanf("%d",&N);
for(int i=1;i<=N;i++){
scanf("%d",X+i);
if(X[i]<min) min=X[i];
if(max<X[i]) max=X[i];
}
int ans=100*100*100;
for(int i=min;i<=max;i++){
int S=0;
for(int j=1;j<=N;j++){
S+=(X[j]-i)*(X[j]-i);
}
if(S<a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_83017/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_83017/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <string.h>
int main(void){
long long n,x[1000],hp,ans=100100100;
scanf("%lld",&n);
for(long long i=1;i<=n;i++){
scanf("%lld",&x[i]);
}
for (long long i=0;i<=100;i++){
hp = 0;
for (long long j=1;j<=n;j++){
hp += (x[j]-i)*(x[j]-i);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_83068/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_83068/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 s[105];
int main()
{
int a,b,n,i,j,c=0,m;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&s[i]);
a=s[i]-1;
c=c+a*a;
}
for(j=2;j<=100;j++)
{
m=0;
for(i=0;i<n;i++)
{
a=s[i]-j;
m=m+a*a;
}
if(m<c)
{
c=m;
b=j;
}
}
printf("%d",c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_83110/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_83110/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
int main(void)
{
int x[100], i, n, p, sum[100], min;
scanf("%d", &n);
for (i = 0; i < 100; i++)
{
sum[i] = 0;
}
for (i = 0; i < n; i++)
{
scanf("%d", &x[i]);
}
for (p = 0; p < 100; p++)
{
for (i = 0; i < n; i++)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_83154/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_83154/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include <math.h>
int compare_int(const void *a, const void *b)
{
// return *(int*)a - *(int*)b;
return *(long long*)a - *(long long*)b;
}
// qsort(A, b, sizeof(int), compare_int);
//long long factorial(long long n) {
// if (n > 0) {
// re... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_83198/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_83198/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 dis[128][128];
int i,j,n,x[128];
scanf("%d",&n);
for (i=1;i<=n;i++)
scanf("%d",&x[i]);
for (i=1;i<=100;i++)
for (j=1;j<=100;j++)
dis[i][j]=(i-j)*(i-j);
int min=2000000000;
int total;
for (i=1;i<=100;i++)
{
total=0;
for (j=1;j<=n;j++)
total+=dis[i][x[j... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_83240/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_83240/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define N 2001
typedef struct vertex{
short int next[N];
short int length;
} vertex;
vertex field[N];
int count(int i,int k,int r);
int main(){
int n,k;
int i,j;
int a,b;
int r;
scanf("%d %d",&n,&k);
for(i = 0;i < n-1;i++){
scanf("%d %d",&a,&b);
field[a].next[fie... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_83284/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_83284/source.c"
target datalayout = "e-m:e-p270: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.vertex = type { [2001... |
/* AOJ 0140:Bus Line */
#include <stdio.h>
#include <string.h>
int main(){
char a[]="6 7 8 9 5 4 3 2 1 0 1 2 3 4 5 6 7 8 9";
char *b,*c,*d,e,f;
int h,i;
scanf("%d\n",&h);
for(i=0;i<h;i++){
scanf("%c %c\n",&e,&f);
b=strchr(a,e);
c=strchr(b+1,e);
d=strchr(b+1,f);
if(c==NULL || c>d)c=b;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_83356/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_83356/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unn... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
#include <limits.h>
#include <ctype.h>
#include <string.h>
#include <math.h>
int how_many_days(int *a, int dst, int now) {
if(dst == now) {
return 1;
}
return how_many_days(a, ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_834/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_834/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr cons... |
#include <stdio.h>
int main(){
int a,b;
scanf("%d %d",&a,&b);
if(a<10){
printf("%d",b+ 100*(10-a));
}
else{
printf("%d",b);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_83457/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_83457/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,r;
scanf("%d%d",&n,&r);
if(n<10)
printf("%d",r+100*(10-n));
else
printf("%d",r );
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_83507/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_83507/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <math.h>
int main() {
int n, r;
scanf("%d %d", &n, &r);
printf("%d", (n >= 10 ? r : r + 100 * (10 - n)));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_83550/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_83550/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,r;
scanf("%d%d",&n,&r);
if(n<=10)
printf("%d\n",r+100*(10-n));
else
printf("%d\n",r);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_83594/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_83594/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(void){
int N, R;
scanf("%d%d",&N, &R);
if(N>10)printf("%d\n", R);
else printf("%d\n",R+(10-N)*100);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_83637/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_83637/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,r,x,y;
scanf("%d%d",&n,&r);
if(n<=10)
{ x=100*(10-n);
y=x+r;
printf("%d\n",y);
}
else
printf("%d\n",r);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_83680/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_83680/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,R,Hrate,Nrate;
scanf("%d%d",&N,&R);
if(N>=10){
printf("%d",R);
}
else{
Hrate=100*(10-N);
Nrate=R+Hrate;
printf("%d",Nrate);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_83730/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_83730/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 c,d,i=0;
scanf("%d%d",&c,&d);
if(c<10)
{
i=d+100*(10-c);
}
else if(c>=10)
{
i=d;
}
printf("%d\n",i);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_83774/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_83774/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,r;
scanf("%d %d",&n,&r);
if(n>=10){
printf("%d", r);
}
else printf("%d", r +(100 * (10 - n )));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_83817/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_83817/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 n,r;
int main(){
scanf("%d%d",&n,&r);
n>9?printf("%d",r):printf("%d",100*(10-n)+r);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_83860/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_83860/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 R=1,C=1,H[2000010],N[2000010];
//評価関数(いまはMAX)
int hyouka(int a,int b){
if(C<b)return 1;
if(C<a||b==0)return 0;
return N[H[a]]<N[H[b]]?1:0;
}
//挿入関数
void hin(int a){
int i=C++;
for(N[H[0]=R]=a;hyouka(0,i/2);i/=2)H[i]=H[i/2];
H[i]=R++;
}
//取り出す関数
int hout(){
int rt=H[1],i,j=2,k=H[--C];... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_83903/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_83903/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@R = dso_local local_unnamed_... |
//O(N^2)
#include <stdio.h>
#include <x86intrin.h>
typedef unsigned int uint;
#pragma GCC optimize ("O3")
void read(uint *p){
int flag = 0;
uint num = 0;
for(;;){
int c = getchar_unlocked() - '0';
if(0 <= c && c <= 9){
num = num*10+c;
flag = 1;
}else if(flag){... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_83947/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_83947/source.c"
target datalayout = "e-m:e-p270: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 { i32... |
#include <stdio.h>
int search(char *p);
void print(char *p);
char str_A[101], str_B[101], str_C[101];
int main(void)
{
char n, *p;
int m = 0;
scanf("%s%s%s", str_A, str_B, str_C);
p = str_A;
while(1) {
n = p[m];
p[m] = ' ';
switch(n) {
case 'a':
p = str_A;
break;
case 'b':
p = str_B;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_84003/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_84003/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 usercode(char letter) {
return (letter-'a');
}
int main(void) {
char stra[101];
char strb[101];
char strc[101];
char* str[3] = {stra,strb,strc};
//init str
for (int i=0;i<101;i++) {
stra[i] = 0;
strb[i] = 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_84047/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_84047/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <string.h>
int main(void){
char sa[150];
char sb[150];
char sc[150];
int salen, sblen, sclen;
int apos, bpos, cpos;
int turn;
apos = 0;
bpos = 0;
cpos = 0;
turn = 1;
scanf("%s", sa);
scanf("%s", sb);
scanf("%s", sc);
salen = strlen... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_84111/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_84111/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(){
long long int N,A,B;
long long int ans=0LL;
scanf("%lld %lld %lld",&N,&A,&B);
if(A>B){
A^=B;
B^=A;
A^=B;
}
if((B-A)%2LL!=0){
if(A-1<=N-B){
ans=A;
B=B-A;
A=1;
}else{
ans=N-B+1;
A=A+ans;
B=N;
}
}
ans+=(B-A)/2LL;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_84162/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_84162/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(void){
long long int N,A,B,ans;
scanf("%lld %lld %lld",&N,&A,&B);
if((B-A)%2 == 0){
ans = (B-A)/2;
}else{
if((B-A) < 3) ((N-A) < (B-1)) ? (ans = N-A) : (ans = B-1);
else{
if((A-1) < (N-B)) ans = A+(B-A-1)/2;
else ans = (N-B)+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_84205/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_84205/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main()
{
int a,p;
scanf("%d %d",&a,&p);
a *= 3;
int total = a + p;
printf("%d\n",total/2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_84249/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_84249/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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.