Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include<stdio.h> #define MAX 10000 #define NIL -1 struct Node{ int parent; int left; int right; }; struct Node T[MAX]; void Preorder(int u){ if(u==NIL)return; printf(" %d",u); Preorder(T[u].left); Preorder(T[u].right); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102112/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102112/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.Node = type { i32, ...
#include <stdio.h> #include <stdlib.h> //#define DEBUG typedef struct node{ int left; int right; int parent; }node; void Preorder(int); void Inorder(int); void Postorder(int); node* tree; int n; int main(){ int i,n,id,left,right,root; scanf("%d",&n); tree = (node *)malloc(sizeof(node)*n); for(i=0;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102156/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102156/source.c" target datalayout = "e-m:e-p270: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, ...
/* * Binary Tree * output 1)node_number, 2)parent_number, 3)depth, 4)kind_of_node, 5)child_list */ /* inclution */ #include <stdio.h> /* Definition */ #define MAX 100000 #define NIL -1 /* Prototype */ void preOrder(int); void inOrder(int); void postOrder(int); void printTree(int); /* Global Variables */ struct no...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102206/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102206/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { i32, ...
#include<stdio.h> #define MAX 10000 #define NIL -1 struct Node{ int p, l, r; }; struct Node T[MAX]; int n; void preParse(int u){ if(u == NIL) return; printf(" %d",u); preParse(T[u].l); preParse(T[u].r); } void inParse(int u){ if(u == NIL) return; inParse(T[u].l); printf(" %d",u); inParse(T[u].r); }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102271/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102271/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.Node = type { i32, ...
#include <stdio.h> #include <stdlib.h> int Sibling(int); int degree(int); int Depth(int); int height(int); void inorder(int); void preorder(int); void postorder(int); typedef struct{ int id; int parent; int left; int right; }tree; tree *TREE; int N; #define fr -1 int main(){ int id,i,j,de,depth,ro,l,r;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102314/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102314/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.tree = type { i32, ...
#include<stdio.h> #define MAX 10000 #define NIL -1 struct Node{int p, l, r;}; struct Node T[MAX]; int n; void preParse(int u){ if(u == NIL) return; printf(" %d", u); preParse(T[u].l); preParse(T[u].r); } void inParse(int u){ if(u == NIL) return; inParse(T[u].l); printf(" %d", u); inParse(T[u].r); } void po...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102365/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102365/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.Node = type { i32, ...
#include<stdio.h> #define MAX 100005 #define NIL -1 struct Node{ int p, l, r;}; struct Node T[MAX]; void inorder(int u){ if(u != NIL){ inorder(T[u].l); printf(" %d",u); inorder(T[u].r); } } void preorder(int u){ if(u != NIL){ printf(" %d",u); preorder(T[u].l); preorder(T[u].r);...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102408/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102408/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.Node = type { i32, ...
#include <stdio.h> #define MAX 10000 #define NIL -1 typedef struct node{ int p,l,r; }Node; Node T[MAX]; int n; void preParse(int u){ if(u==NIL) return; printf(" %d",u); preParse(T[u].l); preParse(T[u].r); } void inParse(int u){ if(u==NIL) return; inParse(T[u].l); print...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102466/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102466/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { i32, ...
#include <stdio.h> #define N 10000 #define NIL -1 struct Node{ int id; int left; int right; }; struct Node Tree[N]; int n; void preorder(int x){ if(x == NIL) return; printf(" %d", x); preorder(Tree[x].left); preorder(Tree[x].right); } void inorder(int x){ if(x == NIL) return; inorder(Tree[x].left)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102509/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102509/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.Node = type { i32, ...
#include <stdio.h> #define MAX 100000000 #define noParent -1 struct Node{ int id, l, r; }; struct Node box[MAX]; void preParse(int u){ if ( u == noParent ) return; printf(" %d", u); preParse(box[u].l); preParse(box[u].r); } void inParse(int u){ if ( u == noParent ) return; inParse(box[u].l); printf(" %d", u...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102552/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102552/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.Node = type { i32, ...
#include<stdio.h> #define MAX 10000 #define NIL -1 struct Node { int p, l, r;}; struct Node T[MAX]; int n; /* 先行順巡回 */ void preParse( int u ){ if ( u==NIL ) return; printf(" %d",u); preParse(T[u].l); preParse(T[u].r); } /*中間順巡回*/ void inParse( int u ){ if( u == NIL ) return; inParse(T[u].l); printf(" %d",u); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102596/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102596/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.Node = type { i32, ...
#include <stdio.h> #define MAX 25 typedef struct{ int l,r,par; } node; node N[MAX]; void init(int); void Preorder(int); void Inorder(int); void Postorder(int); int main(){ int n,i,id,l,r; int p; scanf("%d" ,&n); init(n); for(i = 0 ; i < n ; i++){ scanf("%d%d%d" ,&id ,&l ,&r); if(l != -1...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102639/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102639/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { i32, ...
#include<stdio.h> #define N 25 typedef struct{ int p; int l; int r; }Node; void preorder(int); void inorder(int); void postorder(int); Node T[N]; int main(){ int num, i, j, id, le, ri; scanf("%d\n",&num); for(i = 0 ; i < num ; i++){ T[i].p =T[i].l =T[i].r =-1; } for(i = 0 ; i < num ; i++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102682/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102682/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.Node = type { i32, ...
#include<stdio.h> #define MAX 10000 #define NIL -1 struct Node {int p,l,r;}; struct Node T[MAX]; int n; void preParse(int); void inParse(int); void postParse(int); int main(){ int i,v,l,r,root; scanf("%d",&n); for(i=0;i<n;i++){ T[i].p=NIL; } for(i=0;i<n;i++){ scanf("%d %d %d",&v,&l,&r); T[v].l...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102725/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102725/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.Node = type { i32, ...
#include<stdio.h> #define N -1 struct tree {int m, l, r;}; struct tree T[10000]; int n; void preorder(int b){ if(b == N) return; printf(" %d", b); preorder(T[b].l); preorder(T[b].r); } void inorder(int b){ if(b == N) return; inorder(T[b].l); printf(" %d", b); inorder(T[b].r); } voi...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102776/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102776/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.tree = type { i32, ...
#include <stdio.h> #define MAX 10000 #define NIL -1 struct Node{int p,l,r;}; struct Node T[MAX]; int n; void preParse(int u){ if(u==NIL)return; printf(" %d",u); preParse(T[u].l); preParse(T[u].r); } void inParse(int u){ if(u==NIL)return; inParse(T[u].l); printf(" %d",u); inParse(T[u].r); } void post...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102819/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102819/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.Node = type { i32, ...
#include<stdio.h> #define MAX 20001 #define nNIL -1 typedef struct{ int p, l, r; }Tree; Tree node[MAX]; int n; void preParse(int u) { if (u == nNIL) return; printf(" %d", u); preParse(node[u].l); preParse(node[u].r); } void inParse(int u) { if (u == nNIL ) return; inParse(node[u].l); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102884/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102884/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.Tree = type { i32, ...
#include<stdio.h> int main() { while(1){ int flag[21][21],n,x,y,m,i,j,k,px=10,py=10; char direction; int count=0; for(i=0;i<21;i++){ for(j=0;j<21;j++){ flag[i][j]=0; } } scanf("%d",&n); if(n==0) break; for(i=0; i<n; i++){ scanf("%d%d",&x,&y); flag[x][y...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102927/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102927/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> long *tree[100001]; int main(void) { long n; scanf("%ld\n", &n); long tree_s[n+1]; for (long i = 0; i <= n; i++) { tree_s[i] = 0; } long a,b; for (long i = 0; i < n-1; i++) { scanf("%ld %ld", &a, &b); tree[a] = realloc(tree[a], sizeof(long)*(tree_s[a]+...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102985/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102985/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define ll long long #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)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103027/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103027/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @deque = dso_local global [...
#include <stdio.h> int main(){ int a, b; scanf("%d%d", &a, &b); char s[33]; scanf("%s", s); for(int i=0; i<a+b+1; i++){ if((i!=a && s[i]=='-') || (i==a && s[i]!='-')){ printf("No\n"); return 0; } } printf("Yes\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103085/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103085/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); char s[a + b + 2]; scanf("%s\n", s); for(int i = 0; i < a+b+1; i++){ if((i == a && s[i] != '-') || ((i != a) && (s[i] < '0' || s[i] > '9'))){ printf("%s\n", "No"); return 0; } } printf("%s\n", "Yes"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103128/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103128/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> int main() { int A,B,i,length; char s[2000]; scanf("%d%d",&A,&B); scanf("%s",s); length=strlen(s); for(i=0;i<length;i++){ if(s[A]!='-'){ printf("No"); break; } if(i==A){ i++; } if...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103171/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103171/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> int main(){ int A, B, hoge_count = 0; char *S; scanf("%d%d", &A, &B); S = (char *)malloc(sizeof(char) * (A + B + 2)); scanf("%s", S); for(int i = 0; i < (A + B + 2); i++) if(S[i] == '-') hoge_count++; if(hoge_count == 1){ if(S[A] == '-') printf("Yes"); else pr...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103214/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103214/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ch[250]={0}; char a[250]={0}; int h; int i,j,k,m; while(1){ i=0; while(1){ scanf("%c",&ch[i]); if(ch[i]=='\n'){ break; } i++; } if (i==1 && ch[0]=='-') break; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103258/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103258/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 str[400]; int count[100]; int n,i,j=0; while(1){ scanf("%s",str); if(str[0]=='-'){ break; } scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&count[i]); } for...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103300/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103300/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> #include <stdlib.h> int main(void){ char ch[200]; int m; int h,i,j,k; char str[200]; while(1){ scanf("%s", ch); if(ch[0]=='-') break; scanf("%d", &m); for(i=0; i<m; i++){ scanf("%d", &h); strncpy(str,ch,h); for(j=h; j<strlen(ch); j++){ ch[j-h] = c...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103351/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103351/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> int main() { int i, m, h, len; char cards[201], temp[201]; for(;;) { scanf("%s",cards); if(strcmp(cards,"-") == 0) break; len = strlen(cards); scanf("%d",&m); for (i=0; i<m; i++) { scanf("%d",&h); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103395/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103395/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 str[201] = { 0 }; char str1[201] = { 0 }; char str2[201] = { 0 }; int n; int m; int h; int i; while (1){ scanf("%s", str); if (strcmp(str, "-") == 0){ break; } n = strlen(str);...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103438/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103438/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, m, h; char N[201], Nw[201]; while(1){ scanf("%s", N); n = strlen(N); if(!strcmp(N, "-")) break; scanf("%d", &m); for(i = 0; i < m; i++){ scanf("%d", &h); memcpy(Nw, N, h); memcpy(N, &N[h], n-h); memcpy(&N[n-h], Nw, h); } p...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103489/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103489/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cards[400]; int h, i, j, l, m; while (1) { scanf("%s", cards); if (cards[0] == '-' && cards[1] == '\0') break; l = 0; while (cards[l] != '\0') l++; scanf("%d", &m); for (i = 0; i < m; i++) { scanf("%d", &h); for (j = 0; j < h; j++)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103539/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103539/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> int main(){ char str[2][205]; int n; int x; scanf("%s",str[0]); while(str[0][0] != '-'){ scanf("%d",&n); for(int i=0;i<n;i++){ scanf("%d",&x); strcpy(str[(i+1)%2],&str[i%2][x]); str[i%2][x] ='\0'; strcat(str[(i+1)%2],str[i%2]); } printf("%s\n",str[(n)%2]); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103582/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103582/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,j,k,n,s; char ca[201],can[201]; while(1){ scanf("%s\n%d", ca, &n); if(!strcmp(ca, "-")) break; for(i=0;i<n;i++){ scanf("%d", &s); for(j=s;ca[j]!='\0';j++) can[j-s] = ca[j]; for(k=0;k<s;k++) can[j-s+k] ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103625/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103625/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ch[250]={0}; char a[250] ={0}; int h; int i,j,k,l,n,m; while(1){ i=0; while(1){ scanf("%c",&ch[i]); if(ch[i] == '\n') { break; } i++; } if ( i == 1 && ch[0] == '-' ) break; // printf("%d",i);...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103676/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103676/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cards[201],sub[200]; int i,m,h,len; while(scanf("%s",cards),strcmp(cards,"-")){ scanf("%d",&m); len=strlen(cards); for(i=0;i<m;i++) { scanf("%d",&h); strcpy(sub,&cards[h]); strcat(sub,cards)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103719/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103719/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 LEN 201 #define END "-" void shuffle(char[],int); int main(void) { int i; int h; int m; char str[LEN]; for(;;) { scanf("%s",str); if(strcmp(END,str)==0) break; scanf("%d",&m); for(i=0;i<m;i++) { scanf("%d",&h); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103762/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103762/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> #include<math.h> #include<stdlib.h> #include<limits.h> #define rep(i,begin,end) for(int i=begin; i<end; i++) #define revrep(i,begin,end) for(int i=begin; i>end; i--) #define lld long long int #define MOD 1000000007 #define MAX 100001 long long int fac[MAX], finv[MAX], inv[MAX]; vo...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103827/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103827/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @fac = dso_local local_unna...
#include<stdio.h> int main() { int N,i,j,flag=0; int A[200]={0}; scanf("%d",&N); for(i=0;i<N;i++) { scanf("%d",&A[i]); } for(j=0;j<30;j++) { for(i=0;i<N;i++) { if(A[i]%2==1) { flag=1; } A[i]=A[i]/2; } if(flag==1) { printf("%d",j); return 0; } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103870/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103870/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N; int A[201]; int main() { int i; int res = 0; int odd_flg; //数値の数の設定 scanf("%d", &N); // 整数の入力 for(i=0;i<N;i++) { scanf("%d", &A[i]); } //奇数が出てくるまで2で割り続ける odd_flg = 0; while(1) { for(i=0;i<N;i++) { if(A[i] % 2 != 0) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103913/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103913/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 num; //入力された数字を格納する配列 int array[200]; int i; int count = 0; //偶奇判定のフラグ int flag = 0; //入力1  scanf("%d", &num); //入力2 数字を配列に格納 for ( i = 0; i < num; i++) { scanf("%d", &array[i]); } //処理関数  while (1) { for (i = 0; i < num; i++) { if (...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103957/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103957/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 jj(int n) { return n+1; } int main() { int t,i,n,q=1,p=1; int a[10000]; int b[10000]; int c[10000]; scanf("%d",&t); while(t--) { scanf("%d",&n); for(i=1;i<=n;i++) { scanf("%d",&a[i]); if(a[i]%2!=0)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1040/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1040/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 t,k; int b[1000],e[1000]; scanf("%d",&t); for(int i=0;i<t;i++) { scanf("%d %d",&b[i],&e[i]); } scanf("%d",&k); for(int i=0;i<t;i++) { if(k>=b[i]&&k<=e[i]) printf("%d",t-i); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10405/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10405/source.c" target datalayout = "e-m:e-p270:32:32-p271: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, count = 0, check = 0; int a[210]; scanf("%d", &n); for ( int i = 0; i < n; i++ ) { scanf("%d", &a[i]); } while(1) { for ( int i = 0; i < n; i++ ) { if ( a[i]%2 != 0 ) { check = 1; break; } else a[i] /= 2; } if ( check == 1 ) break; else count++; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104093/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104093/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, result = 0, memo = 0,min=100; char str[105]; int num[20000]={}; scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%d", &num[i]); memo = 0; while (num[i] % 2 == 0) { memo++; num[i] /= 2; } if (memo < min) { min = memo; } } printf("%d", min); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104143/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104143/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[201],i,cnt=-1,flag=1; scanf("%d",&n); for(i=0;i<n;i++)scanf("%d",&a[i]); while(flag==1){ for(i=0;i<n;i++){ if(a[i]%2==1)flag=0; a[i]/=2; } cnt++; } printf("%d\n",cnt); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104187/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104187/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n; int c; int sol; struct st { int f, l; }; struct st a[1000]; int main() { scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%d %d", &a[i].f, &a[i].l); } scanf("%d", &c); for (int i = 0; i < n; i++) { if (c > a[i].l) sol++; else if (c >= a[i].f&&c <= a[i].l) break; else; } pr...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10423/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10423/source.c" target datalayout = "e-m:e-p270: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.st = type { i32, i32 ...
#include <stdio.h> #include <stdlib.h> int main (void) { int i, n, *blackboard, cnt, min_cnt = 100000; scanf("%d", &n); blackboard = (int *)malloc(sizeof(int) * n); for (i = 0; i < n; i++) { scanf("%d", &blackboard[i]); } for (i = 0; i < n; i++) { cnt = 0; while (blackboard[i] % 2 == 0) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104273/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104273/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #define POW_10_5 100100 #define MAX_INPUTSTR_LEN POW_10_5 // 読み込む文字列の長さの最大値 #define MAX_Q_LEN (2 * POW_10_5) // Q の最大値 // #define GBN6500_DEBUG char *buffer, *prevPtr, *postPtr; int Q; bool isReversed; // 反転状態なら true void InvertString(c...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104316/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104316/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @Q = dso_local global i32 0...
#include<stdio.h> #define K 38 #define N 1407 int main(){ printf("%d %d\n",N,K); int i,j,x,p=2,pp,mk[2048][64],pa[64]={0}; for(i=1;i<=K;i++){ mk[i][1]=1; for(j=2;j<=K;j++){ mk[i][j]=p;p++; } } pp=K; for(i=2;i<=K;i++){ p=0; for(j=2;j<=K;j++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104367/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104367/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int n; int i; int a, b, c; scanf("%d", &T); while (T--) { scanf("%d", &n); for (i=0; i<n; i+=2) { scanf("%d %d", &a, &b); c = a*b; if (i!=0) printf(" "); printf("%d %d", -c / a, c / b); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10441/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10441/source.c" target datalayout = "e-m:e-p270:32:32-p271: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,a[100000],i; scanf("%d",&n); for(i=0; i<n; i++) scanf("%d",&a[i]); for(i=0; i<n-1; i++) if(a[i]<=a[i+1]) { if(a[i]<a[i+1]) a[i+1]--; } else if(a[i]>a[i+1]) { printf("No\n"); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104453/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104453/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int N; scanf("%d", &N); int H[N]; for(i=0; i<N; i++) scanf("%d", &H[i]); for(i=N-2; i>=0; i--){ if(H[i] == H[i+1]+1) H[i]--; else if(H[i] > H[i+1]+1) break; } if(i == -1) printf("Yes\n"); else printf("No\n"); return 0...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104497/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104497/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> int main() { int text,n,i; int a[1000]; int b[1000]; scanf("%d",&text); while(text--){ scanf("%d",&n); for(i=0;i<n/2;++i) scanf("%d",&a[i]); for(i=0;i<n/2;++i){ scanf("%d",&b[i]); b[i]=-b[i]; } for(i=0;i<n/2;++i) printf("%d ",b[i]); for(i=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10454/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10454/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main() { char c; scanf("%c", &c); if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') printf("vowel\n"); else printf("consonant\n"); fflush(stdout); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104583/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104583/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c; scanf("%c",&c); if(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o'){ printf("vowel"); }else{ printf("consonant"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104626/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104626/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n, k, c; long long int d=1; int gcd(int a, int b) { if(a==0 || b==0) return a+b; if(a>b) return gcd(a%b, b); else return gcd(a, b%a); } int lcm(long long int a, long long int b) { return a*b/gcd(a, b); } int main() { scanf("%d %d", &n, &k); for(int i=0;i<n;i++) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10467/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10467/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @d = dso_local local_unnamed_...
#include <stdio.h> int main(){ char word; scanf("%c", &word); switch(word){ case 'a': case 'i': case 'u': case 'e': case 'o':printf("vowel"); break; default:printf("consonant"); break; } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104712/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104712/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c; scanf("%c",&c); if(c=='a' || c=='i' || c=='u' || c=='e' || c=='o'){ printf("vowel\n"); }else{ printf("consonant\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104756/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104756/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ch; scanf("%c",&ch); if(ch=='a' || ch=='e' || ch=='i' || ch=='o' || ch=='u'){ printf("vowel\n"); } else { printf("consonant\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104813/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104813/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c; scanf("%c",&c); switch(c) { case 'a': case 'e': case 'i': case 'o': case 'u': printf("vowel");break; default : printf("consonant"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104864/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104864/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c[5]; scanf("%s",c); if (c[0] == 'a' || c[0] == 'i' || c[0] == 'u' || c[0] == 'e' || c[0] == 'o') { printf("vowel\n"); } else { printf("consonant\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104907/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104907/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n,a; scanf("%d",&n); if(n%2==0) a=n; else a=n*2; printf("%d\n",a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104950/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104950/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> int main() { int i, length=0; char input[200000]; scanf("%s", &input); for(i=0; input[i] != '\0'; i++) length++; printf("%s", input); for(i=length-1; i>=0; i--) printf("%c", input[i]); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10500/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10500/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <stdlib.h> int main() { long long int n; scanf("%lld",&n); if(n%2==0) printf("%d",n); else printf("%d",2*n); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105050/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105050/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int n; scanf("%d",&n); if(n%2==0){printf("%d",n);} else{printf("%d",n*2);} return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105094/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105094/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int n; scanf("%d",&n); if(n%2==0){ printf("%d\n",n); }else{ printf("%d\n",n*2); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105144/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105144/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) { unsigned long ans=0; unsigned long input=0; scanf("%lu\n", &input); if(input%2==0) ans=input; else ans=2*input; printf("%lu\n", ans); return(0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105230/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105230/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int n; scanf("%d",&n); if(n%2==0){printf("%d",n);}else{printf("%d",n*2);} return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105274/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105274/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int n; scanf("%d",&n); if(n%2 == 0) printf("%d",n); else printf("%d",n*2); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105331/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105331/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 w,h,x,y; scanf("%lf%lf%lf%lf",&w,&h,&x,&y); printf("%lf %d",w*h/2,x+x==w&&y+y==h); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105375/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105375/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int W,H,x,y; scanf("%d %d %d %d",&W,&H,&x,&y); double w,h; w = (double)W; h = (double)H; double ans = w*h/2.0; int ans_2 = 0; if(x*2 == W && y*2 == H) { ans_2 = 1; } printf("%f %d",ans,ans_2); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105425/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105425/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ long long H,W; scanf("%lld%lld",&H,&W); long long x,y; scanf("%lld%lld",&x,&y); int ans = 0; if(x*2 == H && y*2 == W) ans = 1; printf("%.9lf %d",(double)(H*W)/2,ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105469/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105469/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int x, y; int i, j, k; double surfW, surfH; double surfmin; int sum=0; scanf("%d %d %d %d", &W, &H, &x, &y); printf("%lf ", (double)W*(double)H/2.0); if(x+x==W && y+y==H){ printf("1"); }else{ printf("0"); } retur...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105511/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105511/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ double W,H,x,y; int ok=0; scanf("%lf%lf%lf%lf",&W,&H,&x,&y); if(x==W/2&&y==H/2)ok=1; printf("%.9lf %d\n",(W*H)/2,ok); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105555/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105555/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
// AOJ 1315: Gift from the Goddess of Programming // 2017.10.4 bal4u@uu #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX(a,b) ((a)>=(b)?(a):(b)) int tm[1002], s[1002]; char in[1002]; int main() { int n, i, hh, mm, t, p, max, ans; char date[10], time[10], e[5]; while (scanf("%d", &n) && n >...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105599/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105599/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<ctype.h> #include<string.h> #include<assert.h> typedef long long ll; typedef unsigned long long ull; int main() { int n, cnt, mcnt = 0; scanf("%d", &n); int* a = calloc(n, sizeof(int)); for (size_t i = 0; i < n; i++) { scanf("%d", a + i); } cnt = 0; for (size_t...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105649/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105649/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> int main() { int N; scanf("%d", &N); int a[N]; int r; for(r=0; r<N; r++){ scanf("%d", &a[r]); } int c = 0; for(r=0; r<N; r++){ if(a[r] == c+1){ c++; } } if(c==0) printf("-1"); else printf("%d",N-c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105692/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105692/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() { unsigned int n; scanf("%d",&n); unsigned int a[n+2]; for(int i=0;i<n;i++){ scanf("%d",&a[i]); } int cnt=0; int i,j; int ans[n+1]; for(int i=0;i<=n;i++){ ans[i] = i+1; } j = 0; for(i=0;i<n;i++){ if(a[i] == ans[j]){ j++; } } if(j){ j = n - j; printf("%...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105735/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105735/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,k=1,cnt=0; scanf("%d",&n); int a[n]; for(i=0;i<n;i++) scanf("%d",&a[i]); for(i=0;i<n;i++){ if(k==a[i]) k++; else cnt++; } if(n==cnt) printf("-1"); else printf("%d",cnt); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105786/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105786/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MOD 100000 #define FMAX 10946 #define NMMAX 20 int main(void) { int i, j, k, m, n, fcheck, mask, ans = 1, res = 0, fcount = 0; int k2b[FMAX], b2k[1<<19], dp[2][FMAX][2], (*src)[2], (*dst)[2]; char field[NMMAX][NMMAX+1]; scanf("%d %d%*c", &m, &n); for (i = 0; i ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105836/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105836/source.c" target datalayout = "e-m:e-p270: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._IO_FILE = type { i...
#include <stdio.h> char a[105][105]; int main() { int n,d,i,j; scanf("%d %d\n",&n,&d); for (i=1; i<=d; i++) { for (j=1; j<=n; j++) scanf("%c",&a[i][j]); if (i!=d && j!=n) scanf("\n"); } int ans=0, k=0; int t; for (i=1; i<=d; i++) { t=0; for (j=1; j<=n; j++) if (a[i][j]=='0') { k++;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10588/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10588/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <stdlib.h> int main() { int n, d, prev = 0,count = 0; scanf("%d",&n); scanf("%d",&d); int i, j; char ** arr = (char **)malloc(d*sizeof(char *)); for(i = 0; i < d; i++) { arr[i] = (char *)malloc((n+1)*sizeof(char)); scanf("%s",arr[i]); } for(i = 0; i < d; i++) { for(j = 0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10593/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10593/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(void) { int x; scanf("%d",&x); printf("%d\n", x*x*x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105973/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105973/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d\n",&x); x=x*x*x; printf("%d\n",x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_106015/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_106015/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { int x; scanf("%d", &x); printf("%d\n", x*x*x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_106073/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_106073/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d", &x); printf("%d\n", x * x * x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_106130/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_106130/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d", &x); printf("%d\n", x*x*x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_106181/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_106181/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d\n",&x); printf("%d\n",x*x*x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_106224/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_106224/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int x, y; scanf("%d", &x); y = x*x*x; printf("%d\n", y); return(0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_106275/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_106275/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int x,sum; scanf("%d",&x); sum=x*x*x; printf("%d\n",sum); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_106318/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_106318/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int output; scanf("%d",&x); output = x*x*x; printf("%d\n",output); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_106361/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_106361/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 sanjou(int); int main() { int nyuuryoku; scanf("%d",&nyuuryoku); printf("%d\n",sanjou(nyuuryoku)); return 0; } int sanjou(int a) { return a*a*a; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_106404/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_106404/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) {int x; scanf("%d" , &x); printf("%d\n" , x*x*x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_106448/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_106448/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&x); printf("%d\n",x*x*x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_106491/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_106491/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x, a; scanf("%d", &x); a = pow(x,3); printf("%d\n", a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_106534/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_106534/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&a); printf("%d\n",a*a*a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_106578/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_106578/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; while(scanf("%d",&a)!=EOF) { printf("%d\n",a*a*a); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_106620/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_106620/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&x); printf("%d\n",x*x*x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_106664/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_106664/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { int x,y; scanf("%d",&x); y=x*x*x; printf("%d\n",y); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_106707/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_106707/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int x , kotae; scanf("%d", &x); kotae = x*x*x ; printf("%d\n",kotae); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_106750/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_106750/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...