Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
int main(void)
{
char x;
scanf("%c",&x);
if(x=='A'){
printf("T\n");
}
else if(x=='T'){
printf("A");
}
else if(x=='C'){
printf("G");
}
else if(x=='G'){
printf("C");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157194/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157194/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a, b;
scanf("%c", &b);
if(b == 'A') {
a = 'T';
} else if(b == 'T') {
a = 'A';
} else if(b == 'C') {
a = 'G';
} else if(b == 'G') {
a = 'C';
}
printf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157251/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157251/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
char a;
scanf("%c",&a);
if(a == 'A')
printf("T");
if(a == 'T')
printf("A");
if(a == 'C')
printf("G");
if(a == 'G')
printf("C");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157301/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157301/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 input_data, output_data[128];
output_data['A'] = 'T';
output_data['G'] = 'C';
output_data['C'] = 'G';
output_data['T'] = 'A';
scanf("%c", &input_data);
printf("%c\n", output_data[input_data]);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157345/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157345/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include "stdio.h"
int main(int argc, char const *argv[]) {
char B;
scanf("%c", &B);
if (B=='A') {printf("T");}
if (B=='T') {printf("A");}
if (B=='C') {printf("G");}
if (B=='G') {printf("C");}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157389/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157389/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
char s;scanf("%s",&s);
if(s=='A'){
printf("%s","T");
}else if(s=='T'){
printf("%s","A");
}else if(s=='C'){
printf("%s","G");
}else if(s=='G'){
printf("%s","C");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157439/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157439/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 b;
scanf("%c",&b);
if(b=='A')
{
printf("T");
}
if(b=='T')
{
printf("A");
}
if(b=='C')
{
printf("G");
}
if(b=='G')
{
printf("C");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157482/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157482/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// Ver19.03
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define INF 1 << 29
#define LLINF 4545454545454545454
#define MOD 1000000007
#define ll long long
#define ull unsigned long long
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))
int upll(const voi... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157532/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157532/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
#include<math.h>
#include <stdlib.h>
#include<ctype.h>
//qsort
int compare_int(const void *a, const void *b)
{
return *(int*)a - *(int*)b;
}
//比較
int max(int a, int b){
if (a>b) return a;
else return b;
}
int min(int a,int b) {
if(a>b) return b;
else return a;
}
//main関... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157576/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157576/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
void selection_s(char a[], int N);
void selection_l(char a[], int N);
int main(void)
{
char s[105];
char a[105];
fgets(s, sizeof(s), stdin);
fgets(a, sizeof(a), stdin);
//選択整列法を使用
//sを小さい順でソート
selection_s(s, strlen(s)-2);
selection_l(a, strlen(a)-2);
int st... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157633/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157633/source.c"
target datalayout = "e-m:e-p270: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(){
int i,j;
char s[101],t[101];
scanf("%s %s",s,t);
for(i=0;s[i]!=0;i++){
for(j=0;j<i;j++){
if(s[i]<s[j]){
char tmp=s[i];
s[i]=s[j];
s[j]=tmp;
}
}
}
for(i=0;t[i]!=0;i++){
for(j=0;j<i;j++){
if(t[i]>t[j]){
char tmp=t[i];
t[i]=t[j];
t[j]=tmp;
}
}
}
i=0;
while(s[i]!=0&&t[i]!=0){
if(s[i]<t[i]){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157684/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157684/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
int in(void){
int i;scanf("%d",&i);
return i;
}
long long llin(void){
long long i;scanf("%lld",&i);
return i;
}
void chin(char s[]){
scanf("%s",s);
}
void print(int a){
printf("%d\n",a);
}
void llprint(long long a){
printf("%lld\n",a);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157749/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157749/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<inttypes.h>
int main()
{
int q,i,j;
uint64_t s[3],sum;
uint64_t mid;
scanf("%d",&q);
for(i=0;i<q;i++)
{
sum=0;
for(j=0;j<3;j++)
{
scanf("%"PRId64"",&s[j]);
sum=sum+s[j];
}
mid=sum/2;
printf("%"PRId64"\... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1578/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1578/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void){
char s[200002];
int D[200001][2];
int (*d)[2]=D+1;
scanf("%s", s);
int i;
d[-1][0]=d[-1][1]=0;
d[0][0]=1; d[0][1]=INT_MIN;
d[1][0]=s[0]==s[1]?INT_MIN:2; d[1][1]=1;
i=2;{
int f, g;
f=d[i-1][1]+1;
g=d[i-1][0]+1;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157842/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157842/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MAX 201
int main(void)
{
int i,j,k,D,N,T[MAX],A[MAX],B[MAX],C[MAX],dp[MAX][MAX],z,S;
scanf("%d%d",&D,&N);
for(i=0;i<=D-1;i++)
{
scanf("%d",&T[i]);
}
for(i=0;i<=N-1;i++)
{
scanf("%d%d%d",&A[i],&B[i],&C[i]);
}
for(i=0;i<=N-1;i++)
{
for(j=0;j<=D-1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157893/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157893/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c[3][3], flag = 1;
for(int i = 0; i < 3; i++){
scanf("%d %d %d", &c[i][0], &c[i][1], &c[i][2]);
}
for(int i = 0; i < 3; i++){
if(c[1][0] - c[0][0] != c[1][i] - c[0][i]){
flag = 0;
break;
}
if(c[2][0] - c[1][0] !... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157943/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157943/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_GRD_SIZE 3 // グリッドサイズ
// 内部変数
static int si2Grid[D_GRD_SIZE][D_GRD_SIZE]; // グリッド
// 内部変数 - テスト用
#ifdef D_TEST
static int siRes;
static FILE *szpFpT, *szpFpA;
#endif
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158007/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158007/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@si2Grid = internal global ... |
//
// main.c
// Xtest
//
// Created by 山口修史 on 2018/02/21.
// Copyright © 2018年 山口修史. All rights reserved.
//
#include <stdio.h>
int main(void) {
int a[3], b[3];
int i, j;
int c[3][3];
int x;
for(i=0;i<3;i++){
for(j=0;j<3;j++){
scanf("%d", &c[i][j]);
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158050/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158050/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 deg(long long int n){
long long int k=1;
for(int i=0;;i++){
if(n>=k)k*=2;
else {
return i;
break;
}
}
}
long long int pow(int n){
if(n==0)return 1;
else return 2*pow(n-1);
}
int main(void){
long long int A,B;
scanf("%lld ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158094/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158094/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
char *
int2str(int n)
{
static char str[4];
str[0] = n/100+'0';
str[1] = n/10%10+'0';
str[2] = n%10+'0';
str[3] = '\0';
return str;
}
void
solver(int n, char *s)
{
int r=0;
int i, j, p;
char *t;
for (i=0; i<1000; i++) {
t = int2st... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158137/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158137/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@int2str.str = internal glo... |
#include <stdio.h>
int main()
{
long long N;
scanf("%lld", &N);
printf("%lld\n", N * (N - 1) / 2);
fflush(stdout);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158188/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158188/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n;
scanf("%lld",&n);
n --;
printf("%lld",n * (n + 1) / 2);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158230/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158230/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
long int n;
scanf("%ld",&n);
printf("%ld",n*(n-1)/2);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158274/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158274/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("%ld\n",(long)(N-1)*N/2);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158324/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158324/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define ll long long
int main(){
int k,q;
scanf("%d%d",&k,&q);
ll d[5010];
for(int i=0;i<k;i++){
scanf("%lld",&d[i]);}
for(int i=0;i<q;i++){
ll n,x,m;
scanf("%lld %lld %lld",&n,&x,&m);
ll an=x%m,tmp;
ll zeros=0;
ll amari = (n-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158368/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158368/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_DIGIT_MAX 35 // 最大桁数
// 内部変数
static FILE *szpFpI; // 入力
// 内部変数 - テスト用
#ifdef D_TEST
static int siRes;
static FILE *szpFpA;
#endif
// 実行メイン
int
fMain(
int piTNo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158425/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158425/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h> // uint64_t
#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) > (b) ? (b) : (a))
int get_int(void) {
int num;
scanf("%d", &num);
return num;
}
int get_int2(int *a1, int *a2) {
scanf("%d %d", a1, a2);
return 0;
}
st... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158469/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158469/source.c"
target datalayout = "e-m:e-p270: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.sushi = type { i32,... |
#include<stdio.h>
#include<math.h>
int main(){
long int a, b, c, x;
scanf("%ld %ld %ld",&a, &b, &c);
x = c-a-b;
if(x<0)
printf("No");
else if(4*a*b < x*x)
printf("Yes");
else
printf("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158519/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158519/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{long long int a,b,c;
scanf("%lld%lld%lld",&a,&b,&c);
long long int y=a*b;
long long int x=c-a-b;
if(x<=0)
{
printf("No");
return 0;
}
else
{
if(x%2==1)
{
if((x/2)*(x/2)+x/2>=y)
printf("Yes");
else
printf("No");
}
else
{
if((x/2)*(x/2)>y)
printf("Yes");
else
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158562/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158562/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
int main() {
long long int a,b,c;
scanf("%lld %lld %lld\n",&a,&b,&c);
if(4*a*b<(c-a-b)*(c-a-b)&&(c-a-b)>0){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158605/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158605/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h>
#include <limits.h>
//#include <math.h>
#define Min(a, b) ((a < b) ? a : b)
int main() {
int h, w, k;
scanf("%d%d%d", &h, &w, &k);
char s[h][w+5];
for (int i=0; i<h; i++)
scanf("%s", s[i]);
int cnt[h+1][w+1], ans = INT_M... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158649/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158649/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <limits.h>
#include <string.h>
int main(void)
{
char s1[102];
char s2[102];
scanf("%s%s", s1,s2);
if (strlen(s1) > strlen(s2))
{
printf("GREATER\n");
return 0;
}
else if (strlen(s1) < strlen(s2))
{
printf("LESS\n");
return 0;
}
else if (strcmp(s1, s2) == 0)
{
printf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158692/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158692/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[102]; scanf("%s", a);
char b[102]; scanf("%s", b);
int na;
int nb;
int i;
for(i = 0; a[i]; i++){
;
}
na = i;
for(i = 0; b[i]; i++){
;
}
nb = i;
if(na > nb){
printf("GREATER\n");
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158735/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158735/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
char a[105], b[105];
int main(void) {
int i;
int lena, lenb;
scanf("%s", a);
scanf("%s", b);
lena = strlen(a);
lenb = strlen(b);
if (lena > lenb) {
printf("GREATER\n");
return 0;
}
else if (lena < lenb) {
printf("LESS\n");
return 0;
}
else
{
for (i = 0;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158793/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158793/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define FOR(i,a,b) for(int i=a;i<b;i++)
int main(){
char A[100],B[100];
int ans = 0;
scanf("%s %s",A,B);
if(strlen(A) > strlen(B)) ans = 1;
if(strlen(A) < strlen(B)) ans = -1;
if(strlen(A) == strlen(B)){
FOR(i,0,strlen(A)){
if(A[i] > B[i]){ ans = 1; break; }
if(A[i] ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158836/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158836/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(void){
int a, b;
double N = 0, E = 0;
double theta = 0;
while(1){
scanf("%d,%d", &a, &b);
N += a * cos(theta);
E += a * sin(theta);
theta += b * (2 * M_PI / 360);
if(a == 0 && b == 0) break;
}
printf("%d\n%d\n", (int)E, (int)N);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158900/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158900/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main(void) {
int a, b, x, y, rad=90;
double xx = 0, yy = 0, pi;
while (1) {
scanf("%d,%d",&a,&b);
if (a == 0 && b == 0)break;
pi = acos(-1);
xx += a*cos(pi*rad / 180);
yy += a*sin(pi*rad / 180);
rad -= b;
}
x = xx;
y = yy;
printf("%d\n%d\n",x,y);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158951/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158951/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define LINE_MAX 30
double cos(double);
double sin(double);
double floor(double);
struct Data{
int length;
int angle;
};
struct Position{
double x;
double y;
int angle;
};
double degToRad(int degree){
return degree * 3.1415926536 / 180;
}
void walk(struct Data buf, struct P... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159022/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159022/source.c"
target datalayout = "e-m:e-p270: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.Position = type { d... |
#include<stdio.h>
#include<math.h>
int main(void){
int m,de,nde=0;
double PI=3.14159265,x=0,y=0;
while(1){
scanf("%d,%d",&m,&de);
if(m==0&&de==0) break;
x=x+m*sin((double)nde*PI/180);
y=y+m*cos((double)nde*PI/180);
nde=nde+de;
}
printf("%d\n%d\n",(int)x,(int)y);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159088/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159088/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 gcd(int x,int y){return (y==0?x:gcd(y,x%y));}
int main(){
int x,y;
scanf("%d%d",&x,&y);
printf("%d\n",gcd(x,y));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159130/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159130/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
int temp;
if(a<b){
temp=b;
b=a;
a=temp;
}
while(1){
temp=a%b;
if(temp==0){
printf("%d\n",b);
return 0;
}
a=b;
b=temp;
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159174/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159174/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 get_gcd(int x, int y);
int main(void)
{
int x, y, gcd, lcm;
while(scanf("%d %d", &x, &y)==2)
{
gcd = get_gcd(x, y);
lcm = x / gcd * y;
//printf("%d %d", gcd, lcm);
printf("%d\n", gcd);
}
return 0;
}
int get_gcd(int x, int y)
{
if(x<y)
{
y = y % x;
}
while(x >= 1 && ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159246/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159246/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x,y,tmp;
scanf("%ld %ld",&x,&y);
if (x<y)
{
tmp = x;
x = y;
y = tmp;
};
while( y > 0)
{
tmp = y;
y = x%y;
x = tmp;
}
printf("%ld\n",x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159297/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159297/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 = 0, y = 0, z = 0;
scanf("%d%d", &x, &y);
while(1){
if(x % y == 0){
break;
}
if(x >= y){
z = x % y;
x = y;
y = z;
continue;
}
if(x < y){
z = x;
x = y;
y = z;
continue;
}
}
printf("%d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159383/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159383/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m;
while(1) {
scanf("%d%d",&a,&b);
if(a<1 || a>1000000001) {
printf("error\n");
continue;
}
if(b<1 || b>1000000001) {
printf("error\n");
continue;
}
else break;
}
if(a<b) {
c = a;
a = b;
b = c;
}
while... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159433/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159433/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
/*---x??¨y?????\????????????---*/
void swap(int *x, int *y)
{
int temp;
temp = *x;
*x = *y;
*y = temp;
}
int main(void) {
int x[2];
scanf("%d %d", &x[0], &x[1]); //2???????????¶??°???????????????
if(x[0]<x[1])
swap(&x[0], &x[1]); //??????????????????
while (x[1]) { //?????????
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159477/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159477/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[200000];
int main(void) {
int t, i, n, j;
long long s, sm, f;
scanf("%d", &t);
for (i = 0; i < t; i++) {
scanf("%d", &n);
scanf("%lld", &a[0]);
f = 1 - 2 * (a[0] < 0);
s = 0;
sm = a[0];
for (j = 1; j < n; j++) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15952/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15952/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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",&a,&b);
if(a < b){
c = a;
a = b;
b = c;
}
while(b != 0){
c = a % b;
a = b;
b = c;
}
printf("%d\n",a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159563/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159563/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, y, a, r;
scanf("%d%d", &x, &y);
if(x > y){
a = x;
x = y;
y = a;
}
r = y % x;
while(r != 0){
y = x;
x = r;
r = y % x;
}
printf("%d\n", x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159606/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159606/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,n;
scanf("%d",&T);
while(T--)
{
scanf("%d",&n);
if(n%4)
printf("NO\n");
else
{
printf("YES\n");
for(i=1;i<=n/2;i++)
printf("%d ",2*i);
for(i=1;i<n/2;i++)
printf("%d ",2*i-1);
printf("%d\n",3*i-1);
}
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15965/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15965/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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()
{
int t;
int n,k;
scanf("%d",&t);
while(t--)
{
scanf("%d",&n);k=4;
while(n%(k-1)!=0)
{
k*=2;
}
printf("%d\n",(n/(k-1)));
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15970/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15970/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
//ALDS1_1_B: Greatest Common Divisor
#include <stdio.h>
int gcd(int a,int b){//要求a>=b
if(a%b==0)
return b;
return gcd(b,a%b);//此?写成 gcd(b,a%b); 有失水准
}
int main(){
int x,y,z;
scanf("%d%d",&x,&y);
if(x>y)z=gcd(x,y);
else z=gcd(y,x);
printf("%d\n",z);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159743/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159743/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 gcd(int,int);
int main(){
int x,y,r,ans;
scanf("%d%d",&x,&y);
if(x<y)ans = gcd(y,x);
else ans = gcd(y,x);
printf("%d\n",ans);
return 0;
}
int gcd(int a, int b)
{
int r;
while(b>0){
r = a%b;
a = b;
b = r;
}
return a;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159787/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159787/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include<math.h>
int main(void) {
// your code goes here
int t;
scanf("%d",&t);
for(int i=0;i<t;i++){
int n,x;
scanf("%d",&n);
int k=2;
while(1){
int h=pow(2,k)-1;
if(n%h==0){
x=n/h;
break;
}
k++;
}
printf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15983/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15983/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void){
int x,y;
scanf("%d %d",&x,&y);
int tmp;
if(x<y){
tmp=x;
x=y;
y=tmp;
}
while(x%y!=0){
tmp=y;
y=x%y;
x=tmp;
}
printf("%d\n",y);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159873/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159873/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,y,i,n;
scanf("%d %d",&x,&y);
if(x<y){n=y;
y=x;
x=n;
}
while(1){
n=y;
y=x%y;
if(y==0){
printf("%d\n",n);
break;
}
x=n;
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159916/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159916/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(void) {
long int t;
scanf("%ld", &t);
while(t--){
long long int n;
scanf("%lld", &n);
int k=3, a=3;
while(n%k!=0){
k=pow(2,a)-1;
a++;
}
printf("%lld\n", n/k);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15996/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15996/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(){
int x, y, i, v, a;
scanf("%d%d", &x, &y);
if(x < y){
v = x;
x = y;
y = v;
}
while(1){
a = x % y;
if(a == 0){
printf("%d\n", y) ;
break;
}
x = y;
y = a;
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160000/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160000/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, y, r, tmp;
scanf("%d%d", &x, &y);
if(x < y)
{
tmp = x;
x = y;
y = tmp;
}
r = x % y;
while(r != 0)
{
x = y;
y = r;
r = x % y;
}
printf("%d\n", y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160051/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160051/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,y,d,tmp;
scanf("%d %d",&x,&y);
if(x<y){
tmp=x;
x=y;
y=tmp;
}
while(y>0){
d=x%y;
x=y;
y=d;
}
printf("%d\n",x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160095/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160095/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, y, z;
scanf("%d%d", &x, &y);
while(z!=0){
z = x % y;
if(z==0){
printf("%d\n", y);
break;
}
x = y;
y = z;
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160138/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160138/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
void gcd(double []);//最大公約数
int main(void)
{
double number[3];
scanf("%lf %lf",&number[0],&number[1]);
gcd(number);
return 0;
}
void gcd(double number[])
{
double i,gcd,a;
if(number[0]<number[1]){/*「大÷小」にするため入れ替える*/
number[2]=number[0];
number... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160196/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160196/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int a,b,i,min,max,temp;
scanf("%d %d",&a,&b);
if(a > b){
min = b;
max = a;
}else{
min = a;
max = b;
}
while(1){
if(max%min == 0)break;
temp = min;
min = max%min;
max = temp;
}
printf("%d\n",min);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160253/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160253/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ggd(int, int);
int main(void){
int x, y;
scanf("%d %d", &x, &y);
printf("%d\n", ggd(x, y));
return 0;
}
int ggd(int x, int y){
int t, u, v;
if(y > x){
t = x; x = y; y = t;
}
if(x%y == 0){
return y;
}
t = x % y;
while(1){
u = t;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160303/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160303/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,y,r,a;
scanf("%d%d",&x,&y);
if(((1<=x)&&(x<=1000000000))&&((1<=y)&&(y<=1000000000))){
if(y>x){
a=y;
y=x;
x=a;
}
while(y>0){
r = x % y;
x = y;
y = r;
}
printf("%d\n",x);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160347/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160347/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,y,d,amari;
scanf("%d%d",&x,&y);
if(x<y)
{
d=x;
x=y;
y=d;
}
amari=x%y;
while(amari!=0)
{
x=y;
y=amari;
amari=x%y;
}
printf("%d\n",y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160398/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160398/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 syumid(int,int);
int main()
{
int x,y,d;
scanf("%d%d",&x,&y);
if(x >= y)
d = syumid(x,y);
else
d = syumid(y,x);
printf("%d\n",d);
return 0;
}
int syumid(int a,int b)
{
int c;
while(1){
c = a%b;
if(c == 0) break;
else ;
a = b;
b = c;
}
retu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160440/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160440/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,y,r,tmp;
scanf("%d %d",&x,&y);
if(x<y){
tmp=x;
x=y;
y=tmp;
}
r=x%y;
while(r!=0){
x=y;
y=r;
r=x%y;
}
printf("%d\n",y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160484/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160484/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 GCD(int,int);
int main()
{
int x,y;
scanf("%d%d",&x,&y);
GCD(x,y);
return 0;
}
/*最大公約数を求める*/
void GCD(int x,int y)
{
int a,n;
if(x<y)
{
a=x;
x=y;
y=a;
}
n=x%y;
while(n!=0)
{
x=y;
y=n;
n=x%y;
}
printf("%d\n",y);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160527/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160527/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,y,r,tmp;
scanf("%d %d",&x,&y);
if(y>x) {
tmp = y;
y = x;
x = tmp;
}
while (y > 0){
r = x % y;
x = y;
y = r;
}
printf("%d\n",x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160585/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160585/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 gcd(int x, int y){
if( y == 0 ) return x;
if( x >= y ) gcd(y, x%y);
else gcd(y,x);
}
int main(void){
int x,y;
scanf("%d %d", &x, &y);
printf("%d\n", gcd(x,y));
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160628/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160628/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 - ALDS1_1_B
Date: 20190309
Author: Mikoron * ♡mikoiwate_351♡
*/
#include<stdio.h>
int gcd(int a, int b);
int main(void) {
int a, b;
scanf("%d %d", &a, &b);
printf("%d\n", gcd(a,b));
return 0;
}
int gcd(int a, int b) {
int buf, div_num;
if(a == b) return a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160671/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160671/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,y,n,r;
scanf("%d %d",&x,&y);
if(x<y){
n=x;
x=y;
y=n;
}
while(y>0){
r=x%y;
x=y;
y=r;
}
printf("%d",x);
printf("\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160714/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160714/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
int main(){
int x,y,d,a1,a2;
scanf("%d%d",&x,&y);
if(x>y){
a1=x;
a2=y;
}else{
a1=y;
a2=x;
}
while(1){
if(a1%a2==0){
break;
}else{
d=a1%a2;
a1=a2;
a2=d;
}
}
printf("%d\n",a2);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160758/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160758/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,tmp,n;
scanf("%d%d",&a,&b);
if(a<b){
tmp=a;
a=b;
b=tmp;
}
while((n=a%b)!=0){
a=b;
b=n;
n=a%b;
}
printf("%d\n",b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160800/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160800/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 GCD(int, int);
int main () {
int a = 0, b = 0, div = 0;
scanf("%d%d",&a,&b);
if(a > b) div = GCD(a,b);
else div = GCD(b,a);
printf("%d\n",div);
return 0;
}
int GCD(int a, int b) {
int sum = 0;
sum = a % b;
if(sum == 0) return b;
else sum = GCD(b,a%b);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160844/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160844/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,n,ans;
scanf("%d",&a); scanf("%d",&b);
if(a>b){
k=a; a=b; b=k;}
n=b%a;
while(n!=0){
b=a; a=n; n=b%a;
}
printf("%d\n",a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160895/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160895/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int n, a, v, wa, wv;
int i;
scanf("%d", &n);
scanf("%d%d", &wa, &wv);
for (i = 1; i < n; i++) {
scanf("%d%d", &a, &v);
if (v > wv) {
wv = v; wa = a;
} else if (v == wv && a < wa) {
wv = v; wa = a;
}
}
printf("%d %d\n", wa, wv);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160938/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160938/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,ans=0,num,j;
scanf("%d",&n);
int a,v;
for(i=0;i<n;i++){
scanf("%d %d",&a,&v);
if(ans<v){
ans=v;
num=a;
}else if(ans==v&&num>a)num=a;
}
printf("%d %d\n",num,ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160989/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160989/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[11];
scanf("%s",a);
if((a[5]=='0') && (a[6]<'5')){
printf("Heisei\n");
}else{
printf("TBD\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161038/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161038/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 Y=0, M=0;
char S[15];
scanf("%s", S);
Y += 1000*(S[0]-'0');
Y += 100*(S[1]-'0');
Y += 10*(S[2]-'0');
Y += S[3]-'0';
M += 10*(S[5]-'0');
M += S[6]-'0';
//printf("%d %d\n", Y, M);
if(Y>2019) printf("TBD\n");
else i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161081/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161081/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<2019){ printf("Heisei\n");
return 0; }
else if(a>2019) {printf("TBD\n");
return 0; }
if(b<04) {printf("Heisei\n");
return 0; ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161139/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161139/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(2019<a || (a<=2019 && 5<=b)){
printf("TBD\n");
}
else{
printf("Heisei\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161182/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161182/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
char d,e;
scanf("%d%c%d%c%d",&a,&d,&b,&e,&c);
if(a<=2019 && b<=04){
printf("Heisei\n");
}else{
printf("TBD\n");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161225/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161225/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[10];
scanf("%s",S);
if(S[5]=='0'&&S[6]<='4'){
printf("Heisei");
return 0;
}
printf("TBD");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161276/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161276/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(void){
long long x,i,j;
scanf("%lld",&x);
int s = sqrt(x);
for(i=s;i>0;i--){
if(x%i==0){
j = x/i;
printf("%lld",i+j-2);
return 0;
}
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161319/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161319/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
long long int n,i,j,k,ans;
scanf("%lld", &n);
k=sqrt(n);
//printf("k=%lld\n", k);
ans=n;
for(i=1;i<=k;i++){
if(n%i==0){
j=n/i;
ans=(ans<=i+j-2)?ans:i+j-2;
//printf("%lld\n", i);
//printf("%lld\n", j);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161362/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161362/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
typedef long long ll;
ll min(ll x, ll y) {
return x < y ? x : y;
}
int main() {
ll n;
scanf("%lld", &n);
ll ans = n;
for (ll i = 1; i*i <= n; i++) {
if (n % i == 0) {
ans = min(ans, i + n/i - 2);
}
}
printf("%lld\n", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161405/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161405/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){
long n,k;
scanf("%ld",&n);
k=sqrt(n);
for(long i=k;i>=1;i--){
if(n%i==0){
k=i;
break;
}
}
printf("%ld\n",k+n/k-2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161456/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161456/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,a,j;
scanf("%d",&t);
for(i=1;i<=t;i++)
{scanf("%d",&a);
for(j=0;a>0;j++){
a-=2*j+1;
}
printf("%d\n",j);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1615/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1615/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include <stdio.h>
#include <math.h>
long long int Min(long long int a,long long int b){
if(a>b)
return b;
else
return a;
}
int main(){
long long int n,ans=0,i,f=0;
scanf("%lld",&n);
for(i=2;i<=sqrt(n);i++){
if(n%i == 0){
if(f==0){
ans = i+n/i-2... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161542/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161542/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define MAX 1000
int main(){
int n;
int i, j=0, sum;
int score[MAX];
double ave, tmp;
double dev[MAX];
while(1){
scanf("%d", &n);
if(n==0)break;
sum=0;
for(i=0;i<n;i++){
scanf("%d", &... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161586/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161586/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define MAX_DATA 1000
int main()
{
int num, data[MAX_DATA], i;
double avg, var;
for (;;) {
scanf("%d", &num);
if (num == 0)
return 0;
avg = 0;
var = 0;
for (i = 0; i < num; i++) {
scanf("%d", &data[i]);
avg += data[i];
}
avg = 1.0 * avg / num;
for (i = ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161636/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161636/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d", &a);
int B[a];
int c;
for( int i = 0, r; i < a; i++){scanf("%d", &r); B[i] = r;}
for(int i = 0; i < a; i++){
c = B[i]%3;
if(c == 0){printf("%d %d\n",B[i]/3 , B[i]/3);}
if(c == 1){printf("%d %d\n",B[i]/3 + 1 , B[i]/3);}
if(c == 2){printf("%d %d\n",B[i]/3 , B[i]/3 + 1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16168/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16168/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void){
int a,b,n,ans;
scanf("%d",&n);
if(n==1){
printf("Hello World\n");
return 0;
}else{
scanf("%d %d",&a,&b);
ans=a+b;
printf("%d\n",ans);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161780/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161780/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d", &n);
if (n == 1) {
printf("Hello World\n");
}
else {
scanf("%d", &a);
scanf("%d", &b);
printf("%d\n", a + b);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161823/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161823/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
if (n == 1)
printf("Hello World");
else
{
int a, b;
scanf("%d", &a);
scanf("%d", &b);
printf("%d", a + b);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161867/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161867/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
if(a==1){
printf("Hello World");
}
else if(a==2){
scanf("%d",&b);
scanf("%d",&c);
printf("%d",b+c);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161917/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161917/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d",&i);
if(i==1)
printf("Hello World");
else if(i==2){
int sum;
scanf("%d",&i);
scanf("%d",&sum);
printf("%d",sum+=i);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161960/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161960/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d",&n);
if(n==1)
{
printf("Hello World\n");
}
if(n==2)
{
scanf("%d", &a);
scanf("%d", &b);
printf("%d\n",a+b);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_162002/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_162002/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.