Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
int main()
{
int a,b,k,i;
scanf("%d %d %d",&a,&b,&k);
if((b-a+1)>=2*k)
{
for(i=0;i<k;i++)
{
printf("%d\n",a+i);
}
for(i=k-1;i>=0;i--)
printf("%d\n",b-i);
}
else
{
for(i=0;i<(b-a+1);i++)
{
printf("%d\n",a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215598/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215598/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n,a[100000],min,max,temp1,temp2;
scanf("%d",&n);
for(i=0;i<n;i++)
scanf("%d",&a[i]);
for(i=0;i<n;i++)
{
if(i==0)
{
min=abs(a[1]-a[0]);
max=abs(a[n-1]-a[0]);
printf("%d %d\n"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21567/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21567/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <string.h>
int main()
{
char S[3];
scanf("%s",S);
if(strlen(S) == 2){
printf("%s",S);
}else{
char tmp = S[0];
S[0] = S[2];
S[2] = tmp;
printf("%s",S);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215727/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215727/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(void){
char S[4];
scanf("%s", S);
char tmp;
int len = strlen(S);
if(len == 3){
tmp = S[0];
S[0] = S[2];
S[2] = tmp;
}
printf("%s\n", S);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215778/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215778/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 nums[4];
scanf("%s", nums);
char firstPlace;
int i = 0;
while(nums[i] != '\0') {
firstPlace = nums[i];
i++;
}
switch (firstPlace) {
case '0':
case '1':
case '6':
case '8':
puts("pon\n");
break;
case '2':
case '4':
c... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215820/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215820/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<=999) {
N = N%10%10;
if(N==3) {
printf("bon");
}else if(N==0 || N==1 || N==6 || N==8) {
printf("pon");
}else {
printf("hon");
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215864/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215864/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
N=N%10;
if(N==2||N==4||N==5||N==7||N==9){printf("hon");}
else if(N==0||N==1||N==6||N==8){printf("pon");}
else if(N==3){printf("bon");}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215907/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215907/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int n;
scanf("%d",&n);
int one=0;
one=n%10;
if(one==3)
printf("bon\n");
else if(one==0 || one==1 || one==6 || one==8)
printf("pon\n");
else
printf("hon\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215965/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215965/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
n%=10;
char*s;
switch(n){
case 3:
s="bon";
break;
case 0:
case 1:
case 6:
case 8:
s="pon";
break;
default:
s="hon";
}
puts(s);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216014/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216014/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
char *str[] = {"hon","pon","bon"};
switch(N%10){
case 0:
case 1:
case 6:
case 8:
printf("%s",str[1]);
break;
case 3:
printf("%s",str[2]);
break;
default:
printf("%s",str[0]);
break;
}
retu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216058/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216058/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* kadai3_2
Saikyo_Kazune
*/
#include <stdio.h>
#include <string.h>
int main(void){
//本の数を要れる変数num_booksを宣言
int num_pencils;
scanf("%d",&num_pencils);
//1の位の数で場合分け
switch(num_pencils%10){
case 2:case 4:case 5:case 7: case 9:printf("hon\n");break;
case 0:case 1:case 6:case 8:printf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216100/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216100/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* ex3_2
moka223711 */
#include <stdio.h>
int main(void){
int Num;
// 入力Nを受け取る
scanf("%d", &Num);
// Num % 10で1の位を取得する
// switch文で各値に対してNum本の本の読み方を出力する
switch(Num % 10){
case 2: case 4: case 5: case 7: case 9:
printf("hon");
break;
case 0: case 1: case 6: case 8:
printf("pon");
break;
defa... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216144/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216144/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* ex3_2
shu_t */
#include<stdio.h>
int main(void){
int pencil;
int ones_place;
//input the number of pencils
scanf("%d",&pencil);
//calculate ones place
ones_place = pencil % 10;
if(ones_place == 3){
//ones place is 3
printf("bon\n");
}else if(ones_place == 0||ones_place == 1||ones_place =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216188/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216188/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
a=n%10;
if(a==2||a==4||a==5||a==7||a==9)
printf("hon");
else if(a==0||a==1||a==6||a==8)
printf("pon");
else
printf("bon");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216230/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216230/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
void main(){
int N,a;
scanf("%d",&N);
a=N%10;
if(a==3)
printf("bon\n");
else if(a==0||a==1||a==6||a==8)
printf("pon\n");
else
printf("hon\n");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216274/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216274/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int n,i;
n<999;
scanf("%d",&n);
i=n%10;
switch(i)
{
case 2:
case 4:
case 5:
case 7:
case 9: printf("hon");break;
case 0:
case 1:
case 6:
case 8: printf("pon");break;
case 3: printf("bon");break;
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216317/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216317/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
N = N%10;
if (N == 2 || N==4 || N==5 || N==7 || N==9)
{
printf("hon\n");
}
if (N == 0 || N==1 || N==6 || N==8)
{
printf("pon\n");
}
if (N == 3)
{
printf("bon\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216360/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216360/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
int n;
scanf("%d", &n);
int a, b, c;
a = n / 100;
b = (n-100*a)/10;
c = n - 100*a - 10*b;
if(c == 3){
printf("bon\n");
}
else if(c == 0 || c == 1 || c == 6 || c == 8){
printf("pon\n");
}
else{
printf("hon\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216403/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216403/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<ctype.h>
#include<stdlib.h>
#define STR 10
int main(){
int n;
scanf("%d",&n);
while(n>10){
n-=10;
}
if(n==2||n==4||n==5||n==5||n==7||n==9){
printf("hon");
}else if(n==0||n==1||n==6||n==8||n==10){
printf("pon")... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216461/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216461/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
char s[4], t[20];
scanf("%s", &s);
for (i = 0;s[i] != '\0';i++) {
}
i--;
if(s[i]=='2'|| s[i] == '4'|| s[i] == '5'|| s[i] == '7'||s[i] == '9')
printf("hon");
if(s[i] == '0' || s[i] == '1' || s[i] == '6' || s[i] == '8')
printf("pon");
if(s[i] == '3')
printf("bon"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216504/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216504/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
n=n%100;
n=n%10;
if(n==3){
printf("bon\n");
}else if(n==0 || n==1 || n== 6|| n==8){
printf("pon\n");
}else{
printf("hon\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216548/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216548/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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",&a);
b=a%10;
if(b==3) printf("bon");
else if(b==0 || b==1 || b==6 || b==8) printf("pon");
else printf("hon");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216591/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216591/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 L[1000000];
int idx1 = 500000;
int idx2 = 499999;
char line[15];
fgets(line, 15, stdin);
int q = atoi(line);
int d, i;
while (q--) {
fgets(line, 15, stdin);
if (line[0] == '0') L[--idx1] = atoi(line + 2);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216634/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216634/source.c"
target datalayout = "e-m:e-p270: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>
int main(){
int i,k,x;
char s[102];
scanf("%d",&k);
scanf("%s",&s);
x=strlen(s);
for(int i=0; i<k; i++){
if (i<x) { printf("%c", s[i]);} }
if (x>k)printf("...");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216692/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216692/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 k,i,len;
char s[101];
scanf("%d %s",&k,s);
len=strlen(s);
if(len>k){
for(i=0;i<k;i++){
printf("%c",s[i]);
}
printf("...\n");
}
else printf("%s",s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216735/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216735/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 k,i;
char s[101];
char ans[105];
int len;
scanf("%d",&k);
scanf("%s",s);
len = strlen(s); //文字列の文字数を取得
if(k < len){
for(i=0;i<k;i++){
ans[i]=s[i];
}
ans[i]='.';
ans[i+1]='.';
ans[i+2]='.';
ans[i+3]='\0';
printf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216779/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216779/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 k=0;
int num=0;
char s[100]={0};
scanf("%d",&k);
scanf("%s",s);
for(int i=0;s[i]!='\0';i++){
num=i+1;
}
if(num<=k){
printf("%s",s);
}else{
for(int i=0;i<k;i++){
printf("%c",s[i]);
}
printf(".");
printf(".");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216829/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216829/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* B - ... (Triple Dots) */
#include <stdio.h>
#include <string.h>
int main(void){
char S[100], ans[100];
int K, i;
scanf("%d", &K);
scanf("%s", S);
if(strlen(S) <= K){
puts(S);
}else{
for(i = 0; i < K; i++){
putchar(S[i]);
if(i == K - 1){
puts("...");
}
}
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216872/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216872/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 T,i;
scanf("%d",&T);
for(i=1;i<=T;i++){
long long x,y,a,b;
scanf("%lld%lld%lld%lld",&x,&y,&a,&b);
long long m1,m2,min=0;
m1=(x+y)*a;
if(x<y)
min=x;
else
min=y;
y=x+y-min... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21693/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21693/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include<string.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main(){
int K;
char S[10010];
char ans[10010];
char dot[] = "..." ;
scanf("%d", &K);
scanf("%s",S);
strncpy(ans, S, K);
strcat(ans, dot);
int len = strlen(S);
if(len <= K){
printf("%s\n", S);
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216973/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216973/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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"
int main()
{
int i,j,k,n,len;
char a[100000];
scanf("%d",&n);
getchar();
scanf("%s",a);
len=strlen(a);
if(n<len)
{
for(i=0;i<n;i++)
printf("%c",a[i]);
printf("...");
}
else
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217015/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217015/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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
int main(void)
{
int k;
char s[101];
char S[105];
int i;
scanf("%d", &k);
scanf("%s", s);
int len = strlen(s);
if (len <= k)
{
printf("%s\n", s);
}
else
{
for... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217059/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217059/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
#include<ctype.h>
#include<assert.h>
#define MAX 100000
char input[MAX];
int stack_top;
double stack[MAX];
void push(double v) {
stack[stack_top++] = v;
}
double pop() {
return stack[--stack_top];
}
double getValue(int *ptr) {
double value = 0;
int minus = 0;
if( inpu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217123/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217123/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stack = dso_local local_un... |
#include <stdio.h>
int main()
{
int t,k;
scanf("%d",&t);
for(k=0;k<t;k++)
{
long long int price=0,x,y,a,b;
scanf("%lld%lld%lld%lld",&x,&y,&a,&b);
if(b<2*a)
{
if(x>=y)
price = y*b + a*(x-y);
else if(x<y)
price = x*b + a*(y-x);
}
else
{
price= a*(x+y);
}
printf("%lld\n",price);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21721/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21721/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
/*
* ID: ITP1_5_C
* Problem: draw checkerboad
*/
#include <stdio.h>
int main(void)
{
int height, width;
int i, j;
while (1) {
scanf("%d %d", &height, &width);
if (height == 0 && width == 0)
return 0;
for (i = 0; i < height; i++) {
for (j = 0; j < width... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217275/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217275/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h,w,x,y;
while(1){scanf("%d%d",&h,&w);
if(h==0&&w==0)break;
for(x=0;x<h;x++){
for(y=0;y<w;y++){
if((x+y)%2==0){printf("#");
} else{printf(".");
}
}printf("\n");
}
printf("\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217383/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217383/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,j;
int H,W;
for(;scanf("%d%d",&H,&W),H,W;){
for(i=0;i<H;i++){
for(j=0;j<W;j++){
if(i%2==0){
if(j%2==0){
printf("#");
}else{
printf(".");
}
}else{
if(j%2!=0){
printf("#");
}else{
printf(".");
}
}
}
prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217426/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217426/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 is_prime(int x){ // returns 0 if prime otherwise shorthest prime factor.
int i=2;
for(i=2;i*i<=x;i++){
if(x%i==0){
return i;
}
}
return 0;
}
int main(){
int n;
scanf("%d",&n);
int a[100001];
int i,j;
a[2]=1;
int x=1;
for(i=3;i<=n;i++){
j=is_prime(i);
if(j==0){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21747/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21747/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
scanf(" %d",&n);
long int a[2*n];
long int temp[1000001];
for(long int i=0;i<1000001;i++)
{
temp[i]=0;
}
long int max=0;
long int min=1000001;
int index=0;
for(int i=0;i<2*n;i++)
{
scanf(" %ld",&a[i]);
te... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21752/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21752/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 H,W,i,j;
do{
scanf("%d %d",&H,&W);
if(H == 0 && W == 0)
break;
for(i=1;i <= H;i++){
for(j=1;j <= W;j++){
if((i+j) % 2 == 0){
printf("#");
}
if((i+j) % 2 != 0){
printf(".");
}
if(j == W){
printf("\n");
}
}
}
pri... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217563/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217563/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 H, W, i, j;
while (scanf("%d%d", &H, &W) == 2 && (H || W)) {
for (i = 0; i < H; i++) {
for (j=0;j<W;j++) {
if ((i+j)%2) {
printf(".");
} else {
printf("#");
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217657/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217657/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 BubbleSort(int ara[], int n)
{
int i, j;
for(i = 0; i < n - 1; i++)
{
for(j = i + 1; j < n; j++)
{
if(ara[i] > ara[j])
{
int tmp = ara[i];
ara[i] = ara[j];
ara[j] = tmp;
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21770/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21770/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 H,W,i,j;
while(1)
{
scanf("%d %d",&H,&W);
if(H == 0 && W == 0) break;
for(i = 0; i < H; i++)
{
for(j = 0; j < W; j++)
{
if(i % 2 == 0 && j % 2 == 0) printf("#");
if(i % 2 == 0 && j % 2 == 1) printf(".");
if(i % 2 == ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217743/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217743/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W[100],H[100],i=0,j,k,l;
scanf("%d",&H[0]);
scanf("%d",&W[0]);
while((H[i]!=0)&&(H[i]!=0)){
++i;
scanf("%d",&H[i]);
scanf("%d",&W[i]);
}
for(j=0;j<i;++j){
for(k=0;k<H[j];++k){
for(l=0;l<W[j... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217787/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217787/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
int i,j,H,W;
do{
scanf("%d %d",&H,&W);
for(i=1;i<=H;i++){
for(j=1;j<=W;j++){
if((j%2!=0&&i%2!=0)||(i%2==0&&j%2==0)){
printf("#");
}
else{
printf(".");
}
}
printf("\n");
}
if(H!=0&&W!=0){
printf("\n");
}
}while(H!=0&&W!=0);
return... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217837/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217837/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 w,h,i,j;
while(1){
scanf("%d %d",&h,&w);
if(h==0 && w==0) break;
for(i=1;i<=h;i++){
if(i%2!=0){
for(j=1;j<=w;j++){
if(j%2!=0) printf("#");
else printf(".");
}
printf("\n");
}else{
for(j=1;j<=w;j++){
if(j%2!=0) printf(".");
else print... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217880/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217880/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 even_line(int w) {
int i;
for (i=0; i<w; i++) {
if (i%2 == 0) {
printf("#");
continue;
}
printf(".");
}
}
void odd_line(int w) {
int i;
for (i=0; i< w; i++) {
if (i%2 == 0) {
printf(".");
continue;
}
printf("#");
}
}
void draw(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217930/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217930/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str.3 = private unnamed_a... |
#include <stdio.h>
#include <string.h>
int main(void)
{
int W, H;
char buf[16], row[302], *p, tmp;
memset(row, '.', 301);
row[301] = 0;
for (p = row; p - row < 301; p += 2)
*p = '#';
while (1)
{
fgets(buf, 16, stdin);
sscanf(buf, "%d %d", &H, &W);
if (!(W | ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217974/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217974/source.c"
target datalayout = "e-m:e-p270: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 n;
scanf("%d",&n);
char a[1001][8]={0};
int i=0,j=0;
for(i=0;i<n;i++)
{
scanf("%s",a[i]);
}
int max=0;
for(i=0;i<7;i++)
{
int count=0;
for(j=0;j<n;j++)
{
if(a[j][i]=='1')count++;
}
if(count>max)max=count;
}
printf("%d\n",max);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21806/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21806/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <math.h>
int main(void)
{
int h, w;
int i, j;
for (;scanf("%d%d", &h, &w),h+w;){
for (i = 1; i <= h; i++){
for (j = 1; j <= w; j++)putchar((i+j)%2?'.':'#');
puts("");
}
puts("");
}
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218102/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218102/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 H,W;
scanf("%d %d",&H,&W);
while(!(H==0&&W==0)){
for(int i=0;i<H;i++){
for(int f=0;f<W;f++){
if((i%2==0&&f%2==0)||(i%2==1&&f%2==1))
printf("#");
else
printf(".");
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218160/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218160/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W,H;
while(scanf("%d %d\n", &H, &W)){
if(W == 0 && H == 0) return 0;
for (int i = 0 ; i < H; i++){
for (int j = 0; j < W; j++){
if ( (i % 2 == 0 && j % 2 == 0) || (i % 2 == 1 && j % 2 == 1))
printf("#");
else printf(".");
}
printf("\n");
}
printf("\n");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218247/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218247/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int H,W;
while(1){
scanf("%d %d",&H,&W);
if(H==0 && W==0){
break;
}
int i,j;
for(i=1;i<=H;i++){
for(j=1;j<=W;j++){
if((i+j)%2==0){
printf("#");
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218333/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218333/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 H[100],W[100],i,x,y,z,n;
for(i=1;i<=300;i++){
scanf("%d %d",&H[i],&W[i]);
if(H[i]==0&&W[i]==0){
break;
}
}
for(i=1;i<=300;i++){
if(H[i]==0&&W[i]==0){
break;
}
for(x=1;x<=H[i];x++){
for(y=1;y<=W[i];y++){
z=x+y;
if(z%2==0){
p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218391/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218391/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 PI 3.141592653589
int main()
{
int h,w,i,j;
while(1)
{
scanf("%d %d",&h,&w);
if(h == 0 && w == 0) break;
for(i = 0; i < h; i++)
{
for(j = 0; j < w; j++)
{
if((i+j) % 2 == 0) printf("#");
else printf(".");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218434/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218434/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
while(1){
scanf("%d %d",&a,&b);
if(a==0 && b==0){
break;
}
for(int i=0 ; i<a ; i++){
for(int j=0 ; j<b ; j++){
if(i%2==0){
if(j%2==0){
printf("#");
}
els... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218485/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218485/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){
while(1){
int i, j, h, w;
scanf(" %d %d", &h, &w);
if(h==0 && w==0) break;
for(i=0; i<h; ++i){
for(j=0; j<w; ++j){
if( (i+j)%2==0 ) printf("#");
else printf(".");
}
printf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218542/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218542/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 A,B,K;
scanf("%ld %ld %ld",&A,&B,&K);
if(A>=K){
A -=K;
}else if(A+B<K){
A=0;
B=0;
}else{
B -=K;
B +=A;
A=0;
}
printf("%ld %ld",A,B);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218586/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218586/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// B - Greedy Takahashi
#include <stdio.h>
typedef long long ll;
int main(void){
ll a, b, k;
scanf("%lld%lld%lld", &a, &b, &k);
if(k <= a) printf("%lld %lld\n", a-k, b);
else if(k <= a+b) printf("0 %lld\n", b-(k-a));
else printf("0 0\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218636/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218636/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
int main() {
long a, b, k;
scanf("%ld %ld %ld", &a, &b, &k);
if (a+b < k)
printf("0 0\n");
else if (a < k)
printf("0 %ld\n", a+b-k);
else
printf("%ld %ld\n", a-k, b);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218722/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218722/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
long long a,b,k;
scanf("%lld%lld%lld",&a,&b,&k);
while(a!=0&&k!=0){
a--;
k--;
}
if(k==0){
printf("%lld %lld\n",a,b);
return 0;
}
while(b!=0&&k!=0){
b--;
k--;
}
printf("%lld... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218780/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218780/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define REP(i,n) for(i=0;i<n;i++)
#define ll long long
//prototype declaration
int iin();
long long llin();
double din();
char cin();
void stin(char *s);
void iout(int i);
void llout(long long i);
void dout(double i);
voi... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218823/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218823/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 qsc(const void *x, const void *y) {
int a=*((int*)x);
int b=*((int*)y);
if(a>b)return 1;
if(a<b)return -1;
return 0;
}
int main(void) {
int N,M,p;
static int d[100000];
int i;
int answer;
int candidate;
if(scanf("%d%d%d",&N,&M,&p)!=3)return 1;
for(i=0;i<M;i++) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218867/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218867/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main.d = internal global [... |
#include <stdio.h>
int head(int a){
while(a > 9) a /= 10;
return a;
}
int main(void)
{
int N;
scanf("%d", &N);
int c[10][10];
for(int i = 0; i < 10; i++)
for(int j = 0; j < 10; j++)
c[i][j] = 0;
for(int i = 1; i <= N; i++) c[head(i)][i%10]++;
int ans = 0;
for(int i = 1; i < 10; i++)
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218917/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218917/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 lcm(int n1,int n2)
{
int min = (n1 > n2) ? n1 : n2;
while (1) {
if (min % n1 == 0 && min % n2 == 0)
return min;
++min;
}
return 0;
}
int main(){
int x,y;
scanf("%d",&x);
y=lcm(x,360)/x;
printf("%d",y);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218960/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218960/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 string[2010];
int start[2010];
int end[2010];
int tam;
void one_unit_core(int index)
{
start[index]++;
end[index]++;
int i=index-1;
int j=index+1;
while(i>=0 && j<tam)
{
if (string[i]!=string[j])
return;
start[i]++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21901/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21901/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@start = dso_local local_unna... |
#include <stdio.h>
#include <string.h>
int main(void){
int n;
char s[100+5], t[100+5];
scanf("%d", &n);
scanf("%s", s);
scanf("%s", t);
int ans=2*n;
for(int i=0; i<n; i++){
if(strncmp(s+i, t, n-i)==0){
ans=n+i;
break;
}
}
printf("%d\n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219068/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219068/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n,i,j,ret,l,corr,flg,max;
char s[128],t[128];
scanf("%d%*c",&n);
scanf("%s%*c",s);
scanf("%s%*c",t);
corr=0;
flg=0;
max=0;
for(i=0;i<n;i++){
if(s[i]==t[0]){
for(j=0;j<n;j++){
if(s[i+j]!=t[j]){
break;
}else{
corr++;
if(i+j==... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219118/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219118/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 chmax(p,q)(p<(q)?p=(q),1:0)
char s[500010];
int a[500010];
int main(){
scanf("%s",s);
int n=strlen(s);
long long ans=0;
for(int i=0;i<n;i++)if(s[i ]=='<')chmax(a[i+1],a[i]+1);
for(int i=n;i>0;i--)if(s[i-1]=='>')chmax(a[i-1],a[i]+1);
for(int i=0;i<=n;i++)ans+=a[i];
pr... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219176/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219176/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 int long long
signed compair(const void *a, const void *b){
int sub = *(int *)a - *(int *)b;
if(sub < 0){
return -1;
}
else if(sub == 0){
return 0;
}
else{
return 1;
}
}
int ABS(int a){
return a >= 0 ? a : -a;
}
int min(int a, int b){
return a <= b ? a : ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219219/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219219/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
float d,h,v , e;
scanf("%f",&d);
scanf("%f",&h);
scanf("%f",&v);
scanf("%f",&e);
float pi = 3.14159265;
float count = (4*v) / ( pi * d * d) ;
if( count > e)
{
printf("YES\n");
printf("%f",h/(count - e));
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21927/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21927/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 deduction,poll_sum=0,winner_poll=0,athlete_sum,winner_num,poll,i;
while(1){
scanf("%d %d %d",&athlete_sum, &winner_num, &deduction);
poll_sum=0;
winner_poll=0;
if(athlete_sum==0 && winner_num==0 && deduction==0)break;
for(i=1;i<=athlete_sum;i++){
scanf("%d",&poll);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219312/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219312/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 M 100
int main(){
int i, n, m, p, a, x, sum, ans;
while(1){
scanf("%d %d %d", &n, &m, &p);
if(n == 0 && m == 0 && p == 0) break;
for(i=0, sum=0; i<n; i++){
scanf("%d", &a);
sum += a;
if(i == m-1) x = a;
}
if(x == 0){
printf("0\n");
}else{... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219363/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219363/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[4];
scanf("%s",s);
if(s[0]==s[2])printf("Yes\n");
else printf("No\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219420/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219420/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
char s[10];
scanf("%s",s);
if(s[0]==s[2]){printf("Yes");}
else{printf("No");}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219471/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219471/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
b=a/100;//100 no kurai
if(b==a%10){printf("Yes");}
else{printf("No");}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219514/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219514/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
int main(){
int num;
scanf("%d",&num);
if(num%10==num/100)printf("Yes\n");
else printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219558/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219558/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
while(~scanf("%d",&n))
{
if(n/100==n%10)
printf("Yes\n");
else printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219608/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219608/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int n,i, r, m;
int a[3];
int ans;
scanf("%d",&n);
r = n;
for(i = 0; i<3; i++){
a[i] = r%10;
r = (r-a[0])/10;
}
m = a[2]+10*a[1]+100*a[0];
if(n ==m){
printf("Yes\n");
}
else{
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219659/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219659/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define BIG 2000000007
#define MOD 1000000007
typedef unsigned long long ull;
typedef signed long long sll;
#define N_MAX 100
#define M_MAX 20
ull n, m, k;
ull h, w;
ull a[N_MAX];
// ull b[M_MAX][N_MAX];
ull dp[N_MAX][M_MAX + 1];
// cha... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219701/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219701/source.c"
target datalayout = "e-m:e-p270: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 global i64 0... |
#include <stdio.h>
int main (){
int d,e,f,semdesconto,valorfinal;
int a[112345], b[112345], c[112345][3];
scanf("%d%d%d", &d,&e,&f);
scanf("%d", &a[0] );
int menor=a[0]; //pegando os menores valores para fazer um valor minimo sem desconto.
for (int i = 1; i < d; i++){
scanf("%d", &a[i] )... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219745/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219745/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
static int aa[100005],bb[100005],x[100005],y[100005],cc[100005];
static int aaa[100005],bbb[100005];
int cmp(const void *a,const void *b){
if(*(int*)a>*(int*)b){return 1;}
else if(*(int*)a<*(int*)b){return -1;}
else {return 0;}
}
int main(void){
int ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219789/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219789/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 k, x, i;
scanf("%d%d",&k,&x);
for(i=1;i<=k*2-1;i++){
printf("%d ",x-k+i);
}
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219831/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219831/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 k,x,a=-1000000,b=1000000,i;
scanf("%d%d",&k,&x);
for(i=x-k+1;i<=x+k-1;i++){
printf("%d ",i);
}
printf("\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219875/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219875/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 K,X,a,b,c;
scanf("%d %d",&K,&X);
if(1<=K && K <=100 && 0<=K && K <=100)
{
a = X;
b = a - K + 1;
c = a + K - 1;
for(;b <= c;b++)
{
printf("%d ",b);
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219918/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219918/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdint.h>
#include <string.h>
#include <memory.h>
#include <math.h>
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
#define MIN(a, b) (((a) > (b)) ? (b) : (a))
#define SWAP(t, a, b) do{t c = a; a = b; b = c;}while(0)
int main (int argc, char **argv)
{
int64_t k = 0;
in... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219961/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219961/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int a, b, c;
scanf("%d %d", &a, &b);
for (c=0; c<2*a-1; c++){
printf("%d ", b-a+c+1);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220002/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220002/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 k, x;
scanf("%d%d", &k, &x);
for (int i = x - k + 1; i <= x + k - 1; i++ ) {
printf("%s%d", i == x - k + 1 ? "" : " ", i);
}
putchar('\n');
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220046/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220046/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
char c;
int h,m,n,a,b;
int main(int argc, char *argv[]) {
scanf("%d%c%d%d",&h,&c,&m,&n);
a=n/60;
n%=60;
h+=a;
m+=n;
if(m>=60)
{h++;m%=60;}
h%=24;
if(h>=10&&m>=10)printf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22009/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22009/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <string.h>
#define MAX 100010
// int ans[MAX] = {};
int main() {
int K, X;
scanf("%d %d", &K, &X);
int hidari, migi;
hidari = X - K;
migi = X + K;
if(hidari < -1000000) hidari = -1000000;
if(migi > 1000000) migi = 1000000;
int tmp = hidari;
for(in... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220132/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220132/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 k,x;
scanf("%d %d",&k,&x);
for(int i=x+1-k;i<x+k;i++){
if(i==x+k-1){
printf("%d\n",i);
}else{
printf("%d ",i);
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220176/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220176/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 d,m,n,ave,sum=0;
scanf("%lf %lf %lf",&n,&m,&d);
sum=2*n-2*d;
if(d==0)
sum/=2;
sum/=n;
sum/=n;
sum*=(m-1);
printf("%.10f\n",sum);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220226/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220226/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 hh, mm, a, mstore, hstore, tmin;
scanf("%I64d : %I64d", &hh, &mm);
scanf("%I64d", &a);
tmin = (hh*60)+mm;
tmin+=a;
hh = tmin/60;
mm = tmin%60;
hh = hh%24;
if(hh <= 9) {
printf("0%I64d", hh);
}
else {
printf("%I64d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22027/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22027/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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){
}
Node treeMaximum(Node x){
}
Node treeSearch(Node u, int k){
if(u == NIL || k == u->key)
ret... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220312/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220312/source.c"
target datalayout = "e-m:e-p270: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>
#define max_order 500001
#define max_str 100
typedef struct{
int key, left, right;
}Node;
Node tree[max_order];
int size;
void insert(int x){
int p = 0;
while(1){
if(x < tree[p].key){
if(tree[p].left == -1){
tree[p].left = size;
tree[size++].key ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220356/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220356/source.c"
target datalayout = "e-m:e-p270: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<math.h>
int main()
{
int t,n,x,ans;
scanf("%d",&t);
while(t--)
{ scanf("%d",&n);
x=(n/2)+1;
ans=(pow(2,x)-2);
printf("%d\n",ans);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2204/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2204/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
//int count =0;
//int count2 =0;
Node treeMinimum(Node x){
while (x->left != NIL){
x = x->left;
}
return x;
}
Node Iterati... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220442/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220442/source.c"
target datalayout = "e-m:e-p270: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>
typedef struct Node {
struct Node *parent;
struct Node *left;
struct Node *right;
int key;
} node;
void preOrder(node *);
void inOrder(node *);
void insert(int);
node *find(int, node *);
node *root;
int n;
int main() {
int i, j, key;
char command[7];
scanf("%d", &n);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220486/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220486/source.c"
target datalayout = "e-m:e-p270: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 <string.h>
struct node{
int key;
struct node *parent;
struct node *left;
struct node *right;
} ;
int flag = 0;
typedef struct node Node;
Node *root, *NIL;
void Insert(int);
void Inorder(Node *);
void Preorder(Node *);
void Find(Node *, int);
int main()
{
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220529/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220529/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { i32, ... |
#include <stdio.h>
int main()
{
int hh,mm,a,h,m;
scanf("%d:%d",&hh,&mm);
scanf("%d",&a);
h=a/60;
m=a%60;
hh=hh+h;
mm=mm+m;
if(mm>=60)
{
mm=mm-60;
hh++;
}
if(hh>=24)
{
hh=hh%24;
}
printf("%d%d:%d%d\n",hh/10,hh%10,mm/10,mm%10);
return... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22058/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22058/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.