Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
int main(){
int a, b, c, i = 0, sum = 0, buffer = 0, flag = 0;
scanf("%d %d %d", &a, &b, &c);
if(c <= a){
printf("%d\n", c);
return 0;
}/*else if(60 % (a+b) == 0){
printf("-1\n");
return 0;
}*/
while(1){
buffer = (i++)*60;
if(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_96525/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_96525/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
/* Coached by Dukkha */
#include <stdio.h>
#define N 1000
#define MD 1000000007
int solve(int n, int p) {
return n < p ? 0 : n / p + solve(n / p, p);
}
int main() {
static char composite[N + 1];
int n, a, b;
long long p;
scanf("%d", &n);
p = 1;
for (a = 2; a <= n; a++) {
if (composite[a])
continue;
p ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_96569/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_96569/source.c"
target datalayout = "e-m:e-p270: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.composite = internal un... |
#include<stdio.h>
#include<stdlib.h>
int main(){
int nn;
int n; /* 整数 */
int ns; /* 素因数 */
int j; /* 乗数 */
int i;
int* data;
long long int sum = 1;
scanf("%d",&nn);
data = (int*)calloc(nn+1,sizeof(int));
for(i=2; i<nn+1; i++){
data[i] = 1;
}
for(i=nn; i>0; i--){
n = i;
for(ns=2; ns<=n; ns++){
j... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_96611/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_96611/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 S[3];
scanf("%s",S);
if(S[1] == 'B')
printf("ARC");
else
printf("ABC");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_96662/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_96662/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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()
{
int i;
char s[10];
scanf("%s",s);
for(i=0;i<3;i++){
if(s[i]=='R'){
s[i]='B';
}
else if(s[i]=='B'){
s[i]='R';
}
}
printf("%s\n",s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_96705/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_96705/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int CheckInput(char * inputString)
{
int haveCorrVal = (strncmp(inputString, "ABC", 3) && strncmp(inputString, "ARC", 3));
if(haveCorrVal == 0)
{
return 1;
}
else
{
printf("Wrong Input \n");
return 0;
}
}
void... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_96763/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_96763/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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){
char x;
scanf("%c",&x);
printf("%c", x);
scanf("%c",&x);
if((int)x == 66){
printf("R");
}
else{
printf("B");
}
scanf("%c",&x);
printf("%c\n", x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_96820/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_96820/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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){
char s[3];
scanf("%s", s);
if (s[1] == 'R') printf("ABC");
else printf ("ARC");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_96864/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_96864/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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)
{
char str[4];
scanf("%s", str);
if(strcmp(str, "ABC") == 0){
printf("ARC");
}
else{
printf("ABC");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_96914/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_96914/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 s[3];
scanf("%s",s);
if(s[1]=='B'){
printf("ARC\n");
}else if(s[1]=='R'){
printf("ABC\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_96958/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_96958/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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()
{
long long i,n,x,y;
long long xma=-1,xmi=-1,yma=-1,ymi=-1,s;
long long z;
scanf("%lld",&n);
for(i=0;i<n;i++){
scanf("%lld %lld",&x,&y);
if(i == 0 || xma < x) xma = x;
if(i == 0 || xmi > x) xmi = x;
if(i == 0 || yma < y) yma... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_9700/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_9700/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include<stdio.h>
#include<math.h>
#include<string.h>
int main()
{
char S[3];
scanf("%s", S);
if(S[1]=='B') printf("ARC");
else printf("ABC");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_97050/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_97050/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 s[3];
char p[3];
scanf("%s",&s);
if(s[1]=='B'){
printf("ARC");
}else{
printf("ABC");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_97094/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_97094/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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) {
char s[10];
scanf("%s", s);
if (s[0] == 'A'&&s[1] == 'B'&&s[2] == 'C') printf("ARC");
else printf("ABC");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_97137/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_97137/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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){
char s[10];
scanf("%s", s);
if(s[1] == 'R'){
printf("ABC\n");
}else{
printf("ARC\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_97180/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_97180/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <limits.h>
#define REP(i,n) for(i=0;i<n;i++)
#define MAX 1000000
#define MOD 1000000007
long long fac[MAX], finv[MAX], inv[MAX];
//prototype declaration
int i_in();
long long ll_in();
double d_in();
char c_in();
void s_in(char *s)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_97223/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_97223/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
int V[21];
int C[21];
int i;
int max=0;
scanf("%d",&N);
for(i=0;i<N;i++){
scanf("%d",&V[i]);
}
for(i=0;i<N;i++){
scanf("%d",&C[i]);
}
for(i=0;i<N;i++){
if(V[i]-C[i]>0){
max=max+V[i]-C[i];
}
}
printf("%d",max);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_97267/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_97267/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 checked[1001][1001];
int main()
{
int n;
scanf("%d",&n);
int i,holed;
int array[n];
for(i=1;i<=n;i++)
{
scanf("%d",&array[i]);
}
for(i=1;i<=n;i++)
{
holed=array[i];
checked[i][i]=1;
while(checked[i][holed]==0)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_9731/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_9731/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 n;
scanf("%d", &n);
int value[n], cost[n], sum=0;
for(int i=0; i<n; i++){
scanf("%d",&value[i]);
}
for(int i=0; i<n; i++){
scanf("%d",&cost[i]);
}
for(int i=0; i<n; i++){
if(value[i]-cost[i] > 0){
sum += value[i]-cost[i];
}
}
printf("%d", sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_97353/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_97353/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 N;
int i;
int x[255] = {0};
int y[255] = {0};
int z;
int sum;
scanf("%d",&N);
for(i = 0; i < N; i++){
scanf("%d",&x[i]);
}
for(i = 0; i < N; i++){
scanf("%d",&y[i]);
}
for(i = 0; i < N; i++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_97403/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_97403/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
int ans = 0;
scanf("%d",&n);
int c[n],v[n];
for(int i = 0; i < n; i ++) {
scanf("%d",&v[i]);
}
for(int i = 0; i < n; i ++) {
scanf("%d",&c[i]);
}
for(int i = 0; i < n; i ++) {
if(v[i] > c[i])
ans += v[i] -... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_97447/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_97447/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
int v[20];
int c[20];
int i;
int sum=0;
scanf("%d",&n);
for(i=0; i<n;i++){
scanf("%d",&v[i]);
}
for(i=0; i<n;i++){
scanf("%d",&c[i]);
}
for(i=0;i<n;i++)
{
if(v[i] >= c[i])
sum =sum + v[i] - c[i];
}
printf("%d",sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_97490/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_97490/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,i = 0,ans = 0;
scanf("%d",&N);
int C[N],V[N];
for(i = 0;i < N;i++) scanf("%d",&V[i]);
for(i = 0;i < N;i++) scanf("%d",&C[i]);
for(i = 0;i < N;i++) {
if(V[i] - C[i] > 0) ans += V[i] - C[i];
}
printf("%d\n",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_97533/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_97533/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 N,C[50],V[50],i,MAX=0;
scanf("%d",&N);
for(i=0;i<N;i++)
scanf("%d",&V[i]);
for(i=0;i<N;i++)
scanf("%d",&C[i]);
for(i=0;i<N;i++)
{
if(V[i]>C[i])
MAX+=V[i]-C[i];
}
printf("%d",MAX);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_97577/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_97577/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main()
{
int n;
scanf("%d",&n);
int c[n];
for(int i =0;i<n;i++)
{
scanf("%d",&c[i]);
}
int m = 0;
for(int i =1;i<n;i++)
{
if(c[i]!=c[0])
{
m = i;
}
}
int p =0;
for(int i =n-2;i>=0;i--)
{
if(c[i]!=c[n-1])
{
p = n-1-i;
}
}
int ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_9762/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_9762/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
//辺の情報を個別に持つタイプ
typedef struct edge{ll s,g;}E;
typedef struct graph{
int vcnt,ecnt;
E e[200010];//適宜変える(ecnt)
int id[10010];//適宜変える(vcnt)
}G;
G g;
int esort(const void*a,const void*b){
E*p=(E*)a,*q=(E*)b;
if((*p)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_97663/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_97663/source.c"
target datalayout = "e-m:e-p270: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.graph = type { i32, i... |
#include <stdio.h>
int main() {
int k, n;
scanf("%d %d", &k, &n);
if (k*500 >= n)
printf("Yes\n");
else
printf("No\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_97720/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_97720/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 K,X;
scanf("%d%d", &K, &X);
if( K*500 >= X)
printf("Yes\n");
else
printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_97764/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_97764/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 k,x;
scanf("%d%d",&k,&x);
if(500*k>=x) printf("Yes\n");
else printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_97814/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_97814/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 K, X;
scanf("%d%d",&K,&X);
if(500*K>=X)printf("Yes\n");
else printf("No\n");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_97858/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_97858/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 K,X;
scanf("%d %d",&K,&X);
K=K*500;
if(K>=X){
printf("Yes");
}
else {
printf("No");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_97900/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_97900/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 k,x;
scanf("%d %d",&k,&x);
if(500*k>=x){
printf("Yes\n");
}
else{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_97944/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_97944/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 k,x;
scanf("%d%d",&k,&x);
if(k*500>=x)
printf("Yes");
else printf("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_97988/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_97988/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
#include<string.h>
#include<math.h>
int main()
{
long long n,m;
scanf("%lld %lld",&n,&m);
if(n*500>=m)
printf("Yes\n");
else
printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_98037/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98037/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define INF ((1LL<<62)-(1LL<<31))
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define bit(n,m)(((n)>>(m))&1)
int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_98080/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98080/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 i, j;
int number; //tango no kazu
int lmnumber; //tango no moji suu no saidai
int lmword;
char str[500][33];
int sstr[500]; //str no narabekae you
int swap;
int count;
i = j = lmnumber = number = 0;
while (str[j][i] = getchar()) {
lmnumber = i >... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_98123/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98123/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define WORD_SIZE (32 + 1)
#define TEXT_SIZE (1000 + 1)
#define SUCCESS (0)
#define FAILURE (-1)
typedef struct tagNode
{
char word[WORD_SIZE];
unsigned int wordFrequencyCnt;
struct tagNode *next;
}Node;
typedef struct tagLinkedList
{
N... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_98167/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98167/source.c"
target datalayout = "e-m:e-p270: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.tagLinkedList = type ... |
#include <stdio.h>
#include <string.h>
int main(void)
{
int i, j, x, num, same;
int count[1000] = {0}, big, place;
int l_count[1000] = {0}, l_place;
char c;
char words[1000][32], l_word[1000][32];
j = 0;
i = 0;
num = 0;
while (1){
scanf("%c", &c);
if (c == '\n'){
break;
}
else if (c == ' '){... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_98231/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98231/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdbool.h>
#define min(X, Y) ((X) < (Y) ? (X) : (Y))
typedef long long ll;
const ll inf = (1ll << 60ll);
ll d, g;
ll p[11], c[11];
ll ans = inf;
bool used[11];
ll dfs(ll points, ll i);
int main()
{
scanf("%lld %lld", &d, &g);
for (ll i = 1; i <= d; i++) {
scanf("%lld %lld", &p[i], &... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_98275/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98275/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@inf = dso_local local_unname... |
#include<stdio.h>
#include<stdlib.h>
#include<stdint.h>
#include<inttypes.h>
typedef struct UnionFind {
int32_t *parent;
int32_t size;
} UnionFind;
void initUnionFind (UnionFind *u) {
for (int32_t i = 0; i < u->size; ++i){
u->parent[i] = -1;
}
}
UnionFind* newUnionFind (const int32_t size) {
UnionFind ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_98325/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98325/source.c"
target datalayout = "e-m:e-p270: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.UnionFind = type { pt... |
#include <stdio.h>
int main(void)
{
int n, a[100], i, j, sum=0, ans=1000000000;
scanf("%d", &n);
for(i=0;i<n;i++){
scanf("%d", &a[i]);
}
for(i=-100;i<=100;i++){
sum=0;
for(j=0;j<n;j++){
sum=sum+(a[j]-i)*(a[j]-i);
}
if(ans>sum) ans=sum;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_98376/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98376/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#define ll long long
#define rep(i,l,r) for(ll i=(l);i<(r);i++)
#define max(p,q) ((p)>(q)?(p):(q))
#define min(p,q) ((p)<(q)?(p):(q))
#define chmax(a,b) ((a)=(a)>(b)?(a):(b))
#define chmin(a,b) ((a)=(a)<(b)?(a):(b))
#define abs(p) ((p)>=(0)?(p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_98426/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98426/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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){
double n, t, x1, x2, count=0;
int i;
scanf("%lf %lf", &n, &t);
scanf("%lf", &x1);
for(i=0;i<n-1;i++){
x2=x1;
scanf("%lf", &x1);
if(x1-x2>=t)
count+=t;
else
count+=x1-x2;
}
count+=t;
printf("%d\n", (int)count);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_98477/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98477/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 swap(int *x, int *y)
{
int tmp;
tmp = *x;
*x = *y;
*y = tmp;
}
int main(void){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
swap(&a,&b);
swap(&a,&c);
printf("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_98570/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98570/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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_98620/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98620/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
void main(void){
int a,b,c,tmp;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
tmp=a;
a=b;
b=tmp;
tmp=a;
a=c;
c=tmp;
printf("%d %d %d",a,b,c);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_98664/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98664/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,box;
scanf("%d %d %d",&a,&b,&c);
box=a;
a=b;
b=box;
box=a;
a=c;
c=box;
printf("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_98707/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98707/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 argc, const char * argv[])
{
int inputX, inputY, inputZ;
scanf("%d %d %d", &inputX, &inputY, &inputZ);
printf("%d %d %d \n", inputZ, inputX, inputY);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_98750/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98750/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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_98794/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98794/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
int main()
{
int x, y, z, t;
scanf("%d %d %d", &x, &y, &z);
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_98837/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98837/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 swap(int *x,int *y){
int tmp=*x;
*x=*y;
*y=tmp;
}
int main(void){
int X,Y,Z;
scanf("%d %d %d",&X,&Y,&Z);
swap(&X,&Y);
swap(&X,&Z);
printf("%d %d %d",X,Y,Z);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_98880/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98880/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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_98923/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98923/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,a1,b1=0;
scanf("%d %d %d",&a,&b,&c);
a1=a;
b1=b;
b=a1;
a=c;
c=b1;
printf("%d %d %d",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_98967/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_98967/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,t;
scanf("%d %d %d",&a,&b,&c);
t = a;
a = b;
b = t;
t = a;
a = c;
c = t;
printf("%d %d %d",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99009/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99009/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(){
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
printf("%d %d %d", c, a, b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99052/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99052/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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_99096/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99096/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
int tmp;
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_99139/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99139/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 argc, char *argv[] )
{
int x, y, z;
int t;
scanf( "%d %d %d", &x, &y, &z );
t = x;
x = y;
y = t;
t = x;
x = z;
z = t;
printf( "%d %d %d\n", x, y, z );
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99182/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99182/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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_99232/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99232/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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() {
//int n;
//scanf("%d",&n);
char s[2];
scanf("%s", s);
if(s[1]=='5'){
printf("Christmas");
}else if(s[1]=='4'){
printf("Christmas Eve");
} else if (s[1] == '3') {
printf("Christmas Eve Eve");
} else if (s[1] =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99276/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99276/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 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_99326/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99326/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 n , m , i , j;
int a , b , flag = 0;
scanf("%d %d" , &n , &m);
int arr[m] ;
for(i = 0 ; i < m ; i++)
{
arr[i] = 0 ;
}
for(i = 1 ; i <= n ; i++)
{
scanf("%d" , &a);
for(j = 1 ; j <= a ; j++)
{
scanf("%d" ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_9937/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_9937/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(void)
{
int d;
scanf("%d",&d);
if(d==25){
printf("Christmas\n");
}
else if(d==24){
printf("Christmas Eve\n");
}
else if(d==23){
printf("Christmas Eve Eve\n");
}
else{
printf("Christmas Eve Eve Eve\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99412/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99412/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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
printf("Christmas Eve Eve Eve");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99463/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99463/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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\n");
} else if( d == 24 ) {
printf("Christmas Eve\n");
} else if( d == 23 ) {
printf("Christmas Eve Eve\n");
} else {
printf("Christmas Eve Eve Eve\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99506/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99506/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
//2018_1208_1
#include<stdio.h>
int main()
{
int D;
scanf("%d", &D);
if (D == 25)
{
printf("Christmas\n");
}
if (D == 24)
{
printf("Christmas Eve\n");
}
if (D == 23)
{
printf("Christmas Eve Eve\n");
}
if (D == 22)
{
printf("Christmas Eve Eve Eve\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99557/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99557/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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);
switch(n){
case 22:
printf("Christmas Eve Eve Eve\n");
break;
case 23:
printf("Christmas Eve Eve\n");
break;
case 24:
printf("Christmas Eve\n");
break;
case 25:
printf("Christmas\n");
break;
default:
break;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99607/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99607/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
enum {
STRING_WIDTH = 20,
};
int cmp_str(const void *a, const void *b) {
return strcmp(*(char **)a, *(char **)b);
}
int main() {
int i;
int noWords;
char **words;
scanf("%d", &noWords);
words = (char **)malloc(noWords * sizeof(char **));
for (i = 0;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99665/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99665/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(){
int i,n;
char c[21],a[21];
scanf("%d",&n);
scanf("%s",a);
for(i=1;i<n;i++){
scanf("%s",&c);
if (strcmp(a,c)>0)strcpy(a,c);
}
printf("%s\n",a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99715/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99715/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 i,n;
char buf[22], first[22];
scanf("%d", &n);
//first[0]="{"; // アルファベットより大きいアスキー
strcpy(first,"{");
for(i=0;i<n;i++){
scanf("%s", buf);
if(strcmp(first,buf)>0) strcpy(first,buf);
}
printf("%s\n",first);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99759/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99759/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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],most[21]="zzzzzzzzzzzzzzzzzzzzz";
int n,i;
scanf("%d%*c",&n);
for(i=0;i<n;i++){
scanf("%s",str);
if(strcmp(str,most)<0){
strcpy(most,str);
}
}
puts(most);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99830/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99830/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,ans=0;
scanf("%d%d",&m,&d);
for(int i=1;i<=m;i++){
for(int j=11;j<=d;j++){
int d10=j/10,d1=j%10;
if(d1>=2&&d10>=2&&d10*d1==i){
ans++;
//printf("%d/%d%d\n",i,d10,d1);
}
}
}
prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99874/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99874/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,i,j,ans=0;
scanf("%d %d",&M,&D);
for(i=4;i<=M;i++){
for(j=22;j<=D;j++){
if(i == ((j/10)*(j%10)) && (j%10) >=2 ){
// printf("%d月%d日\n",i,j);
ans++;
}
}
}
printf("%d",ans);
ret... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99924/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99924/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, n;
int i, cnt = 0;
int s[ 1010 ], f[ 1010 ];
scanf( "%d %d %d", &a, &b, &n );
for( i = 0; i < n; i++ ){
scanf( "%d %d", &s[ i ], &f[ i ] );
if( s[ i ] <= a && a < f[ i ] || s[ i ] < b && b <= f[ i ] || a <= s[ i ] && f[ i ] <= b ){
cnt = 1;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99968/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99968/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(){
int i, j, H, W;
for (;;){
scanf("%d %d", &H, &W);
if (H == 0 && W == 0 ) break;
for ( i = 1; i < H+1; i++ ){
for ( j = 1; j < W+1; j++)
if ( j == 1 || j == W || i == 1 || i == H )
printf("#");
else
printf(".");
printf("\n");
}
printf("\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100021/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100021/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[10000],m[10000];
int h,i,j,k;
h=0;
do{
h++;
scanf("%d %d",&n[h],&m[h]);
}while(n[h]!=0&&m[h]!=0);
i=1;
while(i<h){
for(j=1;j<=n[i];j++){
for(k=1;k<=m[i];k++){
if(k==1||k==m[i]||j==1||j==n[i])printf("#");
else printf(".");
}
printf("\n");
}
i++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100065/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100065/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int i,j,k,w,h;
while(1){
scanf("%d %d",&h,&w);
if(h==0&&w==0) break;
for(k=0;k<w;k++){
printf("#");
}
printf("\n");
for(i=1;i<h-1;i++){
printf("#");
for(j=1;j<w-1;j++){
printf(".");
}
printf("#\n");
}
for(k=0;k<w;k++){
printf("#");
}
pri... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100115/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100115/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int i, j;
while (1){
scanf("%d %d", &h, &w);
if (h == 0 && w == 0){
return 0;
}
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("#\n");
}
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100166/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100166/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a,b;
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 || j == 0 || j == b-1){
printf("#");
}else{
printf(".");
}
}printf("\n");
}
printf("\n");
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100209/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100209/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, n;
while (1)
{
scanf("%d %d", &H, &W);
if (H == 0 && W == 0)
{
break;
}
for (i = 0; i < W; i++){
printf("#");
}
putchar('\n');
for (i = 0; i < H - 2; i++)
{
printf("#");
for (n = 0; n < W - 2; n++)
{
printf(".");
}
pri... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100252/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100252/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 showFrame(int width){
int w;
for(w = 0; w < width; w++){
putchar('#');
}
}
// ?¨????#??¨.???????????????????????????
void showContents(int width){
int w;
for(w = 0; w < width; w++){
if((w == 0) || (w == width - 1)){
putchar('#');
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100296/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100296/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0;i<h;i++){
for(j=0;j<w;j++){
if(i==0||i==h-1||j==0||j==w-1){
printf("#");
}else{
printf(".");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100339/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100339/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <limits.h>
void swap(long long int *a, long long int *b) {
long long int temp;
temp = *a;
*a = *b;
*b = temp;
}
void swap2(int *a, int *b) {
int temp;
temp = *a;
*a = *b;
*b = temp;
}
void bubblesort(long long int a[10], int b[10]) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10039/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10039/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 h[100];
int w[100];
int i;
int j;
int k;
int main(void){
for(i=0;i<100;i++){
scanf("%d %d",&h[i],&w[i]);
if(h[i] == 0 && w[i] == 0){
break;
}
}
for(i=0;i<100;i++){
for(j=0;j<h[i];j++){
for(k=0;k<w[i];k++){
if(j == 0 || j == h[i]-1 || k == 0 || k == w[i]-1){
printf("#")... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100432/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100432/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@i = dso_local local_unname... |
#include <stdio.h>
int main()
{
int h,w;
int i,j;
scanf("%d",&h);
scanf("%d",&w);
while(!((h==0) && (w==0))){
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("#\n");
}
fo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100526/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100526/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
long long int search(long long int value, long long int* b,long long int start,long long int end){
if(value<=b[start]) return start;
else if(value>b[end]) return -1;
else if(start==end) return start;
int mid;
mid=(start+end)/2;
if(b[mid]>= value) return search(value,b,start,mid);
retur... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10057/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10057/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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()
{
long long a,b,c,an;
scanf("%I64d %I64d %I64d",&a,&b,&c);
an=c*2;
if(a==b||a+1==b||a==b+1)an+=(a+b);
else
{
if(a<b)an+=(a*2+1);
else an+=(b*2+1);
}
printf("%I64d",an);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10062/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10062/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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[10000],i=0,k=0,j,l;
while(k==0){
scanf("%d %d",&a[i],&a[i+1]);
if(a[i]==0 && a[i+1]==0){
k=1;
}else{
i=i+2;
}
}
l=i/2;
int x,y,z,q;
for(j=1;j<=l;j++){
for(x=1;x<=a[2*j-1];x++){
printf("#");
}
printf("\n");
for(y=1;y<=a[2*j-2]-2;y++){
printf("#... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100713/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100713/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_100757/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100757/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a,b,c;
long long ans=0;
scanf("%lld%lld%lld",&a,&b,&c);
ans += 2*c;
if(a==b){
ans+=a*2;
}
else{
a = a<b?a:b;
ans += a*2+1;
}
printf("%I64d\n",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10080/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10080/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 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( 0 == j || W-1 == j || 0 == i || H-1 == i)
printf("#");
else
printf(".");
}
printf("\n");
}
printf("\n");
scanf("%d %d", ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100843/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100843/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 H;
int W;
scanf("%d %d", &H, &W);
if(W == 0 && H == 0)break;
int h,w;
for(w = 1 ; w <= W ; w++){
printf("#");
}
printf("\n");
for(h = 2 ; h < H ; h++){
printf("#");
for(w = 2 ; w < W ; w++){
printf(".");
}
p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100887/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100887/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
long long int a,b,c,length,min,max;
scanf("%lld%lld%lld",&a,&b,&c);
if(a>b)
{
max=a;
min=b;
}
else
{
max=b;
min=a;
}
if(min==max)
{
length=a+b+(c*2);
}
else
{
length=min+(min+1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10093/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10093/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(){
int a;
int b;
int x;
int y;
while(1){
scanf("%d %d",&a,&b);
if(a==0&&b==0)break;
for(x=0;x<a;x++){
for(y=0;y<b;y++){
if(x==0||y==0||x==a-1||y==b-1){
printf("#");}else{
printf(".");}
}
printf("\n");
}
printf("\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100973/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100973/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h, w;
while (1) {
scanf("%d%d", &H, &W);
if (H == 0 && W == 0) break;
for (h = 1; h <= H; h++) {
for (w = 1;w<=W; w++) {
if (h==1 || h==H|| w == 1 || w == W) {
printf("#");
}
else {
printf(".");
}
}
printf("\n");
}
printf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101015/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101015/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
}
for (int h=1;h<=H;h++){
for(int w=1;w<=W;w++){
if(h==1||h==H){
printf("#");
}
else if(h!=1&&h!=H&&w==1||w==W){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101066/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101066/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
{
for(;;){
int H, W;
scanf("%d %d", &H, &W);
if(H==0 && W==0) break;
for(int i = 0; i < H; i++){
for(int j = 0; j < W; j++){
if(i==0 || j==0 || i == H-1 || j == W-1)
printf("#");
else
printf(".");
}
printf("\n");
}
printf("\n");
}
retu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101109/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101109/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int i, j;
while(1){
scanf("%d %d", &H, &W);
if(H == 0)break;
for(i = 0; i < H; i++){
for(j = 0; j < W; j++){
printf("%c%s", (i == 0 || i == H - 1 || j == 0 || j == W -1) ? '#' : '.', (j == W - 1) ? "\n" : "");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101152/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101152/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int c = 0;
int i,q,z;
while(c == 0){
scanf("%d", &a); scanf("%d", &b);
if(a==0){
if(b==0){
break;}}
for(i=1;i<=a;i++){
for(q=1;q<=b;q++){
if(i==1 || i==a || q==... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101202/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101202/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int a,b,i,j;
while(1)
{
scanf("%d%d",&a,&b);
if(a==0&&b==0){break;}
for(i=1;i<=a;i++)
{
for(j=1;j<=b;j++)
{
if(i>1&&i<a&&j<b&&j>1)printf(".");
else printf("#");
}
printf("\n");
}
printf("\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101246/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101246/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.