Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
/* ex 5_4 suuxxu */ #include <stdio.h> #include <string.h> int main(void){ char str[11]; int i, tmp, ans; // strに文字列Sを入力 scanf("%s", &str); tmp = 0; ans = 0; for(i = 0; i < strlen(str); i++){ if(str[i] == 'A' || str[i] == 'C' || str[i] == 'G' || str[i] == 'T'){ // ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210650/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210650/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 counter=0,max=0; char S[10]; scanf("%s",S); for (int i = 0; i < 10; i++) { while (S[i]=='A'||S[i]=='C'||S[i]=='G'||S[i]=='T') { counter++; if (max<counter) max = counter; i++; } counter=0; } printf("%d",max); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210694/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210694/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> typedef long long ll; typedef long double ld; #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<<60) #define MOD1 1000000007 #define MAX_N (1 << 17) void swap(ll *a, ll *b){ll c;c=*b;*b=*a...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210737/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210737/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[10]; int i,j=0,count=0,max=0; scanf("%s",a); do{ for(i=j;i<=9;i++){ j++; if(a[i]=='A'||a[i]=='T'||a[i]=='G'||a[i]=='C') count++; else { if(count!=0){ count=0;} break;} if(max<count) max=count; }}while(i<=9); printf("%d",max); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210780/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210780/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { char S[11];//'\0'が入る scanf("%s",S );// Sが文字列の先頭のアドレスを渡す int i = 0; int count = 0; int max = 0; for(i = 0; S[i] != '\0'; i++) { if(S[i]=='A'||S[i]=='T'||S[i]=='G'||S[i]=='C') { count++; if(count > max) max = count; } else { count = 0...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210830/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210830/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ char s[10]; int x=0,b=0,i; scanf("%s",s); for(i=0;i<10;i++){ if(s[i]=='A' || s[i]=='C' || s[i]=='G' || s[i]=='T'){ x ++; }else{ x = 0; } if(x > b) b = x; if(s[i]==NULL) break; } printf("%d",b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210874/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210874/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cmp(const void *a, const void *b) { return *(int*)b - *(int*)a; //降順なら } int main() { char S[10]; scanf("%s", S); int i,j; int k = 0; int len=strlen(S); int B[10] = { 0 }; int ans[10] = {0}; for (i = 0;i<len;i++) { if (S...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210982/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210982/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> typedef char SINT8; typedef unsigned char UINT8; typedef short SINT16; typedef unsigned short UINT16; typedef int SINT32; typedef unsigned int UINT32; typedef long long SINT64; typedef unsigned long long UI...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211024/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211024/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 2039: Space Coconut Crab II // 2017.11.6 bal4u@uu // // a + b + c = T // a <= b <= c // a + b > c #include <stdio.h> #include <stdlib.h> #define TM 0 #if TM #include <time.h> #endif #define MAX 15000 char tbl[MAX+1] = {1,1,0,0}; // zero: if prime int p[1755] = { // p[29] = 113 <= sqrt(MAX), max sz = 175...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211075/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211075/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @tbl = dso_local local_unna...
#include <stdio.h> #include <stdlib.h> #define ll long long int #define lim 100010 int min(int x, int y){return x<y?x:y;} int compare_int(const void *a, const void *b){return *(int*)b - *(int*)a;} typedef struct{ int num,c; }data; int compare(const void *x, const void *y){ return ((data*)y)->c - ((data*)x)->c; } int ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211118/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211118/source.c" target datalayout = "e-m:e-p270: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.data = type { i32, ...
#include <stdio.h> #include <string.h> #define MAX 100000 int main() { long int n; long int i, tmp, x, max_odd, max_odd_i, sec_odd, max_even, max_even_i, sec_even, y, z; long int odd[MAX] = {0}, even[MAX] = {0}; scanf("%ld", &n); for (i = 0; i < n; i++) { scanf("%ld", &tmp); if (i % 2 == 0) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211161/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211161/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; if(scanf("%d", &N) == 1); int l; for(l=1; l<N; l++){ N -= l; } if(N != l){ printf("No\n"); return 0; } printf("Yes\n"); printf("%d\n", l+1); int answer[l+1][l]; int Index = 1; for(int i=0; i<=l; i++){ printf("%d", l); int j=0; for(; j<i; j++){ printf(" %...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211204/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211204/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 argc, char const *argv[]) { int N,K; scanf("%d%d",&N,&K ); if (K<=(int)((N+1)/2)) { printf("YES"); }else{ printf("NO"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211248/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211248/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t,x; scanf("%d %d",&t,&x); if(t>=(x*2)-1){ printf("YES"); }else{ printf("NO"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211291/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211291/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, k; scanf("%d %d", &n, &k); if (n+1>=2*k) { printf("YES"); } else { printf("NO"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211334/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211334/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> void swap(int *i, int *j) { *i += *j; *j = *i - *j; *i -= *j; } int main(void) { int score[100]; int i, j; int a, b, c, d; int n; int no[100]; scanf("%d", &n); for (i = 0; i < n; i++){ score[i] = no[i] = 0; } for (i = 0; i < n * (n - 1) / 2; i++){ scanf("%d %d %d %d", &a, &b, ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211392/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211392/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 absll(long long int a, long long int b){ if(a>b) return a-b; else return b-a; } int main(){ int i,j,k; long long int x,y,z,K; scanf("%lld %lld %lld %lld",&x,&y,&z,&K); if(absll(x,y) > 10e+18){ puts("Unfair"); return 0; } if((K%2) == 1){ printf(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211457/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211457/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { long long a,b,c,k,t0,t1,t2,m; scanf("%lld%lld%lld%lld",&a,&b,&c,&k); k=k%4; if(k==0) printf("%lld\n",a-b); else{ while(k--) { t0=a,t1=b,t2=c; a=t1+t2; b=t0+t2; m=a-b; } if(m>1e18) printf("Unfair\n"); else printf("%lld\n",m); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211507/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211507/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <float.h> #include <inttypes.h> #include <limits.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> #include <math.h> #ifdef __cplusplus #include <bits/stdc++.h> #endif uint32_t nextpint(void){ char c=getchar_unlocked();...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211572/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211572/source.c" target datalayout = "e-m:e-p270: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> #include <stdlib.h> #include <string.h> #include <limits.h> #include <math.h> typedef unsigned long long int llu; unsigned long long int N,X; unsigned long long int sort[101]; unsigned long long int buffer[100]; void mergeSort(llu n, llu x[]) { llu i, j, k, m; if(n <= 1) { return; } m = n / ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211659/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211659/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @buffer = dso_local local_u...
#include<stdio.h> #include<stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL Node root; void insert(int k){ Node y = NIL; Node x = root; Node z; z = malloc(sizeof(struct node)); z->key = k; z->left = NIL; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211745/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211745/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { ptr, ...
#include <stdio.h> #include <stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL Node root; Node treeMinimum(Node x) { while (x->left != NIL) x = x->left; return x; } Node treeMaximum(Node x) { while (x->righ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211789/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211789/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { ptr, ...
#include<stdio.h> #include<stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL Node root; Node treeMinimum(Node x){ } Node treeMaximum(Node x){ } Node treeSearch(Node u, int k){ } Node treeSuccessor(Node x){ } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211831/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211831/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { ptr, ...
#include<stdio.h> #include<stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL Node root; /*Node treeMinimum(Node x){ }*/ /*Node treeMaximum(Node x){ }*/ /*Node treeSearch(Node u, int k){ }*/ /*Node treeSuccessor...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211882/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211882/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { ptr, ...
#include <stdio.h> #include <stdlib.h> #define NIL NULL struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; Node root; void insert(int k){ Node y = NIL; Node x = root; Node z; z = malloc(sizeof(struct node)); z->key = k; z->...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211925/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211925/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { ptr, ...
#include<stdio.h> #include<string.h> #include<stdlib.h> #define NIL NULL struct node{ int key; struct node *right; struct node *left; struct node *parent; }; typedef struct node * Nodep; void insert(int); void preorder(Nodep); void inorder(Nodep); Nodep root; int main(){ Nodep z; int key,n,i,x; ch...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211990/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211990/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { i32, ...
#include<stdio.h> #include<string.h> #include<stdlib.h> struct Node{ int key; struct Node *right,*left,*parent; }; struct Node *root,*NIL; void insert(int); void inorder(struct Node *); void preorder(struct Node *); int main(){ int n,i,x; char s[20]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%s",s);...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212032/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212032/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.Node = type { i32, ...
#include<stdio.h> #include<stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL Node root; /*Node treeMinimum(Node x){ } Node treeMaximum(Node x){ } Node treeSearch(Node u, int k){ } Node treeSuccessor(Node x){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212083/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212083/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { ptr, ...
#include<stdio.h> #include<stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL Node root; Node treeMinimum(Node x){ } Node treeMaximum(Node x){ } Node treeSearch(Node u, int k){ } Node treeSuccessor(Node x){ } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212126/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212126/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { ptr, ...
#include<stdio.h> #include<stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL Node root; void insert(int k){ Node y = NIL; Node x = root; Node z; z = malloc(sizeof(struct node)); z->key = k; z->left = NIL; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212184/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212184/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { ptr, ...
#include<stdio.h> #include<stdlib.h> #include<string.h> #define MAX 500001 struct node{ struct node *parent; struct node *left; struct node *right; int key; }; typedef struct node Node; Node *root,*NIL; void Insert(int id){ Node *x,*y,*z; y = NIL; x = root; z = (Node *)malloc(sizeof(Node)); z->key...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212234/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212234/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { ptr, ...
#include<stdio.h> #include<stdlib.h> #include<string.h> typedef struct Node{ int key; struct Node *right,*left,*parent; }Node; #define NIL NULL Node *root; void insert(int k){ Node *y=NIL; Node *x=root; Node *z; z=malloc(sizeof(struct Node)); z->key=k; z->left=NIL; z->right=NIL; while(x!=NIL){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212285/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212285/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.Node = type { i32, ...
#include<stdio.h> #include<stdlib.h> struct node{ int key; struct node *parent; struct node *right; struct node *left; }; typedef struct node *Node; Node T; #define NIL NULL; void Insert(int); void Preorder(Node); void Inorder(Node); int main() { int n,i,key; char S[7]; scanf("%d",&n); for(i=0;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212328/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212328/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { i32, ...
#include <stdio.h> #include <stdlib.h> struct node { struct node *right; int key; struct node *left; }; typedef struct node * NodePointer; void init(void); NodePointer makenode(int); void insert(int,NodePointer); void preorder(NodePointer); void inorder(NodePointer); NodePointer head, tail; int main(){ char...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212379/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212379/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { ptr, ...
#include<stdio.h> #include<stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL Node root; Node treeMinimum(Node x){ } Node treeSearch(Node u, int k){ } Node treeSuccessor(Node x){ } void treeDelete(Node z){ Nod...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212429/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212429/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { ptr, ...
#include <stdio.h> typedef struct pair* ppair; typedef struct pair { int first, second; } pair; int size; pair v[1000000]; int psize; int preorder[1000000]; void swap(ppair a, ppair b) { pair t = *a; *a = *b; *b = t; } int getp(int begin, int end) { int i; int p = begin; for(i = begin+1; i < end; ++...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212472/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212472/source.c" target datalayout = "e-m:e-p270: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.pair = type { i32, ...
#include <stdio.h> #include <stdlib.h> #include <string.h> struct Node { int key; struct Node *right, *left, *parent; }; typedef struct Node Node; Node *root, *NIL; void insert(int k) { Node *y = NIL; Node *x = root; Node *z; z = (Node *)malloc(sizeof(Node)); z->key = k; z->lef...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212515/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212515/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.Node = type { i32, ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #define MMAX 500000 struct Node{ int key; struct Node *left; struct Node *right; struct Node *parent; }; struct Node *root, *NIL; void insert(int k){ struct Node *y = NIL; struct Node *x = root; struct Node *z; z = (struct Node *)malloc(siz...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212559/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212559/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.Node = type { i32, ...
#include<stdio.h> #include<stdlib.h> #include<string.h> struct Node{ int s; struct Node *ri; struct Node *le; struct Node *oya; }; struct Node *root, *NIL; void Inorder(struct Node *); void Preorder(struct Node *); void Insert(int a){ struct Node *p = root; struct Node *q = NIL; struct Node *r; r = (st...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212601/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212601/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.Node = type { i32, ...
#include<stdio.h> #include<stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL Node root; Node treeMinimum(Node x){ while(x->left!=NIL) x=x->left; return x; } Node treeMaximum(Node x){ while(x->right!=NIL) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212645/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212645/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { ptr, ...
#include <stdio.h> #include <stdlib.h> #include <string.h> struct Node{ int key; struct Node *right, *left , *parent; }; struct Node *root , *NIL; void insert(int k) { struct Node *y = NIL; struct Node *x = root; struct Node *z; z = (struct Node *)malloc(sizeof(struct Node)); z->key = k; z->left = NIL; z...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212689/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212689/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.Node = type { i32, ...
#include<stdio.h> #include<stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL Node root; Node treeMinimum(Node x){ while(1){ if(x->left == NIL)break; x = x->left; } return x; } Node treeMaximum(Node x){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212731/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212731/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { ptr, ...
#include <stdio.h> #include <stdlib.h> #include <string.h> struct Node{ int key; struct Node *right, *left, *parent; }; struct Node *root, *NIL; void insert(int k){ struct Node *y = NIL, *x = root, *z; z = (struct Node *)malloc(sizeof(struct Node)); z->key = k; z->left = NIL; z->right...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212782/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212782/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.Node = type { i32, ...
#include <stdio.h> #include <stdlib.h> #include <string.h> struct node{ int key; struct node *right, *left, *parent; }; struct node *root, *NIL; void insert(int); void inorder(struct node *); void preorder(struct node *); int main() { int n, i, x; char s[20]; scanf("%d",&n); for(i=0;i<n;i++){ scan...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212825/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212825/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { i32, ...
#include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct node *link; struct node{ int key; link le,ri,pa; }; link head; void insert(int a); void inorder(link h); void preorder(link h); int main(){ int m,k; char op[10]; int i; head=NULL; scanf("%d",&m); for(i=0;i<m;i++){ scanf("%...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212869/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212869/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { i32, ...
#include <stdio.h> #include <math.h> int main(void){ int n,y,i,b,t,maxb; double sum,r,max; for(;max=0,scanf("%d",&n),n;){ scanf("%d",&y); for(i=0;i<n;i++){ scanf("%d %lf %d",&b,&r,&t); switch(t){ case 1: sum=(1+y*r/100);break; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212919/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212919/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int n,i; scanf("%d",&n); long long a[n+2],b[n+1],count=0; for(i=0;i<=n;i++) scanf("%lld",&a[i]); for(i=0;i<n;i++) scanf("%lld",&b[i]); for(i=0;i<n;i++){ if(a[i]>b[i]) count+=b[i]; else{ if((a[i]+a[i+1])>b[i]){ count+=b[i]; a[i+1]-=b[i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212962/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212962/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h> #define MOD 1000000007 #define MAXE9 1000000000 int i,j,k,l; int main(){ int N; long A[100001]; long B[100000]; long long ans = 0; scanf("%d", &N); for(i=0;i<=N;i++) scanf("%ld", &A[i]); for(i=0;i<N;i++)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213004/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213004/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int a[100001]; int b[100001]; long score; scanf("%d", &n); for(i=0;i<n+1;i++){ scanf("%d", &a[i]); } for(i=0;i<n;i++){ scanf("%d", &b[i]); } score=0; for(i=0;i<n;i++){ if(a[i]<=b[i]){ score+=a[i]; b[i]-=a[i]; a[i]=0; if(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213048/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213048/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i, j, k; int n, m, h, g, c, d, l, r; long long int f = 0; int w = 0; int a[110000]; int b[110000]; scanf("%d", &n); for (i = 0;i < n+1;i++) { scanf("%d", &a[i]); } for (i = 0;i < n;i++) { scanf("%d", &b[i]); } for (i = 0;i < n;i++) { if (a[i] <w...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213091/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213091/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MIN(int a,int b){return a<b?a:b;} int main(){ long long n,i,a[100010],b[100100],c,s=0; scanf("%lld",&n); n++; for(i=0;i<n;i++)scanf("%lld",&a[i]); for(i=1;i<n;i++)scanf("%lld",&b[i]); for(i=1;i<n;i++){ c=MIN(b[i],a[i-1]); s+=c; b[i]-=c; c=MIN(b[i],a[i]); s+=c; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213134/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213134/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 M1, D1, M2, D2; scanf("%d", &M1); scanf("%d", &D1); scanf("%d", &M2); scanf("%d", &D2); if (M1 + 1 == M2 || (M1 == 12 && M2 == 1)) printf("1"); else printf("0"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213185/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213185/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 d1,d2,m1,m2; scanf("%d%d",&m1,&d1); scanf("%d%d",&m2,&d2); if(m1 == 1 || m1 == 3 || m1 == 5 || m1 == 7 || m1 == 8 || m1 == 10 || m1 == 12) { if(d1 == 31) printf("1"); else printf("0"); } else if(m1 == 2) { i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213228/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213228/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m1, m2, d1, d2, a; scanf("%d", &m1); scanf("%d", &d1); scanf("%d", &m2); scanf("%d", &d2); a = m1+1; if (a == 13) { a = 1; } if (a == m2) { printf("1"); return 0; } else { printf("0"); return 0; }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213271/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213271/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> typedef long long ll; ll mod=1000000000+7; int main(void){ int M1, M2, D1, D2; scanf("%d %d",&M1, &D1); scanf("%d %d",&M2, &D2); printf("%d", M1!=M2 ? 1:0); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213314/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213314/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @mod = dso_local local_unna...
#include<stdio.h> int abs(int n){ if(n>=0) return n; else return -n; } int min(int a,int b){ if(a>=b) return b; else return a; } int mini(int N,int *u,int A,int B,int C){ int m=10000; for(int i=0;i<N;i++){ for(int j=0;j<N;j++){ for(int k=0;k<N;k++){ if(i!=j...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213372/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213372/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 input; scanf("%d", &input); for(int i = 0; i < input; i++){ long long int x; long long int y; scanf("%lld", &x); scanf("%lld", &y); int z = y % 4; long long int l = y / 4; if(z == 0){ printf("%lld\n", x); } else{ if(x % 2 == 0){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21343/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21343/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> int main(){ int X,Y; scanf("%d %d",&X,&Y); if(Y<2*X||X*4<Y){ printf("No"); }else if(Y%2==1){ printf("No"); }else{ printf("Yes"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213473/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213473/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d %d", &x, &y); for (int i = 0; i <= x; i++) { int j = x - i; if (2 * i + 4 * j == y) { printf("%s", "Yes\n"); return 0; } } printf("%s", "No\n"); return 0;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213516/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213516/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N 50 int main() { int n, k; static int a[N]; int i, ans; scanf("%d %d", &n, &k); for (i = 0; i < n; i++) scanf("%d", &a[i]); k--; ans = 0; for (i = 0; i < n; i++) if (a[i] >= a[k] && a[i] != 0) ans++; printf("%d\n", ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21356/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21356/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @main.a = internal global [50...
#include<stdio.h> int main(){ int a,b,X,Y; scanf("%d",&X); scanf("%d",&Y); for(a=0;a <= X;a++){ b = X-a; if(Y == 4*a + 2*b){ printf("Yes"); break; }else if(a==100 || a==X) { printf("No"); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213602/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213602/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d %d",&x,&y); if(y%2==0 && y/2-x>=0 && 2*x-y/2>=0){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213653/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213653/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int h, f, turu, kame, flg; scanf("%d %d", &h, &f); for (turu = 0; turu <= h; turu++) { kame = h - turu; flg = (h == kame + turu) && (f == 2 * turu + 4 * kame); if (flg) { break; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213697/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213697/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int main() { scanf("%d %d ", &N, &K); int i, j, points; for (i = 0; i < K; ++i) { scanf("%d ", &points); if (!points) { printf("%d\n", i); return 0; } } i = K; int next; while (i < N && scanf("%d ", &next) != EOF ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21374/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21374/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define SIZE 100005 #define PI acosl(-1) //3.14159265358979323846264338327950L #define rep(i, N) for (i = 0; i < N; i++) //制御変数iを用いてN回転 #define array(N, t) (t*)calloc(N, sizeof(t)) //t型N要素の1次元配列を動的確保後0クリア(freeを忘れずに) #define zero(a); {int ite...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213790/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213790/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { i32, ...
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #include <limits.h> #include <stdbool.h> #define rep(i, n) for(int i=0; i<(n); ++i) #define max 200001 //qsort(str, n, sizeof(int), up_comp); int up_comp(const void *a, const void *b){return *(int*)a - *(int*)b;} int down_comp(const void *a...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213833/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213833/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 'S': printf("Cloudy"); break; case 'C': printf("Rainy"); break; case 'R': printf("Sunny"); break; } return(0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213884/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213884/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() { char input[20]; scanf("%s",&input); if(!strcmp(input,"Sunny")){ printf("Cloudy"); } else if(!strcmp(input,"Cloudy")){ printf("Rainy"); } else{ printf("Sunny"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213949/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213949/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 w[8],w1[]="Sunny",w2[]="Cloudy",w3[]="Rainy"; scanf("%s",&w); if (strcmp(w,w1)==0){ printf("%s\n",w2); }else if(strcmp(w,w2)==0){ printf("%s\n",w3); }else{ printf("%s\n",w1); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214056/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214056/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @__const.main.w1 = private ...
#include<stdio.h> #include<string.h> int main(void) { char s[10]; char ans[10]; char sun[] = "Sunny"; char clo[] = "Cloudy"; char rai[] = "Rainy"; scanf("%s", s); if(strcmp(s, sun) == 0){ printf("%s\n", clo); }else if(strcmp(s, clo) == 0...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214113/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214113/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @__const.main.sun = private...
#include <stdio.h> #include <string.h> int main(){ char str[8]; scanf("%s", str); if (strcmp("Sunny",str) == 0) printf("Cloudy"); if (strcmp("Cloudy",str) == 0) printf("Rainy"); if (strcmp("Rainy",str) == 0) printf("Sunny"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214171/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214171/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[7]; scanf("%s",s); if(s[0]=='S') printf("Cloudy\n"); else if(s[0]=='C') printf("Rainy\n"); else printf("Sunny\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214221/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214221/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> #include<stdint.h> #include<inttypes.h> typedef int32_t i32; typedef int64_t i64; #define ALLOC(size,type) ((type*)calloc((size),sizeof(type))) typedef struct directed_edge { int32_t vertex; int32_t next; } graph_edge; typedef struct directedGraph { graph_edge *edge; int...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214265/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214265/source.c" target datalayout = "e-m:e-p270: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.directedGraph = typ...
#include<stdio.h> int main(void) { int i,j,n,a[4][13],number; char card; for (i = 0; i < 13; i++) { a[0][i]=0; a[1][i]=0; a[2][i]=0; a[3][i]=0; } scanf("%d",&n); for(i=0;i<n*2;i++) { scanf("%c %d", &card,&number); if(card == 'S') { a[0][numb...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214315/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214315/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main (void) { int n,i,j,num; char card[5][14]={0},mark; //s=1,h=2,c=3,d=4 scanf("%d",&n); for(i=1;i<=n;i++){ scanf(" %c %d",&mark,&num); if(mark=='S')card[1][num]=1; if(mark=='H')card[2][num]=1; if(mark=='C')card[3][num]=1; if(mark=='D')card[4][num]=1; } for(i=1;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214359/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214359/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 card[53]={0}; int n; int i,num; char pattern[2]={'\0'}; scanf( "%d", &n ); for( i=0; i<n; i++ ) { scanf( "%s%d", pattern, &num ); pattern[1]='\0'; switch( pattern[0] ) { case 'S': card[num-1]=1; break; case 'H': card[12+num]=1; break; c...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214409/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214409/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 array[4][13]={},n,i,num,mark2; char mark; scanf("%d\n",&n); for(i=0;i<n;i++){ scanf("%c %d",&mark,&num); getchar(); if(mark == 'S'){ array[0][num-1] = 1; }else if(mark == 'H'){ array[1][num-1] = 1; }else if(mark == 'C'){ array[2][num-1] = 1; }else if(mark == 'D'...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214452/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214452/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, card[4][13] = {0}; int i, j, c, d; char m; scanf("%d", &n); for(i=0;i<n;i++){ scanf(" %c %d", &m, &d); switch(m){ case 'S' : card[0][d-1] = 1; break; case 'H' : card[1][d-1] = 1; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214502/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214502/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, n, tmp; char s; int card[4][13]; for(i=0; i<4; i++){ for(j=0; j<13; j++) card[i][j] = 0; } scanf("%d", &n); for(i=0; i<n; i++){ scanf("%s%d", &s, &tmp); //printf("%c %d\n",s, tmp); if(s ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214546/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214546/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 argc, char **argv) { int i,n,k; scanf("%d %d",&n,&k); int arr[n]; for (i=0; i<n;i++) { scanf("%d",&arr[i]); } int prize = arr[k-1]; int result =0; for (i=0;i<n;i++) { if (arr[i]>=prize && arr[i]!=0) result++; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21459/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21459/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> #include<stdlib.h> #include<string.h> int main() { int i,n,k,arr[1000],count=0; scanf("%d %d",&n,&k); for(i=1;i<=n;i++) { scanf("%d",&arr[i]); } for(i=1;i<=n;i++) { if(arr[i] >= arr[k] && arr[i]>0) count++; } printf("%d\n",count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21464/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21464/source.c" target datalayout = "e-m:e-p270:32:32-p271: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,i,j,k,c[4][13],y; char x; for (i = 0; i < 4; i++){ for (j = 0; j < 13; j++){ c[i][j]=0; } } scanf("%d",&n); for (k = 0; k < n*2; k++){ scanf("%c %d",&x,&y); if (x == 'S'){ c[0][y-1]=1; } else if (x == 'H'){ c[1][y-1]=1; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214683/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214683/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 S[13]={0},H[13]={0},C[13]={0},D[13]={0},i,x,y; char G; scanf("%d",&x); for(i=0;i<x;i++){ scanf(" %c %d",&G,&y); if(G=='S') S[y-1]=1; else if(G=='H') H[y-1]=1; else if(G=='C') C[y-1]=1; else if(G=='D') D[y-1]=1; } for(i=0;i<13;i++){ if(S[i]==0) printf("S %d\...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214726/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214726/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,n,mas[50],count=0; scanf("%i""%i" ,&k,&n); for(i=0;i<k;i++) scanf("%i" ,&mas[i]); for(i=0;i<n;i++) if(mas[i]>0) count++; if(n!=k) if ((mas[n]==mas[n-1])&&(mas[n]>0)) while ( (mas[n-1]==mas[i]) && (i<k) ) { count++; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21477/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21477/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 strs[4] = {'S','H','C','D'}; int data[4][13] = {0}; int n,i,j,x; char c; scanf("%d",&n); for(i = 0;i<=n;i++){ scanf("%c %d\n",&c,&x); switch(c){ case 'S': data[0][x-1] = 1; break; case...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214812/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214812/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @__const.main.strs = privat...
#include<stdio.h> int main(void) { int a[52] = {0}; char b[4] = {'S','H','C','D'}; int d, n; char c; int e, f; scanf("%d", &n); for (f = 0; f < n; f++) { scanf(" %c %d", &c, &d); for (e = 0; b[e] != c; e++) { d += 13; } a[d - 1] = 1; } for (f = 0; f < 4; f++) { for (e = 0; e < 13; e++) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214863/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214863/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @__const.main.b = private u...
#include <stdio.h> #define S 0 #define H 1 #define C 2 #define D 3 int main(int argc, const char * argv[]) { int card[4][13] = {};//4種類、1〜13 int n, num, i, j; char m; scanf("%d", &n); for(i = 0; i < n; i++){ scanf(" %c %d", &m, &num); switch(m){ case 'S': car...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214913/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214913/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int n; scanf("%d",&n); int card[4][13]={{}}; char str[2]; int num; int i; for(i = 0; i < n ; i++){ scanf("%s%d",str,&num); char ch = str[0]; if(ch == 'S'){ card[0][num-1] = 1; } if(ch == 'H'){ card[1][num-1] ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214957/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214957/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<stdlib.h> int main() { long long int n, t, i, s, c, j, k, x; scanf("%lld", &t); for(i=1; i<=t; i++) { scanf("%lld", &n); s=0; c=0; for(j=1; j<=(n/2); j++) { if(j==n/2){ s=s+pow(2,n); } else{ s=s+pow(2,j); } } for(k=n/2; k<n; k++) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2150/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2150/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 LUT[ 'Z' + 1 ] = { }; int main ( int argc, char *argv[ ] ) { int cards[ 4 ][ 14 ] = { }; int n; int i, j; LUT[ 'S' ] = 0; LUT[ 'H' ] = 1; LUT[ 'C' ] = 2; LUT[ 'D' ] = 3; scanf ( "%d", &n ); while ( n-- ) { char mark; int rank; scanf ( " %c %d", &mark...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215042/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215042/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @LUT = dso_local local_unna...
#include <stdio.h> int main(void){ char ch; int n,m; scanf("%d\n",&n); int cards[4][13]={0}; for(int i=0;i<n;i++){ scanf("%c %d\n",&ch,&m); if(ch=='S'){ cards[0][m-1]=m; }else if(ch=='H'){ cards[1][m-1]=m; }else if(ch=='C'){ cards[2][m-1]=m; }else ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215093/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215093/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; long s=0; scanf("%d",&n); for(int i=0;i<n;i++){ char c; int d; scanf(" %c %d",&c,&d); switch(c){ case 'S':d+=13*0;break; case 'H':d+=13*1;break; case 'C':d+=13*2;break; case 'D':d+=13*3;break; } s|=1L<<--d; } for(int i=0;i<52;i++)if(~s>>i&1)printf("%c ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215136/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215136/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int n,a[100005]; long long min,max; scanf("%d",&n); int i; for(i=0;i<n;i++) { scanf("%d",&a[i]); } for(i=0;i<n;i++) { if(i==0) { min=a[1]-a[0]; max=a[n-1]-a[0]; } else if(i==n-1) { min=a[i]-a[i-1]; max=a[i]-a[0]; } else { if(a[i]-a[i-1]<a[i+1]-a...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21518/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21518/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 t[4][14]; int n,i,j,c; char m,d; for(i=0; i<4;i++){ for(j=0; j<14; j++){ t[i][j]= 0; } } scanf("%d",&c); for(i=0; i<c; i++){ scanf("%c",&d); scanf("%c %d",&m,&n); if(m == 'S'){ t[0][n]=1...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215222/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215222/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char suits[52]; int ranks[52]; int i, j; int cards[4][14] = {{}}; scanf("%d ", &n); for(i = 0; i < n; ++i) { scanf("%c %d ", &suits[i], &ranks[i]); if(suits[i] == 'S') { cards[0][ranks[i]] = 1; } else if(suits[i] == 'H') { cards[1][ran...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215266/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215266/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 maisuu, i, num; int S[14], H[14], C[14], D[14]; char chara; //カードを示す配列に1を格納 for(i=0;i<14;i++){ S[i] = 1; H[i] = 1; C[i] = 1; D[i] = 1; } //太郎の持っているカードの枚数を読み取る scanf("%d", &maisuu); //カード配列の中で太郎の持っているものは0に変更 for(i=0;i<maisuu*2;i++){ scanf("%c", &chara); scanf...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215352/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215352/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,i; scanf("%d%d%d",&a,&b,&k); if(b-a>=2*k){ for(i=a;i<a+k;i++) printf("%d\n",i); for(i=b-k+1;i<=b;i++) printf("%d\n",i); } else for(i=a;i<=b;i++) printf("%d\n",i); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215417/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215417/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,K; int i=0,d=0; scanf("%d %d %d",&A,&B,&K); for(i=A;i<A+K;i++){ if(i<=B)printf("%d\n",i); } for(i=B-K+1;i<=B;i++){ if(A+K<=i)printf("%d\n",i); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215460/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215460/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,i,j; scanf("%d %d %d",&a,&b,&k); for(i=0;a+i<a+k&&a+i<=b;i++){ printf("%d\n",a+i); } for(j=k-1;b-j<=b;j--){ if(a+i>b-j); else printf("%d\n",b-j); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215503/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215503/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#define _USE_MATH_DEFINES #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <ctype.h> #include <limits.h> #define inf (INT_MAX-1) #define INF 9223372036854775807 #define EPS 1e-10 #define sq(n) ((n)*(n)) #define rep(i,n) for(i=0;i<n;i++) #define rev(i,n) for(i=n-1;i>=0;i--) #define ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215554/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215554/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @mod = dso_local local_unna...