Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
int main(void){
char masu[7] ={};
for(int i=0;i<7;i++){
scanf("%c",&masu[i]);
}
if(masu[0]==masu[6]&&masu[1]==masu[5]&&masu[2]==masu[4]) printf("YES");
else printf("NO");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_149469/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_149469/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(void){
char m[4];
char n[4];
int i;
int cnt = 0;
scanf("%s",m);
scanf("%s",n);
for(i=0;i<3;i++){
if(m[i] == n[2-i]){
cnt++;
}
}
if(cnt == 3){
printf("YES");
}else{
printf("NO");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_149519/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_149519/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int h;
int k;
scanf("%d %d %d", &w, &h, &k);
int sum = 0;
while (w > 0 && h > 0 && k > 0) {
sum += 2*(w + h);
sum = sum - 4;
h = h - 4;
w = w - 4;
k = k - 1;
}
printf("%d\n", sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_14957/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_14957/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
scanf("%d",&A);
scanf("%d",&B);
if(A<=8&&B<=8)
{
printf("Yay!");
}else{
printf(":(");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_149612/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_149612/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d%d",&a,&b);
if(a>8||b>8) printf(":(");
else printf("Yay!");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_149656/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_149656/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#define REP(i,a,b) for(i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)
int n;
int mi[10][10], mx[10][10], ac[10][10];
int ind[10];
int now[10];
int res, res_cost;
void solve(int a,int b,int cost){
int i,j,send;
int aa = ind[a], bb = ind[b];
if(a>=n){
if(now[n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1497/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1497/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ind = dso_local local_unnamed_... |
#include <stdio.h>
#include <stdlib.h>
int main(){
int a = 0, b = 0,soma = 0;
scanf("%i %i", &a, &b);
soma = a + b;
if(a < 9 && b < 9){
printf("Yay!");
}
else
printf(":(");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_149742/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_149742/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d",&A,&B);
if(A<=8 &&B<=8)
printf("Yay!");
else
printf(":(");
return(0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_149786/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_149786/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d", &a, &b);
if(a<=8 && b<=8){
printf("Yay!");
}else{
printf(":(");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_149887/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_149887/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include<math.h>
#include<string.h>
int comparefunc (const void * a, const void * b)
{
return (*(int*)b)-(*(int*)a);
}
int main()
{
long long int w,p,q,i,j,m=1,n,c0,c1,h,t;
scanf("%lld", &t);
while(t--){
scanf("%lld%lld%lld", &w,&h,&n);
int temp=w,temp2=h;
whil... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_14993/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_14993/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
scanf("%d %d",&n,&m);
if((n>8)||(m>8))printf(":(");
else printf("Yay!");
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_149973/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_149973/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d",&a,&b);
if(a>8 || b>8){
printf(":(");
}else{
printf("Yay!");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_150021/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_150021/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a,b;
scanf("%d %d",&a,&b);
if(a>8||b>8)printf(":(\n");
else printf("Yay!\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_150065/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_150065/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[10000],b[10000];
int i,n;
while(1){
scanf("%d",&n);
if(n==0)break;
int aa=0,ba=0;
for(i=0;i<n;i++){
scanf("%d %d",&a[i],&b[i]);
}
for(i=0;i<n;i++){
if(a[i]>b[i])aa=aa+a[i]+b[i];
else if(a[i]<b[i])ba=ba+a[i]+b[i];
else if(a[i]=b[i])aa=aa+a[i],ba=ba+b[i];
}
prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_150108/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_150108/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 NUM 10000
void input(int *p1, int *p2, int t);
void output(int *p1, int *p2);
void comp(int *p1, int *p2, char *p_c, int t);
void score(int *p1, int *p2, int t);
int a[NUM] = {0}, b[NUM] = {0}, score_a[NUM] = {0}, score_b[NUM] = {0};
char tmp[NUM];
int cnt = 0;
int main()
{
int n;
while... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_150151/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_150151/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@a = dso_local global [1000... |
#include <stdio.h>
int main(void) {
int n, a, b;
int suma = 0;
int sumb = 0;
while (1) {
scanf("%d", &n);
if (n == 0) {
return 0;
}
int i;
for (i = n; i > 0; i--) {
scanf("%d %d", &a, &b);
if (a > b) {
suma = suma + a + b;
}
else if (b > a) {
sumb = sumb + a + b;
}
else {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_150201/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_150201/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int i, n, a, b, scoreA, scoreB;
while(1){
scanf("%d", &n);
if(n == 0) break;
scoreA = 0;
scoreB = 0;
for(i=0; i<n; i++){
scanf("%d %d", &a, &b);
if(a == b){
scoreA += a;
scoreB += b;
}else if(a > b){
scoreA += (a + b);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_150252/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_150252/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n;
int i;
int PointA,PointB;
while(1){
PointA = 0;
PointB = 0;
scanf("%d" ,&n);
if( n == 0 ) break;
for( i = 0 ; i < n ; i++ ){
scanf("%d %d" ,&A ,&B);
if( A < B ) PointB += A + B;
if( A > B ) PointA += B +... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_150296/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_150296/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int n, a, b, total_a, total_b;
while(1){
scanf("%d", &n);
if(n == 0){
break;
}
total_a = 0;
total_b = 0;
for(int i=1; i<=n; i++){
scanf("%d %d", &a, &b);
if(a > b){
total_a += a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_150339/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_150339/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
//block linked list
#define Bsize 900 /*2sqrt(n)*/
typedef struct block{
int cnt;
ll a[Bsize+1];
struct block*pre;
struct block*nxt;
}block;
void Bpush(block*b,ll x){
//リストにxを追加する
if((*b).nxt&&(*(*b).nxt).a[0]<x... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_150382/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_150382/source.c"
target datalayout = "e-m:e-p270: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.block = type { i32,... |
#include<stdio.h>
#include<string.h>
void a(char *s){
int l=strlen(s),i;
for(i = 0;i<l/2;i++){
char t=s[i];
s[i] = s[l - i -1];
s[l-1-i]=t;
}
}
char T[4][8]={"dream","dreamer","erase","eraser"};
int main(){
int i =0,c,l;
char s[100001];
for(i=0;i<4;i++)a(T[i]);
scanf("%s",s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_150432/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_150432/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@T = dso_local global [4 x ... |
#include <stdio.h>
#include <string.h>
#define MAXSIZE 100000
int main(void){
char s[MAXSIZE],d[]="dream",e[]="erase";
scanf("%s",s);
int len_s=strlen(s),p=0,i;
while(p<len_s){
if(s[p]=='d'){
for(i=0;i<5;i++){
if(s[p]==d[i]){
p++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_150476/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_150476/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main() {
char *buf=(char*)malloc(sizeof(char) * 20000);
scanf("%[^\n]", buf);
char* cur = buf;
int length = strlen(buf);
char l1[] = "dream";
char l2[] = "dreamer";
char l3[] = "erase";
char l4[] = "eraser";
int a1 = 5... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_150519/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_150519/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x;
scanf("%d %d %d",&a,&b,&x);
if((a<=x)&& (a+b)>x)
printf("YES\n");
else printf("NO\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_150562/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_150562/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, x;
scanf("%d %d %d",&a, &b, &x);
if(x < a || x > a + b)
printf("NO\n");
else
printf("YES\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_150605/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_150605/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a>c){printf("NO\n");}
else if(a+b<c){printf("NO\n");}
else{printf("YES\n");}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_150649/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_150649/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#define _CRT_SECURE_NO_WARNINGS
#define TLong long long
// fact(n)
int fact(int n){
if(n == 1) return 1;
else return (n * fact(n - 1));
}
// combination(n,r)
int combination(int n, int r){
if(r == 0 || r == n) return 1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_150692/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_150692/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x;
scanf("%d%d%d",&a,&b,&x);
if(a+b>=x&&a<=x)puts("YES");
else puts("NO");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_150735/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_150735/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x;
scanf("%d %d %d",&a,&b,&x);
if(x>=a && x<=a+b)
printf("YES");
else
printf("NO");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_150793/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_150793/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, X;
scanf("%d %d %d", &A, &B, &X);
if (A <= X && A + B >= X) {
printf("YES");
}
else {
printf("NO");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_150836/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_150836/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int t;
scanf("%d", &t);
int n, m;
for (; t > 0; t--)
{
scanf("%d %d", &n, &m);
if (n % m > 0)
printf("NO\n");
else
printf("YES\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15088/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15088/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,a,b;
scanf("%d %d %d",&x,&a,&b);
int ans1,ans2;
ans1=a>b?b:a;
ans2=x>a+b?0:a+b-x;
printf("%d %d",ans1,ans2);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_150937/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_150937/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int N,A,B;
int x,y;
scanf("%d%d%d",&N,&A,&B);
if(A>B){
x=B;
}else{
x=A;
}
if(A+B-N>0){
y=A+B-N;
}else{
y=0;
}
printf("%d %d",x,y);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_150980/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_150980/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int max(int a,int b){
if(a>b){
return a;
}
return b;
}
int min(int a,int b){
if(a>b){
return b;
}
return a;
}
int main(void){
int N,A,B;
scanf("%d%d%d",&N,&A,&B);
printf("%d %d\n",min(A,B),max(A+B-N,0));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_151022/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_151022/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
#define MAX 1000
int main(){
int i,j;
int n;
int k = 0;
int total = 0;
int t, p;
int v[MAX];
char T[MAX],P[MAX];
scanf("%s%s",T,P);
t=strlen(T);
p=strlen(P);
for(i = 0;i < t;i++){
if(T[i] == P[0]){
j = i+1;
n = 1;
wh... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_151073/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_151073/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 100000000
struct NODE {
int distance;
int state;
} vertex[101];
int W[101][101];
int n, m;
int min(int a, int b) {
return (a > b ? b : a);
}
int prim(int start) {
int x, p, step, sum = 0;
for (x = 0; x < n; x++) {
vertex[x].distance = MAX; vertex[x].state = 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_151116/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_151116/source.c"
target datalayout = "e-m:e-p270: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, ... |
/*
cat <<EOF >mistaken-paste
*/
#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <time.h>
#define BIG 2000000007
#define VERYBIG 200000000000007LL
#de... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_151174/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_151174/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
long long min(int len, ...) {
long long i, _min, num;
va_list ap;
va_start(ap, len);
_min = va_arg(ap, long long);
for (i = 1; i < len; i++) {
num = va_arg(ap, long long);
if (num < _min)
_min = num;
}
v... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_151224/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_151224/source.c"
target datalayout = "e-m:e-p270: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.__va_list_tag = typ... |
//
// main.c
// Save Your Privacy!
//
// Created by x15071xx on 2016/06/15.
// Copyright ?? 2016??´ AIT. All rights reserved.
//
#include <stdio.h>
int main(int argc, const char * argv[]) {
while (1) {
int human[100][100] = {0},n,m,i,j,k = 0,cri[100]={0},x,count=0;
int human_num... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_151268/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_151268/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
long long int pwo(long long int x,long long int y)
{
long long int i,a,mod = 1000000000 + 7;
a = x;
if(y == 0)
{
return 1;
}
for(i = 1 ; i < y ; i++)
{
x = x*a;
x = x;
}
return x;
}
int main(void)
{
long long int n,i,j,mo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_151310/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_151310/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0;
long int D=0;
int count=0;
long int x=0;
long int y=0;
scanf("%d%ld",&N,&D);
for(int i=0;i<N;i++){
scanf("%ld%ld",&x,&y);
if(x*x+y*y<=D*D) count+=1;
}
printf("%d",count);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_151354/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_151354/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ll long long
#define fr(i,n,m) for(ll i=n;i<m;i++)
int main()
{
ll n,d,x,y,count=0;
scanf("%lli %lli",&n,&d);
fr(i,0,n) {
scanf("%lli %lli",&x,&y);
ll XY = x*x+y*y;
ll D = d*d;
if (XY <= D) {
count... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_151398/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_151398/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
double n, d, x, y;
int i, count = 0;
scanf("%lf %lf", &n, &d);
for (i = 0; i < n; i++)
{
scanf("%lf %lf", &x, &y);
if (x * x + y * y <= d * d)
{
count++;
}
}
printf("%d", count);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_151440/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_151440/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
#define num 2*100000+10
int main(void){
int N,D,i,C=0;
double x[num],y[num];
scanf("%d %d",&N ,&D);
for ( i = 0; i < N; i++){
scanf("%lf%lf",&x[i],&y[i]);
if (D>=sqrt((x[i] * x[i]) + (y[i] * y[i]))){
C++;
}
}
printf("%d",C);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_151491/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_151491/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main(){
int t,d,c=0;
scanf("%d %d",&t,&d);
while(t--){
long int x,y;
scanf("%ld %ld",&x,&y);
double result=sqrt(x*x + y*y);
if(result<=d)
c=c+1;
}
printf("%d",c);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_151541/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_151541/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<stdbool.h>
#include<string.h>
#include<math.h>
#include<ctype.h>
typedef long long ll;
ll gcd(ll a, ll b) { if (b == 0) return a; return gcd(b, a % b); }
ll lcm(ll a, ll b) { return a / gcd(a, b) * b; }
ll asc(const void* a, const void* b) { return *(ll*)a - *(ll*)b; }
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_151592/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_151592/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, n, i;
while (1){
scanf("%d", &a);
if (a == 0) break;
n = 0;
for (i = 5; a/i >0; i *= 5){
n += a/i;
}
printf("%d\n", n);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_151635/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_151635/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 exp(int x, int p) {
int i;
int ret;
for(ret = 1, i = 0; i < p; i++) {
ret *= x;
}
return ret;
}
int main() {
long n;
int five;
int tmp_five;
int i;
scanf("%ld", &n);
while(n) {
for(i = 1, five = 0; tmp_five = n / exp(5, i); i++) {
five += tmp_five;
}
printf("%d\n", fi... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_151714/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_151714/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int a, b;
scanf("%d %d",&a,&b);
if(a>9 || b>9)
a=-1;
else
a*=b;
printf("%d\n",a);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_151772/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_151772/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d",&A,&B);
if(10 > A&&10 > B)printf("%d",A * B);
else printf("-1");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_151822/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_151822/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, ans;
scanf("%d%d", &a, &b);
if (a<=9 && b<=9) {
ans = a*b;
} else {
ans = -1;
}
printf("%d", ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_151866/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_151866/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int A,B;
scanf("%d %d", &A,&B);
if(A<10 && B<10){
printf("%d\n", A*B);
}
else{
printf("-1\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_151909/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_151909/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int x,y,z;
scanf("%d %d",&x,&y);
z=x*y;
if (x>9||y>9){
printf("-1\n");
}else{
printf("%d\n",z);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_151952/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_151952/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a,b;
scanf("%d%d",&a,&b);
if(a<=9&&b<=9)
printf("%d\n",a*b);
else
printf("-1\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_151996/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_151996/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d",&i,&j);
if((i <= 9 && i >= 1) && (j <= 9 && j >= 1))
printf("%d",i * j);
else
printf("-1");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_152038/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_152038/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int a, b;
while(scanf("%d %d", &a, &b)==2){
if(a<=9 && b<=9)
printf("%d\n", a*b);
else
printf("-1\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_152081/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_152081/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int B;
//入力
scanf("%d", &A);
scanf("%d", &B);
//A,Bの判定
if(A>=10){
printf("-1\n");
}else if(B>=10){
printf("-1\n");
}else{
printf("%d\n",A*B);
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_152124/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_152124/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(){
int a, b;
scanf("%d %d", &a, &b);
if ((a > 9) || (b > 9)){
printf("-1\n");
} else {
printf("%d\n", a * b);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_152168/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_152168/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int A,B,C;
scanf("%d%d",&A,&B);
if(A>=10||B>=10)
{
C=-1;
}
else C=A*B;
printf("%d",C);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_152210/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_152210/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a,b;
scanf("%d%d",&a,&b);
if(a>9){
printf("-1\n");
return 0;}
if(b>9){
printf("-1\n");
return 0;}
printf("%d\n",a*b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_152254/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_152254/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int a,b;
scanf("%d%d",&a,&b);
if(a<10&&b<10){
printf("%d\n",a*b);
return 0;
}
printf("-1\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_152298/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_152298/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define P 1000000007
long f(long a){
long s=1;
while(a!=0) s=s*(a--)%P;
return s;
}
int main(void){
int n, m;
scanf("%d%d", &n, &m);
if(n+1<m || m+1<n){
puts("0");
}else{
printf("%d\n", f(n)*f(m)*((n==m)+1)%P)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_152340/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_152340/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 beki(int n){
long long int ret=1;
while(n!=1){
ret=(ret*n)%(1000000000+7);
n--;
}
return ret;
}
int main(void){
int N,M;
scanf("%d %d", &N, &M);
long long int num;
if(N-M>1 && N-M<-1){
num=0;
}else if(N==M){
num=beki(N);
num=(num*num*2)%(10000000... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_152391/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_152391/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 NMAX 1000
int bs (int [], int, int);
int compar (const void *a, const void *b) {
return *(int *)a- *(int *)b;
}
int main(void)
{
while(1)
{
int i,j,k,N,M,c,p[NMAX*NMAX],s;
scanf("%d%d",&N,&M);
if(N==0 && M==0) break;
for(i=0;i<=N-1;i++)
{
scanf("%d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_152434/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_152434/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 hey,m,i,j,k,cnt=0;
while(1){
scanf("%d %d",&m,&hey);
if(m+hey==0) break;
for(i=1;i<=m;i++){
for(j=1;j<=m;j++){
for(k=1;k<=m;k++){
if((i+j+k)==hey&&i!=j&&i!=k&&j!=k) cnt++;
}
}
}
printf("%d\n",cnt/6);
cnt=0;
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_152492/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_152492/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 swap(a, b) ((a != b) && (a += b, b = a - b, a -= b))
int main(void)
{
int i, j, k;
int n, x, count;
while (scanf("%d %d", &n, &x), n || x) {
count = 0;
for (i = 1; i <= n; i++) {
for (j = i+1; j <= n; j++) {
for (k = j+1; k <= n; k++) {
if (i+j+k == x)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_152542/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_152542/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 max, answer;
int i;
int num1, num2, num3;
while(1){
scanf("%d %d", &max, &answer);
if(max == 0 && answer == 0){
break;
}
i = 0;
for(num1 = 1; num1 <= max; num1++){
for(num2 = num1 + 1; num2 <= max; num2++){
for(num3 = num2 + 1; num3 <= max; nu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_152586/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_152586/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
int n, x, count;
int i, j, k;
while(1) {
count = 0;
scanf("%d %d", &n, &x);
if(n == 0 && x == 0) break;
for(i = 1; i <= n - 2; i++) {
for(j = i+1; j <= n - 1; j++) {
for(k = j+1; k <= n; k++) {
if(i+j+k == x) count++;
}
}
}
printf("%d\n",... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_152629/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_152629/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 value_1,value_2,i,k,j,count;
scanf("%d %d",&value_1,&value_2);
while(value_1 != 0 || value_2 != 0)
{
count = 0;
for(i=1;i<=value_1;i++)
{
for(k=i+1;k<value_1;k++)
{
for(j=k+1;j<=value_1;j++)
{
if((i + k + j) == value_2)
{
count++;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_152672/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_152672/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#define NEW(p,n){p=malloc((n)*sizeof(p[0]));if(p==NULL){printf("not enough memory\n");exit(1);};}
//pの型の変数n個の要素分のメモリを確保し、そのアドレスをpに代入するマクロ
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))
int main(void){
in... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_152715/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_152715/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#define ll unsigned long long
#define length 100000 //10万
#define kw_len 10
ll factor[1000];
ll memory[1000];
int primefac(ll num){
int i = 0,kosuu=0,flag=0,sum,n=0;
while(*(factor+i) != 0){
sum =1;
flag=0;
whi... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_152759/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_152759/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@factor = dso_local local_u... |
#include <stdio.h>
#include <string.h>
int main(){
int k,c=0;
char S[20];
scanf("%s",S);
k=strlen(S);
for(int i=0;i<k;i++)
if(S[i]=='o') c++;
if((15-k)+c>=8) printf("YES\n");
else printf("NO\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_152801/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_152801/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(void)
{
int oCount = 0, xCount = 0;
int len;
char S[16] = {};
scanf("%s", S);
len = strlen(S);
for (int i = 0; i < len; i++)
{
if(S[i] == 'o')
oCount++;
else if(S[i] == 'x')
xCount++;
}
int day = (15 - len) + oCount;
if(day >= 8)
printf("YES\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_152845/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_152845/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
char s[16];
int i,n;
scanf("%s",s);
for (i=n=0;s[i]!='\0';i++)
if (s[i]=='x') n++;
if (15-n>=8) puts("YES");
else puts("NO");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_152889/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_152889/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if( c>= b && b >= a ){
printf("%d",c*10+b+a);
}else if( b>= a && a>= c){
printf("%d",b*10+a+c);
}else if( a>= b && b>=c){
printf("%d",a*10+b+c);
}else if( c>= a && a >= b){
printf("%d",c*10+a+b);
}else if( b>= c && c>= a)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_152931/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_152931/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,out;
scanf("%d%d%d",&a,&b,&c);
if(b>=c && b>=a)
b=b*10;
else if(c>a && c>b)
c=c*10;
else
a=a*10;
out=a+b+c;
printf("%d",out);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_152975/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_152975/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a,b,c,result;
scanf(" %d %d %d",&a,&b,&c);
if(a<10 && b<10 && c<10 && a>0 && b>0 && c>0)
{ if(a==b && b==c)
result=(a*10)+b+c;
else if((a>b && a>c)||(a>b && b==c)||(a==b && b>c))
result=(a*10)+b+c;
else if((b>c && b>a)||(b... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153017/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153017/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[3];
int A,B,C;
scanf("%d %d %d",&A,&B,&C);
n[0] = A,n[1]=B,n[2]=C;
for (int i = 0;i<3;i++)
{
for(int j = 0;j<3;j++)
{
if (i<j){
if (n[i]<n[j]){
int a = n[i];
n[i] = n[j]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153060/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153060/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int A,B,C,max;
scanf("%d %d %d", &A, &B, &C);
max = 10*A + B + C;
if(10*B + A + C >= max){
max = 10*B + A + C;
}
if(10*C+B+A >= max){
max = 10*C+B+A;
}
printf("%d", max);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153103/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153103/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 compar(const int*,const int*);
int main(void){
int array[3];
int a,b,c;
scanf("%d %d %d",&a,&b,&c );
array[0] = a;
array[1] = b;
array[2] = c;
qsort(array,sizeof(array)/sizeof(array[0]),sizeof(int),(int (*)(const void *, const void *))compar);
printf("%d",array[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153154/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153154/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,ans;
scanf("%d %d %d",&A,&B,&C);
ans=10*A+B+C;
if(ans<A+10*B+C) ans=A+10*B+C;
if(ans<A+B+10*C) ans=A+B+10*C;
printf("%d",ans);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153198/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153198/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
long int n,a,b,c,count,i;
scanf("%ld %ld %ld\n",&n,&a,&b);
count=0;
for(i=0;i<n;i++)
{
scanf("%ld",&c);
if(c<a || c>=b)
{
count++;
}
}
printf("%ld\n",count);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153240/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153240/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
int main(void)
{
//変数の宣言
int n;
int a[110];
int sum;
double ave;
int near;
//よく使う変数
int i,j,k,l;
int flag=0;
int ans=0;
int count=0;
int temp,temp1,temp2;
int max,min;
int len;
//データの読み込み
scanf("%d",&n);
for(i=0;i<n;i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153299/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153299/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
typedef int value_type;
typedef struct SkewHeap {
struct SkewHeap *L, *R;
value_type val;
} SkewHeap;
typedef SkewHeap* heap_ptr;
void swap(heap_ptr a, heap_ptr b) {
SkewHeap tmp = *a;
*a = *b;
*b = tmp;
}
void swap_ptr(heap_ptr* a, heap_ptr* b) {
heap_ptr tmp = *a;
*a = *b;
*b = t... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153349/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153349/source.c"
target datalayout = "e-m:e-p270: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.SkewHeap = type { p... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
int main(){
int i,j,n,x;
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=n-1;j>0;j--){
if(a[j-1]>a[j]){
x=a[j-1];
a[j-1]=a[j];
a[j]=x;
}
}
}
for(i=0;i<n;i++){
if(i==n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153392/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153392/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int n;
int j;
int min;
int i[1000];
int count;
scanf("%d", &n);
for (j = 0; j < n; j++){
scanf("%d", &i[j]);
}
count = 1;
while (count != 0){
count = 0;
for (j = 0; j < n; j++){
if (i[j] < i[j - 1]){
i[j - 1] += i[j];
i[j] = i[j - 1] - i[j];
i[j -... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153435/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153435/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int n;
int a[1000];
int t;
int i, j;
scanf("%d", &n);
for(i = 0; i < n; i++){
scanf("%d", &a[i]);
}
t = 0;
for(i = 0; i < n; i++) {
for (j = 0; j < n - i - 1; j++){
if (a[j] > a[j + 1]){
t = a[j];
a[j] = a[j + 1];
a[j + 1] = t;
}
}
}
for(i ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153479/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153479/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 F = 0,f;
scanf("%d", &F);
f = (F - 30) / 2;
printf("%d\n", f);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153529/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153529/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 f;
scanf("%d",&f);
printf("%d\n",((f-30)/2));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153572/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153572/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
long int n;
scanf("%ld",&n);
if(n%2==0)
printf("%ld 4",n-4);
else
printf("%ld 9",n-9);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15363/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15363/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <stdint.h> // int64_t
#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) > (b) ? (b) : (a))
int get_int(void) {
int num;
scanf("%d", &num);
return num;
}
// <arr[0]> <arr[1]> .. <arr[size-1]>
int fget_array(int *arr, int size) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153673/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153673/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main(void){
int n,i;
long long int a,odd[100000],even[100000];
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%lld",&a);
if(i%2==1) even[i/2] = a;
else odd[i/2] = a;
}
if(n%2==0){
for(i=n/2-1;i>=0;i--)printf("%d ",even[i]);
for(i=0;i<n/2;i++)printf("%d ",odd[i]);
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153716/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153716/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int n;
scanf("%d",&n);
// ans=n/2;
if(n%2==0)
{
printf("4 %d",n-4);
}
else
{
printf("9 %d",n-9);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15376/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15376/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
/* main */
int main(int argc, char **argv) {
int d1, d2, i, max_d, max_p, n, p;
while (1) {
scanf("%d", &n);
if (n == 0) break;
max_d = max_p = -1;
for (i = 0; i < n; i++) {
scanf("%d %d %d", &p, &d1, &d2);
if (max_d < d1 + d2) {
max_d = d1 + d2;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153802/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153802/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,p,x,y,a,b,i;
while(scanf("%d",&n)!=EOF){
if(n==0)break;
a=0;
for(i=0;i<n;i++){
scanf("%d%d%d",&p,&x,&y);
if(x+y>a)a=x+y,b=p;
}
printf("%d %d\n",b,a);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153853/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153853/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// Aizu 0262: Making Sugoroku
// 2017.10.26 bal4u@uu
#include <stdio.h>
#include <string.h>
char g[255][255];
int d[255];
int main()
{
int m, n, i, j, k, ans;
while (scanf("%d", &m) && m > 0) {
memset(g, 0, sizeof(g));
scanf("%d", &n);
for (i = 1; i <= n; i++) scanf("%d", d+i);
for (i = 0; i <= n; i++) fo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153903/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153903/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int n,a,b,c,N;
scanf("%d",&n);
a=n%10;
if(a==9)
a-=8;
else
a+=8;
n/=10;
b=n%10;
if(b==9)
b-=8;
else
b+=8;
n/=10;
c=n;
if(c==9)
c-=8;
else
c+=8;
N=(100*c)+(10*b)+a;
printf("%d\n",N);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153947/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153947/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
char n[5];
int i,j;
scanf("%s",n);
for(j=0;n[j]!='\0';j++);
for(i=0;i<j;i++){
if(n[i]=='9'){
n[i]='1';
}else if(n[i]=='1'){
n[i]='9';
}
}
printf("%s",n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153990/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153990/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
// Your code here!
int n;
scanf("%d",&n);
int i,p[4],r;
for(i=0;i<3;++i){
r = n%10;
n = n/10;
p[i] = r;
}
for(i=0; i<3;++i){
if(p[i] == 1) p[i] = 9;
else if (p[i] =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_154076/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_154076/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(void){
int i, n;
char x[10];
scanf("%d", &n);
sprintf(x, "%d", n);
for(i = 0; i < 3; i++){
if(x[i] == '0' + 9){
x[i] = 1;
}else if(x[i] == '0' + 1) {
x[i] = 9;
}
}
for(i = 0; i < 3; i++){
printf("%d",x[i]);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_154126/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_154126/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.