Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include<stdio.h> int main(){ int a,b; scanf("%d %d",&a,&b); if(b+b-a>=0) { printf("0"); } else{ printf("%d",a-b-b); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368259/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368259/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> #define rep(i,n) for(i=0; i<n; i++) int main(void) { int a, b, c; scanf("%d%d", &a, &b); c = a-(2*b); if(c<0) printf("%d", 0); else printf("%d", c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368309/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368309/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
// 24.06.2015 #include <stdio.h> #include <string.h> #define N 26 int main() { char mass[30]; int num; scanf("%s", &mass); num = strlen(mass); printf("%d", num * N + N - num); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_36836/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_36836/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> int main() { int a, b; scanf("%d%d", &a, &b); if (a > b * 2) printf("%d\n", a - b * 2); else printf("%d\n", 0); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368402/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368402/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m,n; scanf("%d%d",&m,&n); if(m<=2*n) printf("0"); else printf("%d",m-2*n); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368446/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368446/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int max(int a,int b){ return(a>b)?a:b; } int main(void){ int a,b; scanf("%d%d",&a,&b); printf("%d\n",max(a-2*b,0)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368497/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368497/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,S; scanf("%d",&A); scanf("%d",&B); S=A-2*B; if(S<=0)printf("0\n"); else printf("%d\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368547/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368547/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int a, b, c; // スペース区切りの整数の入力 scanf("%d %d",&a, &b); //printf("a:%d b:%d\n", a, b); c = b*2; //printf("c %d\n", c); //printf("a-c %d\n", (a-c)); if(c >= a){ printf("0"); }else{ printf("%d", (a-c)); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368590/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368590/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> #define num_max(p,q)((p)>(q)?(p):(q)) #define num_min(p,q)((p)<(q)?(p):(q)) int cmp(const void *a, const void *b) { return *(int*)a - *(int*)b;//昇順 //降順ならreturn *(int*)b - *(int*)a; } int main() { int a, b,c; scanf("%d%d", &a, &b); c = a - ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368633/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368633/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/*2019/10/19 */ /*template*/ #include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #define MOD 1000000007 #define MIN 999999999 #define MAX -999999999 typedef long long int ll; typedef unsigned long long int ull; void llswap(ll *x,ll *y){ll tmp;tmp=*x;*x=*y;*y=tmp;} void swap(int *x,int *y){int tmp;t...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368677/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368677/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <math.h> #define MIN(a, b) ((a) < (b) ? (a) : (b)) #define MAX(a, b) ((a) > (b) ? (a) : (b)) typedef long long ll; int main(void) { ll H, W; scanf("%lld %lld", &H, &W); char A[H][W]; for (ll i = 0; i < H; i++) { scanf("%s", &A[i]); } ll dp[H][W]; for (ll i = 0; i < H; i++) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368727/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368727/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#if 0 cat <<EOF >mistaken-paste #endif // thx Ebi-chan! #pragma GCC diagnostic ignored "-Wincompatible-pointer-types" #define _USE_MATH_DEFINES #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> #include <time.h> #define BIG 2000000007 #define VERYBI...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368770/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368770/source.c" target datalayout = "e-m:e-p270: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.hwll = type { i64, ...
#include <stdio.h> #include <string.h> int main(void) { int a[1100],b,m,n,i,j=0,k=0,l=0,p=5000,x=0,y=0,z=0; char s[1000],ss[1000],c; scanf("%d %d",&n,&x); for(i=0; i<n; i++){ scanf("%d",&a[i]); y=a[i]+y; if(a[i]<p) p=a[i]; } z=x-y; z=z/p; printf("%d\n",z+n); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368813/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368813/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> #define pai 3.1415926535 int main(void) { int N, X; scanf("%d%d", &N, &X); int m[100]; int min = 1000; int count = 0; int b[1000] = { 0 }; int a = 0; int k = 0; for (int i = 0; i < N; i++) { scanf("%d", &m[i]); } for (int i = 0; i < N; i++) { fo...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368857/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368857/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() { long long int i=0; char s[21]; scanf("%s",s); i=(strlen(s)+1)*26-strlen(s); printf("%d",i); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_36890/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_36890/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 min=1000000 ; int main(void){ int n,x ; scanf ("%d%d",&n,&x) ; for (int i=0; i<n; i++ ){ int m[i] ; scanf ("%d",&m[i]) ; x -= m[i] ; if ( min>m[i] ){ min = m[i] ; } } printf ("...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368943/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368943/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @min = dso_local local_unna...
#include<stdio.h> int main(){ int N,X,m; int i; int S=0,R,A; scanf("%d%d",&N,&X); int W[101]; for(i=0;i<N;i++){ scanf("%d",&m); W[i]=m; S=S+m; } if(S!=X){ int e,v; e=W[0]; for(v=0;v<N-1;v++){ if(W[v+1]<=e){ e=W[v+1]; } } R=X-S; A=R/e; printf("%d\n", A+N); }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368987/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368987/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int n, x, i, min=0, mini, add; int mn[100003]; scanf("%d %d", &n, &x); mini=x; for(i=0;i<n;i++){ scanf("%d", &mn[i]); min=min+mn[i]; if(mini>mn[i]){ mini=mn[i]; } } add=(x-min)/mini; printf("%d\n", n+add); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369029/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369029/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int n, a; scanf("%d", &n); scanf("%d", &a); printf("%d\n", n*n-a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369072/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369072/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* 2_2 * cy_an */ #include <stdio.h> int main(void){ int n,w; scanf("%d", &n); // Nの入力 scanf("%d", &w); // 白色に塗るマスの入力 printf("%d\n",n * n - w); // 結果の表示 return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369115/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369115/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* Bichrome Cells Y_Aizaki */ #include <stdio.h> int main(void){ int row, white_square; scanf("%d", &row); //列の数 scanf("%d", &white_square); //白マスの数 printf("%d\n", (row * row) - white_square); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369159/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369159/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* ex2_3 yy8332 */ #include <stdio.h> int main(void){ int N, A; //入力受け取り scanf("%d", &N); scanf("%d", &A); //出力 printf("%d\n", (N * N) - A); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369201/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369201/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int N,A; scanf("%d",&N); scanf("%d",&A); printf("%d\n",N*N-A); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369245/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369245/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int i,n,a; scanf("%d%d",&n,&a); printf("%d\n",n*n-a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369289/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369289/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int a,b; scanf("%d%d",&a,&b); printf("%d\n",a*a-b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369331/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369331/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<math.h> int main() { int n,a; scanf("%d%d",&n,&a); printf("%d",(n*n)-a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369375/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369375/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int N, A; int ans; scanf("%d %d", &N, &A); ans = N*N - A; printf("%d\n", ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369418/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369418/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { int num, a; scanf("%d", &num); scanf("%d", &a); printf("%d", num * num - a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369469/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369469/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { int i, j, H, W; char a[510][510], b[510][510], r[510][510]; scanf("%d%d", &H, &W); for (i=0;i<H;i++) scanf("%s", &a[i]); for (i=0;i<H;i++) { r[i][0] = '#'; for (j=1;j<W-1;j++) { if (i%2 == 0) r[i][j] = '#'; else if (a[i][j] == '#')...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369511/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369511/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int n, m; int a[100][100], b[100]; int c[100]; scanf("%d%d", &n, &m); for(i = 0; i < n; i++){ for(j = 0; j < m; j++){ scanf("%d", &a[i][j]); } } for(j = 0; j < m; j++){ scanf("%d", &b[j]); } for(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369555/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369555/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,M,A[105][105],B[105],i,j,t; int main() { scanf("%d%d",&N,&M); for(i=0;i<N;i++) for(j=0;j<M;j++) scanf("%d",&A[i][j]); for(i=0;i<M;i++) scanf("%d",&B[i]); for(i=0;i<N;i++) { for(j=t=0;j<M;j++) t+=A[i][j]*B[j]; printf("%d\n",t); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369599/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369599/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[1000][1000]={0}; int b[1000]={0}; int out[1000]={0}; int n,m; int i,j; scanf("%d",&n); scanf("%d",&m); for (i=0; i<n; i++) { for (j=0; j<m; j++) { scanf("%d",&a[i][j]); } } for (i=0; i<m; i++) { scanf("%d",&b[i]); } for (i=0; i<n; i++) { for (j...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369641/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369641/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int i,j,k,n,l,ans=0; scanf("%d %d", &i,&j); int f1[1000][1000]={}; for(k=0;k<i+1;k++){ for(l=0;l<j;l++){ scanf("%d",&n); f1[k][l]=n; } } for(k=0;k<i;k++){ ans = 0; for(l=0;l<j;l++){ ans+=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369692/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369692/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) { // 1_6-D Matrix Vector Multiplication int i,j,k; int n,m,wk; int va[100][100]; int vb[100]; int vans[100]; scanf("%d %d",&n,&m); for(i=0; i<n; i++){ for(j=0; j<m; j++){ scanf("%d",&wk); va[i][j] = wk; } } for(i=0; i<m; i++){ scanf("%d",&wk); vb[i] = wk...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369735/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369735/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m; scanf("%d %d\n",&n ,&m); int a[n][m],b[m],add[n]; for(i=0;i < n;i++){ for(j=0;j < m;j++){ scanf("%d",&a[i][j]); } scanf("\n"); add[i]=0; } for(j=0;j < m;j++){ scanf("%d\n",&b[j]); } for(i=0;i < n;i++){ for(j=0;j < m;j++){ add[i] += a[i][j]*b[j]; } printf("%d\n",add[i]); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369779/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369779/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m,n,i,j; int a[100][100]; int b[100]; int c[100] = {0}; scanf("%d%d",&n,&m); for(i = 0;i < n;i++){ for(j = 0;j < m;j++){ scanf("%d",&a[i][j]); } } for(i = 0;i < m;i++){ scanf("%d",&b[i]); } for(i = 0;i < n;i++){ for(j = 0;j < m;j...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369836/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369836/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdlib.h> #include <stdio.h> void solve(int n,int k){ int target=0; if(n>=2*k-1){ for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ if(i==target && j==target && k>0){ printf("R"); target+=2; k--;} else{ printf("."); } } printf("\n"); } } else{ printf("-1\...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_36988/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_36988/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str.4 = private unnamed_add...
#include<stdio.h> int main(void){ int i,j,n,m,a[100][100]={0},b[100]={0},k = 0; scanf("%d %d",&n,&m); for(i=0;i<n;i++){ for(j=0;j<m;j++){ scanf("%d",&a[i][j]); } } for(i=0;i<m;i++){ scanf("%d",&b[i]); } for(i=0;i<n;i++){ for(j=0;j<m;j++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369922/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369922/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100][100]; int B[100][100]; int C[100][100]; int m,n,i,j,k,sum=0; scanf("%d %d",&n,&m); for(i=0;i<n;i++) { for(j=0;j<m;j++) { scanf("%d", &A[i][j]); } } for(i=0;i<m;i++) { scanf("%d", &B[i][0]); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369966/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369966/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, i, j, k, arr[100][100], m[100], sum = 0; scanf("%d %d\n", &a, &b); for(i = 0; i < a; i++){ for(j = 0; j < b; j++){ if(j == b-1){ scanf("%d\n", &arr[i][j]); break; } scanf("%d", &arr[i][j]); } } for(j = 0; j < b; j++){ scanf("%d\n", &m[j]); } fo...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370007/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370007/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, m; int i, j, k, l; int matrixA[100][100]; int matrixB[100]; int matrixC[100] = {0}; scanf("%d %d", &n, &m); for(i=0;i<n;i++) { for(j=0;j<m;j++) { scanf("%d ", &k); matrixA[i][j] = k; } } for(j=0;j<m;j++) { scanf("%d", &l); matri...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370050/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370050/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100][100], b[100], c[100]; int n, m; scanf("%d %d", &n, &m); for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { scanf("%d ", &A[i][j]); } } for (int i = 0; i < m; i++) { scanf("%d ", &b[i]); }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370100/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370100/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int i,j,k,n,m; int mat1[100][100],mat2[100], matnew[100]; scanf("%d%d",&n,&m); for (i=0; i<n; i++) { for (j=0; j<m; j++) { scanf("%d",&mat1[i][j]); } } for (i=0; i<m; i++) { scanf("%d",&mat2[i]); } for (...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370151/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370151/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,s,n,m; static int a[100][100],b[100],c[100]; scanf("%d%d",&n,&m); for(i=0;i<n;i++) for(j=0;j<m;j++) scanf("%d",&a[i][j]); for(i=0;i<m;i++) scanf("%d",&c[i]); for(i=0;i<n;i++){ s = 0; for(j=0;j<m;j++) s += a[i][j] * c[j]; printf("...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370195/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370195/source.c" target datalayout = "e-m:e-p270: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 [...
#include <stdio.h> int main(void){ int a[100][100], b[100], c[100]; int i, j, n, m; scanf("%d%d", &n, &m); for (i = 0; i < n; i++) { for (j = 0; j < m; j++) { scanf("%d", &a[i][j]); } } for (i = 0; i < m; i++) { scanf("%d", &b[i]); } for (i = 0; i < n; i++) { c[i] = 0; for (j = 0; j < m; j++...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370238/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370238/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 matrix[101][101]; int b[101],c[101]; int i,j,k; for(i=1; i<=100; i++){ for(j=1; j<=100; j++){ matrix[i][j] = 0; } } for(i=1; i<=100; i++){ b[i] = 0; c[i] = 0; } int n; int row_num, column_num; char o...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370281/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370281/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m,i,j; int A[100][100],B[100],C[100]={0};/*0で初期化*/ scanf("%d%d",&n,&m); for(i=0;i<n;i++) { for(j=0;j<m;j++) { scanf("%d",&A[i][j]); } } for(i=0;i<m;i++) { scanf("%d",&B[i]); } for(i=0;i<n;i++) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370324/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370324/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> int main(void) { int a, b, c, d, e, f, w = 0, s = 0, i, j, k, l; scanf("%d %d %d %d %d %d", &a, &b, &c, &d, &e, &f); a *= 100; b *= 100; for( i = 0; a*i <= f; i++ ) { for( j = 0; a*i+b*j <= f; j++ ) { int x = a*i+b*j; for ( k = 0; x+c*k <= f; k++ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370375/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370375/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 b[15][15]; void reset(){ int i,j; for(i=0;i<15;i++){ for(j=0;j<15;j++){ b[i][j]=0; } } } void magic_square(int x,int y,int n,int c){ if(c==n*n)return; if(b[x][y]==0){ b[x][y]=++c; if(++x==n)x=0; if(++y==n)y=0; magic...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370418/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370418/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @b = dso_local local_unname...
#include <stdio.h> void magic(int square[17][17], int c, int height, int y, int x){ if(c > height * height) return; y == height ? y = 1 : y++; x == height ? x = 1 : x++; if(square[y][x] != 0){ y == height ? y = 1 : y++; x == 1 ? x = height : x--; } square[y][x] = c; return magic(square, ++c, heig...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370476/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370476/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> char name[20][30]; int i,j,n,win,draw,point[20],order[20]; void swap (int* x,int* y){ int z; z=*x; *x=*y; *y=z; } int main(){ while(scanf("%d",&n)*n){ if(i>0)printf("\n"); for(i=0;i<n;i++){ scanf("%s %d %*d %d",name[i],&win,&draw); point[i]=wi...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370519/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370519/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int a,b,i=0; scanf("%d%d",&a,&b); while(a>=0&&b>=0) { if(i&1) a-=i; else b-=i; i++; } if(a<0) printf("Vladik"); else printf("Valera"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37057/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37057/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 isPrime(int a){ if(a % 2 == 0)return 0; int lim = a / 2; for(int i = 3; i < lim; i += 2){ if(a % i == 0)return 0; } return 1; } int main(void){ int n, m; scanf("%d %d", &n, &m); if(isPrime(m)){ printf("1\n"); return 0; } int i = 0; while(m % (n + i))i++; printf("%d\n", m / (n ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370612/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370612/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m; scanf("%d%d",&n,&m); for (int i=m/n; i>=0; i--){ if (m%i==0){ printf("%d\n",i); return 0; } } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370663/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370663/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 int long long #define inf (int)(1e18) int *x, *a, *s, *skak; int sum_lt1_r_kak(int l, int r){ return skak[r] - skak[l]; } int sum_lt1_r_ak(int l, int r){ return s[r] - s[l]; } int x2(int k){ return k * k; } int min(int A, int B){ return A <= B ? A : B; } signed m...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370720/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370720/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @skak = dso_local local_unn...
#include <math.h> #include <stdio.h> int main(void){ double v = 0; double target_v = 0; int N; while(scanf("%lf",&target_v) != EOF){ v = 0; N = 0; while(v < target_v){ N++; v = 9.8*sqrt((N*5-5)/4.9); } printf("%d\n",N); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370764/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370764/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 S(num) ((num) * (num)) #define H(n) ((5.0) * (n) - (5.0)) int main(void) { float in_data; float time; float high; int i; while (scanf("%f", &in_data) != EOF){ time = in_data / 9.8; high = 4.9 * S(time); i = 0; while (1)if (H(++i) >= high)break; printf("%d\n", i); } r...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370814/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370814/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 S(num) ((num) * (num)) #define H(n) ((5.0) * (n) - (5.0)) int main(void) { float in_data; float time; float high; int i; while (scanf("%f", &in_data) != EOF){ in_data*=in_data/19.6; i = 0; while (1)if (++i*5.-5 >= in_data) break; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370872/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370872/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(void) { double v, y, t; int n; while (scanf("%lf", &v) != EOF){ t = v / 9.8; y = 4.9 * (t * t); for (n = 0; 5 * n - 5 < y; n++); printf("%d\n", n); } return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370915/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370915/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() { char S[101], T[101]; scanf("%s", &S); scanf("%s", &T); int i, j, l, flag = 0; for (l = 1; S[l] != 0; l++); for (i = 0; i < l; i++) { for (j = 0; j < l; j++) { if (S[(i+j)%l] != T[j]) break; } if (j == l) flag = 1; } if (flag == 1) printf("Yes\n")...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370973/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370973/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ long long int a,b,g,s,i,j; scanf("%lld %lld",&a,&b); for(i=1;;i++){ if(i%2!=0){ a=a-i; if(i+1>b){ g=1; break; } } else { b=b-i; if(i+1>a){ g=2; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37103/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37103/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> //ポインタで元のTを操作する void charRot(char enT[],int length); int main(void){ char S[101],T[101]; scanf("%s %s",S, T); //Tの文字列長さ取得 int Tlength = -1; while(T[++Tlength] != '\0'); //for(Tlength=0;T[Tlength]!='\0';Tlength++); //処理 int i, flag=0; char* pt =...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371080/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371080/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> int main(void) { int a, i, j; int len; char S[150], T[150]; char tmp; scanf("%s", S); scanf("%s", T); len = strlen( S ); for (i = 0;i < len; i++) { if (strcmp(S,T)==0) { printf("Yes"); return 0; } else { tmp = S[0]; for (j = 0; j...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371152/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371152/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
//set many funcs template //Ver.20180717 #include<stdio.h> #include<string.h> #include<stdlib.h> #include<stdbool.h> #include<time.h> #define inf 1072114514 #define llinf 4154118101919364364 #define mod 1000000007 #define pi 3.1415926535897932384 int max(int a,int b){if(a>b){return a;}return b;} int min(int a,int b){i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371196/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371196/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; long long int a[100010],ans1=0,ans2=0,sum=0; scanf("%d",&n); for(i=1;i<=n;i++){ scanf("%lld",&a[i]); } for(i=1;i<=n;i++){ sum+=a[i]; if(i%2==1&&sum<=0){ ans1+=1-sum; sum=1; }else if(i%2==0&&sum>=0){ ans1+=sum+1; sum=-1; } } sum=0; for...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371246/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371246/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> #include <unistd.h> #include <math.h> int main() { double vladik,valera; scanf("%lf %lf",&vladik,&valera); //printf("%f,%f\n",vladik,valera); int vladik_turns,valera_turns; vladik_turns = sqrt(vladik); if((vladik_turns+1)*(vladik_turns)<=valera) prin...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37129/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37129/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ...
#define __USE_MINGW_ANSI_STDIO 0 #include <stdio.h> #include <string.h> #define maxN 200010 char s[maxN]; void testcase() { scanf("%s", &s); int n = strlen(s); // if there is a carry, that maintains the number of digits which is great. take the last such instance. // if there are no carries at all, al...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37134/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37134/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { int N, i; int ans = 0; int cnt = 0; double a; scanf("%d", &N); if (N < 10) { printf("%d", N); return 0; } else { ans += 9; } for (i = 10; i <= N; i++) { cnt = 0; a = i; while(a >= 10){ a /= 10; cnt++; } cnt++; if...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371383/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371383/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int i, j, N, a, b, c, d, x, count = 0,ans = 0; scanf("%d", &N); for (i = 1; i <= N; i++) { x = i; for (j = 1; j <= 6; j++) { x = x /10; if (x > 0) count += 1; } if ((count + 1) % 2 == 1) ans += 1; count = 0; } printf("%d", ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371426/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371426/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t; int main() { scanf("%d", &t); for (int i = 0; i < t; i++) { int cnt[26] = {0,}; char s[69]; scanf("%s", s); for (int j = 0; j < strlen(s); j++) { cnt[s[j] - 'a']++; } for (...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37147/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37147/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(void) { int N; scanf("%d", &N); int ans = N - ((N>=100000)? ((N>=1000000)? 900000: N-99999):0) - ((N>=1000)? ((N>=10000)? 9000: N-999): 0) - ((N>=10)? ((N>=100)? 90: N-9): 0); printf("%d\n", ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371512/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371512/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, ans = 0; scanf("%d", &n); if ( n < 10 ) { ans += n; goto END_; } else { ans += 9; } if ( n < 100 ) { goto END_; } if ( n < 1000 ) { ans += (n - 100 + 1); goto END_; } else { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371556/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371556/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int t; scanf("%d", &t); int i, j, l; int r, c; int k; char s[102][102]; int ans[102][102]; char z[100]; for (i = 0; i <= 'z' - 'a'; i++) z[i] = 'a' + i; for (i = 0; i <= 'z' - 'a'; i++) z[i + 'z' - 'a' + 1] = 'A' + i; for (i = 0; i < 10; i++) z[i + 2 * ('z' - 'a' + 1)] = ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3716/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3716/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr co...
#include <stdio.h> int main(void) { int mid, fin, re; int sum; while(1) { scanf("%d %d %d", &mid, &fin, &re); sum = mid + fin; if(sum + re == -3) break; if((mid == -1 || fin == -1) || sum < 30) { putchar('F'); } else i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371642/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371642/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m, f, r, sum; while (1) { scanf("%d %d %d", &m, &f, &r); //loading data sum = m + f; if (m == -1 && f == -1 && r == -1) { //break the routine break; } if (m == -1 || f == -1) { //missing a exa...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371686/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371686/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { while (1) { int m, f, r; scanf("%d %d %d", &m, &f, &r); if (m == -1 && f == -1 && r == -1) { break; } int sum = m + f; if (m == -1 || f == -1) { printf("F"); } else if (sum >= 80) { printf("A"); } else if (sum >= 65) { printf("B"); } else if (sum >= 5...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371750/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371750/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m,f,r; while(1){ scanf(" %d%d%d",&m,&f,&r); if(m == -1 && f == -1 && f == -1){ break; }else if(m+f >= 80){ printf("A\n"); }else if(m+f >= 65){ printf("B\n"); }else if(m != -1 && f != -1 &...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371794/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371794/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m,f,r,sum; while(1){ scanf("%d %d %d",&m,&f,&r); sum=m+f; if(m==-1 && f==-1 && r==-1){ break; }else if(m==-1 || f==-1){ printf("F\n"); }else if(sum>=80){ printf("A\n"); }else if(sum>=65 && sum<80){ printf("B\n"); }else if(su...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371837/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371837/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m,f,r; while(scanf("%d %d %d",&m,&f,&r) != EOF){ if(m+f+r == -3) break; if(m == -1 || f == -1) printf("F\n"); else if(m+f >= 80) printf("A\n"); else if(m+f >= 65 && m+f < 80) printf("B\n"); else if(m+f >= 50 && m+f < 65) printf("C\n"); else if(m+f >= 30 ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371880/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371880/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 _CRT_SECURE_NO_WARNINGS /* include ***********************/ #include<stdio.h> #include<string.h> #include<stdlib.h> #include<math.h> /* define *************************/ //for #define REP(i,n) for(int i=0,i##_len=(int)(n);i<i##_len;i++) #define REPS(i,n) for(int i=1,i##_len=(int)(n);i<=i##_len;i++) #define RR...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371930/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371930/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @sum = dso_local local_unna...
/* 探索するとTLE */ #include <stdio.h> #include <limits.h> #define N_MAX 1000 #define TH_MAX 1000 int W[N_MAX], V[N_MAX], N; int dp[TH_MAX+1], t[TH_MAX+1]; int main(int argc, char *argv[]){ int i, c=1, th, n, w, v; while(scanf("%d",&th), th!=0){ for(i=0; i<=th; i++) dp[i]=0; scanf("%d",&n); while(n...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372030/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372030/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main(void) { long long int a, b, v, w, t; scanf("%lld %lld %lld %lld %lld", &a, &v, &b, &w, &t); long long int diff_dis = b - a, diff_speed = v - w; if (diff_dis < 0) diff_dis *= -1; if (diff_speed <= 0) { printf("NO\n"); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372089/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372089/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 R=1,C=1,H[2000010],N[2000010]; //評価関数(いまはMIN) int hyouka(int a,int b){ if(C<b)return 1; if(C<a||b==0)return 0; return N[H[a]]<N[H[b]]?1:0; } //挿入関数 void hin(int a){ int i=C++; for(N[H[0]=R]=a;hyouka(0,i/2);i/=2)H[i]=H[i/2]; H[i]=R++; } //取り出す関数 int hout(){ int rt=H[1],i,j=2,k=H[--C];...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372153/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372153/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @R = dso_local local_unname...
#include <stdio.h> #include <math.h> #include <stdlib.h> #include <string.h> #include <math.h> #define N 1000000007 long long pan(long long n) { //printf("pan called pan(%lld)\n",n); if(n<=1) return 1; else return 2*pan((n-3)/2) + 1; } long long barger(long long left, long long right, long long x) { /...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372197/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372197/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(void) { int n; double xa, ya, ra, xb, yb, rb; double d; scanf("%d", &n); while (n--) { scanf("%lf %lf %lf %lf %lf %lf", &xa, &ya, &ra, &xb, &yb, &rb); d = sqrt((xb-xa)*(xb-xa) + (yb-ya)*(yb-ya)); if( ra > rb && ra-rb > d) printf("2\n"); else if( rb > ra &&...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372247/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372247/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 nanashi(double xa,double ya,double ra,double xb,double yb,double rb) { double d = (xb-xa)*(xb-xa) + (yb-ya)*(yb-ya); /*ツ陳心ツ甘板づ個仰猟猟」ツ禿アツ湘ヲ*/ double sr= (ra+rb)*(ra+rb); /*ツ板シツ径ツづ個和ツ禿アツ湘ヲ*/ double dr= (rb-ra)*(rb-ra); /*ツ板シツ径ツづ個債キツ禿アツ湘ヲ*/ if(sr<d){ return 0; }else if(dr<=d){ ret...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372298/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372298/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <math.h> int main() { int n; double xa, ya, ra, xb, yb, rb; double distance, diff; scanf (" %d", &n); while (n--) { scanf(" %lf %lf %lf %lf %lf %lf", &xa, &ya, &ra, &xb, &yb, &rb); distance = hypot(xa - xb, ya - yb); diff = ra - rb; if (ra + rb < distance) puts("0"); else...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372362/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372362/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<math.h> int main(){ int n,i; double a,b,c,d,e,f,l; scanf("%d\n",&n); for(i=0;i<n;i++){ scanf("%lf %lf %lf %lf %lf %lf\n",&a,&b,&c,&d,&e,&f); l=(a-d)*(a-d)+(b-e)*(b-e); l=sqrt(l); if(c+f<l){ printf("0\n"); } else if(c-f>l){ printf("2\n"); } else if(f-c>l){ printf("-2\n"); } else{ printf("1\n")...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372405/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372405/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #define ll long long #define rep(i,n) for(ll i=0;i<(n);i++) #define max(p,q) ((p)>(q)?(p):(q)) #define min(p,q) ((p)<(q)?(p):(q)) #define chmax(a,b) ((a)=(a)>(b)?(a):(b)) #define chmin(a,b) ((a)=(a)<(b)?(a):(b)) #define abs(p) ((p)>=(0)?(p):(-...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372449/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372449/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @g_idx = dso_local local_un...
#include <stdio.h> int main() { int t; scanf("%d",&t); while(t--) { long int a, b, c; scanf("%ld%ld",&a,&b); a=a>b?a-b:b-a; c=a/5; a%=5; c+=a/2; a%=2; c+=a; printf("%ld\n",c); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3725/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3725/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr co...
#include <stdio.h> #include <string.h> #include <stdlib.h> typedef long long int ll; // qsort(values, 5, sizeof(int), cmpfunc); ll cmpfunc (const void * a, const void * b) { return ( *(ll*)a - *(ll*)b ); } void me() { ll a,b,c; scanf("%lld %lld %lld",&a,&b,&c); ll max=a; if(max<b) max=b; if(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37255/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37255/source.c" target datalayout = "e-m:e-p270:32:32-p271: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<math.h> #include<string.h> int main() { char c[4]; int i,n=0; int a[3]={0}; scanf("%s",c); for(i=0;i<3;i++){ if(c[i]=='R') a[i]=1; } if(a[1]==1){ if(a[0]==1){ if(a[2]==1){ n=3; }else{ n=2; } }else{ if(a[2]==1){ n=2; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372593/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372593/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> int main(){ int i,flag=0,ct=0; char a[3]; scanf("%s",a); for(i=0;i<3;i++){ if(flag){ if(a[i]=='R'){ ct++; }else{ printf("%d",ct); return 0; } }else{ if(a[i]=='R'){ ct++; flag=1; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372643/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372643/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c=0; int c1=0; char a[3]; scanf("%s", &a); for(int i=0;i < 3; i++){ if(a[i] == 'R'){ c++; } else if(c==0){ c=0; } else{ c1=c; c=0; } } if(c>=c1){ printf("%d", c); } else{ printf("%d", c1); } return 0;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372687/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372687/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int max(int a,int b) { if(a>b) return a; else return b; } int min(int a,int b) { if(a<b) return a; else return b; } int main() { int t,a,b,c,e,f,g; int maxi,mini; scanf("%d",&t); while(t) { scanf("%d%d%d",&a,&b,&c); maxi=max(max(a,b),c); if((a==b)&&(b==c)) { e=f=g=1; } else if((a==b...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37273/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37273/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ...
#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> int main() { double ax, bx, ay, by, cx, dx, cy, dy; while (~fscanf(stdin, "%lf%lf%lf%lf%lf%lf%lf%lf", &ax, &ay, &bx, &by, &cx, &cy, &dx, &dy)) { if (ax <= dx&&cx <= bx) { if (ay <= dy&&cy <= by) { puts("YES"); } else puts("NO"); } else puts("NO"); } ret...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372773/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372773/source.c" target datalayout = "e-m:e-p270: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> #include<stdlib.h> #include<string.h> #include<math.h> #define NEW(p,n){p=malloc((n)*sizeof(p[0]));if(p==NULL){printf("not enough memory\n");exit(1);};} //pの型の変数n個の要素分のメモリを確保し、そのアドレスをpに代入するマクロ #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define MIN(a, b) ((a) < (b) ? (a) : (b)) typedef char* String; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372838/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372838/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> int main(void) { int i; int cards; scanf("%d", &cards); int pnt_t = 0, pnt_h = 0; char card_t[101], card_h[101]; for (i = 1; i <= cards; i++) { scanf("%s %s", card_t, card_h); int cmp = strcmp(card_t, card_h); if (cmp > 0) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372896/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372896/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> int main(void) { int taro_score,hanako_score; char taro[200],hanako[200]; int i,n; int now_comp; scanf("%d",&n); taro_score=hanako_score=0; for(i=0;i<n;i++) { scanf("%s%s",taro,hanako); now_comp=strcmp(taro,hanako); if(now_comp<0)hanako_score+=3; else if(now_comp>0...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372946/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372946/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <inttypes.h> #include <string.h> #include <math.h> typedef uint64_t uint64; typedef uint32_t uint32; typedef int64_t int64; typedef int32_t int32; #define finc(i,a,b) for(int32 i=(a);i<=(b);i++) #define fdec(i,a,b) for(int32 i=(b);i>=(a);i--) #define in(i,b...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37299/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37299/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ...