Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
int main(){
int input;
scanf("%d",&input);
printf("%d\n",input*input*input);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_323655/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_323655/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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", n*n*n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_323699/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_323699/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_323749/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_323749/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main() {
int n,a,b,i,j,m,k,g;
int ** all;
scanf("%d%d%d",&n,&a,&b);
if (n>a*b) {
printf("-1\n");
return 0;
}
k = (b%2) ? 1 : 0;
m=1;
g=0;
all = (int**) malloc(a*sizeof(int*));
for (i=0;i<a;i++)
{
all[i] = (int*) malloc(b*sizeof(int));
for (j=0;j<b-1;j++)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3238/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3238/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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... |
/*
* main.c
*
* Created on: 2013/06/09
* Author: sat
*/
#include<stdio.h>
int main(){
int x;
scanf("%d",&x);
x=x*x*x;
printf("%d\n",x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_323842/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_323842/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 input = 0;
scanf("%d", &input);
printf("%d\n", input * input * input);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_323893/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_323893/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int x, seki;
scanf("%d", &x);
seki = x * x * x;
printf("%d\n", seki);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_323936/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_323936/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main ()
{ int n=0,i,c=-1,b,z=0;
char s[1000000];
char k[1000000];
scanf("%s",s);
int d=strlen(s);
for(i=0;i<d;i++)
{ if(s[i]!='a')
n++;
}
if(n==0)
printf("%s\n",s);
else if(n%2==0)
{
// printf("%d\n",n);
for(i=0;i<d;i++)
{
if(s[i]!='a')
{c++;
if(c>=n/2)
{
b=i;
brea... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32398/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32398/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
scanf("%d",&i);
printf("%d\n",i*i*i);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_324029/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_324029/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 noa=0;
int n=0;
char s [51];
for (int i=0; i<50; i++){
scanf("%c", &s[i]);
if (s[i]=='\0' || s[i]=='\n') break;
if (s[i]=='a') noa++;
n++;
}
if(noa*2-1>n) printf("%d", n);
else printf("%d", noa*2-1);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32408/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32408/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdbool.h>
#define true 1
#define false 0
#define MAX 1000
#define VMAX 10000
int n,A[MAX],s;
int B[MAX],T[VMAX+1];
void sort(int C[]);
int min(int a , int b);
int solve();
int main(void){
scanf("%d",&n);
s = VMAX;
for( int i = 0; i < n; i++){
scanf("%d",&A[i]);
s = min(s, A[i]);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_324122/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_324122/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 <ctype.h>
#include <math.h>
int n;
char a[10];
char b[10];
int integer(char c){
int integer;
if(c=='m')
integer=1000;
if(c=='c')
integer=100;
if(c=='x')
integer=10;
if(c=='i')
integer=1;
return integer;
}
int change(char d[100]){
int changed=0;
for(int i=0;i<s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_324166/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_324166/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(){
int n,A,B,x,y,xy,i;
char a[20],b[20];
scanf("%d",&n);
while(n-->0){
x=0;
y=0;
scanf("%s %s",a,b);
A=strlen(a);
for(i=0;i<A;i++)
if(a[i]=='m'||a[i]=='c'||a[i]=='x'||a[i]=='i'){
if(i!=0){
if(a[i-1]!='m'&&a[i-1]!='c'&&a[i-1]!='x'&&a[i-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_324216/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_324216/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include <time.h>
typedef long long ll;
typedef long double ld;
#define INF (1LL<<60)
/*swap 交換*/
void swap(ll *a, ll *b){ll c;c=*b;*b=*a;*a=c;}
/*2つのうち大きい数を返す*/
ll max2(ll a,ll b){return a>=b?a:b;}
/*2つのうち小さい数を返す*/
ll min2(ll a,ll b){return a>=b?... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_324267/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_324267/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main()
{
int x,cnt=0;
char ch[100];
scanf("%s",ch);
x=strlen(ch);
for(int i=0;ch[i]!='\0';i++){
if(ch[i]=='a'){
cnt++;
}
}
int ans,temp;
if(x%2==0){
temp=x/2;
if(temp>=cnt){
ans=2*cnt-1;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32431/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32431/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(void){
int n,t=0,x=0,y=0;
scanf("%d", &n);
for(int i = 0; i < n; i++){
int t0,x0,y0;
scanf("%d%d%d",&t0,&x0,&y0);
{
int dt=t0-t,dx=x0-x,dy=y0-y;
if(dx+dy>dt || (dt-dx-dy)%2){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_324353/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_324353/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main (void){
int N;
int x[100001],y[100001],t[100001];
int dif_x,dif_y,dif_time,dif;
x[0]=0,y[0]=0,t[0]=0;
scanf("%d",&N);
for (int i = 1; i <= N; i++) {
scanf("%d %d %d",&t[i],&x[i],&y[i]);
}
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_324397/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_324397/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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;
long long n, ans, i;
scanf("%d", &t);
do {
scanf("%I64d", &n);
ans = n * (n + 1) / 2;
i = 1;
while (i <= n) ans -= (i += i);
printf("%I64d\n", ans);
} while (--t);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32444/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32444/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
// Aizu Vol-1 0149: Eye Test
// 2017.8.1
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
char *gets(char *);
#define MAX 50
char buf[MAX + 5], *p;
int c[2][4];
int getDouble(void)
{
int len = 0, n = 0;
while (isspace(*p)) p++;
while (isdigit(*p)) n = 10 * n + (*p++ - '0');
if (*p == '.') p++;
while ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_324526/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_324526/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@p = dso_local local_unname... |
#include <stdio.h>
int checkeye(double val){
if(val>=1.1){
return 0;
}else if(0.6<=val&&val<1.1){
return 1;
}else if(0.2<=val&&val<0.6){
return 2;
}else{
return 3;
}
}
int main(void)
{
int result[4][2] = {0} ,i;
double l ,r;
while(scanf("%lf %lf" ,&l ,&r)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_324577/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_324577/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
char s[10010]= {0};
fgets(s,10010,stdin);
int n;
int len=strlen(s);
if(s[len-1]=='\n')
s[--len]='\0';
int i;
scanf("%d",&n);
while(n--)
{
int l,r,k;
scanf("%d%d%d",&l,&r,&k);
l--;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32462/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32462/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unnam... |
#include <stdio.h>
#define c 1000000000
int main(void)
{
int xa,xb,xc,ya,yb,yc;
long long int S;
scanf("%lld",&S);
xa = 0,ya = 0,xb = c;yb = 1;
yc = S/c;
yc++;
xc = yc*c-S;
if(S/c==c&&S%c==0)
{
printf("0 0 1000000000 0 0 1000000000");
return 0;
}
printf("%d %d %d %d %d %d",xa,ya,xb,yb,xc,yc);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_324663/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_324663/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
long long K;
scanf("%lld", &K);
int N = 50;
long long A[N];
for (int i = 0; i < N; i++) {
A[i] = i+K/N;
}
for (int i = 0; i < K%N; i++) {
A[i] += N;
for (int j = 0; j < N; j++) {
if(i != j) A[j]--;
}
}
printf("50\n");
for (int i = 0; i < N... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_324706/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_324706/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
char str[10010];
while(scanf("%s",str)!=EOF){
int n,l,r,ki,len;
char temp[20010];
scanf("%d",&n);
for(int i=0;i<n;i++){
scanf("%d%d%d",&l,&r,&ki);
int k=0;
for(int j=l-1;j<=r-1;j++,k++)
temp[k]=str... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32475/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32475/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <float.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
// 内部定数
#define D_ARRAY_MAX 100000 // 最大配列数
// 内部変数
static FILE *szpFpI; // 入力
static int si1Array[D_ARRAY_MAX]; // 配列
static int siACnt; // 配列数
st... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_324793/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_324793/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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>
long long waru2(long long count , long long a){
if(a%2 != 0){
return count;
}
else{
count ++;
a /= 2;
}
waru2(count , a);
}
int main(void){
int n;
scanf("%d",&n);
long long a[n];
for(int i = 0;i <n;i ++){
scanf("%lld",&a[i]);
}
long long count = 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_324843/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_324843/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
int N, a[10000];
void solve();
int main() {
int i;
scanf("%d", &N);
for (i = 0; i < N; i++) scanf("%d", &a[i]);
solve();
return 0;
}
void solve() {
int cnt = 0, temp_cnt, i, j;
for (i = 0; i < N; i++) {
temp_cnt = 0;
while (a[i] % 2 == 0) {
temp... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_324887/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_324887/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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,count;
int a[10000];
scanf("%d",&n);
count = 0;
for(i = 0;i < n;i++){
scanf("%d",&a[i]);
while(a[i] % 2 == 0) {
a[i] /= 2; count++;
}
}
printf("%d\n",count);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_324937/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_324937/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int i,j,k,n,a[10001],cnt=0;
scanf("%d",&n);
for(i=0;i<n;i++)scanf("%d",&a[i]);
for(j=0;j<n;j++){
for(k=0;k<100000;k++){
if(a[j]%2==1)break;
a[j]=a[j]/2;
cnt++;
}
}
printf("%d\n",cnt);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_324995/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_324995/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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[10000],i,count;
count=0;
scanf("%d",&a);
for(i=0;i<a;i++){
scanf("%d",&b[i]);
for(b[i];b[i]>0;b[i]=b[i]/2){
if(b[i]%2==0){
count=count+1;
} else {
b[i]=0;
}
}
}
printf("%d\n",count);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325037/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325037/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 sl(x) scanf("%ld", &x)
#define ss(x) scanf("%s", x)
#define pl(x) printf("%ld\n", x)
#define ps(x) printf("%s\n", x)
#define INF 100000000000
#define MOD 1000000007
#define min(a,b) (((a)<(b))?(a):(b))
#define max(a,b) (((a)>(b))?(a)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325080/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325080/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
int main(void)
{
int n,i,j,a[100001],tmp=0;
scanf("%d",&n);
a[0]=0;
a[n+1]=0;
for(i=1;i<=n;i++) {
scanf("%d",&a[i]);
tmp+=abs(a[i]-a[i-1]);
}
tmp+=abs(a[n]-a[n+1]);
for(i=1;i<=n;i++){
printf("%d\n",tmp-(abs(a[i-1]-a[i])+(abs(a[i]-a[i+1])))+a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325138/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325138/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <ctype.h>
#include <limits.h>
#define inf (INT_MAX-1)
#define INF 9223372036854775807
#define EPS 1e-10
#define sq(n) ((n)*(n))
#define rep(i,n) for(i=0;i<n;i++)
#define rev(i,n) for(i=n-1;i>=0;i--)
#define ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325189/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325189/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@mod = dso_local local_unna... |
#include<stdio.h>
#include<math.h>
int main(void){
unsigned long long int N,ans;
int i,x;
ans=0;
scanf("%llu",&N);
x=sqrt(N)+1;
for(i=1;i<=x;i++){
if(N-i>0){
if((N-i)%i==0){
if((N-i)/i>i){
ans=ans+((N-i)/i);
//printf("%d\n",i);
}
}
}
}
printf("%llu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325246/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325246/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int n;
scanf("%d",&n);
int a[n];
char q;
scanf("\n");
for(int i=0;i<n;i++){
scanf("%c",&q);
if(q=='R')
a[i]=1;
else if(q=='G')
a[i]=2;
else
a[i]=3;
}
int b1[n],b2[n],b3[n],b4[n],b5[n],b6... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32529/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32529/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <math.h>
#include <string.h>
int i, j, n, r[3], g[3], b[3], m, k, x;
char s[400000];
int bin(int s, int p, int k)
{
}
int war(const void*a, const void*b)
{
return(*(int*)b-*(int*)a);
}
int main()
{
scanf("%d%s", &n, s);
x=0;
for(i=1; i<n; i++)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32534/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32534/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(void) {
int N;
char* s;
scanf("%d", &N);
s = (char *)malloc(sizeof(char) * N);
scanf("%s", s);
int i;
int count = 0;
for (i = 0; i < N; i++) {
if (s[i] == 'R') {
count++;
}
}
if (count > N / 2) {
printf("Yes");
}
else {
printf("No");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325383/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325383/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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, n, cnt = 0;
scanf("%d", &n);
char s[n];
scanf("%s", s);
for(i = 0; i < n; i++){
if(s[i] == 'R')
cnt++;
else
cnt--;
}
if(cnt > 0)
printf("Yes");
else
printf("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325426/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325426/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 cmp(const void*a,const void*b)
{
return *(int*)a-*(int*)b;
}
int main()
{
int n;
int a[150];
while(scanf("%d",&n)!=EOF)
{
for(int i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
qsort(a,n,sizeof(int),cmp);
//for(int j=0;j<n;j++)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32547/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32547/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
#define _CRT_SECURE_NO_WARNINGS
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <limits.h>
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>
#include <math.h>
#define N_MAX (100)
#define P_MAX (100)
#define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325527/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325527/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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[3];
int b[2];
int i, j, min=100000, total;
for (i = 0; i < 3; i++){
scanf("%d", &a[i]);
}
for(j = 0; j < 2; j++){
scanf("%d", &b[j]);
}
for(i = 0; i < 3; i++){
for(j = 0; j < 2; j++){
total = a[i] + b[j] - 50;
if(total < min){
min = to... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325570/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325570/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 pasta, juice, minP = 2000, minJ = 2000, sum;
int i;
for (i = 0; i < 3; i++){
scanf("%d", &pasta);
if (pasta < minP) minP = pasta;
}
for (i = 0; i < 2; i++){
scanf("%d", &juice);
if (juice < minJ) minJ = juice;
}
sum = minP + minJ - 50;
printf("%d\n", sum);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325613/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325613/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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;
int input;
int pasta = 100000, juce = 100000;
for(i = 0; i < 3; i++) {
scanf("%d", &input);
if(input < pasta)
pasta = input;
}
for(i = 0; i < 2; i++) {
scanf("%d", &input);
if(input < juce)
juce = input;
}
printf("%d\n", pasta + juce - 50);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325664/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325664/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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>//Lunch565
int main(void)
{
int a,b,c,d,e;
scanf("%d %d %d %d %d",&a,&b,&c,&d,&e);
if(b<=a && b<=c){
a=b;
}
else if(c<=a && c<=b){
a=c;
}
if(e<=d){
d=e;
}
printf("%d\n",a+d-50);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325721/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325721/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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>
long p(long n){
long A=(n+3)*(n+2)*(n+1)/6;
if(n<=1000){
return A;
}else{
int N=n-999;
long B=N*(N+1)*(N-1)*2/3;
return A-B;
}
}
int main(void){
long s=1;
while(scanf("%ld",&s)>0){
if(s==0)break;
if(s>=2000)s=(4000-s);
printf("%ld\n",p(s));
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325772/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325772/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int N, A, B, a, b, i;
char c;
int main(void){
scanf("%d%d%d\n", &N, &A, &B);
A+=B;
for(i=0; i<N; i++){
c=getchar();
if(a==A || c=='c'){
puts("No");
}else if(c=='a'){
puts("Yes");
a++;
}else if(c=='b' && b<B){
puts("Yes");
a++; b++;
}else{
p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325815/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325815/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int n,a,b,i,c;
while(scanf("%d %d %d",&n,&a,&b),n||a||b){
char d[2000000]={1};
for(i=c=0;i<=n;i++){
if(d[i])d[i+a]=d[i+b]=1;
else c++;
}
printf("%d\n",c);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325859/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325859/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 cmpInt(const void *a, const void *b) {
if (*(int *)a > *(int *)b)
return 1;
if (*(int *)a < *(int *)b)
return -1;
return 0;
}
typedef struct Items Items;
struct Items {
int noItem;
int *ls;
};
void readItems(Items *s) {
int i;
scanf("%d", &s->noItem);
s->ls = (i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325909/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325909/source.c"
target datalayout = "e-m:e-p270: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.Items = type { i32,... |
#include<stdio.h>
#include<stdlib.h>
int main(void)
{
int n = 0,q = 0;
int *s;
int *t;
int i = 0,j = 0;
int count = 0;
scanf("%d",&n);
s=(int *)malloc(sizeof(int)*n);
for(i = 0; i < n; i++)
{
scanf("%d",&s[i]);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325952/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325952/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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,k,n,q,cnt=0,S[100]={},T[100]={};
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&S[i]);
}
scanf("%d",&q);
for(i=0;i<q;i++){
scanf("%d",&T[i]);
}
for(i=0;i<n;i++){
for(k=0;k<q;k++){
if(S[k]==T[i]){
cnt++;
break;
}
}
}
printf("%d\n",cnt);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325996/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325996/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 S[1000] = {0},T[1000] = {0};
int main(){
int i,k,n,m,count = 0;
scanf("%d",&n);
for(i = 0;i < n;i++){
scanf("%d",&S[i]);
}
scanf("%d",&m);
for(k = 0;k < m;k++){
scanf("%d",&T[k]);
}
for(i = 0;i < m;i++){
for(k = 0;k < n;k++){
if(S[k] == T[i]){
count++;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326038/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326038/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@S = dso_local global [1000... |
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <math.h>
int main(){
int j,i,num,num2,size,flg,k,c = 0;
int n[100] = {0},q[100] = {0},check[100] = {0};
scanf("%d",&num);
for(i = 0; i < num; i++){
scanf("%d",&n[i]);
}
scanf("%d",&num2);
for(i = 0; i < num2; i++){
scanf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326089/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326089/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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,x[100],y[100],judge[100]={501},count=0,i,n,m,o=0,def=0;
scanf("%d",&a);
for(i=0;i<a;i++)
{
scanf("%d",&x[i]);
}
scanf("%d",&b);
for(i=0;i<b;i++)
{
scanf("%d",&y[i]);
}
for(n=0;n<a;n++)
{
for(i=0;i<b;i++)
{
if (x[n]==y[i])
{
for(m=0;m<o;m++)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326139/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326139/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 number;
double weight, height;
while (scanf("%d,%lf,%lf", &number, &weight, &height) != EOF) {
if (weight/(height*height) >= 25)
printf("%d\n", number);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326182/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326182/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
#define U1 unsigned char
#define S1 char
#define S4 int
#define DU double
S4 main()
{
S4 s4_t_scanfRtn;
S4 s4_t_studentNum;
DU du_t_weight;
DU du_t_height;
DU du_t_BMI;
U1 u1_t_delimiter;
while (1)
{
s4_t_scanfRtn = scanf("%d,%lf,%lf%... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326225/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326225/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 DEBUG
int main(void)
{
FILE* fpin;
#ifdef DEBUG
fpin=fopen("input.txt","r");
#else
fpin=stdin;
#endif
while(feof(fpin)==0){
int n; //student number
double w,h; //weight and height
fscanf(fpin,"%d,%lf,%lf\n",&n,&w,&h);
double bmi=w/... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326298/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326298/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include <stdio.h>
int main(void)
{
int student_id;
double weight, height, BMI;
int count = 0;
while (scanf(" %d,%lf,%lf", &student_id, &weight, &height) != EOF) {
BMI = weight / (height * height);
if (BMI >= 25.0) {
printf("%d\n", student_id);
count++;
}
}
if (!count)
printf("該当なし\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326340/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326340/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int x,t;
scanf("%d%d",&x,&t);
if(t<x)printf("%d\n",x-t);
else printf("0\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326384/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326384/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int a,b,c;
scanf("%d",&a);
scanf("%d",&b);
if (a>b) c=a-b;
if (b>a) c=0;
printf("%d",c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326427/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326427/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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;
scanf ("%d%d",&a,&b);
if (a-b>0){
printf ("%d",a-b);
}
else {
printf ("0");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326470/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326470/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main()
{
int X,t,s;
scanf("%d %d",&X,&t);
if(X>t)
{
s=X-t;
printf("%d",s);
}
else
{
s=0;
printf("%d",s);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326513/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326513/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 BIG 2000000007
#define MOD 1000000007
typedef unsigned long long ull;
typedef signed long long sll;
#define N_MAX 200000
#define M_MAX 100000
typedef struct {
int a;
int b;
} hw;
const hw vector8[8] = {
{-1, -1},
{-1, ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326557/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326557/source.c"
target datalayout = "e-m:e-p270: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.hw = type { i32, i3... |
#include<stdio.h>
int main()
{
int i,j,n,l1,r1,l2,r2,t;
scanf("%d",&t);
for(i=0;i<t;i++)
{
scanf("%d%d%d%d",&l1,&r1,&l2,&r2);
if(l1==l2)
{
printf("%d %d\n",l1,r2);
}
else
{
printf("%d %d\n",l1,l2);
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32660/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32660/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
int fact[8]={1,1,2,6,24,120,720,5040};
int f(int*a){
int mask=(1<<n)-1;
int ans=0;
for(int i=0;i<n;i++){
ans+=__builtin_popcount(mask&((1<<a[i])-1))*fact[n-1-i];
mask^=1<<a[i];
}
return ans;
}
int p[8],q[8];
int main(){
scanf("%d",&n);
for(int i=0;i<n;i++)scanf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326650/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326650/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@fact = dso_local local_unn... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* {1,2,3} -> ... -> {3,2,1} */
int next_permutation(char arr[],int n) {
int target;
int i;
char temp;
for (i = n - 2; i >= 0; i--) {
if (arr[i] < arr[i + 1]) break;
}
if (i < 0) return 0;
target = i;
for (i = 0; target + i + 1 < n - i - 1; i++) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326694/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326694/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 kaijo(int n) {
int i;
int k = 1;
for(i = 2; i <= n; i++) {
k = k * i;
}
return k;
}
int p_dict(int r[], int n) {
int i, j, p = 1;
for(i = 0; i < n; i++) {
p += (r[i] - 1) * kaijo(n - i - 1);
for(j = i + 1; j < n; j++) {
if(r[j] > r[i]) r[j]--;
}
}
return ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326744/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326744/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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,m,l[10000],i,x,p,a;
while(1){
scanf("%d%d",&n,&m);
p=0;
a=0;
if(n==0&&m==0){
break;
}
for(i=0;i<1024;i++){
l[i]=0;
}
for(i=0;i<n;i++){
scanf("%d",&l[i]);
}
for(i=0;i<m;i++){
scanf("%d",&x);
p+=x+l[p+x];
if(p>=n-1&&a==0){
a=i+1;
}
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326788/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326788/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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()
{
long int n, m, k, app[100001], appind[100000], order[100000], i, temp;
long long int ans = 0;
scanf("%ld", &n);
scanf("%ld", &m);
scanf("%ld", &k);
memset(app, -1, sizeof(app));
for(i = 0;i < n;i++)
{
scanf("%ld", &appind[i]);
app[appind[i]] = i;
}
for(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32686/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32686/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main()
{
int a, b, c;
scanf("%d%d%d", &a, &b, &c);
if (a + b >= c)
puts("Yes");
else
puts("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326960/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326960/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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);
printf((a+b)>=c ? "Yes" : "No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327046/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327046/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327097/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327097/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main()
{
int n,add=0,i;
char a[101],b[101];
scanf("%s %s",a,b);
n=strlen(a);
i=n-1;
while(add==0)
{
if(a[i]!='z')
{
a[i]++;
add++;
}
else
{
a[i]='a';
i--;
}
}
if(strcmp(a,b)==0)
printf("No such string\n");
else
printf("%s\n",a);
return 0;
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32714/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32714/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 N 102
#define WHITE 0
#define GRAY 1
#define BLACK 2
#define INF 999999
int n,adj[N][N],color[N],d[N],Q[N],head=1,tail=1;
int Queempty(){
if (head==tail){
return 1;
} else {
return 0;
}
}
void Enqueue(int r){
int i;
Q[tail] = r;
tail++;
}
int Dequeue(){
int i;
i =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327198/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327198/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@head = dso_local local_unn... |
#define FOR(i,a,b) for (int i=(a);i<(b);i++)
#define RFOR(i,a,b) for (int i=(b)-1;i>=(a);i--)
#define REP(i,n) for (int i=0;i<(n);i++)
#define RREP(i,n) for (int i=(n)-1;i>=0;i--)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int NL_num[100];
int NL[100][100];
int f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327255/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327255/source.c"
target datalayout = "e-m:e-p270: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.QUEUE = type { [100... |
#include<stdio.h>
typedef struct{
int num;
int depth;
}node;
int head=0;
int tail=0;
node queue[100];
int graph[100][100]={0};
int isEmpty(void){
if(head==tail){
return 1;
}else{
return 0;
}
}
void e(node n){
queue[(head++)%100]=n;
}
node de(void){
return queue[(t... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327305/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327305/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { i32, ... |
#include<stdio.h>
int G[101][101];
int d[101];
int n;
int Que[1000];
int head=0, tail=0;
void enqueue(int q){
Que[head]=q;
head++;
}
int dequeue(){
tail++;
return Que[tail-1];
}
int size(){
return head-tail;
}
void bfs(int i){
int j;
for(j=0;j<n;j++){
if(G[i][j]==1 && d[j]==-1){
d[j]=d[i]+1;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327356/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327356/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@head = dso_local local_unn... |
#include<stdio.h>
#include<string.h>
char lev[1000001];
int w[1000001]={0};
int main()
{
int i,pos;
long long int br=0,bl=0;
scanf("%s",lev);
int l=strlen(lev);
for(i=0;i<l;i++)
{
if(lev[i]>='1' && lev[i]<='9')
w[i]=lev[i]-'0';
else if(lev[i]=='^')
pos=i;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3274/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3274/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@w = dso_local local_unnamed_ad... |
#include <stdio.h>
#define N 101
#define INF (100000001)
void enqueue(int);
int dequeue();
int isEmpty();
int isFull();
void bfs(int);
int head = 0;
int tail = 0;
int p[N];
int n, M[N][N], d[N];
int main() {
int i, j;
int u, k, v;
scanf("%d", &n);
for (i = 0; i < n; i++) {
for (j = 0; j < n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327442/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327442/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@head = dso_local local_unn... |
#include<stdio.h>
int main()
{
int n,i,co=0,num=0;long long int max,arr[100002];
scanf("%d",&n);
scanf("%I64d",&arr[0]);
max=arr[0];
for(i=1;i<n;i++){
scanf("%I64d",&arr[i]);
if(arr[i]>max){
max=arr[i];
}}
for(i=0;i<n;i++){
if(max==arr[i]){
co++;//printf("%d",co);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32750/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32750/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 100
#define INFTY (1<<21)
#define MAX 100000
int n , M[N][N];
int d[N];
int head , tail;
int Q[MAX];
void initialize(){
head = tail = 0;
}
int isEmpty(){
if( head == tail ){
return 1;
}else{
return 0;
}
}
int isFull(){
if( head == ( tail + 1 ) % M... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327543/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327543/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@tail = dso_local local_unn... |
#include<stdio.h>
#define N 101
int n,g[N][N],d[N],q[N],top,tail;
int pop(void){//
int k;
k=q[top];
if(top==N-1)top=0;
else top++;
return k;
}
void push(int k){
if(tail==N-1)tail=0;
else tail++;
q[tail-1]=k;
}
void bfs(void){
int i,j,u,judge[n];
q[0]=1;
top=0;
tail=1;
d[1]=0;
for(i=2;i<=n;i++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327594/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327594/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@q = dso_local local_unname... |
#include <stdio.h>
#include <stdlib.h>
#define O 0
#define I 1
#define H 100
int n,l,j,u,k,t;
int list[H][H];
int lengthlist[H];
void search(int y, int len){
int i;
len++;
lengthlist[y]=len;
for(i=O;i<n;i++){
if(list[y][i]==I){
if(lengthlist[i] <= len && lengthlist[i] >=O){
continue;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327644/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327644/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@lengthlist = dso_local loc... |
#include <stdio.h>
#include <string.h>
#define ll long long
#define rep(i,l,r)for(ll i=l;i<r;i++)
ll s;
ll _57577=0b10000001000000100001000000100001;
ll f(ll cnt){
char ss[11];
if(cnt){
scanf(" %s",ss);
ll t=f(cnt-1);
s=s<<strlen(ss)|1;
if((s&_57577)==_57577)return cnt;
return t;
}
return -1;
}
int mai... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327745/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327745/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@_57577 = dso_local local_u... |
#include<stdio.h>
int main(void){
int x;
int i;
int j;
scanf("%d",&x);
for(i=0;;i++){
for(j=2;j<x+1;j++){if(x%j==0){break;}}if(j!=x){x=x+1;}else{
break;};}
printf("%d",x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327789/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327789/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 sqrt(int nb)
{
int i;
i = 1;
while (i <= nb)
{
if (i % 2)
nb -= i;
i++;
}
return (i);
}
int prime(int nb)
{
int i;
if (nb < 2)
return (0);
if (nb == 2)
return (1);
i = 2;
while (i <= sqrt(nb))
{
if (nb % i == 0)
return (0);
i++;
}
return (1);
}
int next_prime(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327831/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327831/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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(){
unsigned long int x,i,max=0,j;
scanf("%ld",&x);
i=x;
if(x==2){
max=2;
}
while(max==0){
for(j=2;j<((i/2)+1);j++){
if(i%j==0){
i++;
break;
}
else{
if(j==(i/2)){
max=i;
}
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327875/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327875/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int x, ans = 0;
scanf("%d", &x);
while(ans==0){
int yakusuu=0;
for(int i=1;i<=x;i++){
if(x%i==0){
yakusuu++;
}
}
if(yakusuu==2){
ans=x;
break;
}
x++;
}
printf("%d",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327925/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327925/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*template date:2019/12/27*/
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<ctype.h>
#include<math.h>
#include<limits.h>
typedef long long int ll;
typedef unsigned long long int ull;
int asc_cmp(const void* X,const void* Y){int x=*(int*)X,y=*(int*)Y;if(x<y)return -1;else if(x==y)return 0;else return 1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327976/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327976/source.c"
target datalayout = "e-m:e-p270: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.pair_t = type { i32... |
#include <stdio.h>
int main()
{
int n, Num;
long long cur = 0;
scanf("%d", &n);
for(int i = 0; i < n; ++i) {
scanf("%d", &Num);
cur += Num - 1;
printf("%d\n", cur & 1 ? 1 : 2);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32804/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32804/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
/* Coached by rainboy */
#include <stdio.h>
#include <stdlib.h>
#define N 100000
#define M 100000
int aa[N], bb[M], cc[M];
int compare_a(const void *a, const void *b) {
int ia = *(int *) a;
int ib = *(int *) b;
return ia - ib;
}
int compare_i(const void *a, const void *b) {
int i = *(int *) a;
int j = *(int *... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328098/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328098/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@cc = dso_local global [100... |
#include <stdio.h>
#include <stdlib.h>//random,NULL
#include <string.h>
#include <time.h>
#include <unistd.h>//sleep()
#include <math.h>
#include <stdbool.h>
#define rep(i,n) for(int i=0; i<((int)n); i++)
#define REP(i,n) for(int i=0; i<=((int)n); i++)
#define srep(i,a,n) for(int i=a; i<((int)n); i++)
#define SREP(i,a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328140/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328140/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
/*
exit
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#define BIG 2000000007
#define MOD 1000000007
typedef unsigned long long ull;
typedef signed long long sll;
#define N_MAX 100000
#define M_MAX 10000
typedef struct {
int a;
int b;
} hw;
typedef struc... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328184/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328184/source.c"
target datalayout = "e-m:e-p270: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.hw = type { i32, i3... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
typedef long long ll;
typedef int keytype;
int gcd(int a, int b){ return (a % b) ? gcd(b, a % b) : b;}
int lcm(int a, int b){ return (a / gcd(a, b)) * b;}
void quicksort(keytype a[], int first, int last)
{
int i, j;
keytype x, t;
x = a[(first + ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328241/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328241/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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<6)printf("0\n");
else if(a>=6 && a<=12)printf("%d\n", b/2);
else printf("%d\n", b);
return 0;}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328285/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328285/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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<6){
printf("0");
}else if(A<13){
printf("%d",B/2);
}else{
printf("%d",B);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328328/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328328/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int a, b;
int main(void){
scanf("%d%d", &a, &b);
if(a<=5){
b=0;
}else if(a<=12){
b>>=1;
}
printf("%d\n", b);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328371/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328371/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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(0 <= a <= 100 && 2 <= b <= 1000 && b%2 == 0){
if(13 <= a){
printf("%d\n",b);
}else if(6 <= a && a <= 12){
printf("%d\n",b/2);
}else if(a <= 5){
printf("%d\n",0);
}
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328414/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328414/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 <= 5){
printf("0\n");
return 0;
}
if(A <= 12){
printf("%d\n", (int)(B/2));
return 0;
}
printf("%d\n", B);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328458/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328458/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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;
scanf("%d %d", &a,&b);
if(a>=13)
{
printf("%d\n", b);
}
else if(a>=6 && a<=12)
{
printf("%d\n", b/2);
}
else if(a>=0 && a<=5)
{
printf("0\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328508/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328508/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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=0;
int b =0;
scanf("%d" , &a);
scanf("%d" , &b);
if(a<=12&&a>=6)
{b=b/2;}
else if(a<=5)
{b =0;}
printf("%d" , b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328559/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328559/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.