Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
int main(void){
int n, i, k;
scanf("%d", &n);
int l[n][3];
for(i=0; i<n; i++)
scanf("%d %d %d", &l[i][0], &l[i][1], &l[i][2]);
for(i=0; i<n; i++){
for(k=0; k<2; k++){
if(l[i][0]>l[i][1]){
int temp;
temp=l[i][0];
l[i][0]=l[i][1];
l[i][1]=temp;
}
if(l[i][1]>l[i][2]){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203392/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203392/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int n;
int i;
int a;
int b;
int c;
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d %d %d", &a, &b, &c);
if ((c > a) && (c > b)) {
if ((c * c) == (a * a) + (b * b)) {
printf("YES\n");
}
else {
printf("NO\n");
}
}
else if ((b > a) &&... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203435/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203435/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 flag;
int i;
int n;
int num[3] = {0,0,0};
scanf("%d", &n);
for(i=0; i<n; i++){
scanf("%d %d %d",&num[0], &num[1], &num[2]);
do{
int j, temp=0;
flag=0;
for(j=0; j<2; j++){
if(num[j+1]<num[j]){
temp = num[j+1];
num[j+1] = num[j];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203479/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203479/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main(){
int N,i,a,aa,b,bb,c,cc;
scanf("%d",&N);
for(i=0;i<N;i++){
scanf("%d %d %d",&a,&b,&c);
aa=a*a;
bb=b*b;
cc=c*c;
if(aa==bb+cc || bb==aa+cc || cc==bb+aa){
printf("YES\n");
}
else printf("NO\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203521/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203521/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int *a,*b,*c;
scanf("%d",&n);
a=malloc(sizeof(int)*n);
b=malloc(sizeof(int)*n);
c=malloc(sizeof(int)*n);
for(i=0;i<n;i++){
scanf("%d %d %d",&a[i],&b[i],&c[i]);
}
for(i=0;i<n;i++){
if(a[i]*a[i]==b[i]*b[i]+c[i]*c[i]
||b[i]*b[i]=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203565/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203565/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a,b,c,n;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d%d%d",&a,&b,&c);
if(a*a==b*b+c*c || b*b==a*a+c*c || c*c==a*a+b*b)
printf("YES\n");
else
printf("NO\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203608/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203608/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
void isRightTriangle(int a,int b,int c){
if(a*a == b*b + c*c){
printf("YES\n");
}else{
printf("NO\n");
}
}
int main(void){
int n,i;
int x,y,z;
scanf("%d", &n);
for(i = 0; i < n; i++){
scanf("%d%d%d", &x, &y, &z);
if(x > y && x > z){
isRightTriangle(x,y,z);
}else if(y > x && y... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203659/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203659/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str.2 = private unnamed_a... |
#include<stdio.h>
void comp(int* a, int* b);
int main()
{
int num, i;
scanf("%d", &num);
int dateSet[num][3];
for(i=0; i<num; i++)
{
scanf("%d %d %d", &dateSet[i][0], &dateSet[i][1], &dateSet[i][2]);
comp(dateSet[i], dateSet[i] + 1);
comp(dateSet[i], dateSet[i] + 2);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203709/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203709/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 kazu;
int a,b,c;
scanf("%d",&kazu);
for(int i = 0; i < kazu; i++){
scanf("%d %d %d",&a,&b,&c);
if(a * a + b * b == c * c || a * a + c * c == b * b || a * a == b * b + c * c){
printf("YES\n");
}
else{
printf("NO\n");
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203752/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203752/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 arr[100];
int n;
int times;
int min,count;
scanf("%d",×);
for(int i=0;i<times;i++)
{
scanf("%d",&n);
for(int j=0;j<n;j++)
{
scanf("%d",&arr[j]);
}
min=arr[0];
count=0;
for(int k=1;k<n;k++)
{
if(arr[k]<min)
min=arr[k];
}
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20381/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20381/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 side[3];
int i,j;
int n,work;
scanf("%d",&n);
while(n>0){
n--;
scanf("%d %d %d",&side[0],&side[1],&side[2]);
for(i=0;i<2;i++){
for(j=i+1;j<3;j++){
if(side[i]<side[j]){
work=side[i];
side[i]=side[j];
side[j]=work;
}
}
}
side[0]*=side[0]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203868/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203868/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a,b,c,d;
int i,j,k;
scanf("%d",&a);
for(i=0;i<a;i++)
{
scanf("%d%d%d",&b,&c,&d);
if(b<=c &&c<=d || c<=b &&b<=d)//dが最高、d、c、bの順に小さくなっていく
{
if(b*b+c*c==d*d) printf("YES\n");
else printf("NO\n");
}
els... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203910/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203910/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 judge(int a, int b, int c){
if(a+b > c && b+c > a && c+a > b){
if(a*a+b*b==c*c || b*b+c*c==a*a || c*c+a*a==b*b)
return 1;
else
return 0;
} else {
return 0;
}
}
int main(){
int a,b,c;
int num,i;
scanf("%d", &num);
for(i=0;i<num;i++){
scanf("%d %d %d", &... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203954/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203954/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x,y,z,temp;
scanf("%d",&n);
while(n--){
scanf("%d%d%d",&x,&y,&z);
if(x>y){
temp = x;
x = y;
y = temp;
}
if(x>z){
temp = x;
x = z;
z = temp;
}
if(y... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203998/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203998/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 forin(i, n) for (i = 0; i < n; i++)
#define lli long long int
#define printSp(i, a, n) forin(i, n) printf('%d ', a[i]);
#define printLn(i, a, n) forin(i, n) printf('%d\n', a[i]);
#define fis(n) fast_int_scan(n)
#define fls(n) fast_long_scan(n)
#define flli(n) fast_lli_scan(n)
#define scanIA(i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20404/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20404/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
int i;
int x, y, z;
int max, M, N;
scanf("%d",&a);
for(i = 0; i < a; i++){
scanf("%d %d %d",&x ,&y ,&z);
if(x > y && x > z){
max = x;
M = y;
N = z;
}
else if(y > x && y > z){
max = y;
M = x;
N = z;
}
else{
max = z;
M = x;
N = y;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204098/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204098/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
long long m,n,a,b,c,i,j,k,l,t;
scanf("%lld",&t);
for(i=1;i<=t;i++)
{
scanf("%lld %lld %lld",&a,&b,&c);
if(a*a==b*b+c*c||b*b==c*c+a*a||c*c==a*a+b*b) printf("YES\n");
else printf("NO\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204140/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204140/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i,j,temp,k=0,cnt=0,N=0;
int num[3];
scanf("%d",&N);
int *p = (int *)malloc(N*sizeof(int));
if (p)
{
while (cnt < N)
{
for (i = 0; i < 3; i++)
{
scanf("%d", &num[i]);
}
for (i = 0; i < 2; i++)
{
for (j = i + 1; j < 3; j++)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204234/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204234/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#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 300000 // 最大配列数
// 内部変数
static FILE *szpFpI; // 入力
static int si1Array[D_ARRAY_MAX]; // 配列
static int siACnt; // 配列数
/... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204278/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204278/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, id, best, count;
double length, weight, BMI, bestBMI;
while(1){
scanf("%d", &n);
if(n == 0) break;
count = 0;
for(i=0; i<n; i++){
scanf("%d %lf %lf", &id, &length, &weight);
length /= 100;
BMI = weight / (length * length);
if(BMI... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204342/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204342/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define INF ((1LL<<62)-(1LL<<31))
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define bit(n,m)(((n)>>(m))&1)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204393/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204393/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// AOJ 0654 Circle Cross Stamps
// 2019.3.28 bal4u
#include <stdio.h>
#include <stdlib.h>
char S[100005]; int N;
int main()
{
int f, ans;
char *s;
scanf("%d%s", &N, S);
ans = f = 0;
s = S; while (*s) {
if (f) {
if (*s != *(s - 1)) f = 0, ans++;
}
else f = 1;
s++;
}
printf("%d\n", ans);
return 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204443/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204443/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* ex4_1
potter0723sw */
#include <stdio.h>
#include <math.h>
int main(void) {
float num,d;//小数点以下も考えたいのでfloat型
int answer;
scanf("%f %f",&num ,&d);
answer = ceil(num/(d * 2 + 1));
//監視員が見れるのは自分がいる木と周囲d本だから2d+1本見れる。
//監視範囲が被ってもいいことを考慮し小数以下切り上げ
printf("%d\n", answer);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204487/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204487/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*
* ProblemB.c
*
* Created on: 01-Dec-2021
* Author: pratik
*/
#include <stdio.h>
int main(){
int t,n,a[200000],min,minInd,num,num1,num2;
scanf("%d",&t);
while(t--){
scanf("%d",&n);
for(int i=0;i<n;i++)
scanf("%d",a+i);
min=1000001;
minInd=n;
for(int i=0;i<n;i++){
if(a[i]<min){
min=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20453/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20453/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
/* ex4_1
sak_Citrus*/
#include <stdio.h>
#include <stdbool.h>
int main(void){
//標準入力
int appleNum,d,ans;
scanf("%d %d",&appleNum,&d);
//一人2d+1本の木を監視可能
if(appleNum % (2*d + 1) == 0){
//全員が最大幅を監視
ans = appleNum / (2*d+1);
}else{
//最後の一人だけ少ない監視範囲
ans = appleNu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204573/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204573/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d;
scanf("%d%d", &n,&d);
printf("%d\n", n%(2*d+1)!=0?n/(2*d+1)+1:n/(2*d+1));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204616/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204616/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[200500]={0};
int b[200500]={0};
int c[200500]={0};
int main()
{
int t=0,i=0,j=0;
int n=0,x=0,max=0;
int xx=0,yy=0,zz=0,ans=0;
int anss[2][2]={0};
scanf("%d",&t);
while(t--)
{
max=0;
ans=0;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20466/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20466/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@a = dso_local global [200500... |
#include<stdio.h>
int main(void)
{
int n,d,i=0;
scanf("%d",&n);
scanf("%d",&d);
d = 1 + d * 2;
for(;;)
{
n = n-d;
i++;
if(n<=0) break;
}
printf("%d\n",i);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204702/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204702/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, D; /* N, Dは1以上20以下の整数 */
int ans, rem;
scanf("%d%d", &N, &D);
ans = N / (D*2+1);
rem = N % (D*2+1);
if(rem != 0){
ans = ans + 1;
}
printf("%d\n", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204746/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204746/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
#include<string.h>
#include<stdlib.h>
void main()
{
int i,j,k,l,m,n,x,a,b,flag,y,z,t,high,p,low,mid,arr[300],count;
scanf("%d",&t);
for(i=0;i<t;i++)
{
scanf("%d %d",&n,&x);
for(j=1;j<=300;j++)
{
arr[j]=0;
}
for(j=1;j... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20479/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20479/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,D,n;
scanf("%d %d",&N,&D);
n=N/(2*D+1);
if(n*(2*D+1)<N){
printf("%d",n+1);
}else{
printf("%d",n);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204832/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204832/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d;
int ans=0;
scanf("%d %d",&n,&d);
while(n>0){
n -= (2*d)+1;
ans++;
}
printf("%d\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204876/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204876/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//atcoder clange
#include <stdio.h>
int main(void){
int N,D;
scanf("%d", &N);//数値の取得
scanf("%d", &D);//数値の取得
int count = 0;
int ans = 0;
while(ans < N){
ans = ans + (D*2)+1;
count++;
}
printf("%d",count);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204919/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204919/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,rem;
scanf("%d %d",&N,&A);
rem = (N%500);
if(rem==0)
{
printf("Yes");
}
else if(rem<=A)
{
printf("Yes");
}
else
{
printf("No");
}
return 0 ;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204962/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204962/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int n,a;
scanf("%d%d",&n,&a);
if(n%500<=a)
puts("Yes");
else
puts("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205004/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205004/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main ()
{
int n,a;
scanf("%d %d",&n,&a);
n=n%500;
//printf("%d",n);
if (a>=n)
{ printf("Yes");}
else printf("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205048/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205048/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int N;
scanf("%d",&N);
scanf("%d",&A);
if(N%500<=A)
{
printf("Yes\n");
}
else
{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205091/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205091/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#include<limits.h>
int max(int a, int b){
return a >= b ? a : b;
}
int min(int a, int b){
return b >= a ? a : b;
}
int sei(int a){
return a>0 ? a : 0;
}
int factorial(int n) {
if (n > 0) return n*factorial(n - 1);
else return 1;
}
int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205134/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205134/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int N,A;
scanf("%d", &N);
scanf("%d", &A);
if (N %500 <= A ) {
printf("Yes");
} else {
printf("No");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205178/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205178/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
c=a%500;
if(c<=b){
printf("Yes");
}else{
printf("No");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205220/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205220/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int N, A;
scanf("%d", &N);
scanf("%d", &A);
N %= 500;
if (A >= N){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205271/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205271/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 LINE_BUF_SIZE 256
int main(){
int A,N,R;
scanf("%d %d", &N,&A);
R = N % 500;
if(R <= A){
printf("Yes");
}
else{
printf("No");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205321/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205321/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
// 内部定数
#define D_CHAR_MAX 100 // 最大文字数
#define D_CHAR_SP '(' // 前括弧
#define D_CHAR_EP ')' // 後括弧
// 内部変数
static char sc1Out[D_CHAR_MAX * 2 + 5]; // 出力内容
static int si... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205365/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205365/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@siBNo = internal unnamed_a... |
//set many funcs template
//Ver.20190820
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int min(int a,int b){i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205415/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205415/source.c"
target datalayout = "e-m:e-p270: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.sd = type { i32, i3... |
#include<stdio.h>
#include<stdlib.h>
#define MAX(A, B) (((A) > (B)) ? (A) : (B))
int main() {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if ((a == b) && (b == c)) {
printf("%s\n", "Yes");
}
else {
printf("%s\n", "No");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205466/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205466/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <ctype.h>
#include <math.h>
int main(){
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if (a==b&&b==c) {
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205509/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205509/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MAX(int a,int b){return a<b?b:a;}
int main(){
int a,b,c,d;
scanf("%d %d %d",&a,&b,&c);
d=MAX(a,MAX(b,c));
printf("%s\n",a==b&&b==c?"Yes":"No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205552/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205552/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n,l,r,i,max,p,q,ans,k;
long long a[400010];
long long s[400010];
char c[400010];
const long long N = 2000000000;
void Merge(long long p, long long q, long long r)
{
long long n1 = q - p + 1;
long long n2 = r - q + 1;
long long left[n1 + 1], right[n2];
for (long long i = 0; ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20569/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20569/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@N = dso_local local_unnamed_... |
#include <stdio.h>
int get_int();
int max(int a, int b)
{
if (a > b)
{
return a;
}
return b;
}
int min(int a, int b)
{
if (a < b)
{
return a;
}
return b;
}
int main()
{
int i;
int t = get_int();
while (t-- != 0)
{
int n = get_int();
char a[n + 1];
int ac = 0;
for (i = 0; i < n; i++)
{
a[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20574/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20574/source.c"
target datalayout = "e-m:e-p270: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>
int main()
{
char s[11];
scanf("%s",s);
printf("2018/01/%c%c",s[8],s[9]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205826/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205826/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 nums;
int i = 0;
scanf("%d", &nums);
for (;i<nums; i++) {
int numOfEle;
int j = 0;
char str[500];
scanf("%d", &numOfEle);
scanf("%s", str);
if(numOfEle == 2) {
if(str[0] >= str[1]){
printf("NO\n");
} else {
printf("YES\n");
printf("2\n");
pr... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20587/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20587/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
//set many funcs template
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int min(int a,int b){if(a<b){return a;}return b;}
int ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205927/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205927/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 Q,c,a,n,m,i;
scanf("%d",&Q);
for(i = 0; i < Q; i++){
scanf("%d %d %d",&c,&a,&n);
m = 0;
while(1){
if(c >= 1 && a>= 1 && n >= 1){
m++;
c--;
a--;
n--;
}
else if(c >= 2 && a >= 1){
m++;
c = c-2;
a--;
}
else if(c >=3){
m++;
c ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205992/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205992/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
char prime[1000000];
int main(void)
{
int a, d, n;
int i, j;
prime[0] = prime[1] = 1;
for (i = 4; i < 1000000; i += 2) prime[i] = 1;
for (i = 3; i <= 1000; i += 2){
if (prime[i]) continue;
for (j = i * i; j < 1000000; j += i) prime[j] = 1;
}
while (scanf("%d %d %d", &a, &d, &n), n){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206056/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206056/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@prime = dso_local local_un... |
#include<stdio.h>
int main()
{
int n,i;
scanf("%d",&n);
if(n==1 || n==2)
printf("-1");
else
for(i=n;i>0;i--)
printf("%d ",i);
printf("\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2061/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2061/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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()
{
long long int m,i,j,k;
scanf("%lld",&m);
long long int n[m],d[m];
for(i=0; i<m; i++)
{
scanf("%lld %lld",&n[i],&d[i]);}
for(i=0; i<m; i++){
if(n[i]==1)
{
printf("%lld\n",d[i]);
}
else
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20615/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20615/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 lowerBound(int [], int, int);
int upperBound(int [], int, int);
int main(void)
{
int i, n, q, k, A[100000];
scanf("%d", &n);
for (i = 0; i < n; i++)
scanf("%d", A + i);
scanf("%d", &q);
for (i = 0; i < q; i++) {
scanf("%d", &k);
printf("%d %d\n", lo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206193/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206193/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
{
double l=0;
scanf("%lf",&l);
printf("%.6lf",l*l*l/27.0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206243/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206243/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
double n,v;
scanf("%lf",&n);
n/=3;
v=n*n*n;
printf("%.12lf\n",v);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206294/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206294/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
double L;
scanf("%lf",&L);
printf("%lf",L*L*L/3/3/3);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206337/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206337/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
double l;
scanf("%lf",&l);
printf("%f",(l/3)*(l/3)*(l/3));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206380/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206380/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
double L;
scanf("%lf", &L);
printf("%10f\n", L*L*L/27);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206423/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206423/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 num;
scanf("%d",&num);
printf("%.10f",(num/3.0)*(num/3.0)*(num/3.0));
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206467/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206467/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m,n;
int r,c;
int t;
scanf("%d",&t);
while(t--)
{
scanf("%d %d %d %d",&n,&m,&r,&c);
char w[n+1][m+1];
int i,j;
for(i=0;i<n;i++)
{
memset(w[i],0,m);
}
char g;
int count=0,x=0,x2=0;
for(i=0;i<n;i++)
{
for(j=0;j<m;)
{
scanf("%c",... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20651/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20651/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(){
int l;
scanf("%d", &l);
printf("%lf\n", pow((double)l/ 3, 3));
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206553/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206553/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#define NIL NULL
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
Node root;
Node treeMinimum(Node x){
while(x->left != NIL){
x = x->left;
}
return x;
}
Node treeMaximum(Node x){
while(x->right !=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206597/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206597/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include <stdio.h>
void quicksort(int *x, int *y, int first, int last)
{
int pivot,j,temp,i;
if(first<last)
{
pivot=first;
i=first;
j=last;
while(i<j)
{
while(x[i]<=x[pivot]&&i<last)
i++;
while(x[j]>x[pivot])
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20664/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20664/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while(x->left!=NIL) x=x->left;
return x;
}
Node treeSearch(Node u, int k){
if(u==NIL || k==u->key)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206690/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206690/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
# define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
typedef struct node {
int key;
struct node *p_left;
struct node *p_right;
struct node *p_parent;
}NODE;
void insert(int value); /* ?????\ */
void inorderTreeWalk(NODE *p_node); /* ??????????????? */
void preorderTreeWalk(NODE *p_node); /* ?????... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206733/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206733/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { i32, ... |
#include <stdio.h>
#include <stdlib.h>
struct node {
struct node *r;
struct node *l;
struct node *p;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x) {
while (x->l != NIL) x = x->l;
return x;
}
Node treeSuccessor(Node x) {
Node y = malloc(sizeof(struct node));
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206777/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206777/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#define N 500001
typedef struct tree{
int key;
struct tree *parent;
struct tree *left;
struct tree *right;
} Tree;
Tree *createtree(int);
void insert(Tree *, int);
void find(Tree *, int);
void delete(Tree *, int);
void inorderwalk(Tree *);
void preo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206827/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206827/source.c"
target datalayout = "e-m:e-p270: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.tree = type { i32, ... |
#include<stdio.h>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while(x->left != NIL){
x = x->left;
}
return x;
}
Node treeSearch(Node u, int k){
while((u ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206878/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206878/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include<stdio.h>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while( x->left != NIL){
x = x->left;
}
return x;
}
Node treeSearch(Node u, int k){
if( u ==... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206935/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206935/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
//Binary search tree 3
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
struct Node
{
int key;
struct Node *p, *l, *r;
};
struct Node *root,*NIL;
struct Node *min(struct Node *x)
{
while(x->l != NIL) x = x->l;
return x;
}
struct Node *ser(struct Node *x)
{
struct Node *y = x->p;
if(x->r != NIL) r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206979/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206979/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct Node {
int key;
struct Node *right, *left, *parent;
};
typedef struct Node Node;
Node *root, *NIL;
Node * treeMinimum(Node *x) {
while(x->left != NIL)
x = x->left;
return x;
}
Node * find(Node *u, int k) {
while(u != NIL && k != u->key)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207028/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207028/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include<stdio.h>
#include<stdlib.h>
struct node{
struct node *R;
struct node *L;
struct node *parent;
int key;
};
typedef struct node * Node;
Node root;
Node tMin(Node);
Node tMax(Node);
Node tSea(Node,int);
Node tSor(Node);
void tDel(Node);
void insert(int);
void inorder(Node);
void preorder(Node);
int m... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207071/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207071/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include <stdlib.h>
#include <stdio.h>
typedef struct node {
int k;
struct node *p;
struct node *l;
struct node *r;
} node;
static node *build_node(int k) {
node *n;
n = (node *)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207114/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207114/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { i32, ... |
#include<stdio.h>
#include<stdlib.h>
#define NIL NULL
struct node{
struct node *right;
struct node *left;
struct node *p;
int key;
};
typedef struct node *Node;
Node root;
Node treeSearch(Node u, int k){
if(u == NIL || k == u->key){return u;}
if(k < u->key){return treeSearch(u->left,k);}
else{return tre... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207172/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207172/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include<stdio.h>
#include<stdlib.h>
#define NIL NULL
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
Node root;
Node treeMinimum(Node x){
while(x->left != NIL) x = x->left;
return x;
}
void insert(int k){
Node y=NIL;
Node x=root;
No... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207222/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207222/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include <stdio.h>
#include <string.h>
int main(void)
{
char S[11]={};
char T[12]={};
scanf("%s",S);
scanf("%s",T);
T[strlen(S)]='\0';
if(strcmp(S,T)==0){
printf("Yes");
} else {
printf("No");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207273/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207273/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(){
char s[10];
scanf("%s",s);
char t[strlen(s)+1];
scanf("%s",t);
int i,judg=0;
for(i=0;i<strlen(s);i++){
if(s[i]==t[i]){
}else{
judg++;
break;
}
}
if(judg==0){
printf("Yes");
}else{
printf("No");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207323/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207323/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(void){
char s[11], t[12];
scanf("%s%s", s, t);
(strncmp(s, t, strlen(s)) == 0) ? puts("Yes") : puts("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207381/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207381/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include <string.h>
int main(){
char C[11];
char D[11];
int i=0;
scanf("%s",C);
scanf("%s",D);
int p=strlen(C);
for(i=0;i<p+1;i++){
if(i==p){
printf("Yes");
}
else if(C[i]!=D[i]){
printf("No");
break;
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207424/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207424/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(void){
int i;
char a[50],b[20];
scanf("%s %s", a, b);
for( i=0; i<strlen(a); i++){
if(a[i]!=b[i]){
puts("No");
return 0;
}
}
puts("Yes");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207468/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207468/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
char s[11] = {0};
char t[12] = {0};
int cont = 0;
int len = 0;
scanf("%s", s);
scanf("%s", t);
while(s[len]){
len++;
}
for(int i = 0; s[i] != 0; i++){
if(s[i] == t[i]){
cont++;
}
}
if(cont == len){
printf("Yes");
}
else
printf("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207525/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207525/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main()
{
char s[11],t[11],*str;
int l;
scanf("%s",s);
scanf("%s",t);
l=strlen(s);
if(strncmp(s,t,l)== 0)
puts("Yes");
else
puts("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207576/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207576/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main()
{
char s[16];
char t[16];
int n;
int len_s,len_t;
int errflg=0;
// 文字列として取得
scanf("%s",s);
// 文字列として取得
scanf("%s",t);
// 条件判定
len_s=strlen(s);
len_t=strlen(t);
// 小文字判定
for( n=0;n<len_s;n++ ) {
if( s[n]<'a' || s[n]>'z' ) {
errflg=1;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207626/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207626/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(void){
char s[11];
scanf("%s",&s);
char t[12];
scanf("%s",&t);
//printf("%d\n",strlen(s));
for(int i=0;i<strlen(s);i++){
// printf("%c %c\n",s[i],t[i]);
if(s[i]==t[i])continue;
else {
printf("No");
return 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207677/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207677/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*
* main.c
*
* Created on: 2020/03/28
* Author: family
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define MAX(a,b) (a > b ? a : b)
#define MIN(a,b) (a > b ? b : a)
typedef long long int ll;
typedef unsigned long long int ull;
int sort_inc(const void *a, const void *b) ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207727/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207727/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str.4 = private unnamed_a... |
#include <stdio.h> // printf(), scanf()
#include <stdlib.h> // qsort()
#include <stdbool.h>
int
cmp_func(const void *l_, const void *r_)
{
const int* l = (const int*) l_;
const int* r = (const int*) r_;
if (*l < *r)
return -1;
if (*l > *r)
return 1;
return 0;
}
int
main(int argc, char** a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207778/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207778/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define PI 3.14159265358979323
//int calc1(float a,float b,float c,float d,float e,float f,float *x,float *y);
//void quick(int *,long long,long long);
//int comp(char *a,char *b);
int main(){
int a[5];
int i,j,temp;
while(scanf("%d,%d,%d,%d,%d",a,a+1,a+2... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207835/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207835/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,which=0;
int term=7;
int number_terms=1;
scanf("%d",&k);
while(number_terms<=k){
if(term%k == 0){
printf("%d",number_terms);
which=1;
break;
}
term=(term*10+7)%k;
number_terms++;
}
if(which==0){
printf("-1");
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207886/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207886/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// SPDX-License-Identifier: X11
// 2020-08-02
#include <stdio.h>
int main() {
long K;
scanf("%ld", &K);
if (K % 2 == 0 || K % 5 == 0) {
printf("-1\n");
return 0;
}
long n = 7;
long k = 1;
while((n %= K) != 0) {
n *= 10;
n += 7;
k++;
}
printf("%lu\n", k);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207936/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207936/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define ll long long
void swap (int *x, int *y) {
int temp;
temp = *x;
*x = *y;
*y = temp;
return;
}
int gcd(int a, int b){
int c;
while (b > 0){
c = a % b;
a = b;
b = c;
}
return a;
}
int upll(const void... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207987/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207987/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 compare_int(const void *a, const void *b)
{
return *(int*)a - *(int*)b;
}
int main(void)
{
int n, k;
scanf("%d %d", &n, &k);
int i, h[n];
i = 0;
while (i < n)
{
scanf("%d", &h[i]);
i++;
}
qsort(h, n, sizeof(int), compare_int);
if (k >= n)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208029/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208029/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 *p, const void *q ) {
return *(int*)q - *(int*)p;
}
int main(void){
long int n,k;
scanf("%ld %ld",&n,&k);
long int h[n];
int i,j;
for(i=0;i<n;i++){
scanf("%ld",&h[i]);
}
qsort(h,n,sizeof(long int),cmp);
if(n<=k)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208072/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208072/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
long int a,b,c,d,flag;
long time1,time2;
scanf("%ld %ld %ld %ld",&a, &b, &c, &d);
for(int i = 0; i<=100; i++)
{
time1 = b+(a*i);
for(int j = 0;j<=100;j++)
{
time2 = d+(c*j);
if(time1 == time2)
{flag = time1;
break;
}}
if(time1==time2)
break;
else
flag = -1;
}
printf("%ld",flag);
r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20813/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20813/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main()
{
int A,B,C;
scanf("%d%d%d",&A,&B,&C);
if(A==B)printf("%d\n",C);
else if(A==C)printf("%d\n",B);
else if(B==C)printf("%d\n",A);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208180/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208180/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a == b)
printf("%d\n", c);
else if (a == c)
printf("%d\n", b);
else
printf("%d\n", a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208223/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208223/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
int a, b, c;
scanf("%d%d%d", &a, &b, &c);
if(a == b) printf("%d\n", c);
else if(b == c) printf("%d\n", a);
else if(a == c) printf("%d\n", b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208274/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208274/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.