Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
// AOJ 2134: Deadly Dice Game
// 2017.11.9 bal4u@uu
#include <stdio.h>
#include <string.h>
double a[2002][2002];
char buf[2002], *bp;
int getint()
{
int n = 0;
while (*bp >= '0') n = (n<<3) + (n<<1) + (*bp++ & 0xf);
return n;
}
int main()
{
int n, t, i, j, ii, jj, k;
double p, ans;
while (fgets(bp=buf, 20, ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_98541/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98541/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@bp = dso_local local_unnamed... |
#include <stdio.h>
int main(void) {
long int a[26],n,k,i,c[26];
scanf("%ld %ld",&n,&k);
char b[n+1];
scanf("%s",b);
for(i=0;i<26;i++)
{ a[i]=0;
c[i]=0;
}
for(i=0;i<n;i++)
{
a[b[i]-65]++;
}
for(i=0;i<n;i++)
{
a[b[i]-65]--;
if(c[b[i]-65]=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_986/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_986/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr cons... |
#include <stdio.h>
int main(){
int X,Y,Z;
scanf("%d %d %d",&X,&Y,&Z);
int T;
T=X;
X=Z;
Z=Y;
Y=T;
printf("%d %d %d\n",X,Y,Z);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_98642/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98642/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,k;
scanf("%d %d %d", &a, &b, &c);
k=a;a=b;b=k;
k=a;a=c;c=k;
printf("%d %d %d", a, b, c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_98686/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98686/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,Z,temp,temp2;
scanf("%d%d%d",&X,&Y,&Z);
temp=X;
X=Y;
Y=temp;
temp2=X;
X=Z;
Z=temp2;
printf("%d %d %d\n",X,Y,Z);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_98729/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98729/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main (void){
int a,b,c;
int tmp;
scanf("%d %d %d",&a,&b,&c);
tmp=a;
a=b;
b=tmp;
tmp=a;
a=c;
c=tmp;
printf("%d %d %d",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_98772/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98772/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,z,temp;
scanf("%d %d %d", &x, &y, &z);
temp = y;
y = x;
x = temp;
temp = z;
z = x;
x = temp;
printf("%d %d %d\n", x,y,z);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_98815/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98815/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, Z;
scanf("%d %d %d", &X, &Y, &Z);
printf("%d %d %d\n", Z, X, Y);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_98859/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98859/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
int main(void){
int X;
scanf("%d",&X);
int Y;
scanf("%d",&Y);
int Z;
scanf("%d",&Z);
printf("%d %d %d",Z,X,Y);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_98901/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98901/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void){
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
printf("%d %d %d",c,a,b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_98945/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98945/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(void) {
int a,b,c;
scanf("%d %d %d",&a,&b,&c );
printf("%d %d %d",c,a,b );
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_98989/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98989/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,z;
scanf("%d %d %d", &x,&y,&z);
printf("%d %d %d",z,x,y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99030/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99030/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,ar,br,cr;
scanf("%d%d%d",&a,&b,&c);
ar = c;
br = a;
cr = b;
printf("%d %d %d", ar, br, cr);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99074/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99074/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,z=0;
scanf("%d",&x);
scanf("%d",&y);
scanf("%d",&z);
printf("%d %d %d",z,x,y);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99117/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99117/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,z,t;
scanf("%d %d %d",&x,&y,&z);
t=x;
x=y;
y=t;
t=x;
x=z;
z=t;
printf("%d %d %d",x,y,z);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99160/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99160/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,z;
scanf("%d %d %d",&x,&y,&z);
printf("%d %d %d",z,x,y);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99210/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99210/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(void){
int A,B,C;
scanf("%d %d %d",&A,&B,&C);
printf("%d %d %d",C,A,B);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99254/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99254/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 d;
scanf("%d", &d);
printf("Christmas");
for (int i = 0; i < 25 - d; ++i) {
printf(" Eve");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99298/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99298/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
scanf("%d",&a);
switch(a){
case 25:
printf("Christmas\n");
break;
case 24:
printf("Christmas Eve\n");
break;
case 23:
printf("Christmas Eve Eve\n");
break;
case 22:
printf("Christmas Eve Eve Eve\n");
break;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99348/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99348/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 d;
scanf("%d",&d);
if(d==25){
printf("Christmas");
}else if(d==24){
printf("Christmas Eve");
}else if(d==23){
printf("Christmas Eve Eve");
}else if(d==22){
printf("Christmas Eve Eve Eve");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99391/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99391/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 day;
char ans;
scanf("%d",&day);
if(day==22) printf("Christmas Eve Eve Eve");
else if(day==23) printf("Christmas Eve Eve");
else if(day==24) printf("Christmas Eve");
else printf("Christmas");
//printf("%s",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99441/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99441/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 i,n;
scanf("%d",&n);
printf("Christmas");
for(i = 0;i < 25 - n;i++){
printf(" Eve");
}
printf("\n");
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99485/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99485/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 d = 0;
scanf("%d",&d);
switch(d)
{
case 22:
printf("Christmas Eve Eve Eve");
break;
case 23:
printf("Christmas Eve Eve");
break;
case 24:
printf("Christmas Eve");
break;
case 25:
printf("Christmas");
break... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99535/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99535/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<string.h>
#include<ctype.h>
#include<math.h>
#include<stdlib.h>
int main(void){
int D;
scanf("%d", &D);
int offset = 25 - D;
printf("Christmas");
for (int i=0; i<offset; i++) {
printf(" Eve");
}
printf("\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99579/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99579/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 str[21],tmp[21];
int n;
int i;
scanf("%d",&n);
scanf("%s",&str);
for(i=0;i<n;i++){
scanf("%s",&tmp);
if(strcmp(str,tmp)>=0){
strcpy(str,tmp);
}
}
printf("%s\n",str);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99636/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99636/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<string.h>
int main(void){
int N,i;
char w1[21],w2[21];
scanf("%d",&N);
scanf("%s",w1);
for(i=0;i<N;i++){
scanf("%s",w2);
if(strcmp(w1,w2)>=0){
strcpy(w1,w2);
}
}
printf("%s\n",w1);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99694/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99694/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <string.h>
int main(void)
{
int n,i;
char a1[21],a2[21];
scanf("%d",&n);
scanf("%s",a1);
for(i=0;i<n-1;i++)
{
scanf("%s",a2);
if(strcmp(a1,a2) > 0)
{
strcpy(a1,a2);
}
}
printf("%s\n",a1);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99737/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99737/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 (21) // \0(ナル文字)が入ってはいけないので21
int main (int argc, const char * argv[]) {
int i,n;
char a[MAX], b[MAX];
int num;
scanf("%d", &n);
for (i=0; i<n; i++){
if (i==0) {
scanf("%s", a); //aに文字列の入力
continue; // 単語入力を繰り返す
}else {
scanf("%s", b); //bに... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99809/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99809/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 M,D,S=0;
scanf("%d %d",&M,&D);
for(int i=1;i<=M;i++){
for(int j=22;j<=D;j++){
int d1=j%10;
int d2=(j/10)%10;
if(d1>=2 && d2>=2 && i==d1*d2){
S++;
}
}
}
printf("%d\n",S);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99852/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99852/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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){
// Your code here
int M,D,count=0,a,b;
scanf("%d%d",&M,&D);
for(int i=2;i<=D;i++){
a=i/10;
b=i%10;
if(i/10!=1&&i%10!=1){
if(4<=a*b&&a*b<=M){
count++;
}
}
}
printf("%d",count);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99896/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99896/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 m, d;
int count = 0;
scanf("%d %d", &m, &d);
for(int i = 1; i <= m; i++){
for(int j = 20; j <= d; j++){
if(j % 10 >= 2 && j / 10 * (j % 10) == i){
count++;
}
}
}
printf("%d\n", count);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99946/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99946/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main()
{
char c;
int d=0,i;
int a[26]={};
while((c=getchar())!='}')
{
if(c>='a' && c<='z')
++a[c-'a'];
}
for(i=0;i<26;i++)
{
if(a[i])
d++;
}
printf("%d",d);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_9999/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_9999/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include <stdio.h>
int main() {
int a, b, i, j;
while(1) {
scanf("%d%d", &a, &b);
if(a == 0 && b == 0) break;
for(i=0; i < a; i++) {
for(j=0; j < b; j++) {
if(i == 0 || i == a-1) printf("#");
else if(j == 0 || j == b-1) printf("#");
else printf(".");
}
printf("\n");
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100043/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100043/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, j;
while(1){
scanf("%d %d", &x, &y);
if(x == 0 && y == 0)break;
for(i = 0; i < x; i++){
for(j = 0; j < y; j++){
if(i == 0 || i == x - 1){
for(j = 0; j < y; j++){
printf("#");
}printf("\n");
}else if(j == 0){
printf("#");
}else if(j ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100094/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100094/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
register int i,s;
while(1){
scanf("%d %d",&H,&W);
if((H == 0) & (W == 0)){
break;
}
for(i = 0;i < H;i++){
for(s = 0;s < W;s++){
if(((i == 0) | (i == (H - 1))) | (((s == 0) | (s == (W - 1))))){
printf("#");
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100144/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100144/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,h,w;
while(1){
scanf("%d%d",&h,&w);
if(h == 0 && w == 0) break;
for(i=0;i<w;i++)
putchar('#');
putchar('\n');
for(j=0;j<h-2;j++){
putchar('#');
for(i=0;i<w-2;i++)
putchar('.');
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100188/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100188/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(1){
scanf("%d %d",&H,&W);
if(H==0&&W==0) break;
for(i=0;i<W;i++){
printf("#");
}
printf("\n");
for(i=0;i<(H-2);i++){
printf("#");
for(j=0;j<(W-2);j++){
printf(".");
}
printf("#");
printf("\n");
}
for(i=0;i<W;i++){
printf("#");... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100230/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100230/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 read(int *a)
{
int h,w;
scanf("%d %d", &h, &w);
if(h == 0 && w == 0)
return 0;
a[0] = h; a[1] = w;
return 1;
}
void printFrame(int *a)
{
int i, j;
for(i=0;i<a[0];i++) {
if(i == 0 || i == a[0]-1) {
for(j=0;j<a[1];j++)
putc... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100274/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100274/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(1){
scanf("%d %d",&H,&W);
if(H==0 &&W==0)
break;
for(i=0;i<H;i++){
if(i==0 || i==H-1){
for(j=0;j<W;j++)
printf("#");
}
else{
printf("#");
for(j=1;j<W-1;j++)
p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100317/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100317/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 w,h,i,j;
do{
scanf("%d %d",&h,&w);
for(i=1;i<=h;i++){
for(j=1;j<=w;j++){
if(i==1 || i==h || j==1 || j==w)
putchar('#');
else
putchar('.');
}
putchar('\n');
}
if(w!=0 || h!=0)
putchar('\n');
}while(w!=0 && h!=0);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100368/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100368/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int i, j;
scanf("%d%d", &h, &w);
while(h!=0 || w!=0){
for(i=0; i<h; i++){
for(j=0; j<w; j++){
if(i==0 || j==0 || i==h-1 || j==w-1){
printf("#");
}
else{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100410/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100410/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,h2;
int i,j,k;
while(1){
scanf("%d %d",&h,&w);
if(h==0&&w==0) break;
h2=h-2;
for(i=0;i<h;i++){
for(j=0;j<w;j++){
if(i==0||i==h-1)printf("#");
else{
if(j==0||j==w-1)printf("#");
else{printf(".");}
}
}
printf("\n");
}
print... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100461/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100461/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int 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>0&&i<H-1){
if(j>0&&j<W-1){
printf(".");
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100504/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100504/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d",&h,&w);
while((h != 0) || (w != 0)){
for(i=0;i<h;i++){
if((i == 0) || (i == h-1)){
for(j=0;j<w;j++){
printf("#");
}
printf("\n");
}else{
for(j=0;j<w;j++){
if((j == 0) || (j == w-1)){
printf("#");
} else{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100548/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100548/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,j;
while(1){
scanf("%d",&a);
scanf("%d",&b);
if(a==0 && b==0){
break;
}
else{
for ( i=0; i < a; i++ ){
for ( j=0; j < b; j++ ){
if(i==0||i==a-1||j==0||j==b-1) printf("#");
else printf(".");
}
printf("\n");
}
}
printf("\n");
}
re... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100599/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100599/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 H,W, i, s;
for(;;)
{
scanf("%d %d", &H, &W);
if( H == 0 && W == 0) break;
for(i = 1; i<= H; i++)
{
printf("#");
for(s= 2; s<= W; s++)
{
if(i ==1 || i == H || s == W){
printf("#");
} else {
printf("."... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100641/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100641/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h; int w;
scanf("%d %d", &h,&w);
while (h!=0&&w!=0){
for(int i=0;i<h;i++){
for(int j=0;j<w;j++){
if(!i||!j||i==h-1||j==w-1){
printf("#");
}else{
printf(".");
}
}
puts("");
}
puts("");
scanf("%d %d", &h,&w);
}
return 0;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100779/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100779/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,u;
while(1){
scanf("%d %d",&H, &W);
if(H==0 && W==0) break;
for(i=0;i<H;i++){
for(u=0;u<W;u++){
if(i==0 || i==H-1 || u==0 || u==W-1){
printf("#");
}else{
p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100821/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100821/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 printFrame(int,int);
int main(void)
{
int w,h;
for(;;)
{
scanf("%d%d",&h,&w);
if(h==0&&w==0) break;
printFrame(h,w);
}
return 0;
}
void printFrame(int h,int w)
{
int i,j;
for(i=0;i<h;i++)
{
for(j=0;j<w;j++)
{
if(i==0||i==h-1||j==0||j... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100865/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100865/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,j;
while(1){
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==1 || i==h || j==1 || j==w)
printf("#");
else
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100908/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100908/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
while(1){
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==1 || j==1 || i==H || j==W){
printf("#");
}
else{
printf(".");
}
}
puts("");
}
puts("");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100951/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100951/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* ファイル名:ITP1_5_B.c */
/* 内容:たてH cm よこ W cm の枠を描く */
/* 枠の端は'#'で、枠の中は'.'で描く */
/* include */
#include <stdio.h>
/* 外部変数宣言 */
/* プロトタイプ宣言 */
/* 関数名:main */
/* 処理内容:たてH cm よこ W cm の枠を描く */
int main( void )
{
/* 内部変数定義 */
/* 入力 */
int H; /* たて */
int W; /* よこ */
/*処理*/
int i; /* ループ用変数1 */
int j; /* ループ用変... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100995/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100995/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int i, j;
while(1) {
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 == 1 || i == h || j == 1 || j == w) printf("#");
else printf(".");
}
printf("\n");
}
printf("\n");
}
return 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101044/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101044/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a[1000][2],i=0,j=0,x=0,k;
while(1){
scanf("%d %d", &a[x][0], &a[x][1]);
if(a[x][0]==0&&a[x][1]==0)break;
x++;
}
for(i=0;i<x;i++){
for(j=0;j<a[i][0];j++){
if(j==0||j==a[i][0]-1){
for(k=0;k<a[i][1];k+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101088/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101088/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,j,a;
while(1){
scanf("%d %d",&H,&W);
if(H==0 && W==0) break;
for(i=0; i<W;i++) putchar('#');
putchar('\n');
for(j=1; j<H-1;j++){
putchar('#');
for(i=1; i<W-1;i++) putchar('.');
puts("#");
}
for(i=0; i<W;i++) putchar('#');
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101268/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101268/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int i, j;
while (1) {
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 == 1 || i == h || j == 1 || j == w) {
printf("#");
}
else {
printf(".");
}
}
printf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101318/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101318/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int 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(j==0||j==W-1||i==0||i==H-1){
printf("#");
}else{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101361/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101361/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//set many funcs template
//Ver.20181228
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int min(int a,int b){i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101419/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101419/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 2149
Luck Manipulator
2015.4.26
*/
#include<stdio.h>
int calc(int reel, int a, int b, int c, int init_random)
{
int i, total_flames, random_num = init_random, target_number[100] = {0};
for(i = 0; i < reel; i++)
{
scanf("%d", &target_number[i]);
}
for(total_flames = 0, i = 0; ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101462/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101462/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 max(rhs,lhs) ((rhs)>(lhs)?(rhs):(lhs))
int fn(const void *a,const void *b){
return *(long*)a == *(long*)b ? 0 : *(long*)a < *(long*)b ? -1 : 1;
}
int rfn(const void *a,const void *b){
return -fn(a,b);
}
int main(void){
register int i;
int n;
long long ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101527/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101527/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <memory.h>
typedef struct tagNode Node;
struct tagNode {
void *value;
Node *next;
};
typedef struct tagEdge Edge;
struct tagEdge {
int to;
int distance;
};
void list_init(Node *list)
{
list->next = NULL;
}
void list_clear(Node *list)
{
Node *nod... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101570/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101570/source.c"
target datalayout = "e-m:e-p270: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.tagNode = type { pt... |
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <limits.h>
#include <stdbool.h>
#define inf (INT_MAX-1)
#define INF 9223372036854775807;
#define PI 3.14159265358979323846;
#define EPS 1e-10
#define sq(n) ((n)*(n))
#define rep(i,n) for(i=0;i<n;i++)
#d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101613/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101613/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@mod = dso_local local_unna... |
#include <stdio.h>
#include <ctype.h>
unsigned long long tomorinao(void) {
unsigned long long utidamaaya = 0;
int kokoa;
for(;;) {
kokoa = getchar();
if (kokoa == EOF || !isdigit(kokoa)) break;
utidamaaya = utidamaaya * 10 + (kokoa - '0');
}
return utidamaaya;
}
int main(void) {
unsigned long long ayaneru... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101657/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101657/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,j,sum=0;
scanf("%d",&n);
int a[n];
for(i=0;i<n;i++) scanf("%d",&a[i]);
for(i=0;i<n;i++){
for(j=i+1;j<n;j++){
sum+=a[i]*a[j];
}
}
printf("%d",sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101707/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101707/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int N;
scanf("%d",&N);
int arr[N];
for (int i=0;i<N;i++)
scanf("%d",&arr[i]);
int sum=0;
for (int i=0;i<N;i++)
{
for (int j=i+1;j<N;j++)
{
sum+=arr[i]*arr[j];
}
}
printf("%d",sum);
return EXIT_SUCCESS;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101750/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101750/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
int main(void) {
int n,d[100];
int i,j;
int sum=0;
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &d[i]);
}
for (i = 0; i < n; i++) {
for (j = i + 1; j < n; j++) {
sum = sum + d[i] * d[j];
}
}
printf("%d", sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101794/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101794/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N, d[M], i, j, sum = 0;
scanf("%d", &N);
for (i = 0; i < N; i++)
{
scanf("%d", &d[i]);
}
for (i = 0; i < N-1; i++)
{
for (j = i+1; j < N; j++)
{
sum += d[i] * d[j];
}
}
printf("%d", sum);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101837/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101837/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, sum, a[100];
scanf("%d", &n);
for(int i = 0; i < n; i++){
scanf("%d", &a[i]);
}
for(int i = 0; i < n; i++){
for(int j = i+1; j < n; j++){
sum += a[i] * a[j];
}
}
printf("%d", sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101880/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101880/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k=0;
int N;
scanf("%d",&N);
int A[N];
for(i=0;i<N;i++)
scanf("%d ",&A[i]);
for(i=0;i<N-1;i++){
for(j=i+1;j<N;j++){
k+=A[i]*A[j];
}
}
printf("%d\n",k);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101923/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101923/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 how_many;
scanf("%d", &how_many);
int takos[how_many];
for (int i = 0; i < how_many; i++) {
scanf("%d", &takos[i]);
}
int total = 0;
for (int i = 0; i < how_many; i++) {
for (int j = i+1; j < how_many; j++) {
total += tako... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101967/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101967/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, j, sum=0;
scanf("%d",&n);
int a[n];
for(i=0; i<n; i++)
{
scanf("%d", &a[i]);
}
for(i=0; i<n; i++)
{
for(j=i+1; j<n; j++)
{
sum += a[i]*a[j];
}
}
printf("%d\n", sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102009/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102009/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 d[n];
for(int i=0;i<n;i++)scanf("%d",&d[i]);
long long int rslt = 0;
for(int i=0;i<n-1;i++){
for(int j=i+1;j<n;j++){
rslt += d[i]*d[j];
}
}
printf("%lld\n",rslt);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102052/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102052/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 26
struct Node { int v, a, b; };
struct Node G[MAX];
int N,i,l,r,p;
char S[4][100]={"Preorder","Inorder","Postorder"};
void pre(int n)
{
if(n==-1)return;
printf(" %d",n);
pre(G[n].a);
pre(G[n].b);
return;
}
void ino(int n)
{
if(n==-1)return;
ino(G[n].a);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102096/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102096/source.c"
target datalayout = "e-m:e-p270: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>
#define MAX 10000
#define NIL -1
struct Node{
int p;
int l;
int r;
};
struct Node T[MAX];
int n;
void preparse(int); /* 先行順巡回 */
void inparse(int); /* 中間順巡回 */
void postparse(int); /* 後行順巡回 */
int main(){
int i, v, l, r, root;
scanf("%d", &n);
for(i=0; i<n; i++){
T[i].p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102153/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102153/source.c"
target datalayout = "e-m:e-p270: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>
struct Node{
int p;
int l;
int r;
};
int n;
struct Node T[10001];
void preParse(int a){
if(a==-1){
return;
}
printf(" %d",a);
preParse(T[a].l);
preParse(T[a].r);
}
void inParse(int b){
if(b==-1){
return;
}
inParse(T[b].l);
printf(" %d", b);
inParse(T[b].r);
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102197/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102197/source.c"
target datalayout = "e-m:e-p270: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>
#define MAX 10000
#define NIL -1
typedef struct node {
int p;
int L;
int r;
} Node;
Node T[MAX];
int n;
void Preorder( int u );
void Inorder( int u );
void Postorder( int u );
int main() {
int i, v, L, r, root;
scanf( "%d", &n );
for ( i = 0; i < n; i++ ) {
T... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102261/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102261/source.c"
target datalayout = "e-m:e-p270: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>
#define MAX 10000
#define NIL -1
struct Node { int p, l, r; };
struct Node T[MAX];
int n;
// ???????????????
void preParse(int u) {
if (u == NIL) return;
printf(" %d", u);
preParse(T[u].l);
preParse(T[u].r);
}
// ???????????????
void inParse(int u) {
if (u == NIL ) return;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102304/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102304/source.c"
target datalayout = "e-m:e-p270: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>
#define MAX 10000
#define NIL -1
struct Node {int p, l ,r;};
struct Node T[MAX];
int n;
void preParse(int u)
{
if ( u == NIL ) return;
printf(" %d",u);
preParse(T[u].l);
preParse(T[u].r);
}
void inParse(int u)
{
if(u == NIL) return;
inParse(T[u].l);
printf(" %d",u);
inParse(T[u].r);
}
void postPar... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102348/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102348/source.c"
target datalayout = "e-m:e-p270: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>
#define MAX 25
#define NIL -1
typedef struct Node_
{
int parent;
int left;
int right;
} Node;
Node Tree[MAX];
static void preOrder(int i)
{
if (i == NIL)
return;
printf(" %d", i);
preOrder(Tree[i].left);
preOrder(Tree[i].right);
}
static void inOrder(int i)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102391/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102391/source.c"
target datalayout = "e-m:e-p270: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>
struct Node {int p,l,r;};
struct Node T[100005];
int n;
void pre(int u){
if(u==-1) return;
printf(" %d",u);
pre(T[u].l);
pre(T[u].r);
}
void in(int u){
if(u==-1) return;
in(T[u].l);
printf(" %d",u);
in(T[u].r);
}
void post(int u){
if(u==-1) return;
post(T[u].l);
post(T[u]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102441/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102441/source.c"
target datalayout = "e-m:e-p270: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>
#define N 25
#define NE -1
struct node{
int p;
int left;
int right;
};
struct node tree[N];
void mae(int);
void In(int);
void Post(int);
int main(){
int i, n, num, left, right, root, p[N];
scanf("%d",&n);
for(i=0;i<n;i++){
p[i]=0;
}
for(i=0;i<n;i++){
scanf("%d %d %d", &... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102485/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102485/source.c"
target datalayout = "e-m:e-p270: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>
#define MAX 10000
#define NIL -1
struct Node {int p, l, r;};
struct Node T[MAX];
int h;
void preparse(int u) {
if(u == NIL) return;
printf(" %d",u);
preparse(T[u].l);
preparse(T[u].r);
}
void inparse(int u) {
if(u == NIL) return;
inparse(T[u].l);
printf(" %d",u);
inparse(T[u].r);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102535/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102535/source.c"
target datalayout = "e-m:e-p270: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>
#define MAX 10000
#define NIL -1
struct Node{
int parent;
int left;
int right;
};
struct Node T[MAX];
int n;
void preParse(int);
void inParse(int);
void postParse(int);
int main()
{
int i,v,l,r,root;
scanf("%d",&n);
for(i = 0; i < n; i++){
T[i].parent = NIL;
}
for(i = 0; i < n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102586/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102586/source.c"
target datalayout = "e-m:e-p270: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>
#define MAX 10000
#define NIL -1
struct Node {int p, l, r;};
struct Node T[MAX];
int n;
/* 先行順巡回 */
void preParse(int u) {
if(u == NIL) return;
printf(" %d",u);
preParse(T[u].l);
preParse(T[u].r);
}
/* 中間順巡回 */
void inParse(int u) {
if(u == NIL) return;
inParse(T[u].l);
printf(" %d"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102629/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102629/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include<stdio.h>
#include<stdlib.h>
struct node{
int right;
int left;
int parent;
};
typedef struct node Node;
#define NIL -1
Node T[25];
void preorder(int u){
if(u==NIL)return;
printf(" %d",u);
preorder(T[u].left);
preorder(T[u].right);
}
void inorder(int u){
if(u==NIL)return;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102672/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102672/source.c"
target datalayout = "e-m:e-p270: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>
#define MAX 10000
#define NIL -1
typedef struct{
int p, l, r;
}Node;
Node T[MAX];
int n;
//先行順巡回
void preParse(int u){
if(u == NIL) return;
printf(" %d",u);
preParse(T[u].l);
preParse(T[u].r);
}
//中間順巡回
void inParse(int u){
if(u == NIL) return;
inParse(T[u].l);
printf(" %d",u);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102715/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102715/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
typedef struct{
int p;
int r;
int l;
int s;
} Node;
int flag;
int hfunc(Node *,int,int);
void pre(Node *,int);
void in(Node *,int);
void pos(Node *,int);
int main(){
int n,i,j,degree,point,c1,c2,depth=0,sum=0,height,root=0;
Node T[25];
for(i=0;i<2... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102759/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102759/source.c"
target datalayout = "e-m:e-p270: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>
struct Tree
{
int o;
int left;
int right;
};
struct Tree T[10000000];
void preorder(int u)
{
if (u == -1) {
return;
}
else {
printf(" %d",u);
preorder(T[u].left);
preorder(T[u].right);
}
}
void inorder(int u)
{
if (u == -1) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102801/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102801/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Tree = type { i32, ... |
#include<stdio.h>
#include<stdlib.h>
#define N 10000
#define NIL -1
#define O 0
struct Node{
int p,l,r;
};
struct Node T[N];
int n;
void preOrder(int u){
if(u==NIL){
return;
}
printf(" %d",u);
preOrder(T[u].l);
preOrder(T[u].r);
}
void inOrder(int u){
if(u==NIL){
return;
}
inOrder(T[u].l)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102845/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102845/source.c"
target datalayout = "e-m:e-p270: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 <string.h>
int main(void)
{
int map[21][21];
int N, M;
int x, y;
char d[10];
int l;
int dx, dy;
int i, j;
int count;
while (1){
scanf("%d", &N);
if (N == 0){
break;
}
memset(map, 0, sizeof(map));
for (i = 0; i < N; i++){
scanf("%d%d", &x, &y);
map[y][x] = 1;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102889/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102889/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, x, y, M, l, i, robox, roboy, count, j, juel[21][21];
char d;
while (1){
scanf("%d", &N);
if (N == 0) break;
for (i = 0; i < 21; i++){
for (j = 0; j < 21; j++){
juel[i][j] = 0;
}
}
robox = 10; roboy = 10; count = 0;
for (i = 0; i < N; i++){
scanf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102931/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102931/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 positive=0,negative=0,idk=0;
scanf("%d %d %d\n",&positive,&negative,&idk);
if (positive>negative+idk) {
printf("+");
} else if (negative>positive+idk) {
printf("-");
} else if (idk+positive>negative || idk + negative > positive) {
printf("?");
} else if (positive==ne... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10299/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10299/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
#define MIN(a,b) ((a)<(b)?(a):(b))
typedef struct zabuton{
int h,p;
} node;
int cmp(const void *a,const void *b){
node *p=(node *)a;
node *q=(node *)b;
return (p->h+p->p)-(q->h+q->p);
}
void run(void){
int n;
scanf("%d",&n);
node *a=(node *)calloc(n,sizeof(node));
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103031/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103031/source.c"
target datalayout = "e-m:e-p270: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.zabuton = type { i3... |
#include<stdio.h>
int main(){
int a,b,i;
scanf("%d%d",&a,&b);
char s[12];
scanf("%*c%s",s);
for(i=0;i<a+b+1;i++)
if((s[i]!='-' && i==a) ||(s[i]=='-' && i!=a)){
puts("No");
return 0;
}
puts("Yes");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103075/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103075/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0,b=0;
char *answer;
answer= "Yes";
scanf("%d",&a);
scanf("%d",&b);
char s;
for(int i=0;i<a+b+2;i++){
char s=getchar();
if(i==a+1&&s!='-'||i!=a+1&&s=='-'){
answer="No";
break;
}
}
printf("%s\n",answer);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103118/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103118/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i;
char s[15];
scanf("%d%d%s",&a,&b,s);
for(i=0;i<a+b+1;i++){
if(i==a){
if(s[i]!='-'){
puts("No");
return 0;
}
}
else {
if('0'>s[i] || s[i]>'9'){
puts("No");
return 0;
}
}
}
puts("Yes");
return ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103161/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103161/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, i;
char s[11];
scanf("%d %d",&a,&b);
scanf("%s",s);
for(i=0;i<a;i++){
if(s[i]>=48&&s[i]<58);
else {
printf("No"); return 0;
}
}
if(s[a] != '-'){
printf("No");
return 0;
}
for(i=0;i<b;i++){
if(s[i+a+1]>=48&&s[i+a+1]<58);
else {
printf("N... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103219/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103219/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t[1510];
int main(){
int i,j;
int n,m;
int cnt=0;
int h;
while(scanf("%s",&t)){
// printf("%s\n",t);
if(strcmp(t,"-")==0) break;
n=strlen(t);
for(i=0;i<n;i++){
t[n+i]=t[i];
}
scanf("%d",&m);
cnt=0;
for(i=0;i<m;i++){
scanf("%d",&h);
cnt+=h;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103262/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103262/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k;
int a[100][2];
scanf("%d",&n);
int sum=n;
for(i=0;i<n;i++)
scanf("%d%d",&a[i][0],&a[i][1]);
scanf("%d",&k);
for(i=0;i<n;i++)
{
if(k>a[i][1])
{
sum--;
}
else
{
break;
}
}
printf("%d",sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10332/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10332/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
/*---????????????????????????????????£?????????---*/
void shuffle(char *st)
{
char ch;
ch = *st;
while (*(st + 1)) {
*st = *(st + 1);
st++;
}
*st = ch;
}
int main(void)
{
char a[201];
int h, i, m, j;
while (1) {
scanf("%s\n", a);
if (a[0] == '-') break;
scanf("%d", &m);
for (... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103363/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103363/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.