Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include <stdio.h> void main(void){ long N,A[200000],i,s=0,sum=0,x; scanf("%ld",&N); for(i=0;i<N;i++){ scanf("%ld",&A[i]); s+=A[i]; } for(i=0;i<N-1;i++){ s -= A[i]; x = s % 1000000007; sum += A[i] * x; sum %= 1000000007; } printf("%ld",sum); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349920/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349920/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> #define MOD 1000000007 int main(void){ int n; int i; long long *p; long long ans = 0; long long ans2 = 0; scanf("%d",&n); p = (long long*)malloc(sizeof(long long)*n); for(i=0;i<n;i++){ scanf("%lld",&p[i]); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349964/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349964/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> typedef int LONG; LONG a[100010]; int main(void) { int n, k; int i; LONG max; while (1){ scanf("%d%d", &n, &k); if (n == 0 && k == 0){ break; } memset(a, 0, sizeof(a)); for (i = 1; i <= n; i++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350012/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350012/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 X 100000001 long long a[X]; int main(){ int n,k,i,j,s=0,max=0; while(scanf("%d%d",&n,&k),n!=0 && k!=0){ for(i=0;i<n;i++)scanf("%d",&a[i]); for(i=0;i<n-k+1;i++){ s=0; for(j=i;j<k+i;j++)s+=a[j]; if(max<s || max==0)max=s; } printf("%d\n",max); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350070/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350070/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 0092: Square Searching // 2017.8.12 bal4u@uu // 2017.11.1 retry #include <stdio.h> #include <stdlib.h> #include <string.h> int dp[1001][1001]; char map[1001][1005]; int main() { int n, r, c, t, ans; char buf[10]; while (fgets(buf, 10, stdin) && *buf != '0') { n = atoi(buf); for (r = 0; r < n;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350135/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350135/source.c" target datalayout = "e-m:e-p270: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 main(void) { int N,i=1; int a,b,c,S; scanf("%d",&N); a=N/100; b=(N%100)/10; c=(N%100)%10; if((a==b)&&(b==c)) printf("%d\n",N); else{ while(S<=N){ S=111*i; if(S>=N){ printf("%d\n",S); return 0; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350250/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350250/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; if (scanf("%d", &N) != 1) return 1; printf("%d\n", ((N + 111 - 1) / 111) * 111); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350294/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350294/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int n; scanf("%d",&n); if(n%111==0) printf("%d\n",n); else printf("%d\n",(n/111+1)*111); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350337/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350337/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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.20181228 #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_350380/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350380/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ char n[3]; scanf("%s",n); if((n[0] < n[1]) ||( n[0] < n[2])){ n[0] += 1; } printf("%c%c%c\n",n[0],n[0],n[0]); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350423/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350423/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 input, output; int base = 111; int i; // 数字の入力 scanf("%d", &input); for(i = 1; i < 10; i++) { if( input <= (base * i) ) { output = base * i; break; } } // 出力 printf("%d\n",outp...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350467/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350467/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i = 1; scanf("%d",&n); while(n > 111 * i) ++i; printf("%d\n", 111 * i); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350517/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350517/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<math.h> typedef long long ll; int asc(const void *arg1,const void *arg2) {return *((int *)arg2)-*((int *)arg1);} int main(){ ll n,a,b[9]={},sum=0; scanf("%lld",&n); for(int i=0;i<n;i++){ scanf("%lld",&a); if(a<3200) b[a/40...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350575/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350575/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 repeat(i, n) for(int i = 0; i < n; i++) #define maxN 100 int main(int argc, char *argv[]) { int n, a[maxN], color[9] = {}, min = 0; scanf("%d", &n); repeat(i, n){ scanf("%d", &a[i]); if(a[i] / 400 < 8){ color[a[i] / 400]++; if(color[a[i] / 400] == 1) min++; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350618/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350618/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 checkcolor(int rating) { if (rating < 400) return 0; else if (rating < 800) return 1; else if (rating < 1200) return 2; else if (rating < 1600) return 3; else if (rating < 2000) return 4; else if (rating < 2400) return 5; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350661/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350661/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <assert.h> #include <math.h> int rate_range[8][2] = { {1,399}, {400,799}, {800,1199}, {1200,1599}, {1600,1999}, {2000,2399}, {2400,2799}, {2800,3199}, }; #define ANY_COLOR_RATE 3200 int main(void) { int N,n; scanf("%d\n",&N); int any_coun...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350719/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350719/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @rate_range = dso_local loc...
#include <stdio.h> #define int long long signed main(){ int N, X, Y, tmp, ans; scanf("%lld%lld", &N, &X); for(ans = N, Y = N - X;;){ if(X > Y){ tmp = X; X = Y; Y = tmp; } if(Y % X == 0){ ans += X * (2 * (Y / X) - 1); break; } else{ ans += X * 2 * (Y / X); Y = Y % X; } } printf("%l...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350762/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350762/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int MIN(int a,int b){return a<b?a:b;} int ta[100010],to[100010],co[100010],nt[100010],it[100010],l[100010]; void mklsb(int v,int e,int *a,int *b,int *c){ int i; for(i=0;i<v;i++)ta[i]=-1; for(i=0;i<e;i++){ nt[i ]=ta[to[i+e]=a[i]]; nt[i+e]=ta[to[i ]=b[i]]; co[ta[a[i]]=i ]=c[i]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350812/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350812/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @ta = dso_local local_unnam...
#include <stdio.h> #include <unistd.h> #define L 6 #define putchar_buf(X) do{ buf[point] = X; point++; }while(0) #define putlong_buf(X) \ do{ \ long n=X; \ char c[L]; \ long i=L-1; \ do{ c[i]=n%10+'0'; n/=10; i--; }while(n>0); \ for(i++;i<L;i++){ putchar_buf(c[i]); } \ }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350870/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350870/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 SHEET_MAX 101 #define LOOP_RESET 0 #define NULL 0 int main(){ unsigned short usW_D_row; /* 行数格納用変数 */ unsigned short usW_D_col; /* 列数格納用変数 */ unsigned long ulW_D_sheet[SHEET_MAX][SHEET_MAX]; /* 表格納用配列 */ uns...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350913/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350913/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100][100]; int c, r, i, j, ans; ans = 0; scanf("%d %d", &c, &r); for(i = 0; i < c; i++){ for(j = 0; j < r; j++){ scanf("%d", &a[i][j]); } } for(i = 0; i < c; i++){ for(j = 0; j < r; j++){ printf("%d ", a[i][j]); if(j == r-1){ for(j = 0; j < r; j++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350957/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350957/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r,c; scanf("%d %d",&r,&c); int ary1[r][c]; int i,j; for(i=0;i<r;i++){ for(j=0;j<c;j++){ scanf("%d",&ary1[i][j]); } } int k=0; int a=0; int ary2[c+1]; for (i=0;i<=c;i++){ ary2[i]=0; } for(i=0;i<r;i++){ for(j=0;j<c;j++){ printf("%d ",ary1[i][j]); a+=ary1[i][...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351042/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351042/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 gr[101][101],gou,gyo,retu; int a,b; scanf("%d %d",&gyo,&retu); for(a=0;a<=gyo;a++)//????????? { for(b=0;b<=retu;b++) { gr[a][b]=0; } } for(a=0;a<gyo;a++)//??\??? { for(b=0;b<retu;b++) { scanf("%d",&gr[a][b]); } } gou=0; for(a=0;a<gyo;a++)//??????...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351086/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351086/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 data[101][101] = {}; int r, c; int i, j; scanf("%d %d", &r, &c); for (i = 0; i < r; i++) { for (j = 0; j < c; j++) { scanf("%d", &data[i][j]); data[r][j] += data[i][j]; data[i][c] += data[i][j]; data[r][c] += data[i][j]; } } for (i = 0; i <= r; i++) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351129/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351129/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r1,r2,c1,c2,i,j; int rsam = 0; scanf("%d",&r1); scanf("%d",&c1); r2 = r1; c2 = c1; r2++; c2++; int num[r2][c2]; int csum[c2]; for(i=0;i<r1 ;i++){ for(j=0;j<c1;j++){ scanf("%d",&num[i][j]); printf("%d ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351172/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351172/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r, c; scanf("%d %d", &r, &c); /*表生成と初期化*/ int table[r + 1][c + 1]; for(int row = 0; row <= r; row++){ for(int column = 0; column <= c; column++){ table[row][column] = 0; } } /*値の読み込み*/ for(int row = 0; row < r; row++){ for(int column = 0; column < c; column++...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351273/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351273/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 101 int main() { //変数の宣言 int r, c; //入力 int hako[MAX][MAX]; int i, j, a, b; //処理用 //入力 scanf("%d %d", &r, &c); for (i=0; i<r; i++) { for (j=0; j<c; j++) { scanf("%d", &hako[i][j]); } } //初期化 hako[r][c] = 0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351316/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351316/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int x,i,j,r,c,A[200][200]={0}; scanf("%d %d",&r,&c); for(j=0;j<r;j++){ for(i=0;i<c;i++){ scanf("%d",&x); A[i][j]+=x; } } for(j=0;j<r;j++){ for(i=0;i<c;i++){ A[c][j]+=A[i][j]; } } for(i=0;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351367/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351367/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m; scanf("%d%d",&n,&m); char stch[n][m]; for(int i=0;i<n;i++){ for(int j=0;j<m;j++) scanf(" %c",&stch[i][j]); } int ms[m]; for(int i=0;i<m;i++) scanf("%d",&ms[i]); int c[5]; char tr[m][n]; for(int i=0;i<m;i++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35141/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35141/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 argc, char const *argv[]) { int r, c; int mat[101][101] = {}; scanf("%d %d", &r , &c); int rsum = 0; int csum = 0; int sum = 0; for (int i = 0; i < r; i++) { rsum = 0; for (int j = 0; j < c; j++) { scanf("%d", &mat[i][j]); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351453/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351453/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 _USE_MATH_DEFINES #include <math.h> #define ABS(x) ( (x)>0 ? x : -(x) ) #define MIN(x,y) ( (x) < (y) ? (x) : (y) ) #define MAX(x,y) ( (x) > (y) ? (x) : (y) ) #define INF 1000000000 int main() { int r, c; int table[101][101] = { 0 }; scanf("%d%d", ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351497/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351497/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 long long int LLI; int _g[60000], _gcount = 0; int main() { int N; scanf("%d\n", &N); const LLI sum = ((LLI)N * (LLI)(N+1)) / 2, sum2 = (sum+1) / 2; if(N == 2) { printf("1\n1 1\n"); return 0; } LLI sum1 = 0; for(int i = N ; i > 0 ; --i) { LLI ad...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35154/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35154/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @_gcount = dso_local local_un...
#include <stdio.h> int main(void) { int sheet[101][101] = { 0 }; //要素 int Ctotal[101] = { 0 }; //各列の和 int Rtotal[101] = { 0 }; //各行の和 int i, j; //くり返し用 int r, c; //行、列 int input; //要素の入力に使用する int total = 0; /*行数、列数入力*/ scanf("%d %d", &r, &c); /*要素入力*/ for (i = 0; i < r; i++) { for (j = 0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351583/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351583/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r, c, i, j; scanf("%d %d", &r, &c); int rcarray[r + 1][c + 1]; for(i = 0; i < r; i++){ for(j = 0; j < c; j++){ scanf("%d", &rcarray[i][j]); } } for(i = 0; i < r; i++){ for(j = 0; j < c; j++){ r...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351626/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351626/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<stdbool.h> int main(){ int n, temp, nOf1=0, nOf2=0; scanf("%d",&n); for(int i=0; i<n; i++) { scanf("%d",&temp); if(temp==1) nOf1++; else nOf2++; } if(nOf2 >= nOf1) printf("%d\n",nOf1); else printf("%d\n",nOf2 + (nOf1-nOf2)/3); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35167/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35167/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 a[24]; const int d[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 31, 28,...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35172/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35172/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @d = dso_local local_unnamed_...
#include <stdio.h> #include <string.h> #include <stdlib.h> int main(void) { char* str = calloc(13,sizeof(char)); char t[14]; scanf("%s",str); strncpy( t, str, 4 ); //strの先頭+3の位置から5文字をtにコピー t[4] = ' '; strncpy(t+5,str+4,8); t[13]='\0'; printf( "%s\n", t ); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351763/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351763/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int i = 0; int divisors = 0; scanf("%d %d %d", &a, &b, &c); for (i = a; i <= b; i++) { if (c % i == 0)divisors++; } printf("%d\n", divisors); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351806/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351806/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a,b,c,cnt=0; scanf("%d%d%d",&a,&b,&c); for(i=a;i<=b;i++){ if(c%i==0)cnt++; } printf("%d\n",cnt); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351857/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351857/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int n; scanf("%d", &n); int one=0, two=0; for (int i=0; i<n; i++) { int tmp; scanf("%d", &tmp); if (tmp%2) one++; else two++; } int ans=0; if(one> two){ ans+=two; one-=two; ans+=one/3; } else { ans=one; } printf("%d\n", ans); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35190/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35190/source.c" target datalayout = "e-m:e-p270:32:32-p271: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, c, x, i = 0; scanf("%d%d%d", &a, &b, &c); if (c<a) { } else if (c < b){ if (c%a == 0) i++; for (x = a + 1; x <= c; x++) { if (c%x == 0) { i++; } } } else{ if (c%a == 0) i++; for (x = a + 1; x <= b; x++) { if (c%x == 0) { i++; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351950/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351950/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x; d=0; scanf("%d %d %d",&a,&b,&c); for(x=a;x<=b;x++){ if(c%x==0){ d=d+1; } } printf("%d\n",d); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351994/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351994/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, i, x = 0; scanf("%d %d %d", &a, &b, &c); for (i = a; i <= b; i++) { if (c % i == 0) { x = x++; } } printf("%d\n", x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352036/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352036/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,count=0,flag=0,team=0,a[200000]; scanf("%d",&n); for(i=1;i<=n;i++) { scanf("%d",&a[i]); if(a[i]==1) { count++; } if(a[i]==2) { flag++; } } if(count!=0 && flag==0) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35208/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35208/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> int main(void) { int a, b, c; int i, j=0; scanf("%d %d %d", &a, &b, &c); for(i=a; i<=b; i++){ if(c%i==0){ j++; } } printf("%d\n", j); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352122/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352122/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,s; s=0; scanf("%d %d %d",&a,&b,&c); for(i=a;i<=b;i++) { if(c%i==0) { s=s+1; } } printf("%d\n",s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352166/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352166/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int b; int c; int x; int y=0; int z; scanf("%d %d %d", &a, &b, &c); for(x=a ;x<=b ;x++) { z=c%x; if (z==0) { y=y+1; } } printf("%d\n", y); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352216/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352216/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&a); int n[a],i,one=0,two=0,result; for(i=0;i<a;i++){ scanf("%d",&n[i]); if(n[i]==1) one=one+1; else if(n[i]==2) two=two+1; } if(one>=two){ result=two+(one-two)/3; } else if(one<two){ result=one; } printf("%d",result); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35226/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35226/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 count[3]; int main() { int n,a; scanf("%d",&n); int arr[n+1]; for (int i = 0; i < n; ++i) { scanf("%d",&arr[i]); count[arr[i]]++; } if (count[1]==0) { printf("0\n"); } else { if (count[1]<count[2]) { printf("%d\n",count[1] ); } else { a=count[2]+((count[1]-count[2...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35231/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35231/source.c" target datalayout = "e-m:e-p270:32:32-p271: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=0,i=0,count=0; int a,b=0; scanf("%d %d %d",&a,&b,&n); for(i=1;i<=n;i++){ if(n%i==0){ if(a<=i && b>=i){ count++; } } } printf("%d\n",count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352353/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352353/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int count=0; int i; scanf("%d %d %d",&a,&b,&c); for(i=a;i<=b;i++) { if(c%i==0) count++; } printf("%d\n",count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352397/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352397/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 O[100002]; int V[200002]; int vC; int S[100002]; int D[100002]; int C[100002]; int R[100002]; void mS(int s[], int d[], int o, int t) { int i, j, k; int c = o + t >> 1; if (o < c) { mS(d, s, o, c); } if (c + 1 < t) { mS(d, s, c + 1, t); } i = o; j = c + 1; k = o; while (i <= c && ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35244/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35244/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @O = dso_local global [100002...
#include<stdio.h> int main(void){ int a,b,c,i; int count; scanf("%d %d %d\n",&a,&b,&c); for(i=a,count=0;i<=b;i++){ if(c%i==0)count ++; } printf("%d\n",count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352483/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352483/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(int argc, char **argv) { int a, b, c; scanf("%d %d %d", &a, &b, &c); int i; for (i=0; a<=b; a++) { if (c % a == 0) i++; } printf("%d\n", i); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352526/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352526/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> int main() { int t,n,a,b; scanf("%d",&t); while(t--) { scanf("%d%d",&a,&b); printf("%d\n",(a*b)); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35257/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35257/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ...
/* * main.c * * Created on: Mar 20, 2021 * Author: Dell */ #include <stdio.h> #include <stdlib.h> int main(){ int t,x,y; scanf("%d",&t); for(int i=0;i<t;i++){ scanf("%d %d",&x,&y); printf("%d\n",x*y); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35262/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35262/source.c" target datalayout = "e-m:e-p270:32:32-p271: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,c,i,count=0; scanf("%d %d %d",&a,&b,&c); for(i=a;i<=b;i++){ if(c%i==0){ count=count+1; } } printf("%d\n",count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352663/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352663/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,count=0; scanf("%d%d%d",&a,&b,&c); for(i=a;i<=b;i++){ if(c % i == 0){ count++; } } printf("%d\n",count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352706/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352706/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, i, a, b; scanf("%d", &t); for(i=0; i<t; i++) { scanf("%d %d", &a, &b); printf("%d\n", a*b); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35275/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35275/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(void) { int a, b, c, i, j = 0; scanf("%d %d %d", &a, &b, &c); for (i = a; i <= b; i++) { if ((c % i) == 0) j++; } printf("%d\n", j); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352793/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352793/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int i,s; scanf("%d%d%d\n",&a,&b,&c); s=0; for(i=a;i<=b;i++){ if(c%i == 0){ s=s+1; } } printf("%d\n",s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352836/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352836/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,s; scanf("%d",&a); while(a--){ scanf("%d %d",&b ,&c); s=(b*c); printf("%d\n",s); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35288/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35288/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(){ char line[100]; int a, b, c; fgets(line, sizeof(line), stdin); sscanf(line, "%d %d %d", &a, &b, &c); int i; int count; for(i=a; i<=b; ++i){ if(c%i==0) ++count; } printf("%d\n", count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352922/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352922/source.c" target datalayout = "e-m:e-p270: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 main() { int a,b,c,i,divisor=0; scanf("%d %d %d",&a,&b,&c); for(i=a;i<=b;i++) { if(c%i==0) { divisor++; } } printf("%d\n",divisor); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352966/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352966/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d%d%d",&a,&b,&c); for(a;a<b+1;a++) { if(c%a==0)d++; } printf("%d\n",d); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353008/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353008/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int cnt=0; int i; scanf("%d %d %d",&a,&b,&c); for(i = a;i <= b;i++){ if(c % i == 0){ cnt++; } } printf("%d\n",cnt); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353051/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353051/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d%d%d",&a,&b,&c); for(a;a<b+1;a++) { if(c%a==0)d++; } printf("%d\n",d); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353095/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353095/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> int main() { int a, b, c; int k; int n; scanf("%d%d%d", &a, &b, &c); n = 0; for (k = a; k <= b; k++) { if (c % k == 0) n++; } printf("%d\n", n); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353138/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353138/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> #ifdef DEBUG #include<conio.h> #endif // DEBUG int main () { #ifdef DEBUG freopen("input.txt", "r", stdin); #endif // DEBUG int a, b, c; scanf("%d %d %d", &a, &b, &c); int cnt = 0; for (size_t i = a; i <= b; i++) { if(0 == c % i) ++cnt; } pri...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353181/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353181/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int count = 0; scanf("%d %d %d",&a,&b,&c); for(int i=a;i<=b;i++){ if(c%i==0){ count++; } } printf("%d\n",count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353224/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353224/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int res=0; scanf ("%d %d %d", &a, &b, &c); for (int i=a; i<=b; i++) { if (c%i==0) res++; } printf ("%d\n", res); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353268/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353268/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 LIMIT 5000 void InputNumber(int* number, int limitLow, int limitHigh); int GetDivisor(int* pArr, int number); int main(void) { int a; int b; int c; int arr[LIMIT]; int size; int i; int count = 0; InputNumber(&a, 1, 10000); do { InputNumber(&b, 1...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353310/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353310/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int i, count = 0; scanf("%d%d%d", &a, &b, &c); for (i = a; i <= b; i++) { if (c % i == 0) { count++; } } printf("%d\n", count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353361/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353361/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, cnt = 0; scanf("%d%d%d", &a, &b, &c); for(int i=a; i<=b; i++) if (!(c%i)) cnt++; printf("%d\n", cnt); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353411/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353411/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i=0,cnt=0; scanf("%d %d %d", &a, &b, &c); for (i = a;i <= b;i++) { if (c % i == 0) { cnt++; } } printf("%d\n", cnt); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353455/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353455/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int k; int n; scanf("%d%d%d", &a, &b, &c); n = 0; for (k = a; k <= b; k++) { if (c % k == 0) n++; } printf("%d\n", n); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353499/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353499/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int cnt=0; scanf("%d %d %d",&a,&b,&c); for(int i = a ;i <= b ; i++){ if(c%i==0){ cnt++; } } printf("%d\n",cnt); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353541/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353541/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a,b,c; int count = 0; scanf( "%d%d%d", &a, &b, &c ); for(i=a;i<=b;i++) { if(c%i==0) { count++; } } printf( "%d\n", count ); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353585/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353585/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,count=0; scanf("%d %d %d",&a,&b,&c); for(int i=a;i<=b;i++){ if(c%i==0) count++; } printf("%d\n",count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353635/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353635/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <math.h> #include <string.h> #include <stdlib.h> int compare_int(const void *a, const void *b) { return *(int*)b - *(int*)a; } int main(void) { //変数の宣言 int xgoal,ygoal; char s[8010]; int move[8010]; int movelen,xlen,ylen; int x[4010]; int y[4010]; int xdp[8000]; int ydp[8000]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353679/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353679/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 b, adm = 0; scanf("%d", &b); adm += (b ? 1 : 0); scanf("%d", &b); adm += (b ? 1 : 0); scanf("%d", &b); adm += (b ? 2 : 0); if (adm == 2) puts("Open"); else puts("Close"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353721/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353721/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 findmax(int *a,int s,int n); void mergsort(int a[],int t[],int size,int n); void merg(int a[],int t[],int l1,int u1,int l2,int u2); void copy(int a[],int t[],int n); int min(int a,int b) { if(a<b) return(a); else return(b); } int main() { int l,i; scanf("%d",&l); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35378/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35378/source.c" target datalayout = "e-m:e-p270:32:32-p271: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) { char b1,b2,b3; scanf("%c %c %c",&b1,&b2,&b3); if (b3=='1'||(b1=='1'&&b2=='1')) { printf("Open\n"); } else { printf("Close\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353837/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353837/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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_353880/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353880/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <inttypes.h> #include <string.h> #include <math.h> #include <stdbool.h> int compchar (const void *a, const void *b) { if(*(char *)a - *(char *)b < 0) return -1; if(*(char *)a - *(char *)b > 0) return 1; return 0; } int com...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353938/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353938/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 10000 int main(void){ int i,num,j; int sf,c; int a,b; int co[110]; int ans[N]; sf=0; for(i=0;;i++){ ans[i]=1; for(j=0;j<110;j++) co[j]=0; for(;;){ c=scanf("%d%d",&a,&b); if(c==EOF){ sf=1; break; } if(a==0 && b==0) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354023/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354023/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> int main(void){ int i,n,A,Z; char str[200001]; scanf("%s",str); n=strlen(str); for(i=0;i<n;i++) if(str[i]=='A'){A=i;break;} for(i=n-1;i>=0;i--) if(str[i]=='Z'){Z=i;break;} printf("%d\n",Z-A+1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354067/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354067/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<math.h> #include<time.h> #include<stdio.h> #include<string.h> #include<stdlib.h> #define oo 1000000000 #define pi 3.14159265359 #define zero(a) (abb(a)<=1e-7) #define lowbit(a) ((a)&(-(a))) #define min(a,b) ((a)<(b)?(a):(b)) #define max(a,b) ((a)>(b)?(a):(b)) #define abb(a) ((a)>0?(a):(-(a))) #define cj(x1,y1,...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35411/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35411/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @hash = dso_local local_unnam...
#include <stdio.h> #include <math.h> #include <string.h> #include <ctype.h> int main(void){ int i,j,st,e; char s[201000]; scanf("%s",s); int n=strlen(s); for(i=0;i<n;i++){ if(s[i]=='A'){ st=i; break; } } for(i=n-1;i>=0;i--){ if(s[i]=='Z'){ e=i; break; } } prin...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354160/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354160/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[210000]; int ap, zp; int ans = -1; int ssize; scanf("%s", s); ssize = strlen(s); for(ap = 0; s[ap] != 'A'; ap++) ; for(zp = ssize; s[zp] != 'Z'; zp--) ; printf("%d\n", zp - ap + 1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354210/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354210/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[200001]; scanf("%s",s); int n=0; int m=strlen(s)-1; while(1){ if(s[n]=='A') break; n++; } while(1){ if(s[m]=='Z') break; m--; } printf("%d",m-n+1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354254/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354254/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <math.h> #define max(p,q)((p)>(q)?(p):(q)) #define zahyoutype double typedef struct Point{zahyoutype x,y;}P; double distPP(P p,P q){return hypot(p.x-q.x,p.y-q.y);} void readpoint(P*p){zahyoutype x=1;scanf(x/2?"%lf%lf":"%ld%ld",&p->x,&p->y);} P a[80010]; int main(){ int ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354298/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354298/source.c" target datalayout = "e-m:e-p270: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.Point = type { doub...
#include<stdio.h> #include<string.h> int main(){ char s[100+1]; char s_rev[100+1]; int count=0; scanf("%s",s); for(int i=strlen(s)-1;i>=0;i--){ s_rev[strlen(s)-1-i] = s[i]; } s_rev[strlen(s)] = '\0'; for(int i=0;i<strlen(s);i++){ if(s[i]!=s_rev[i]){ count=coun...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354340/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354340/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100]; scanf("%s",&S); int i, j, count1=0, count2=0; for(i=0;S[i]!='\0';i++){ count1+=1; } for(j=0;j<count1/2;j++){ if(S[j]!=S[count1-j-1]){ count2+=1; } } printf("%d\n",count2); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354405/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354405/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[105]; scanf("%s", str); int count = 0, len = strlen(str); for(int i=0; i<=len/2; i++) if(str[i]!=str[len-i-1]) count++, str[len-i-1] = str[i]; printf("%d\n", count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354449/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354449/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 palindrome[100]; int i,length,hug=0; scanf("%s",palindrome); length=strlen(palindrome); for(i=0;i<length;i++) { if(palindrome[i]==palindrome[length-1]) { length--; continue; } else { palindrome[i]=palindrome[length-...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354492/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354492/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[256]; int count =0; scanf("%s",s); int length = strlen(s); for(int i= 0;i<strlen(s);i++){ if(s[i]!=s[length-i-1]){ s[i]=s[length-i-1]; count++; } } printf("%d\n",count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354542/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354542/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> #define N 101 int main() { char c[N]; int length,i; int count=0; scanf("%s",&c); length=strlen(c); for(i=0;i<=((length-1)/2);i++) { if(c[i]!=c[length-1-i]) { count++; } } printf("%d",count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354593/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354593/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[101]; scanf("%s", s); int c = 0; int l = 0; while(s[l] != '\0'){ l++; } int k = l/2; for(int i=0; i<k; i++){ if(s[i] != s[l-1-i]){ c++; } } printf("%d", c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354636/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354636/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> #include<string.h> #define ll long long #define rep(i,l,r)for(ll i=(l);i<(r);i++) #define MOD 998244353 //* //遅延セグ木ここから //↓ここを変える typedef struct sayouso{ll f;}sayouso; typedef struct atai{ll n0,n1,s;}atai; //↑ここを変える typedef struct node{sayouso T;atai x;}node; node *lsegN,*lseg; ll...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354687/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354687/source.c" target datalayout = "e-m:e-p270: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.sayouso = type { i6...