identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_291380
CDSS
#include<stdio.h> int main(void){ int A,B; int x,y,r; scanf("%d%d%d%d%d",&A,&B,&x,&y,&r); if((0<=x-r)&&(x+r<=A)&&(0<=y-r)&&(y+r<=B)){ printf("Yes\n"); } else printf("No\n"); return 0; }
584
memory_bytes
{'s_id': 's709202135', 'p_id': 'p02394', 'u_id': 'u358947617', 'date': '1493275418', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '224'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int A,B;\n int x,y,r;\n scanf(\"%d%d%d%d%d\",&A,&B,&x,&y,&r);\n if((0<=x-r)&&(x+r<=A)...
CDSS_93461
CDSS
#include<stdio.h> main() { int N,K,P,cou1,cou2; scanf("%d",&N); for(cou1=1;cou1<=N;cou1++){ scanf("%d %d",&K,&P); while(K>0){ for(cou2=1;cou2<=P;cou2++){ K--; if(K==0){ break; } } } printf("%d\n",cou2); } return 0; }
596
memory_bytes
{'s_id': 's653899497', 'p_id': 'p00292', 'u_id': 'u908899927', 'date': '1439084384', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '262'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nmain()\n{\n\tint N,K,P,cou1,cou2;\n\t\n\tscanf(\"%d\",&N);\n\t\n\tfor(cou1=1;cou1<=N;cou1++){\n\t\tscanf(\"%d %d\...
CDSS_661928
CDSS
#include<stdio.h> //関数プロトタイプ宣言 void OddEven(int a, int b); int main(void) { int a, b; scanf("%d %d", &a, &b); OddEven(a, b); return 0; } void OddEven(int a, int b) { if ( (a * b) % 2 == 0) { printf("Even"); } else { printf("Odd"); } }
128
memory_bytes
{'s_id': 's340153039', 'p_id': 'p03455', 'u_id': 'u273885769', 'date': '1583892243', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '276'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n//関数プロトタイプ宣言\nvoid OddEven(int a, int b);\n\nint main(void) \n{\n\tint a, b;\n\n\tscanf(\"%d %d\", &a, &b);\n\n\t...
CDSS_494887
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <float.h> #pragma region 定義 #define i_cin(X) scanf("%d", &X) #define i_cin2(X,Y) scanf("%d %d",&X,&Y) #define i_cin4(X,Y,Z,W) scanf("%d %d %d %d",&X,&Y,&Z,&W) #define i_cin3(X,Y,Z) scanf("%d %d %d",&X,&Y,&Z) #define l_cin(X) scanf("...
3,324
memory_bytes
{'s_id': 's314742766', 'p_id': 'p02785', 'u_id': 'u122441571', 'date': '1589233474', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '53', 'memory': '3324', 'code_size': '2397'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#include <float.h>\n \n#pragma region 定義\n#define i_c...
CDSS_125293
CDSS
#include<stdio.h> int main(){ int n,i,co,t,nt,r=1,d[100010]={0}; int q[100010],f[100010]={1}; scanf("%d",&n);//printf("a\n"); for(i=0;i<n;i++)scanf("%d",&d[i]);//printf("a\n"); for(i=0;i<6;i++)f[n+i]=1;//printf("a\n"); for(t=q[0]=0;f[n-1]==0;t++){ co=f[q[t]]+1;//printf("%d\n",q[t]); for(i=0;i<6;i++)...
1,684
memory_bytes
{'s_id': 's686348107', 'p_id': 'p01449', 'u_id': 'u731027244', 'date': '1466219343', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '1684', 'code_size': '500'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n,i,co,t,nt,r=1,d[100010]={0};\n int q[100010],f[100010]={1};\n scanf(\"%d\",&n);//printf(\"a\...
CDSS_180345
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> int top, INT[1000]; void push(int x) { top++; INT[top] = x; } int pop() { // if(top > 0) top--; return INT[top+1]; } int main() { int a,b; char s[100]; top = 0; while(scanf("%s", s)!= EOF) { if(s[0] == '+') ...
2,104
memory_bytes
{'s_id': 's758177570', 'p_id': 'p02263', 'u_id': 'u002921375', 'date': '1557334359', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '730'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\nint top, INT[1000];\nvoid push(int x)\n{\n top++;\n INT[top] = x;\...
CDSS_709134
CDSS
#include<stdio.h> int main(void) { int i; int an,bn; char a[11],b[11],c[11]; scanf("%s%s%s",&a,&b,&c); an=0; bn=0; for(i=0;a[i]!='\0';i++) an++; for(i=0;b[i]!='\0';i++) bn++; if(a[an-1]==b[0]) if(...
128
memory_bytes
{'s_id': 's905487152', 'p_id': 'p03729', 'u_id': 'u783825416', 'date': '1535863495', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '475'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n int i;\n int an,bn;\n char a[11],b[11],c[11];\n\n scanf(\"%s%s%s\...
CDSS_233685
CDSS
#include <stdio.h> #include <math.h> void distance(double *x1, double *y1, double *x2, double *y2){ double dis; dis = pow(*x1-*x2,2) + pow(*y1-*y2,2); dis = sqrt(dis); printf("%f\n", dis); } int main(void){ double x1,y1,x2,y2; double dista; scanf("%lf %lf %lf %lf", &x1,&y1,&x2,&y2); di...
652
memory_bytes
{'s_id': 's957428758', 'p_id': 'p02379', 'u_id': 'u963402991', 'date': '1439519270', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '652', 'code_size': '361'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nvoid distance(double *x1, double *y1, double *x2, double *y2){\n double dis;\n dis = po...
CDSS_148026
CDSS
#include <stdio.h> int main() { int i,j,k,n,tmp; int A[500]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&A[i]); } for(i=1;i<=n;i++){ tmp = A[i]; j = i-1; for(k=0;k<n;k++){ if(k < n-1){ printf("%d ",A[k]); } else printf("%d\n",A[k]); } while(j >= 0 && A[...
2,084
memory_bytes
{'s_id': 's310238345', 'p_id': 'p02255', 'u_id': 'u030506886', 'date': '1529042082', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2084', 'code_size': '415'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int i,j,k,n,tmp;\n int A[500];\n\n scanf(\"%d\",&n);\n \n for(i=0;i<n;i++){\n scanf(\"%d...
CDSS_732548
CDSS
#include <stdio.h> int max(int a, int b){ if(a>b){ return a; } return b; } int min(int a, int b){ return -max(-a,-b); } int main(){ int W,H,N,x,y,a; int i; scanf("%d %d %d",&W,&H,&N); int xmin,xmax,ymin,ymax; xmin=0; xmax=W; ymin=0; ymax=H; for(i=1;i<=N;i++){ scanf("%d %d %d",&x,&y,&a); if(a==1){ ...
128
memory_bytes
{'s_id': 's973524624', 'p_id': 'p03944', 'u_id': 'u166970909', 'date': '1561118955', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '523'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint max(int a, int b){\n\tif(a>b){\n\t\treturn a;\n\t}\n\treturn b;\n}\nint min(int a, int b){\n\treturn -max(-a,-...
CDSS_204214
CDSS
#include <stdio.h> #define MAX 500000 void merge(int A[],int l,int m,int r); void mergesort(int A[],int l,int r); int n,c=0; int L[MAX/2+2],R[MAX/2+2]; int main(){ int i; int A[MAX]; scanf("%d",&n); for(i=0;i<n;i++) scanf("%d",&A[i]); mergesort(A,0,n); for(i=0;i<n;i++){ if(i>0) printf(" "); pr...
5,676
memory_bytes
{'s_id': 's862694119', 'p_id': 'p02272', 'u_id': 'u089398471', 'date': '1595010513', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '5676', 'code_size': '851'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define MAX 500000\nvoid merge(int A[],int l,int m,int r);\nvoid mergesort(int A[],int l,int r);\n\nint n,c=0;\n...
CDSS_631397
CDSS
#include<stdio.h> #include<string.h> int main(){ int a,b,flag=0,i,j; char s[110],t[110]; scanf("%s",s); scanf("%s",t); a=strlen(s); for(i=0;i<a;i++){ for(j=0;j<a;j++){ if(s[(i+j)%a]!=t[j]) break; } if(j==a){ flag=1; break; } } if(flag) printf("Yes\n"); ...
128
memory_bytes
{'s_id': 's832412014', 'p_id': 'p03293', 'u_id': 'u855429581', 'date': '1532222123', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '348'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main(){\n int a,b,flag=0,i,j;\n char s[110],t[110];\n scanf(\"%s\",s);\n scanf(\"%s\",t...
CDSS_139689
CDSS
#include<stdio.h> #define N 100 #define INF 99999 #define WHITE 0 #define BLACK 2 #define GRAY 1 int prim(int n,int A[N][N]){ int i,p[N],mincost,cost[N],color[N],sum=0,k,ver; for(i=0;i<n;i++){ cost[i] = INF; color[i] = WHITE; } //初期化 cost[0] = 0; p[0] = -1; while(1){ mincost = INF; ...
1,980
memory_bytes
{'s_id': 's873853072', 'p_id': 'p02241', 'u_id': 'u959311029', 'date': '1580571325', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1980', 'code_size': '1182'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 100\n#define INF 99999\n#define WHITE 0\n#define BLACK 2\n#define GRAY 1\nint prim(int n,int A[N][N]){\n ...
CDSS_708900
CDSS
#include<stdio.h> #include<string.h> int main(){ char a[11],b[11],c[11]; scanf("%s %s %s",a,b,c); printf(a[strlen(a)-1]==b[0]&&b[strlen(b)-1]==c[0]?"YES":"NO"); return 0;}
128
memory_bytes
{'s_id': 's742186099', 'p_id': 'p03729', 'u_id': 'u071680334', 'date': '1576772637', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '179'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main(){\n char a[11],b[11],c[11];\n scanf(\"%s %s %s\",a,b,c);\n printf(a[strlen(a)-1]==...
CDSS_132965
CDSS
#include<stdio.h> #include<string.h> #define N 1001 char X[N], Y[N]; void LCS(char X[], char Y[]){ int i,j; int C[1001][1001]; int m = strlen(X+1), n = strlen(Y+1); for(i = 1; i < m+1; i++){ C[i][0] = 0; } for(i = 0; i < n+1; i++){ C[0][i] = 0; } for(i = 1; i < m+1; i++){ for(j ...
4,520
memory_bytes
{'s_id': 's984242748', 'p_id': 'p02235', 'u_id': 'u695667411', 'date': '1435815489', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '4520', 'code_size': '706'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n \n#define N 1001\n \nchar X[N], Y[N];\n \n \nvoid LCS(char X[], char Y[]){\n int i,j;\n int...
CDSS_585375
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> typedef long long ll; char lowcmp[26]="abcdefghijklmnopqrstuvwxyz"; char upcmp[26]="ABCDEFGHIJKLMNOPQRSTUVWXYZ"; long long mod=1000000007; long long max(long long A,long long B){ return A>B?A:B; } long long min(long ...
128
memory_bytes
{'s_id': 's925176465', 'p_id': 'p03080', 'u_id': 'u750028862', 'date': '1553976299', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '760'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <stdbool.h>\n#include <math.h>\ntypedef long long ll;\nchar low...
CDSS_744674
CDSS
#include<stdio.h> main() { int A,B,C; scanf("%d %d %d",&A,&B,&C); if(A==5&&B==5&&C==7||A==5&&C==5&&B==7||B==5&&C==5&&A==7) { printf("YES\n");} else printf("NO\n"); }
128
memory_bytes
{'s_id': 's099776914', 'p_id': 'p04043', 'u_id': 'u089230684', 'date': '1540360975', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '175'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nmain()\n{\n\tint A,B,C;\n\tscanf(\"%d %d %d\",&A,&B,&C);\n\tif(A==5&&B==5&&C==7||A==5&&C==5&&B==7||B==5&&C==5&&A==7...
CDSS_640354
CDSS
#include <stdio.h> int main(){ int a,b,i,j,s; scanf("%d%d",&a,&b); for(i=1;i<499500;i++){ s=0; a++; b++; for(j=1;j<1000;j++){ s+=j; if(a==s&&b==s+j+1)printf("%d",i); } } return 0; }
128
memory_bytes
{'s_id': 's856534270', 'p_id': 'p03328', 'u_id': 'u855016901', 'date': '1562262450', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '335', 'memory': '128', 'code_size': '223'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int a,b,i,j,s;\n scanf(\"%d%d\",&a,&b);\n for(i=1;i<499500;i++){\n s=0;\n a++;\n b++;\n ...
CDSS_501855
CDSS
#include<stdio.h> int main(void) { int k,x,a; scanf("%d%d",&k,&x); if (500*k>=x) printf("Yes\n"); else printf("No\n"); return 0; }
128
memory_bytes
{'s_id': 's167514873', 'p_id': 'p02811', 'u_id': 'u916239077', 'date': '1586272652', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '149'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n int k,x,a;\n\n scanf(\"%d%d\",&k,&x);\n\n if (500*k>=x) printf(\"Yes\\n\");\n else p...
CDSS_241467
CDSS
#include <stdio.h> int main(void){ int i; scanf("%d", &i); printf("%d\n", i*i*i); return 0; }
596
memory_bytes
{'s_id': 's556557344', 'p_id': 'p02388', 'u_id': 'u328069918', 'date': '1452818847', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '109'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int i;\n scanf(\"%d\", &i);\n printf(\"%d\\n\", i*i*i);\n return 0;\n}\nPredict its ...
CDSS_237820
CDSS
#include <stdio.h> int main(void){ int i,dice[7]; char order[101]; for(i=1;i<7;i++) scanf("%d", &dice[i]); scanf("%s", order); for(i=0;order[i]!='\0';i++){ dice[0] = dice[1]; switch(order[i]){ case 'E': ...
2,132
memory_bytes
{'s_id': 's550067851', 'p_id': 'p02383', 'u_id': 'u460438982', 'date': '1565001594', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2132', 'code_size': '1160'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(void){\n int i,dice[7];\n char order[101];\n \n for(i=1;i<7;i++)\n scanf(\"%d\", &...
CDSS_621877
CDSS
#include<stdio.h> int main(void){ int K; scanf("%d",&K); int n = 0; for(int i = 1; i <= K; i = i+2){ for(int j = 2; j <= K; j = j+2){ // printf("(%d, %d)",i,j); n++; } // printf("\n"); } printf("%d\n",n); return 0; }
128
memory_bytes
{'s_id': 's670689874', 'p_id': 'p03264', 'u_id': 'u423656246', 'date': '1542743876', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '292'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int K;\n scanf(\"%d\",&K);\n int n = 0;\n for(int i = 1; i <= K; i = i+2){\n f...
CDSS_45459
CDSS
#include <stdio.h> #include <math.h> int main(void) { double x1, x2, x3, y1, y2, y3; double px, py, r; int n, i; scanf("%d",&n); for(i=1;i<=n;i++){ scanf("%lf %lf %lf %lf %lf %lf", &x1, &y1, &x2, &y2, &x3, &y3); px = ((y2 - y3)*(x1*x1 + y1*y1) + (y3 - y1)*(x2*x2 + y2*y2) + (y1 - y...
664
memory_bytes
{'s_id': 's592322730', 'p_id': 'p00010', 'u_id': 'u820929609', 'date': '1378050899', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '664', 'code_size': '670'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n \nint main(void)\n{\n double x1, x2, x3, y1, y2, y3;\n double px, py, r;\n int n, i;\...
CDSS_501954
CDSS
#include<stdio.h> #include<stdlib.h> #include<stdbool.h> #include<string.h> #include<math.h> #define mprint(x) printf(FORMATCONVERSION(x),(x)) #define FORMATCONVERSION(x) _Generic((x),\ int:"%d",unsigned int:"%u",\ double:"%lf",long long int:"%lld"...
128
memory_bytes
{'s_id': 's020745134', 'p_id': 'p02811', 'u_id': 'u491343140', 'date': '1581459171', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '678'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<stdbool.h>\n#include<string.h>\n#include<math.h>\n#define mprint(x) printf(FORMATCONVE...
CDSS_742863
CDSS
#include<stdio.h> int main(){ int max, min; int read[1000]; int n; int ans=1000000,tmp; int i,j; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&read[i]); if(i == 0){ max = read[0]; min = read[0]; } //printf("%d ",read[i]); if(read[i] > max){ max = read[i]; }else...
128
memory_bytes
{'s_id': 's670826818', 'p_id': 'p04031', 'u_id': 'u097998649', 'date': '1588587438', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '600'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int max, min;\n int read[1000];\n int n;\n int ans=1000000,tmp;\n int i,j;\n\n scanf(\"%d\",&...
CDSS_91961
CDSS
#include<stdio.h> int main(void) { int a, b, a2, b2, a3, b3, a4, b4, a5, b5, a6, b6, a7, b7; scanf("%d", &a); scanf("%d", &b); scanf("%d", &a2); scanf("%d", &b2); scanf("%d", &a3); scanf("%d", &b3); scanf("%d", &a4); scanf("%d", &b4); scanf("%d", &a5); scanf("%d", &b5); scanf("%d", &a6); scanf("%d", &b6); scanf("%d %d...
1,856
memory_bytes
{'s_id': 's398839713', 'p_id': 'p00271', 'u_id': 'u494639120', 'date': '1504920301', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1856', 'code_size': '518'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\nint a, b, a2, b2, a3, b3, a4, b4, a5, b5, a6, b6, a7, b7;\n\nscanf(\"%d\", &a);\nscanf(\"%d\", &...
CDSS_320629
CDSS
#include <stdio.h> #include <stdio.h> int main() { int a, b; char op; scanf("%d %c %d", &a, &op, &b); while (op != '?') { switch (op) { case '+': printf("%d\n", a + b); break; case '-': printf("%d\n", a - b); break; ...
2,040
memory_bytes
{'s_id': 's167175115', 'p_id': 'p02401', 'u_id': 'u574965269', 'date': '1575881074', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '533'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdio.h>\n\nint main()\n{\n int a, b;\n char op;\n scanf(\"%d %c %d\", &a, &op, &b);\n while...
CDSS_249359
CDSS
#include <stdio.h> int main(void) { int x,y; scanf("%d\n",&x); if(x>=1&&x<=100){ y=x*x*x; printf("%d\n",y); } }
2,068
memory_bytes
{'s_id': 's113774284', 'p_id': 'p02388', 'u_id': 'u183272918', 'date': '1539236631', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2068', 'code_size': '145'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int x,y;\n scanf(\"%d\\n\",&x);\n if(x>=1&&x<=100){\n y=x*x*x;\n prin...
CDSS_423297
CDSS
#include<stdio.h> #include<string.h> int main(void) { int K, N, A[101], i, j, d[101], k, count = 0; scanf("%d %d", &N, &K); for (i = 1; i <= N; i++) { A[i] = 0; } for (i = 1; i <= K; i++) { scanf("%d", &d[i]); for (j = 1; j <= d[i]; j++) { scanf("%d", &k); A[k]++; } } f...
1,700
memory_bytes
{'s_id': 's474966252', 'p_id': 'p02688', 'u_id': 'u111785038', 'date': '1595980820', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1700', 'code_size': '424'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main(void)\n{\n\tint K, N, A[101], i, j, d[101], k, count = 0;\n\tscanf(\"%d %d\", &N, &K);...
CDSS_232866
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdint.h> // uint64_t #define max(a,b) ((a) > (b) ? (a) : (b)) #define min(a,b) ((a) > (b) ? (b) : (a)) int get_int2(int *a1, int *a2) { scanf("%d %d", a1, a2); return 0; } // <arr[0]> <arr[1]> .. <arr[size-1]> int fget_array(int *arr, int size...
2,236
memory_bytes
{'s_id': 's204237067', 'p_id': 'p02354', 'u_id': 'u933484853', 'date': '1589364727', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2236', 'code_size': '1069'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <stdint.h> // uint64_t\n\n#define max(a,b) ((a) > (b) ? (a) : (...
CDSS_146135
CDSS
#include<stdio.h> void trace(int A[],int N){ int i; for(i=0;i<N;i++){ if(i>0)printf(" "); printf("%d",A[i]); } printf("\n"); } void insertionSort(int A[],int N){ int j,i,v; for(i=1;i<N;i++){ v=A[i]; j=i-1; while(j>=0&&A[j]>v){ A[j+1]=A[j]; j--; } A[j+1]=v; trace(A,N); } } int main(){ in...
604
memory_bytes
{'s_id': 's690530718', 'p_id': 'p02255', 'u_id': 'u579530412', 'date': '1493614407', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '441'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nvoid trace(int A[],int N){\n\tint i;\n\tfor(i=0;i<N;i++){\n\t\tif(i>0)printf(\" \");\n\t\tprintf(\"%d\",A[i]);\n\...
CDSS_96243
CDSS
#include<stdio.h> int main(void) { int N, flag=2 ; scanf("%d", &N); while (N>=flag) { flag *= 2; } printf("%d\n", flag/2); return 0; }
2,132
memory_bytes
{'s_id': 's756628876', 'p_id': 'p00401', 'u_id': 'u611869641', 'date': '1595340852', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2132', 'code_size': '143'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void) {\n\tint N, flag=2 ;\n\tscanf(\"%d\", &N);\n\twhile (N>=flag) {\n\t\tflag *= 2;\n\t}\n\tprintf(\"%d\...
CDSS_288487
CDSS
#include<stdio.h> int main(){ int a,b,c,i; scanf("%d %d %d",&a,&b,&c); if(a>b){ i=a; a=b; b=i; } if(b>c){ i=b; b=c; c=i; } if(a>b){ i=a; a=b; b=i; } printf("%d %d %d\n",a,b,c); }
2,076
memory_bytes
{'s_id': 's735317192', 'p_id': 'p02393', 'u_id': 'u291795584', 'date': '1541665573', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2076', 'code_size': '179'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\nint a,b,c,i;\nscanf(\"%d %d %d\",&a,&b,&c);\nif(a>b){\ni=a; a=b; b=i;\n}\nif(b>c){\ni=b; b=c; c=i;\n}\...
CDSS_691588
CDSS
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <inttypes.h> #include <stdint.h> #include <string.h> #include <wchar.h> #define MIN(a, b) (a < b ? a : b) #define MAX(a, b) (a > b ? a : b) #define ABSS(a, b) (a > b ? a - b : b - a) int compare_f(const void *a, const void *b) { return (int)(*(uint...
128
memory_bytes
{'s_id': 's698352697', 'p_id': 'p03635', 'u_id': 'u615782628', 'date': '1532838973', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '636'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdbool.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <inttypes.h>\n#include <stdint.h>\n#include <string.h>\n#inclu...
CDSS_476260
CDSS
#include <stdio.h> #include <stdlib.h> int main() { long long int a,b,c,qian,hou; scanf("%lld%lld%lld",&a,&b,&c); if(c<(a+b)) { printf("No"); } else { qian=4*a*b; hou=(c-a-b)*(c-a-b); if(qian<hou) { printf("Yes"); } else ...
128
memory_bytes
{'s_id': 's461465089', 'p_id': 'p02743', 'u_id': 'u252733270', 'date': '1584239810', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '389'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main()\n{\n long long int a,b,c,qian,hou;\n scanf(\"%lld%lld%lld\",&a,&b,&c);\n ...
CDSS_274541
CDSS
#include <stdio.h> int main(void){ int a,b; scanf("%d %d",&a,&b); if (a<b){ printf("a < b\n"); }else if (a>b){ printf("a > b\n"); }else{ printf("a == b\n"); } return 0; }
2,056
memory_bytes
{'s_id': 's636834635', 'p_id': 'p02391', 'u_id': 'u296417685', 'date': '1533693224', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '186'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n\tint a,b;\n\tscanf(\"%d %d\",&a,&b);\n\tif (a<b){\n\t\tprintf(\"a < b\\n\");\n\t}else if (a>b){\...
CDSS_611154
CDSS
#include<stdio.h> int main() { int X,Y; scanf("%d %d",&X,&Y); printf("%d",X+Y/2); return 0; }
128
memory_bytes
{'s_id': 's035794720', 'p_id': 'p03219', 'u_id': 'u863370423', 'date': '1559626663', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '111'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int X,Y;\n scanf(\"%d %d\",&X,&Y);\n printf(\"%d\",X+Y/2);\n return 0;\n}\n\nPredict ...
CDSS_170466
CDSS
#include <stdio.h> #define N 100 void trace(int A[], int length, int index) { int i; for (i = 0; i < length -1; i++) { printf("%d ", A[i]); } printf("%d\n", A[i]); printf("%d\n", index); } int main() { int length, i, j, tmp, minj; int index = 0; int A[N]; scanf("%d", &length); for (i = 0; i ...
600
memory_bytes
{'s_id': 's925348338', 'p_id': 'p02260', 'u_id': 'u381495450', 'date': '1492572101', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '670'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define N 100\n\nvoid trace(int A[], int length, int index) {\n int i;\n for (i = 0; i < length -1; i++) {\n ...
CDSS_393410
CDSS
#include<stdio.h> #include<stdint.h> int h,w; int main(void){ register int i,j; int k; scanf("%d%d%d",&h,&w,&k); char grid[h][w]; for(i = 0;i < h;i++)for(j = 0;j < w;j++)scanf("%1s",&grid[i][j]); uint8_t hbit,wbit; int cnt,ans = 0; for(hbit = 0;hbit < 1u << h;hbit++)for(wbit = 0;wbit <...
1,732
memory_bytes
{'s_id': 's929185339', 'p_id': 'p02614', 'u_id': 'u491343140', 'date': '1593998503', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', 'code_size': '573'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdint.h>\n\nint h,w;\n\nint main(void){\n register int i,j;\n int k;\n scanf(\"%d%d%d\",&h,&w,&k...
CDSS_40131
CDSS
#include<stdio.h> main(){ int n,a,x=100000; scanf("%d",&n); for(;n>0;n--){ a=x*0.05; x=x+a+999; x/=1000; x*=1000; } printf("%d\n",x); return 0; }
0
memory_bytes
{'s_id': 's791827002', 'p_id': 'p00007', 'u_id': 'u338458813', 'date': '1312373234', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '173'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nmain(){\n int n,a,x=100000;\n scanf(\"%d\",&n);\n for(;n>0;n--){\n a=x*0.05;\n x=x+a+999;\n x/=1000;\n ...
CDSS_68997
CDSS
#include<stdio.h> #include<string.h> void judge(int fild[14][14], int i, int j) { fild[i][j] = 0; if (fild[i][j + 1] == 1)judge(fild, i, j + 1); if (fild[i][j - 1] == 1)judge(fild, i, j - 1); if (fild[i+1][j ] == 1)judge(fild, i+1, j); if (fild[i-1][j] == 1)judge(fild, i-1, j); } int main(void) { in...
604
memory_bytes
{'s_id': 's111392149', 'p_id': 'p00067', 'u_id': 'u481307862', 'date': '1485688379', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '699'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nvoid judge(int fild[14][14], int i, int j) {\n\tfild[i][j] = 0; \n\tif (fild[i][j + 1] == 1)...
CDSS_736414
CDSS
#include <stdlib.h> #include <stdio.h> int main ( void ) { int i = 0; for (i = 0; i < 4; i++) { putchar(getchar()); } putchar(' '); int c = getchar(); while (c != '\n' && c != EOF) { putchar(c); c = getchar(); } putchar('\n'); return EXIT_SUCCES...
128
memory_bytes
{'s_id': 's004125397', 'p_id': 'p03992', 'u_id': 'u560305185', 'date': '1474765938', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '325'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include <stdlib.h>\n#include <stdio.h>\n \nint main ( void ) {\n int i = 0;\n \n for (i = 0; i < 4; i++) {\n putchar(...
CDSS_64235
CDSS
#include<stdio.h> #include<limits.h> int main(){ float data;//標高の高さデータ float max,min,div;// max=LONG_MIN; min=LONG_MAX; while(~scanf("%f",&data)){ if(max<data) max=data; if(min>data) min=data; } div=max-min; printf("%.1f\n",div); return 0; }
648
memory_bytes
{'s_id': 's641627601', 'p_id': 'p00046', 'u_id': 'u078042885', 'date': '1368852181', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '270'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<limits.h>\nint main(){\n\tfloat data;//標高の高さデータ\n\tfloat max,min,div;//\n\tmax=LONG_MIN;\n\tmin=LONG_MAX;\...
CDSS_353005
CDSS
#include <stdio.h> int main(){ char rank[5][10]={"F","D","C","B","A"}; int border[6]={0,30,50,65,80,101}; int m[100],f[100],r[100]; int idx=0,i,k,sum; for(;;){ scanf("%d %d %d",&m[idx],&f[idx],&r[idx]); if(m[idx]==-1 && f[idx]==-1 && r[idx]==-1){ break; } idx++; } for(i=0;i<idx;i++){ if(m[i]==-1 |...
1,756
memory_bytes
{'s_id': 's570512890', 'p_id': 'p02411', 'u_id': 'u101724769', 'date': '1515599570', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1756', 'code_size': '564'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n\tchar rank[5][10]={\"F\",\"D\",\"C\",\"B\",\"A\"};\n\tint border[6]={0,30,50,65,80,101};\n\tint m[10...
CDSS_273066
CDSS
#include <stdio.h> int main(){ int a, b; scanf("%d%d", &a, &b ); if ( a < b ) { printf("a < b\n"); } else if ( a > b ) { printf("a > b\n"); } else if ( a == b ){ printf("a == b\n"); } return 0; }
2,104
memory_bytes
{'s_id': 's769089717', 'p_id': 'p02391', 'u_id': 'u286913728', 'date': '1527813815', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '227'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n \n int a, b;\n scanf(\"%d%d\", &a, &b );\n if ( a < b ) {\n printf(\"a < b\\n\");\n } else i...
CDSS_136256
CDSS
#include<stdio.h> #define M 150 int u[M][M],s[M],t; int tim,where[M]; int ans[M][2]; int visit[M]; int end(int n){ int a=1,i; for(i=1;i<=n;i++){ if(visit[i]==0)return i; } return 0; } void push(int a){ tim++; s[t++]=a; visit[a]=1; } int pop(){ tim++; return s[t--]; } int main(){ int a...
656
memory_bytes
{'s_id': 's377608726', 'p_id': 'p02238', 'u_id': 'u512305895', 'date': '1405047751', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '656', 'code_size': '961'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define M 150\nint u[M][M],s[M],t;\nint tim,where[M];\nint ans[M][2];\nint visit[M];\n\n\nint end(int n){\n int a=...
CDSS_399277
CDSS
#include <stdio.h> int main(){ int i; char alpha; scanf("%c", &alpha); if((alpha>='a') && (alpha<='z')){ printf("a\n"); }else{ printf("A\n"); } return 0; }
1,592
memory_bytes
{'s_id': 's366885486', 'p_id': 'p02627', 'u_id': 'u571537830', 'date': '1592787900', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1592', 'code_size': '211'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n\n int i;\n char alpha;\n\n scanf(\"%c\", &alpha);\n\n if((alpha>='a') && (alpha<='z')){\...
CDSS_599912
CDSS
#include <stdio.h> #include <string.h> int main() { int AB; int BC; int CA; scanf("%d %d %d",&AB,&BC,&CA); int surface = (AB*BC)/2; printf("%d\n",surface); return 0; }
128
memory_bytes
{'s_id': 's486925035', 'p_id': 'p03145', 'u_id': 'u824217496', 'date': '1552190535', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '181'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint main() {\n int AB;\n int BC;\n int CA;\n scanf(\"%d %d %d\",&AB,&BC,&CA);\n int surf...
CDSS_169904
CDSS
#include<stdio.h> #include<stdlib.h> int selectionSort(int*,int); int main(){ int n,*a,kaisu; int i,j; scanf("%d",&n); a=(int *)malloc(sizeof(int)*n); for(i=0;i<n;i++)scanf("%d",&a[i]); kaisu=selectionSort(a,n); for(i=0;i<n;i++){ printf("%d",a[i]); if(i!=n-1)printf(" "); } printf("\n%d...
604
memory_bytes
{'s_id': 's029978321', 'p_id': 'p02260', 'u_id': 'u805338419', 'date': '1461120591', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '646'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint selectionSort(int*,int);\n\nint main(){\n\n int n,*a,kaisu;\n int i,j;\n\n scanf(\"%d\...
CDSS_621157
CDSS
#include <inttypes.h> #include <math.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> intmax_t get_gcd(intmax_t a, intmax_t b) { while (b != 0) { intmax_t r = a % b; a = b; b = r; } return a; } int main(int argc, char const* argv[]) { int64_t N...
1,792
memory_bytes
{'s_id': 's905629344', 'p_id': 'p03262', 'u_id': 'u335453773', 'date': '1582436775', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '15', 'memory': '1792', 'code_size': '645'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <inttypes.h>\n#include <math.h>\n#include <stdint.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nintmax_...
CDSS_95294
CDSS
#include <stdio.h> int main(){ int a, b; scanf("%d %d", &a, &b); printf("%d\n", (a+b)/2); return 0; }
1,836
memory_bytes
{'s_id': 's790497401', 'p_id': 'p00352', 'u_id': 'u922234384', 'date': '1506662231', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1836', 'code_size': '104'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\nint a, b;\n\nscanf(\"%d %d\", &a, &b);\nprintf(\"%d\\n\", (a+b)/2);\n\nreturn 0;\n}\nPredict its me...
CDSS_507540
CDSS
int main(){ int s, i; char a[101], b[101]; scanf("%d%s%s", &s, a, b); for(i=0; i<s; i++){ putchar(a[i]); putchar(b[i]); } putchar(10); }
128
memory_bytes
{'s_id': 's847989820', 'p_id': 'p02830', 'u_id': 'u292252214', 'date': '1577422209', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '157'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nint main(){\n int s, i;\n char a[101], b[101];\n scanf(\"%d%s%s\", &s, a, b);\n for(i=0; i<s; i++){\n putchar(a[i]);\n putch...
CDSS_278245
CDSS
#include <stdio.h> int main(){ int a, b, c; scanf("%d %d %d",&a,&b,&c); if(a<b&&b<c){ printf("Yes\n"); } else { printf("No\n"); } return 0; }
580
memory_bytes
{'s_id': 's938531460', 'p_id': 'p02392', 'u_id': 'u729056931', 'date': '1496558890', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '172'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int a, b, c;\n scanf(\"%d %d %d\",&a,&b,&c);\n if(a<b&&b<c){\n printf(\"Yes\\n\");\n ...
CDSS_217230
CDSS
#include <stdio.h> int N; int deg[100001]; int par[100001]; int sib[100001]; int Depth(int); int Height(int); int main() { int j,i; scanf("%d", &N); for(i = 0; i < N; ++i) { par[i] = -1; sib[i] = -1; deg[i] = 0; } for(i = 0; i < N; i++) { int id, lef, rig; scanf("%d %d %d", &id, &lef, &rig...
2,100
memory_bytes
{'s_id': 's433974217', 'p_id': 'p02280', 'u_id': 'u815509365', 'date': '1531196220', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '1117'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint N;\nint deg[100001];\nint par[100001];\nint sib[100001];\nint Depth(int);\nint Height(int);\nint main() {\n i...
CDSS_639446
CDSS
//プリプロセッサ系 #include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #include <stdlib.h> #include <stdbool.h> #define MOD 1000000007 #define INFTY 2147483646 #define DEBUG 1 #define END printf("\n");return 0; #define QS09(how_data,data) qsort(data,how_data,sizeof(long),(int (*)(const void *,const voi...
256
memory_bytes
{'s_id': 's320348041', 'p_id': 'p03325', 'u_id': 'u926548116', 'date': '1529198167', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '10536'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//プリプロセッサ系\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <math.h>\n#include <stdlib.h>\n#include <stdbool.h>...
CDSS_62833
CDSS
#include <stdio.h> #define MAX_N 1000 #define MAX_W 1000 int dp[MAX_N + 1][MAX_W + 1]; int vin[MAX_N]; int win[MAX_N]; int count; int max(int a, int b) { return (a > b) ? a : b; } void calcAns(int n, int w) { int i, j, wsum; for (j = 0; j < w + 1; j++) dp[n][j] = 0; for (i = n - 1; i >= 0; i--) { fo...
4,520
memory_bytes
{'s_id': 's635209567', 'p_id': 'p00042', 'u_id': 'u214404619', 'date': '1486299518', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '4520', 'code_size': '879'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define MAX_N 1000\n#define MAX_W 1000\n\nint dp[MAX_N + 1][MAX_W + 1];\nint vin[MAX_N];\nint win[MAX_N];\nint cou...
CDSS_153859
CDSS
#include<stdio.h> int main(){ int x,y,r; scanf("%d%d",&x,&y); if(x<y){ r=x; x=y; y=r; } while(y>0){ r=x%y; x=y; y=r; } printf("%d\n",x); return 0; }
2,140
memory_bytes
{'s_id': 's156179319', 'p_id': 'p02256', 'u_id': 'u593489879', 'date': '1575532342', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '212'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int x,y,r;\n \n scanf(\"%d%d\",&x,&y);\n if(x<y){\n r=x;\n x=y;\n y=r;\n }\n\n \...
CDSS_89954
CDSS
// AOJ 0237: The Last Door // 2018.2.21 bal4u #include <stdio.h> #include <string.h> #include <math.h> #include <ctype.h> #define MAX 102 #define EPS 1e-5 typedef struct { double x, y; } PP; PP t[MAX][5]; int n, d; //#define getchar_unlocked() getchar() int in() { int n = 0; int c = getchar_unlocked(); while (c...
2,028
memory_bytes
{'s_id': 's027640961', 'p_id': 'p00237', 'u_id': 'u847467233', 'date': '1519202682', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2028', 'code_size': '3873'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// AOJ 0237: The Last Door\n// 2018.2.21 bal4u\n\n#include <stdio.h>\n#include <string.h>\n#include <math.h>\n#include <ctype.h>\n\n#d...
CDSS_602402
CDSS
#include <stdio.h> long abs(long); int main(){ int n,h[100000],dp[100000],f1,f2; scanf("%d",&n); for (int i=0;i<n;i++) scanf("%d",&h[i]); dp[0]=0; dp[1]=abs(h[0]-h[1]); for (int i=2;i<n;i++){ f1=dp[i-1]+abs(h[i]-h[i-1]); f2=dp[i-2]+abs(h[i]-h[i-2]); if (f1>f2) dp[i]=f2; else dp[i]=f1; } ...
896
memory_bytes
{'s_id': 's872520884', 'p_id': 'p03160', 'u_id': 'u351299035', 'date': '1553391873', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '896', 'code_size': '423'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nlong abs(long);\nint main(){\n int n,h[100000],dp[100000],f1,f2;\n scanf(\"%d\",&n);\n for (int i=0;i<n;i++) sc...
CDSS_600496
CDSS
#include <stdio.h> int main(void) { int s; int a[1024]; int i,f; scanf("%d",&s); a[0]=s; for(i=0;i<1024;i++){ if(a[i]%2==1){ a[i+1]=3*a[i]+1; }else{ a[i+1]=a[i]/2; } //printf("%d\n",a[i+1]); for(f=0;f<i;f++){ if(a[f]==a[i]){ printf("%d",i+1); return 0; } } } }
128
memory_bytes
{'s_id': 's793309737', 'p_id': 'p03146', 'u_id': 'u515730978', 'date': '1548041996', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '286'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint s;\n\tint a[1024];\n\tint i,f;\n\t\n\tscanf(\"%d\",&s);\n\ta[0]=s;\n\tfor(i=0;i<1024;i+...
CDSS_241166
CDSS
#include<stdio.h> int main(void){ int x; scanf("%d",&x); printf("%d\n",x*x*x); return 0; }
596
memory_bytes
{'s_id': 's385229368', 'p_id': 'p02388', 'u_id': 'u047894423', 'date': '1445326902', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '90'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\nint x;\nscanf(\"%d\",&x);\nprintf(\"%d\\n\",x*x*x);\nreturn 0;\n}\nPredict its memory footprint.",...
CDSS_120727
CDSS
#include<stdio.h> int main(void){ int wid, hei, t, p; while(1){ scanf("%d%d%d%d",&wid,&hei,&t,&p); if(wid==0) break; int mat[500][500];//mat[wid][hei] for(int i=0;i<500;i++){ for(int j=0;j<500;j++){ if(i<wid&&j<hei) mat[i][j]=1; else ma...
2,712
memory_bytes
{'s_id': 's544040774', 'p_id': 'p01110', 'u_id': 'u116763481', 'date': '1565770912', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '50', 'memory': '2712', 'code_size': '1317'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int wid, hei, t, p;\n while(1){\n scanf(\"%d%d%d%d\",&wid,&hei,&t,&p);\n if(w...
CDSS_292167
CDSS
#include <stdio.h> int main(void) { int W,H, x, y, r, c_x, c_y; scanf("%d %d %d %d %d", &W, & H, &x, &y, &r); c_x = x + r; c_y = y + r; if(c_x > W || c_y > H || (x - r) < 0 || (y - r) < 0){ printf("No\n"); } else { printf("Yes\n"); } return 0; }
1,816
memory_bytes
{'s_id': 's265454196', 'p_id': 'p02394', 'u_id': 'u991824756', 'date': '1505782293', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1816', 'code_size': '265'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n\nint main(void)\n{\n\tint W,H, x, y, r, c_x, c_y;\n\t\n\tscanf(\"%d %d %d %d %d\", &W, & H, &x, &y, &r);\n\t\n\...
CDSS_178150
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> int top, S[1000]; void push(int x) { S[++top] = x; } int pop() { top--; return S[top+1]; } int main(void) { int a,b; char s[100]; top = 0; while(scanf("%s",s) != EOF) { if(s[0] == '+') { a = pop(); b = pop(); push(a + b); } else if(s[...
548
memory_bytes
{'s_id': 's743173623', 'p_id': 'p02263', 'u_id': 'u456368662', 'date': '1497244941', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '523'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nint top, S[1000];\n\nvoid push(int x) {\n\tS[++top] = x;\n}\n\nint pop...
CDSS_207398
CDSS
#include<stdio.h> #include<stdlib.h> #define MAX 2000001 #define VMAX 10000 int C[VMAX+1],n; void CountingSort(short *,short *,int); int main(){ unsigned short *A, *B; int i,j,k=0; scanf("%d", &n); A = malloc(sizeof(short)*n+1); B = malloc(sizeof(short)*n+1); /* your code */ for( j = 1; j <= n; j++){ sc...
9,188
memory_bytes
{'s_id': 's505757388', 'p_id': 'p02275', 'u_id': 'u819816381', 'date': '1545964222', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '240', 'memory': '9188', 'code_size': '885'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#define MAX 2000001\n#define VMAX 10000\n\nint C[VMAX+1],n;\n\nvoid CountingSort(short *,short ...
CDSS_524996
CDSS
// Ver19.03 #include <math.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #define INF (1 << 29) * 2 #define LLINF 4545454545454545454 #define MOD 1000000007 #define ll long long #define ull unsigned long long #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define MIN(a, b) ((a) < (b) ? (a) : (b)) int upll(con...
128
memory_bytes
{'s_id': 's622673293', 'p_id': 'p02898', 'u_id': 'u883325972', 'date': '1575144276', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '128', 'code_size': '823'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// Ver19.03\n#include <math.h>\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#define INF (1 << 29) * 2\n#define LLINF...
CDSS_517755
CDSS
#include<stdio.h> int main() { int a,b,c; scanf("%d%d",&a,&b); if(a<10&&b<10) printf("%d",a*b); else printf("-1"); return 0; }
128
memory_bytes
{'s_id': 's653402395', 'p_id': 'p02879', 'u_id': 'u098592499', 'date': '1572325441', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '128'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\nint a,b,c;\nscanf(\"%d%d\",&a,&b);\nif(a<10&&b<10)\n printf(\"%d\",a*b);\nelse\nprintf(\"-1\");\nre...
CDSS_201140
CDSS
#include<stdio.h> int n,q,mi; int A[2000]; int solve(int j,int m); int main(void){ scanf("%d",&n); int i; for(i=0;i<n;i++){ scanf("%d",&A[i]); } scanf("%d",&q); for(i=0;i<q;i++){ scanf("%d",&mi); if(solve(0,mi)) printf("yes\n"); else printf("no\n"); } return 0; } int solve(int j,int m){ if(m==0...
2,092
memory_bytes
{'s_id': 's029202177', 'p_id': 'p02271', 'u_id': 'u618884920', 'date': '1570796871', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '430', 'memory': '2092', 'code_size': '413'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint n,q,mi;\nint A[2000];\n\nint solve(int j,int m);\n\nint main(void){\n\tscanf(\"%d\",&n);\n\tint i;\n\tfor(i=0...
CDSS_235425
CDSS
int main() { double a,b,c; double S,L2, L, h; scanf("%lf %lf %lf",&a,&b,&c); S = 0.5*a*b*sin(c*3.14159265359/180); L2 = a*a+b*b-2*a*b*cos(c*3.1415926359/180); L = sqrt(L2)+a+b; h = 2*S/a; printf("%.11lf\n%.11lf\n%.11lf\n",S ,L,h); return 0; }
2,052
memory_bytes
{'s_id': 's610171186', 'p_id': 'p02380', 'u_id': 'u184624792', 'date': '1563204137', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '272'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nint main() {\n \n double a,b,c;\n double S,L2, L, h;\n \n scanf(\"%lf %lf %lf\",&a,&b,&c);\n \n S = 0.5*a*b*sin(c*3.14159265359/18...
CDSS_509574
CDSS
#include<stdio.h> int main() { int a,b,c; scanf("%d%d%d",&a,&b,&c); if(a+b+c>=22) printf("bust"); else printf("win"); return 0; }
128
memory_bytes
{'s_id': 's817827817', 'p_id': 'p02835', 'u_id': 'u160009340', 'date': '1577839388', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '148'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n #include<stdio.h>\nint main()\n{\n int a,b,c;\n scanf(\"%d%d%d\",&a,&b,&c);\n if(a+b+c>=22)\n printf(\"bust\");\n else\n pr...
CDSS_142894
CDSS
#include <stdio.h> #include <stdlib.h> int pz[4][4]; int tmp[4][4]; int dx[4] = {0,1,0,-1}; int dy[4] = {1,0,-1,0}; void emp(int *x,int *y) { int p,q; for(p = 0;p < 4; p++) { for(q = 0; q < 4; q++) ...
2,096
memory_bytes
{'s_id': 's056661731', 'p_id': 'p02246', 'u_id': 'u596659106', 'date': '1533826157', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '230', 'memory': '2096', 'code_size': '2434'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n #include <stdio.h>\n #include <stdlib.h>\n\n int pz[4][4];\n int tmp[4][4];\n int dx[4] = {0,1,0,-...
CDSS_498965
CDSS
#include <stdio.h> int main(){ int H,W,N; scanf("%d\n%d\n%d",&H,&W,&N); if(H<W) H=W; int c=0; while(N>0){ N-=H; c++; } printf("%d\n",c); return 0; }
128
memory_bytes
{'s_id': 's474880655', 'p_id': 'p02795', 'u_id': 'u347116006', 'date': '1592160898', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '176'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int H,W,N;\n scanf(\"%d\\n%d\\n%d\",&H,&W,&N);\n if(H<W) H=W;\n int c=0;\n while(N>0){\n N...
CDSS_231162
CDSS
#include <stdio.h> #define DOT(v1, v2) (v1.x * v2.x + v1.y * v2.y) #define NORM(v) (v.x * v.x + v.y * v.y) typedef struct { double x, y; } point_t; typedef point_t vector_t; typedef struct { point_t p0, p1; } segment_t; typedef segment_t line_t; static vector_t plus(vector_t v1, vector_t v2) { vector_t ret = { v1.x...
2,112
memory_bytes
{'s_id': 's082141987', 'p_id': 'p02291', 'u_id': 'u633499839', 'date': '1579529745', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '1153'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define DOT(v1, v2) (v1.x * v2.x + v1.y * v2.y)\n#define NORM(v) (v.x * v.x + v.y * v.y)\n\ntypedef struct { doubl...
CDSS_200852
CDSS
#include<stdio.h> int n, A[50]; int solve(int i, int m){ if( m == 0 ) return 1; if( i >= n ) return 0; int res = solve(i + 1, m) || solve(i + 1, m- A[i]); } int main() { int q, M, i; scanf("%d", &n); for( i = 0; i < n; i++ ) scanf("%d", &A[i]); scanf("%d", &q); for( i = 0; i < q; i++ ) { ...
2,096
memory_bytes
{'s_id': 's906080332', 'p_id': 'p02271', 'u_id': 'u654340084', 'date': '1585391036', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '430', 'memory': '2096', 'code_size': '427'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint n, A[50];\n\nint solve(int i, int m){\n if( m == 0 ) return 1;\n if( i >= n ) return 0;\n int res = ...
CDSS_485035
CDSS
#include<stdio.h> #include<math.h> int main() { long long int num,n,k,i; scanf("%lld %lld",&n,&k); i = 0; while(n!=0) { // num += pow(k,i)*(n%10); i++; n=n/k; } // i = 0; // while(num!=0) // { // num = num/10; // i++; // } printf("%lld"...
128
memory_bytes
{'s_id': 's740955290', 'p_id': 'p02766', 'u_id': 'u766413013', 'date': '1586676384', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '340'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\nint main()\n{\n long long int num,n,k,i;\n scanf(\"%lld %lld\",&n,&k);\n i = 0;\n whi...
CDSS_657829
CDSS
#include <stdio.h> int main(void){ int N,A,S; scanf("%d",&N); scanf("%d",&A); S=N%500; if(S<=A){ printf("Yes"); } else{ printf("No"); } return 0; }
128
memory_bytes
{'s_id': 's043411923', 'p_id': 'p03433', 'u_id': 'u625145093', 'date': '1588983813', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '184'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int N,A,S;\n \n scanf(\"%d\",&N);\n scanf(\"%d\",&A);\n \n S=N%500;\n \n if(S<=A){\n p...
CDSS_158576
CDSS
#include<stdio.h> #include<math.h> #define N 100000000 #define M 10000 int main(void) { int i,j,k=0,n,l[M],flag=0,fi,temp; double cmp; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&l[i]); cmp = sqrt(l[i]); fi = cmp+1; flag = 0; for(j=2;j<=fi;j++){ if(l[i]%j==0 && l[i]!=2){ flag = 1;...
2,140
memory_bytes
{'s_id': 's938565330', 'p_id': 'p02257', 'u_id': 'u021560141', 'date': '1529377666', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2140', 'code_size': '402'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n\n#define N 100000000\n#define M 10000\n\nint main(void)\n{\n int i,j,k=0,n,l[M],flag=0,fi,temp;...
CDSS_592667
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> int min(int x, int y){return x<y?x:y;} int main(void){ char s[100000]; scanf("%s",s); int a=0,b=0,i; for(i=0;i<strlen(s);i++){ if(s[i] == '0')a++; else b++; } printf("%d",min(a,b)*2); return 0; }
256
memory_bytes
{'s_id': 's644341975', 'p_id': 'p03107', 'u_id': 'u853477575', 'date': '1552075372', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '266'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nint min(int x, int y){return x<y?x:y;}\nint main(void){\n\tchar s[1000...
CDSS_275594
CDSS
#include <stdio.h> int main(void) { int a , b , c; scanf("%d%d%d",&a ,&b ,&c); if (a < b && b < c){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }
580
memory_bytes
{'s_id': 's518721507', 'p_id': 'p02392', 'u_id': 'u488112238', 'date': '1436414757', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '175'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n\tint a , b , c;\n\t\n\tscanf(\"%d%d%d\",&a ,&b ,&c);\n\n\n\tif (a < b && b < c){\n\t\tprintf(...
CDSS_159346
CDSS
#include<stdio.h> #include<math.h> int isprim(); int main() { int a,b[10000],i,l,m=0; scanf("%d",&a); for(l=0;l<a;l++){ scanf("%d",&b[l]); } for(i=0;i<a;i++){ if(isprim(b[i])==1)m++; } printf("%d\n",m); return 0; } int isprim(x){ int i; if(x==2) return 1; else if(x<2||x%2==0...
632
memory_bytes
{'s_id': 's873267017', 'p_id': 'p02257', 'u_id': 'u024491113', 'date': '1398314238', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '632', 'code_size': '426'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\nint isprim();\nint main()\n{\n int a,b[10000],i,l,m=0;\n scanf(\"%d\",&a);\n for(l=0;l<a;l++){...
CDSS_111329
CDSS
#include <stdio.h> long gcd(long a, long b) { if (a % b == 0){ return b; } gcd(b, a % b); } int main(void) { long a, b, c, g; while (scanf("%ld %ld", &a, &b) != EOF){ if (a < b){ c = a; a = b; b = c; } g = gcd(a, b);...
596
memory_bytes
{'s_id': 's110959815', 'p_id': 'p00595', 'u_id': 'u145563629', 'date': '1428850025', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '373'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nlong gcd(long a, long b)\n{\n if (a % b == 0){\n return b;\n }\n \n gcd(b, a % b);\n}\n \ni...
CDSS_344571
CDSS
#include<stdio.h> int main(void) { int Cards[4][14] = {{}}, i, j, n, Num; char Mark; scanf("%d", &n); for(i = 0; i < 2 * n; i++) { scanf("%c ", &Mark); scanf("%d", &Num); if(Mark == 'S') { Cards[0][Num - 1] = 1; } else if(Mark...
2,040
memory_bytes
{'s_id': 's474869721', 'p_id': 'p02408', 'u_id': 'u003913321', 'date': '1559285623', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '1089'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n int Cards[4][14] = {{}}, i, j, n, Num;\n char Mark; \n\n scanf(\"%d\", &n);\n\n f...
CDSS_645124
CDSS
#include <stdio.h> #include <string.h> #define TRUE 0 #define FALSE 1 #define SIZE 5 #define LEN 6 #define MAX 5000 int Min( int a, int b){ if( a < b ) return a; else return b; } void String_Sort( int size , int len, char data[size][len]){ /* Using Comb Sort Algorithm */ int i; int h = size; int Is...
256
memory_bytes
{'s_id': 's721236553', 'p_id': 'p03353', 'u_id': 'u565219356', 'date': '1526441956', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '15', 'memory': '256', 'code_size': '1322'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#define TRUE 0\n#define FALSE 1\n#define SIZE 5\n#define LEN 6\n#define MAX 5000\n\nint Min( ...
CDSS_371180
CDSS
#include <stdio.h> #include <string.h> int main(void){ char tcard[101],hcard[101]; int n,i,res,tpoi=0,hpoi=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%s %s",tcard,hcard); res=strcmp(tcard,hcard); if(res==0){ tpoi++...
604
memory_bytes
{'s_id': 's795637412', 'p_id': 'p02421', 'u_id': 'u363403517', 'date': '1485881797', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '539'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void){\n char tcard[101],hcard[101];\n int n,i,res,tpoi=0,hpoi=0;\n ...
CDSS_344304
CDSS
#include<stdio.h> int main(void) { int i,j,n,a[4][13],number; char card; for (i = 0; i < 13; i++) { a[0][i]=0; a[1][i]=0; a[2][i]=0; a[3][i]=0; } scanf("%d",&n); for(i=0;i<n*2;i++) { scanf("%c %d", &card,&number); if(card == 'S') { a[0][numb...
2,036
memory_bytes
{'s_id': 's177452206', 'p_id': 'p02408', 'u_id': 'u710374386', 'date': '1531920474', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '928'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n int i,j,n,a[4][13],number;\n char card;\n\n for (i = 0; i < 13; i++)\n\t{\n\t\ta[0][...
CDSS_76727
CDSS
#include <stdio.h> #include <string.h> int n; char event[16]; int out; int base[4]; int main(void) { int n; scanf("%d", &n); while (n > 0){ scanf("%s", event); if (strcmp(event, "HIT") == 0){ base[3] += base[2]; base[2] = base[1]; base[1] = base[0]; base[0] = 1; } if (strcmp(event, "HOMERUN")...
596
memory_bytes
{'s_id': 's269046404', 'p_id': 'p00103', 'u_id': 'u376883550', 'date': '1409568594', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '601'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint n;\nchar event[16];\nint out;\nint base[4];\n\nint main(void)\n{\n\tint n;\n\t\n\tscanf...
CDSS_649636
CDSS
#include <stdio.h> int main(){ int n, m, x, a[100]; int i, j, cost1=0, cost2=0; scanf("%d %d %d", &n, &m, &x); for(i=0; i<m; i++) scanf("%d", &a[i]); for(i=x; i<=n; i++){ for(j=0; j<m; j++){ if(a[j] == i) cost1++; } } for(i=x; i>=0; i...
128
memory_bytes
{'s_id': 's177894983', 'p_id': 'p03378', 'u_id': 'u097683098', 'date': '1561580953', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '534'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include <stdio.h>\n\nint main(){\n int n, m, x, a[100];\n int i, j, cost1=0, cost2=0;\n\n scanf(\"%d %d %d\", &n, &m, &x);...
CDSS_286957
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int a, b, c; int tmp; scanf("%d%d%d", &a, &b, &c); if (a > b) tmp = a, a = b, b = tmp; if (b > c) { tmp = b, b = c, c = tmp; if (a > b) tmp = a, a = b, b = tmp; } printf("%d %d %d\n", a, b, c); return 0; }
2,068
memory_bytes
{'s_id': 's898523217', 'p_id': 'p02393', 'u_id': 'u351272696', 'date': '1525675147', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2068', 'code_size': '312'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n \nint main()\n{\n int a, b, c;\n int tmp;\n \n scanf(\"%d%d%d\", &a, &b, &c);\n ...
CDSS_709385
CDSS
#include<stdio.h> int main(void){ char bx,fx,comx; int i; int fg; int sgg; i=0; fg=0; sgg=0; while(1){ scanf("%c",&fx); if(fx==' '){ comx=bx; sgg=1; }else if(sgg==1){ if(comx==fx){ sgg=0; }else{ ...
128
memory_bytes
{'s_id': 's297834200', 'p_id': 'p03729', 'u_id': 'u699796231', 'date': '1493515238', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '532'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n char bx,fx,comx;\n int i;\n int fg;\n int sgg;\n i=0;\n fg=0;\n sgg=0;\n ...
CDSS_423898
CDSS
#include<stdio.h> int main () { int book[105]={0}; int i,k,n; scanf("%d %d",&n,&k); while(k--) { scanf("%d",&i); int tmp; while(i--) { scanf("%d",&tmp); book[tmp]++; } } int sum=0; for(i=1;i<=n;i++)if(book[i]==0)sum++; p...
1,736
memory_bytes
{'s_id': 's940033867', 'p_id': 'p02688', 'u_id': 'u891447573', 'date': '1588554581', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1736', 'code_size': '353'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main ()\n{\n int book[105]={0};\n int i,k,n;\n scanf(\"%d %d\",&n,&k);\n while(k--)\n {\n ...
CDSS_144456
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int i,j,v,A[100],k,N; scanf("%d",&N); if(N < 0 || N > 100) exit(2); for(i = 0; i < N ; i++){ scanf("%d",&A[i]); if(A[i] < 0 || A[i] > 1000) exit(2); } for(k = 0 ; k < N ; k++){ printf("%d",A[k]); if(k != N-1) printf(" "); } printf("\n...
604
memory_bytes
{'s_id': 's305193971', 'p_id': 'p02255', 'u_id': 'u603507914', 'date': '1460006103', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '597'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\nint main()\n{\n int i,j,v,A[100],k,N;\n\n scanf(\"%d\",&N);\n if(N < 0 || N > 100) exit(2)...
CDSS_192538
CDSS
#include <stdio.h> int main(){ int S[1000000]; int T[1000000]; int n; int q; int c=0; int m; int r; int l; int i,j; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&S[i]); } scanf("%d",&q); for(i=0;i<q;i++){ scanf("%d",&T[i]); } for(i=0;i<q;i++){ r=n; l=0; while(l<r)...
4,944
memory_bytes
{'s_id': 's531371576', 'p_id': 'p02268', 'u_id': 'u748744029', 'date': '1494386416', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '4944', 'code_size': '505'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int S[1000000];\n int T[1000000];\n int n;\n int q;\n int c=0;\n int m;\n int r;\n int l;\...
CDSS_518005
CDSS
#include <stdio.h> int main(){ int a,b; scanf("%d %d",&a,&b); if(a>9 || b>9) puts("-1"); else printf("%d\n",a*b); return 0; }
128
memory_bytes
{'s_id': 's242623591', 'p_id': 'p02879', 'u_id': 'u201829141', 'date': '1572225028', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '166'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int a,b;\n scanf(\"%d %d\",&a,&b);\n if(a>9 || b>9) puts(\"-1\");\n el...
CDSS_265176
CDSS
#include<stdio.h> int main() { int a,b; scanf("%d",&a); scanf("%d",&b); if(a<b) printf("a < b\n"); else if(a>b) printf("a > b\n"); else if(a==b) printf("a == b\n"); return 0; }
2,136
memory_bytes
{'s_id': 's503558940', 'p_id': 'p02391', 'u_id': 'u394846067', 'date': '1540773908', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2136', 'code_size': '180'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\nint a,b;\nscanf(\"%d\",&a);\nscanf(\"%d\",&b);\nif(a<b)\n\tprintf(\"a < b\\n\");\nelse if(a>b)\n\tpr...
CDSS_556641
CDSS
#include <stdio.h> int main(void){ char s1, s2, s3, s4; scanf("%c%c%c%c", &s1, &s2, &s3, &s4); if (s1 == s2 || s2 == s3 || s3 == s4) printf("Bad"); else printf("Good"); return 0; }
128
memory_bytes
{'s_id': 's127929489', 'p_id': 'p02993', 'u_id': 'u315153318', 'date': '1561577761', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '186'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n\tchar s1, s2, s3, s4;\n\tscanf(\"%c%c%c%c\", &s1, &s2, &s3, &s4);\n\tif (s1 == s2 || s2 == s3 ||...
CDSS_293410
CDSS
#include <stdio.h> int main (void) { int w, h, x, y, r; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); if(((x-r)>=0)&&((y-r)>=0)&&((x+r)<=w)&&((y+r)<=h)) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
2,108
memory_bytes
{'s_id': 's174206202', 'p_id': 'p02394', 'u_id': 'u950102196', 'date': '1588082851', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '262'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main (void) {\n int w, h, x, y, r;\n \n scanf(\"%d %d %d %d %d\", &w, &h, &x, &y, &r);\n\n if(((...
CDSS_539483
CDSS
//AtCoder用 //プリプロセッサ系 #include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #include <stdlib.h> #include <stdbool.h> #define MOD 1000000007 #define INFTY 2147483646 #define DEBUG 1 #define END printf("\n");return 0; #define QS09(how_data,data) qsort(data,how_data,sizeof(long),(int (*)(const void ...
128
memory_bytes
{'s_id': 's797892382', 'p_id': 'p02945', 'u_id': 'u926548116', 'date': '1565485318', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '128', 'code_size': '10641'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//AtCoder用\n//プリプロセッサ系\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <math.h>\n#include <stdlib.h>\n#include...
CDSS_690386
CDSS
#include<stdio.h> int main() { int A, B, C, D; scanf("%d", &A); scanf("%d", &B); scanf("%d", &C); scanf("%d", &D); if (B < C || D < A) printf("%d",0); else { if (A < C) { if (B < D) { printf("%d", B - C); } else { printf("%d", D - C); } } else { if (B < D) { prin...
128
memory_bytes
{'s_id': 's542205177', 'p_id': 'p03632', 'u_id': 'u863370423', 'date': '1514311079', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '405'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint A, B, C, D;\n\tscanf(\"%d\", &A);\n\tscanf(\"%d\", &B);\n\tscanf(\"%d\", &C);\n\tscanf(\"%d\",...
CDSS_658813
CDSS
#include <stdio.h> int main(void) { int N, a[100]; int i, j, tmp, AliceSum, BobSum; AliceSum = 0; BobSum = 0; scanf("%d", &N); for (i=0; i<N; i++) { scanf("%d", &a[i]); } for (i=1; i<N; i++) { for (j=N-1; j>=i; j--) { if (a[j] > a[j-1]) { ...
128
memory_bytes
{'s_id': 's543636802', 'p_id': 'p03434', 'u_id': 'u214304095', 'date': '1537070599', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '635'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int N, a[100];\n int i, j, tmp, AliceSum, BobSum;\n AliceSum = 0;\n BobSum = 0;\...
CDSS_299336
CDSS
/*PM 問題10*/ #include <stdio.h> int main() { int i = 1; int x = 0; while (1) { scanf("%d", &x); if (x== 0) break; printf("Case %d: %d\n", i, x); i = i + 1; } return 0; }
2,132
memory_bytes
{'s_id': 's881350475', 'p_id': 'p02396', 'u_id': 'u351457111', 'date': '1554462708', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2132', 'code_size': '199'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*PM 問題10*/\n#include <stdio.h>\n\nint main()\n{\n\tint i = 1;\n\tint x = 0;\n\n\twhile (1)\n\t{\n\t\tscanf(\"%d\", &x);\n\t\tif (x== ...