Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include<stdio.h> #include<stdlib.h> #include<string.h> struct Node{ int key; struct Node *right, *left, *parent; }; struct Node *root, *NIL; struct Node * treeMinimum(struct Node *x){ while(x->left != NIL) x = x->left; return x; } struct Node * find(struct Node *u, int k){ while(u != NIL && k != u->key){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206619/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206619/source.c" target datalayout = "e-m:e-p270: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> typedef struct node{ struct node *left; struct node *right; struct node *parent; int key; }Node; typedef Node *NodePointer; NodePointer createNode(void); void inorder(NodePointer); void preorder(NodePointer); void insert(int); NodePointer find(int, NodePointer); void del...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206662/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206662/source.c" target datalayout = "e-m:e-p270: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 NIL NULL struct node{ int key; struct node *left; struct node *right; struct node *p; }; typedef struct node * Node; Node root; /*??£?¨?*/ void Inorder_tree_walk(Node); void Preorder_tree_walk(Node); void insert(int); void find(Node,int); void ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206705/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206705/source.c" target datalayout = "e-m:e-p270: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 NIL NULL struct node{ struct node *ri; struct node *lf; struct node *prt; int key; }; typedef struct node * Node; Node root; Node treeMinimum(Node x){ while (x->lf != NIL) { x = x->lf; } return x; } Node treeSearch(Node u, int k){ if (u == NIL || ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206749/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206749/source.c" target datalayout = "e-m:e-p270: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; }; typedef struct Node Node; Node *root,*NIL; Node *treeMinimum(Node *x){ while(x->left!=NIL) x=x->left; return x; } Node *find(Node *u,int k){ while(u!=NIL && k!=u->key){ if(k < u->key) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206813/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206813/source.c" target datalayout = "e-m:e-p270: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> typedef struct Node_ Node; struct Node_ { int key; Node* parent; Node* left; Node* right; }; static Node* root; static void insert(int key) { Node* node = (Node*)malloc(sizeof(Node)); node->key = key; node->parent = NULL; node->left = NULL; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206864/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206864/source.c" target datalayout = "e-m:e-p270: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; /*節点xを根とする部分木の中で最小のキーを持つ節点を返す*/ Node treeMinimum(Node x){ while (x->left != NIL) { x = x->left;} return x; } Node treeSearch(Node u...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206907/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206907/source.c" target datalayout = "e-m:e-p270: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> typedef struct Node{ int key; struct Node *right; struct Node *left; struct Node *parent; } Node; Node *root; Node *NIL; Node * treeMinimum(Node *x) { while (x->left != NIL) x = x->left; return x; } Node * find(Node *u, int k) { while (u != NIL && k != u->key) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206958/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206958/source.c" target datalayout = "e-m:e-p270: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 MAX 500000 #define NIL NULL struct t{ int val; struct t *parent,*left,*right; }; typedef struct t * T; int n; T root=NIL; void insert(int u){ T next,look,z; z=(T)malloc(sizeof(struct t)); z->val=u; z->parent=z->left=z->right=NIL; next=root; look=NIL; while...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207014/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207014/source.c" target datalayout = "e-m:e-p270: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.t = type { i32, ptr...
#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> struct node{ struct node *left; struct node *right; 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 treeSearch(Node u...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207058/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207058/source.c" target datalayout = "e-m:e-p270: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{ int key; struct Node *right, *left,*parent; }; struct Node *root,*NIL; struct Node *treeMinimum(struct Node *x){ while(x->left!=NIL){ x=x->left; } return x; } struct Node *find(struct Node *u,int k){ while(u!=NIL && k!=u->key){ if(k<u->key){ u=u->left...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207108/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207108/source.c" target datalayout = "e-m:e-p270: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) x...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207151/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207151/source.c" target datalayout = "e-m:e-p270: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->right != NIL) x ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207195/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207195/source.c" target datalayout = "e-m:e-p270: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{ int k; int p; int l; int r; }Node; Node node[500002]; const int nil = -1; int root = -1; int z1 = 0; int tmp = -1; int treeMinimum(int x){ while(node[x].l != nil){ x = node[x].l; } return x; } int treeSucce...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207238/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207238/source.c" target datalayout = "e-m:e-p270: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> int main(void){ char s[11],t[12]; scanf("%s",&s); scanf("%s",&t); for (int i=0; s[i]!='\0'; i++){ if (s[i]!=t[i]){ printf("No\n"); return 0; } } printf("Yes\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207296/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207296/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h> int main(){ char T[11]; char S[11]; scanf("%s",S); scanf("%s",T); bool ok = true; for (int i = 0; i < strlen(S); i++) { if (S[i] != T[i]) { ok = false; } } if (ok) { printf("Yes"); }else{ printf("No"); } return 0;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207339/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207339/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 id_S[11]; char id_T[12]; int i, c; scanf("%s", id_S); scanf("%s", id_T); c = 0; for (i = 0; id_S[i] != '\0'; i++) { if (id_S[i] != id_T[i]) { c++; break; } } if (c == 0) { printf("Yes"); } else { printf("No"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207397/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207397/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s[11]; char t[12]; scanf("%s", s); scanf("%s", t); for (int i=0; i<strlen(s); ++i){ if (s[i]!=t[i]){ printf("No\n"); return 0; } } printf("Yes\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207447/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207447/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 S[11]; char T[strlen(S)+1]; int j=0; scanf("%s\n",S); scanf("%s",T); for (int i=1; i<=strlen(S); i++) { if (S[i-1]!=T[i-1]) { j++; } } if (j==0 && strlen(S)!=strlen(T)) { printf("Yes\n"); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207490/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207490/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 S[100]; char T[100]; scanf("%s %s", S, T); int len = 0; len = strlen( S ); int i = 0, res = 0; for( i = 0; i < len; i++ ){ if( S[i] != T[i] ){ res = 1; } } if( res == 0 ){ printf("Yes \n"); } else{ printf("No \n")...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207533/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207533/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s[11],t[12]; int i,a=0; scanf("%s",s); scanf("%s",t); int d = strlen(s); for(i=0;i<d;i++){ if(s[i]==t[i])a++; } if(a==d)printf("Yes\n"); else printf("No\n"); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207591/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207591/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> #include<math.h> int main(){ char s[11],t[12]; scanf("%s %s",s,t); int len1=strlen(s); int len2=strlen(t); int a; for(a=0;a<len1;a++) if(s[a]!=t[a]){ puts("No");return 0;} if(len2==len1+1)puts("Yes"); else puts("No"); return 0;}
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207634/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207634/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() { char *S, *N; S = (char *)malloc(sizeof(char) * 12); N = (char *)malloc(sizeof(char) * 12); scanf("%s\n%s\n", S, N); if (strlen(S) + 1 - strlen(N) == 0) { N[strlen(N) - 1] = '\0'; if (strcmp(S, N) == 0) { printf("Yes\n"); return...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207678/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207678/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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' }; char t[12] = { '\0' }; scanf("%s", s); scanf("%s", t); int i = 0; int flg = 1; while(s[i] != '\0'){ if(s[i] != t[i]){ flg = 0; break; } i++; } if(flg == 1){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207720/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207720/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <math.h> #include <string.h> #include <ctype.h> int main(){ int num[5],i,j,k,l,m,key,flag=0,count=0; while(scanf("%d,%d,%d,%d,%d",&num[0],&num[1],&num[2],&num[3],&num[4])!=EOF){ for(i=0;i<5;i++){ for(j=i;j<5;j++)if(num[i]==num[j] && i!=j){ flag=1; count++; } } if(count=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207764/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207764/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 0038 * * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0038 * */ #include <stdio.h> #include <stdlib.h> int diff1_Aas14_count(int *hand){ int i, j, n; n = 0; for(i =0; i<5; i++){ for(j=i+1;j<5;j++){ if(hand[i]== 1 || hand[j] == 1){ if(hand[i]== 1){...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207814/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207814/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #define MAX 1000000 int main(void){ // Your code here! int K,flag=1; scanf("%d",&K); int mod=7; for(int i=0;i<MAX;i++){ mod=mod%K; if(mod==0) { printf("%d",i+1); flag =0; break; } else{ mod=mod*10 +7; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207858/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207858/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0,c=0,cn=1; scanf("%d",&a); if(a%2==0){ printf("-1\n"); } else { b=7%a; while(1){ if(cn>100000000){ printf("-1\n"); break; } if(b!=0){ cn++; c=(b*10)+7; b=c%a; } else { printf("%d\n",cn); break; } } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207908/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207908/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { long long int k, ans = -1; long long int x=7; scanf("%lld", &k); for (int i = 1; i <= k; i++) { if (x % k == 0) { ans = i; break; } x = (x * 10 + 7) % k; } printf("%lld", ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207959/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207959/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <float.h> #pragma region 定義 #define i_cin(X) scanf("%d", &X) #define i_cin2(X,Y) scanf("%d %d",&X,&Y) #define i_cin4(X,Y,Z,W) scanf("%d %d %d %d",&X,&Y,&Z,&W) #define i_cin3(X,Y,Z) scanf("%d %d %d",&X,&Y,&Z) #define l_cin(X) scanf("...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208008/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208008/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 compare_int(const void *a, const void *b) { return *(int*)a - *(int*)b; } int main(void){ int n, k, i; long long sum_=0; scanf("%d %d", &n, &k); int h[n]; for (i=0;i<n;i++){ scanf("%d", &h[i]); } qsort(h, n, sizeof(int), compare_int); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208051/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208051/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 *x, int *y) { int temp; // 値を一時保存する変数 temp = *x; *x = *y; *y = temp; } /*** * pivotを決め、 * 全データをpivotを境目に振り分け、 * pivotの添え字を返す ***/ int partition (int H[], int left, int right) { int i, j, pivot; i = left; j = right + 1; pivot = left; // 先頭要素をpivotと...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208109/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208109/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> #define ll long long int cmp(const void *a,const void*b){ return *(long long int*)a-*(long long int*)b; } int main(){ int n,k; ll sum=0; scanf("%d%d",&n,&k); ll h[n],i; for(i=0;i<n;i++) scanf("%lld",&h[i]); qsort(h,n,sizeof(long long),cmp); fo...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208152/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208152/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int A,B,C ; scanf("%d %d %d",&A,&B,&C); int x; if(A==C) x=B; if(A==B) x=C; if(B==C) x=A; int ans=x; printf("%d\n",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208196/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208196/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int a, b, c; scanf("%d%d%d", &a, &b, &c); if(a == b){ printf("%d", c); }else if(a == c){ printf("%d", b); }else{ printf("%d", a); } re...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208239/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208239/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); if(a==b)printf("%d",c); if(a==c)printf("%d",b); if(c==b)printf("%d",a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208282/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208282/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); if(a==b)printf("%d\n",c); if(a==c)printf("%d\n",b); if(c==b)printf("%d\n",a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208332/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208332/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int a, b, c; scanf("%d %d %d", &a, &b, &c); printf("%d\n", a ^ b ^ c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208383/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208383/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int A,B,C,ans; scanf("%d %d %d",&A,&B,&C); if(A==B){ ans=C; }else if(B==C){ ans=A; }else{ ans=B; } printf("%d\n",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208426/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208426/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int n,i,j,count,temp; scanf("%d",&n); getchar(); temp=0; char a[n][n]; for(i=0;i<n;i++) { for(j=0;j<n;j++) scanf("%c",&a[i][j]); getchar(); } for(i=0;i<n && temp!=1;i++) { for(j=0;j<n&& temp!=1;j++) { count=0; if(j>=1 && a[i][j-1]=='o') count++; if(j<=n-2...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20847/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20847/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <string.h> int main(){ char s[300000], t[300000]; int len, i, j, saisyo=0; scanf("%s %s", s, t); len=strlen(s); char kioku[2]; for(i=0;i<26;i++){ for(j=0;j<len;j++){ if(t[j] == 'a'+i){ if(saisyo==0){ kioku[0]=s[j]; saisyo=1; } else {...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208563/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208563/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int a, b, c, d, p, sum1 = 0, sum2 =0; scanf("%d %d %d %d %d", &a, &b, &c, &d, &p); sum1 = a * p; if(p > c) { sum2 = b + (p - c) * d; }else{ sum2 = b; } if(sum1 < sum2) { printf("%d\n", sum1); }else{ printf("%d\n", sum2); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208613/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208613/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int a,b,c,d,p,x,y; scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); scanf("%d",&d); scanf("%d",&p); x=a*p; if(p<c){ y=b; } else if(p>c){ y=b+(p-c)*d; } if(x<y){ printf("%d\n",x); }else{ printf("%d\n",y); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208664/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208664/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int a,b,c,d,p; int x,y; scanf("%d%d%d%d%d",&a,&b,&c,&d,&p); x=a*p; if(p<=c) y=b; else y=b+(p-c)*d; if(x<y) printf("%d\n",x); else printf("%d\n",y); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208714/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208714/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> typedef struct { int parent, rank; } Node; Node node[10000]; void init(int n) { int i; for (i = 0; i < n; i++) { node[i].parent = i; node[i].rank = 0; } } int find(int x) { return node[x].parent != x ? node[x].parent = find(node[x].parent) : x; } void unite(int x, int y) { int xr = fin...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208758/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208758/source.c" target datalayout = "e-m:e-p270: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 INF 10100 int *p; int *rank; void unite(int, int); void makeSet(int); void link(int, int); int findSet(int); int Same(int, int); int main(){ int n,q; int com, x, y; int *ans; int i; scanf("%d %d", &n, &q); // create S p = (int *)malloc(n*s...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208800/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208800/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int n,i,j,k,temp,count=0; scanf("%d",&n); int len[n]; for(i=0;i<n;i++) scanf("%d",&len[i]); for(i=0;i<n-1;i++){ k=0; for(j=n-1;j>i;j--) if(len[j]<len[j-1]){ temp=len[j]; len[j]=len[j-1]; len[j-1]=temp; k=1; } if(!k) break; } i=0;j=1;k=2; while(i!=n-...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208851/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208851/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 asc(const void *a, const void *b) { return *(int *)b - *(int *)a; } int main() { int N; int L[5000]; int a,b,c,a_b; int s=0; scanf("%d", &N); for (int i=0; i<N; i++) scanf("%d", &L[i]); qsort(L, N, sizeof(int), asc); for (int i=0; i<N-2; i++) { a = L[i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208909/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208909/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 isValid(int x,int y,int size) { if(x<0 || x>=size || y<0 || y>=size) return 0; return 1; } int main() { int list,i,count=0,flag=0,j; scanf("%d",&list); char arr[list][list]; for(i=0;i<list;i++) scanf(" %[^\n]s",arr[i]); for(i=0;i<list;i++) { for(j=0;j<list;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20896/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20896/source.c" target datalayout = "e-m:e-p270:32:32-p271: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,t[100010],a,b,c,d,e,f,i; while(scanf("%d",&n),n){ int t[100010]={}; while(n--){ scanf("%d:%d:%d %d:%d:%d",&a,&b,&c,&d,&e,&f); t[a*3600+b*60+c]++; t[d*3600+e*60+f]--; } for(i=a=b=0;i<100000;i++){ a+=t[i]; if(b<a)b=a; } printf("...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209009/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209009/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); char arr[n][n]; int i,j; char c; scanf("%c",&c); for(i=0;i<n;i++) { for(j=0;j<n;j++) scanf("%c",&arr[i][j]); scanf("%c",&c); } char flag = 0; for(i=0;i<n;i++) { for(j=0;j<n;j++) { int num = 0; if(i>0 && arr[i-1][j] == 'o') num+...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20911/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20911/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(void) { int H, W, h, w; int all, retu, gyou,cross,an; scanf("%d", &H); scanf("%d", &W); scanf("%d", &h); scanf("%d", &w); all = H * W; gyou = h * W; retu = w * H; cross = h * w; an = all - gyou - retu + cross; printf("%d", an); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209153/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209153/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int H,W; int h,w; scanf("%d%d",&H,&W); scanf("%d%d",&h,&w); printf("%d",(H-h)*(W-w)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209197/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209197/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int H,W,h,w; scanf("%d%d%d%d",&H,&W,&h,&w); printf("%d\n",(H-h)*(W-w)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209290/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209290/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cnt; int H,W,h,w; int total; int h1,w1; int result; cnt = scanf("%d %d", &H,&W); cnt = scanf("%d %d", &h,&w); total = H*W; h1 = h*W; w1 = (H-h)*w; result = total - h1 - w1; printf("%d", result); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209333/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209333/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int H, W, h, w, R; scanf("%d %d", &H, &W); scanf("%d %d", &h, &w); R = (H-h)*(W-w); printf("%d", R); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209384/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209384/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 FIELD(y, x) ((y) >= 0 && (x) >= 0 ? field[y][x] : 0) #define SIZE 5 int field[SIZE][SIZE]; int main(void) { int n, x, y, x2, y2, max, t1, t2; scanf("%d", &n); while(n--) { for(y = 0; y < SIZE; y++) for(x = 0; x < SIZE; x++) scanf("%d", &...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209427/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209427/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 e,m,y = 0,z = 0; while(scanf("%d",&e) , e != 0){ m = 1000001; for(z = 0;z*z*z <= e;z++){ for(y = 0;z*z*z+y*y <= e;y++){ if(z + y + (e - (z*z*z + y*y)) < m){m = z + y + (e - (z*z*z + y*y));} } } printf("%d\n",m); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209478/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209478/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() { long long a,b,s,t,d; s=0; scanf("%lld %lld",&a,&b); while (a!=b){ d=a/b; if (a%b==0){ d--; } s=s+d; t=a-b*d; a=b; b=t; } s++; printf("%lld",s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20955/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20955/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <string.h> int main(){ char s[200+1]={0}; scanf("%s",s); int len = strlen(s), flag=0; s[len-2]='\0'; len-=2; while( len > 2 ){ for(int i=0; i<len/2; i++){ if( s[i]!=s[len/2+i] ){ flag=1; break; } } if( !flag ){ break; } else{ s[len-2]='\0'; len-=2; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209593/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209593/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> #include<string.h> #define TRUE 1 #define FALSE 0 int check(char *S, int len){ if(len %2 != 0){ return FALSE; } else{ for(int i=0; i<len/2; i++){ if(S[i] != S[len/2 + i]){ return FALSE; } } } return TRUE; } int main(){ char S[200]; scanf("%s",S); int len ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209636/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209636/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
// // main.c // procon // // Created by L on 2017. 10. 17.. // Copyright © 2017년 L. All rights reserved. // #include <stdio.h> #include <string.h> int main(int argc, const char * argv[]) { // insert code here... char s[200]; scanf("%s", s); int length = (int) strlen(s)-2; i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209694/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209694/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[1000000]; int flag = 0; int count = 0; int len_str; char pre_str[1000000], post_str[1000000]; scanf("%s", str); int i; len_str = strlen(str); while (flag == 0 && len_str > 1) { count = 0; len_str--; if (len_str % 2 == 0) for (i = 0; i <...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209737/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209737/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){ double eps = 1e-10; double xa, xb, xc, xd, ya, yb, yc, yd; double s1, s2, s3, s4; while(scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf", &xa, &ya, &xb, &yb, &xc, &yc, &xd, &yd) != EOF){ s1 = fabs((xb - xa)*(yc - ya) - (yb - ya)*(xc - xa)); s...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209780/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209780/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> double get_convex(double ox, double oy, double ax, double ay, double bx, double by) { double oax = ax-ox; double oay = ay-oy; double obx = bx-ox; double oby = by-oy; return oax*oby-obx*oay; } int main(void) { double xa,ya,xb,yb,xc,yc,xd,yd; double deg[4...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209838/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209838/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> #include<stdbool.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 rrep(i,l,r)for(ll i=(l);i>=(r);i--) #define INF (1LL<<60) #define MOD1 1000000007 #...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209881/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209881/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 1000 #define Z 500000 int a, b, c, d; int push(void); int top(void); int pop(void); int A[N][Z]; int size[N]; //////////////////////////////////////////////////////////// int main(void){ scanf("%d%d", &b, &a); while (a-- != 0){ scanf("%d", &b); if (b == 0) push(); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209924/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209924/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char input[100]; scanf("%d %d", &a, &b); getchar(); scanf("%s", input); input[b-1] += 32; printf("%s", input); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209968/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209968/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <ctype.h> int main(){ int N,K; char a[100]; scanf("%d", &N); scanf("%d", &K); scanf("%s", a); a[K-1]=tolower(a[K-1]); printf("%s",a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210009/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210009/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,K; scanf("%d%d",&N,&K); char S[N]; scanf("%s",S); if(S[K-1]>=65){ if(S[K-1]<=90){ S[K-1]=S[K-1]+32; } } printf("%s",S); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210052/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210052/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #define MAX_LEN 51 int main(void) { int N, K; char S[MAX_LEN]; scanf("%d %d %s", &N, &K, S); S[K - 1] += 32; printf("%s\n", S); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210096/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210096/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,K; char S[100]; scanf("%d%d",&N,&K); for(int i=0;i<N;i++){ scanf("%s",&S[i]); } if(S[K-1]=='A'){ S[K-1]='a'; }else if(S[K-1]=='B'){ S[K-1]='b'; }else if(S[K-1]=='C'){ S[K-1]='c'; } for(int i=0;i<N;i++){ printf("%c",S[i]); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210139/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210139/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,i; char alpha1[26] = {'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'}; char alpha2[26] = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}; scanf("%d %...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210182/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210182/source.c" target datalayout = "e-m:e-p270: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.alpha2 = priv...
#include <stdio.h> int main() { char str[51]; int num, l; int i; scanf("%d %d", &num, &l); scanf("%s", str); str[l - 1] = str[l - 1] - 'A' + 'a'; printf("%s\n", str); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210232/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210232/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char s[53]; scanf("%d %d",&n,&k); scanf("%s",s); if(s[k-1]=='A'){ s[k-1]='a'; } if(s[k-1]=='B'){ s[k-1]='b'; } if(s[k-1]=='C'){ s[k-1]='c'; } printf("%s",s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210276/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210276/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[80]; int i,n,k; scanf("%d", &n); scanf("%d", &k); scanf("%s", s); i = 0; while (s[i]) { if ((i + 1) != k) { printf("%c", s[i]); } else { printf("%c", s[i] - 'A' + 'a'); } i++; } printf("\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210319/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210319/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int N=0,K=0; char S[51]; scanf("%d %d",&N,&K); K-=1; scanf("%s",S); if(S[K]=='A'){ S[K]='a'; } if(S[K]=='B'){ S[K]='b'; } if(S[K]=='C'){ S[K]='c'; } printf("%s\n",S); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210362/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210362/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int H,W,i,j,cou,cou2; char A[1000]; scanf("%d %d",&H,&W); W-=1; scanf("%s",A); if(A[W]=='A'){ A[W]='a'; }else if(A[W]=='B'){ A[W]='b'; }else if(A[W]=='C'){ A[W]='c'; } printf("%s",A); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210405/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210405/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #define NUM 2001 int main(){ int s; scanf("%d", &s); long long dp[NUM]; long long mod = 1000000007; dp[0] = 1; dp[1] = 0; dp[2] = 0; for(int i=3; i<=s; i++) { dp[i] = dp[i-1] + dp[i-3]; dp[i] %= mod; } printf("%lld", dp[s]); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210449/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210449/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n,i,j,d[4010]={1},M=1e9+7; scanf("%lld",&n); for(i=0;i<n;i++){ for(j=3;j<=n;j++)d[i+j]=(d[i+j]+d[i])%M; } printf("%lld\n",d[n]); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210492/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210492/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 struct { int key, id; } data; typedef struct { data *obj; int size; } max_heap; void push(data x, max_heap* h) { int i = ++(h->size), j = i >> 1; data tmp; h->obj[i] = x; while (j > 0) { if (h->obj[i].key > h->obj[j].key) { tmp = h->obj[j]; h->obj[j] = h-...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210542/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210542/source.c" target datalayout = "e-m:e-p270: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.max_heap = type { p...
/* * ex 5_4 * kamecha */ #include <stdio.h> #include <string.h> int max(int a, int b){ return (a>b)?a:b; } int main(void){ char str[20]; scanf("%s", str); int ptr = -1; //部分文字列の左側 int ans = 0; int i = 0; int flag = 0; //0:最後がACGTではない 1:ACGTである for(; str[i] != '\0'; i++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210593/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210593/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* ex5_4 key_tree */ #include <stdio.h> #include <string.h> int main(void){ int length, i, ans = 0, count = 0; // 文字数制限は10 // 部分文字列の長さを見るarray char text[11], array[11]; scanf("%s", &text); length = strlen(text); for(i = 0; i < length; i++){ // ACGTであればcountを+1してarrayに記録 ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210636/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210636/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,s,i,x,y,min = 100,count = 0; scanf("%d%d",&n,&s); for(i = 0; i < n;i++) { scanf("%d%d",&x,&y); if (x < s) { count++; if (y>0 && y < min) { min = y; } } else if( x==s && y == 0) count++; } if (count != 0) { if (min != 100) { printf(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21068/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21068/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> #include<stdlib.h> #include<string.h> #define MAX 10 int main(void) { char *S = malloc(0x10); fscanf(stdin,"%s",S); int length = strlen(S); int ok; int max=0; for(int ix=0;ix!=length;++ix){ for(int jx=ix;jx!=length;++jx){ ok = 1; for(int kx=ix;kx<=jx;++kx){ if(S...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210722/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210722/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @stdin = external local_unn...
#include<stdio.h> #define max(a,b) (a)>(b)?(a):(b) int main(void) { char s[11]; int ans[11]={},cnt=0; scanf("%s",s); for(int i=0;i<11;i++){ if((s[i]=='A')||(s[i]=='T')||(s[i]=='G')||(s[i]=='C')){ cnt++; }else{ ans[i]=cnt; cnt=0; } } cnt=0; for(int i=0;i<11;i++){ cnt=max(c...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210766/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210766/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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]; scanf("%s",S); int count=0,max_count=0; for(int i=0;i<10;i++){ switch (S[i]) { case 'A': case 'C': case 'G': case 'T': count++; break; default: if(count>max_count){ max_count=count; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210816/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210816/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 qsort(int low,int high); int arr[105][2]; int main() { int n,s,i,min,ans,j; scanf("%d%d",&n,&s); //int arr[n][2]; for(i=0;i<n;i++) { for(j=0;j<2;j++) { scanf("%d",&arr[i][j]); } } qsort(0,n-1); //printf("here\n"); i=0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21086/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21086/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ch; int max=0; int cnt=0; while((ch=getchar())!='\n'){ if(ch=='A'||ch=='T'||ch=='G'||ch=='C') {cnt++; max=max<cnt?cnt:max;} else { cnt=0;} } printf("%d",max); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210902/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210902/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 hoge,num,i,j,a,x[10]; char s[10]; scanf("%s",s); for(j = 0; s[j] != '\0'; j++); a = 0; num = 0; for(i = 0; i < j; i++){ if(s[i] == 'A' || s[i] == 'C' || s[i] == 'G' || s[i] == 'T'){ num++; } if(s[i+1] == 'A' || s[i+1] == 'C' || s[i+1] == 'G' || s[i+1] == 'T')...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210960/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210960/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { long int n,h,i; long int sum=0; scanf("%ld",&n); for(i=0;i<n;i++) { scanf("%ld",&h); if(sum<h) sum=h; } printf("%ld",sum); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21101/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21101/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <string.h> int main(void){ char s[11]; scanf("%s",s); int len=0,ans=0; for(int i=0;i<strlen(s);i++){ if(s[i]=='A'||s[i]=='T'||s[i]=='C'||s[i]=='G')len++; else{ ans = ans>len?ans:len; len=0; } } ans = ans>len?ans:len; printf("%d",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211060/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211060/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 rep(i,l,r)for(int i=(l);i<(r);i++) #define max(p,q)((p)>(q)?(p):(q)) int a[2][100010]; int main(){ int n; scanf("%d",&n); for(int i=0;i<n;i++){ int t; scanf("%d",&t); a[i%2][t]++; } int M[2][2]={},c[2][2]; for(int i=1;i<=100000;i++){ for(int j=0;j<2;j++){ if(M[j][0]<=a[j][i])...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211103/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211103/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cmp(const void *a, const void *b) { return *(int*)b - *(int*)a; } int main(void) { int n,i,ans; int odd,even; int odd_max, even_max; int odd_max_num, even_max_num; int odd_scnd, even_scnd; int odd_scnd_num, even_scnd_num; int count_odd_sort[100001]={0}; int co...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211147/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211147/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #define N 100 #define M 100 #define N_ (1 + N + M + 1) #define M_ (2 + N * M + 2) int *oh[N_], oo[N_], n_; int ij[M_], cc[M_ * 2], m_; void link(int i, int h) { int o = oo[i]++; if (o >= 2 && (o & o - 1) == 0) oh[i] = (int *) realloc(oh[i], o * 2 * sizeof *oh[i]); oh[i][o...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211190/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211190/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @oo = dso_local local_unnam...
#include <stdio.h> int main(void){ int N,K; scanf("%d %d",&N,&K); if(N>=2*K-1)printf("YES"); else{printf("NO");} return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211233/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211233/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> int main(void){ char str[3000]; char *tok; int m,n; int i1,i2,i3,i4,i44; int gn,gm,sn,sm; int fin=0; int nn,nm; int a[1000][1000]; int b[8000][2]; //searching list int c[8000][2]; //ne...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211277/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211277/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @stdin = external local_unn...
#include <stdio.h> int A[53]; int main() { int i; int t; int T; int n; int R; scanf("%d", &T); while (T--) { scanf("%d", &n); for (i = 1; i <= n; i++) { scanf("%d", &A[i]); } A[n + 1] = 0; for (t = 1; A[t] == t; t++); if (t > n) { R = 0; } else if (A[1] == 1 || A[n] == n) { R = 1;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21132/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21132/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 team[100]={0}; int res[100]={0}; int mach[4], n, i, j, a; scanf("%d", &n); for(i = 0; i < n*(n-1)/2; i++){ for(j = 0; j < 4; j++){ scanf("%d", &mach[j]); } if(mach[2] == mach[3]){ team[mach[0]-1]++; team[mach[1]-1]++; } else if(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211363/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211363/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#pragma warning(disable:4996) #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <float.h> #pragma region 定義 #define i_cin(X) scanf("%d", &X) #define i_cin2(X,Y) scanf("%d %d",&X,&Y) #define i_cin4(X,Y,Z,W) scanf("%d %d %d %d",&X,&Y,&Z,&W) #define i_cin3(X,Y,Z) scanf("%d %d %d",&X,...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211435/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211435/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...