identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_503430
CDSS
#include<stdio.h> int main() { char S[100], T[100]; scanf("%s %s",&S,&T); printf("%s%s\n",T,S); return 0; }
1,728
memory_bytes
{'s_id': 's134667100', 'p_id': 'p02817', 'u_id': 'u018679195', 'date': '1595996787', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1728', 'code_size': '124'}
[ { "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 char S[100], T[100];\n scanf(\"%s %s\",&S,&T);\n printf(\"%s%s\\n\",T,S);\n return 0;\n...
CDSS_446107
CDSS
#include <stdio.h> int n, arr[200001]; int main(void) { int i, num; scanf("%d", &n); for(i=1; i<n; i++){ scanf("%d", &num); arr[num]++; } for(i=1; i<=n; i++) printf("%d\n", arr[i]); return 0; }
2,464
memory_bytes
{'s_id': 's141837560', 'p_id': 'p02707', 'u_id': 'u701798475', 'date': '1587345484', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '38', 'memory': '2464', 'code_size': '206'}
[ { "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, arr[200001];\nint main(void) {\n\tint i, num;\n\tscanf(\"%d\", &n);\n\tfor(i=1; i<n; i++){\n\t\tscanf(\"%d\...
CDSS_220950
CDSS
#include <stdio.h> #include <stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL void inorder(Node); void preorder(Node); void insert(int); Node root; int main(){ int n, i, x; char com[20]; scanf("%d", &n); ...
25,220
memory_bytes
{'s_id': 's063086633', 'p_id': 'p02283', 'u_id': 'u890530158', 'date': '1531489139', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '340', 'memory': '25220', 'code_size': '1389'}
[ { "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\nstruct node{\n struct node *right;\n struct node *left;\n struct node *parent;\n int ke...
CDSS_293661
CDSS
#include<stdio.h> int main(){ int W,H,x,y,r; scanf("%d%d%d%d%d",&W,&H,&x,&y,&r); if((x+r)<=W && (x-r)>=0 && (y+r)<=H && (y-r)>=0){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
2,108
memory_bytes
{'s_id': 's239385595', 'p_id': 'p02394', 'u_id': 'u185974798', 'date': '1560835116', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '225'}
[ { "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 W,H,x,y,r;\n scanf(\"%d%d%d%d%d\",&W,&H,&x,&y,&r);\n if((x+r)<=W && (x-r)>=0 && (y+r)<=H...
CDSS_660168
CDSS
# include"stdio.h" int main(void){ int x,a,b; scanf("%d %d %d",&x,&a,&b); x=x-a; while(x>=0) x=x-b; printf("%d",x+b); return 0; }
128
memory_bytes
{'s_id': 's149418321', 'p_id': 'p03447', 'u_id': 'u791116888', 'date': '1557769172', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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\"\nint main(void){\n int x,a,b;\n scanf(\"%d %d %d\",&x,&a,&b);\n x=x-a;\n while(x>=0)\n x=x-b;\n printf(\"...
CDSS_532255
CDSS
#include<stdio.h> #include<string.h> int main() { char S[3],T[3]; gets(S); gets(T); int i; int cnt = 0; for(i=0; i<3; i++) {if(S[i]==T[i])cnt++;} printf("%d\n",cnt); return 0; }
128
memory_bytes
{'s_id': 's492850698', 'p_id': 'p02921', 'u_id': 'u666976277', 'date': '1567367256', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '217'}
[ { "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{\n char S[3],T[3];\n gets(S);\n gets(T);\n int i;\n int cnt = 0;\n ...
CDSS_429847
CDSS
#include <stdio.h> int main(){ int s,w; scanf("%d %d",&s,&w); if(s>w) puts("safe"); else puts("unsafe"); return 0; }
1,640
memory_bytes
{'s_id': 's484138672', 'p_id': 'p02699', 'u_id': 'u663394870', 'date': '1592244186', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1640', '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(){\n int s,w;\n scanf(\"%d %d\",&s,&w);\n if(s>w)\n puts(\"safe\");\n else\n puts(\"u...
CDSS_577487
CDSS
#include <stdio.h> int main() { int a, b, c; scanf("%d %d %d", &a, &b, &c); if ((a <= c && c <= b) || (b <= c && c <= a)) { puts("Yes"); } else { puts("No"); } return 0; }
128
memory_bytes
{'s_id': 's780381011', 'p_id': 'p03067', 'u_id': 'u683588090', 'date': '1555901410', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '187'}
[ { "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\tint a, b, c;\n\n\tscanf(\"%d %d %d\", &a, &b, &c);\n\n\tif ((a <= c && c <= b) || (b <= c && c ...
CDSS_133796
CDSS
#include<stdio.h> #include<string.h> int max(int a,int b){ if(a > b)return a; else return b; } int lcs(char s1[],char s2[],int m,int n){ int c[1001][1001]; int i,j; int maxl = 0; for(i=1;i<=m;i++){ if(i<=m)break; } for(i=1;i<=m;i++){ c[i][0] = 0; } for(j=1;j<=n;j++){ c[0][j] = 0; }...
5,608
memory_bytes
{'s_id': 's503999693', 'p_id': 'p02235', 'u_id': 'u569402626', 'date': '1579763731', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '5608', 'code_size': '766'}
[ { "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 max(int a,int b){\n if(a > b)return a;\n else return b;\n}\n\nint lcs(char s1[],char s2...
CDSS_353135
CDSS
#include<stdio.h> int main() { int m,f,r,s,i; for(i=1; ;i++) { scanf("%d%d%d",&m,&f,&r); if(m==-1 && f==-1 && r==-1) { break; } s=m+f; if(m==-1||f==-1|| (m+f)<30) { printf("F\n"); } else if(s>=80) ...
2,068
memory_bytes
{'s_id': 's789941362', 'p_id': 'p02411', 'u_id': 'u103301439', 'date': '1525280557', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2068', 'code_size': '660'}
[ { "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 m,f,r,s,i;\n for(i=1; ;i++)\n {\n scanf(\"%d%d%d\",&m,&f,&r);\n if(m==-1...
CDSS_740462
CDSS
#include <stdio.h> int main(void){ char s[1001]; int cntn=0, cnts=0, cnte=0, cntw=0, i=0; scanf("%s", s); while(s[i] != '\0'){ if(s[i]=='N') cntn++; else if(s[i]=='S') cnts++; else if(s[i]=='E') cnte++; else if(s[i]=='W') cntw++; i++; } if(((cntn==...
128
memory_bytes
{'s_id': 's929900325', 'p_id': 'p04019', 'u_id': 'u196254124', 'date': '1551135778', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '472'}
[ { "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 char s[1001];\n int cntn=0, cnts=0, cnte=0, cntw=0, i=0;\n\n scanf(\"%s\", s);\n\...
CDSS_231771
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { int n, m, i, j; scanf("%d", &n); scanf("%d", &m); int a[n+1]; int c[n]; for(i = 0; i < m; i++) { scanf("%d", c+i); } a[0] = 0; for(i = 1; i < n + 1; i++) { a[i] = 50001; for(j = 0; j <...
800
memory_bytes
{'s_id': 's603239172', 'p_id': 'p02314', 'u_id': 'u841926468', 'date': '1503131886', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '800', 'code_size': '548'}
[ { "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 main()\n{\n int n, m, i, j;\n scanf(\"%d\", &n);\n scanf...
CDSS_448300
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> int main(void){ int n,a,b,c; scanf("%d",&n); a = n%10; b = n/10 - (n/100)*10; c = n/100; if(a == 7 || b == 7 || c == 7){ printf("Yes"); } else{ printf("No"); } return 0; }
1,736
memory_bytes
{'s_id': 's804815104', 'p_id': 'p02711', 'u_id': 'u331464808', 'date': '1587327037', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1736', 'code_size': '284'}
[ { "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 main(void){\n int n,a,b,c;\n scanf(\"%d\",&n);\n a = n%10;\n...
CDSS_387774
CDSS
#include <stdio.h> typedef struct { int key, id; } data; void merge_sort(data x[], int n) { static data y[500001] = {}; if (n <= 1) return; merge_sort(&(x[0]), n/2); merge_sort(&(x[n/2]), (n+1)/2); int i, p, q; for (i = 0, p = 0, q = n/2; i < n; i++) { if (p >= n/2) y[i] = x[q++]; else if (q >= n) y[i] =...
25,040
memory_bytes
{'s_id': 's573090820', 'p_id': 'p02599', 'u_id': 'u943800443', 'date': '1598723196', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '256', 'memory': '25040', 'code_size': '1520'}
[ { "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\ntypedef struct {\n\tint key, id;\n} data;\n\nvoid merge_sort(data x[], int n)\n{\n\tstatic data y[500001] = {};\...
CDSS_190645
CDSS
#include<stdio.h> #define max 10000 main(){ int i,j,n,q,f[max],s[max],count=0; scanf("%d",&n); for(i=0;i<n;i++) scanf("%d",&f[i]); scanf("%d",&q); for(i=0;i<q;i++) scanf("%d",&s[i]); for(i=0;i<q;i++) for(j=0;j<n;j++) if(f[j]==s[i]){ count++; break; } printf("%d\n",count);...
648
memory_bytes
{'s_id': 's832217839', 'p_id': 'p02267', 'u_id': 'u902080254', 'date': '1402990466', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '338'}
[ { "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 10000\nmain(){\n int i,j,n,q,f[max],s[max],count=0;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++)\n s...
CDSS_104746
CDSS
#include <stdio.h> int main(void){ int a,s,d,f; scanf("%d %d %d %d",&a,&s,&d,&f); printf("%d\n%d\n",(a+s+d+f)/60,(a+s+d+f)%60); return 0; }
596
memory_bytes
{'s_id': 's336714000', 'p_id': 'p00477', 'u_id': 'u302788563', 'date': '1470055293', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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 a,s,d,f;\n\tscanf(\"%d %d %d %d\",&a,&s,&d,&f);\n\tprintf(\"%d\\n%d\\n\",(a+s+d+f)/60,(a+s+...
CDSS_140838
CDSS
#include <stdio.h> #include <limits.h> struct node_t { int n; int e[100][2]; }; typedef struct node_t Node; int input(Node node[100]) { int n, i, j, k; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d %d", &j, &k); for (j = 0; j < k; j++) { scanf("%d %d", &node[i].e[j][0], &node[i].e[j][1]); } no...
676
memory_bytes
{'s_id': 's329855791', 'p_id': 'p02242', 'u_id': 'u782850731', 'date': '1380771705', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '676', 'code_size': '1033'}
[ { "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>\n\nstruct node_t {\n\tint n;\n\tint e[100][2];\n};\ntypedef struct node_t Node;\n\nint input(N...
CDSS_122529
CDSS
a,z,x,i,j;main(t){for(scanf("%d",&t);t--;printf("%d %d\n",-z,a))for(a=z=0,scanf("%d%d",&x,&i);--x;i=j)scanf("%d",&j),i-=j,a=i>a?i:a,z=i<z?i:z;exit(0);}
0
memory_bytes
{'s_id': 's763239266', 'p_id': 'p01223', 'u_id': 'u752673456', 'date': '1320740176', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '151'}
[ { "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:\na,z,x,i,j;main(t){for(scanf(\"%d\",&t);t--;printf(\"%d %d\\n\",-z,a))for(a=z=0,scanf(\"%d%d\",&x,&i);--x;i=j)scanf(\"%d\",&j),i-=j,a=i...
CDSS_304363
CDSS
#include <stdio.h> int main(){ int a,b,c,l,i; scanf("%d%d%d",&a,&b,&c); l=0; for(i=a;i<=b;i++){ if(c%i==0){ l=l+1; } } printf("%d\n",l); return 0; }
596
memory_bytes
{'s_id': 's173797199', 'p_id': 'p02398', 'u_id': 'u096341170', 'date': '1430567868', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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 int a,b,c,l,i;\n scanf(\"%d%d%d\",&a,&b,&c);\n l=0;\n for(i=a;i<=b;i++){\n if(c%i==0){\n ...
CDSS_420586
CDSS
#include<stdio.h> int main(void){ int A,B,C,K; int max=0; int i; scanf("%d %d %d %d",&A,&B,&C,&K); i = A+B; if(K<=i){ if(K<=A){ max = K; } else{ max = A; } } else{ K = K-i; max = A-K; } printf("%d",max); return 0; }
1,656
memory_bytes
{'s_id': 's916359325', 'p_id': 'p02682', 'u_id': 'u087761072', 'date': '1589161357', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1656', '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 int A,B,C,K;\n int max=0;\n int i;\n \n scanf(\"%d %d %d %d\",&A,&B,&C,&K);\n i = A+B;\n ...
CDSS_525306
CDSS
#include <stdio.h> int main(void) { int n, k; int cnt = 0; scanf("%d %d\n", &n, &k); for (int i = 0; i < n; i++) { int h; scanf("%d", &h); if (h >= k) cnt++; } printf("%d\n", cnt); return 0; }
128
memory_bytes
{'s_id': 's578545186', 'p_id': 'p02898', 'u_id': 'u020788337', 'date': '1569720898', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '128', 'code_size': '233'}
[ { "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, k;\n int cnt = 0;\n \n scanf(\"%d %d\\n\", &n, &k);\n for (int i = 0; i < n; i++...
CDSS_521410
CDSS
#include<stdio.h> #define N 1000000000 int main(){ int n; scanf("%d",&n); int a[n],c=0; for(int i=0; i<n; i++){ scanf("%d",&a[i]); } for(int i=0; i<n; i++) for(int j=0; j<i; j++){ if(i!=j) c+=a[i]*a[j]; } printf("%d\n",c); return 0; }
128
memory_bytes
{'s_id': 's132381964', 'p_id': 'p02886', 'u_id': 'u757014735', 'date': '1585536547', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '267'}
[ { "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 1000000000\n\nint main(){\n int n; scanf(\"%d\",&n);\n int a[n],c=0;\n for(int i=0; i<n; i++){\n sc...
CDSS_103512
CDSS
#include <stdio.h> int main(void) { int all; int book[9]; int i; while (1){ scanf("%d", &all); if (all == 0){ break; } for (i = 0; i < 9; i++){ scanf("%d", &book[i]); all -= book[i]; } printf("%d\n", all); } return (0); }
600
memory_bytes
{'s_id': 's746571999', 'p_id': 'p00466', 'u_id': 'u957294880', 'date': '1456133140', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '254'}
[ { "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 all;\n\tint book[9];\n\tint i;\n\t\n\twhile (1){\n\t\tscanf(\"%d\", &all);\n\t\tif (all...
CDSS_121248
CDSS
#include<stdio.h> int main(){ int N,i,j,a=0,b; char c[10000],d; scanf("%d",&N); for(i=0;i<N;i++){ scanf("%s",c); j=0; a=0; while(1){ if(c[j]=='0'){ b=j-a; d=c[a]; if(d=='2'){ if(b%3==1)printf("a"); else if(b%3==2)printf("b"); else if(b%3==0)printf("c"); } if(d=='3'){ ...
580
memory_bytes
{'s_id': 's684891205', 'p_id': 'p01131', 'u_id': 'u212664316', 'date': '1462799961', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '1361'}
[ { "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,j,a=0,b;\n char c[10000],d;\n scanf(\"%d\",&N);\n for(i=0;i<N;i++){\n scanf(\"%s\",c);...
CDSS_171246
CDSS
#include <stdio.h> int main(){ int i,j,N,S,c=0,minj; int A[100]; scanf("%d",&N); for (i=0; i<N; i++) { scanf("%d",&A[i]); } for(i=0; i<N; i++) { minj=i; for(j=i; j<N; j++) { if(A[j]<A[minj]) { ...
2,140
memory_bytes
{'s_id': 's797893761', 'p_id': 'p02260', 'u_id': 'u791341095', 'date': '1529374049', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '729'}
[ { "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 i,j,N,S,c=0,minj;\n int A[100];\n scanf(\"%d\",&N);\n\n for (i=0; i<...
CDSS_744215
CDSS
#include<stdio.h> void answer(); int main() { answer(); return 0; } void answer() { int a,b,c; scanf("%d%d%d",&a,&b,&c); if(a==5&&b==5&&c==7||a==5&&b==7&&c==5||a==7&&b==5&&c==5) { printf("YES"); } else printf("NO"); }
128
memory_bytes
{'s_id': 's817269029', 'p_id': 'p04043', 'u_id': 'u863370423', 'date': '1580537653', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nvoid answer();\nint main()\n{\n answer();\n return 0;\n}\nvoid answer()\n{\n int a,b,c;\n scanf(\"%d%d%...
CDSS_144750
CDSS
#include <stdio.h> void insertionSort(); void output(); int main(){ int i,j,N; int A[1000]; scanf("%d",&N); for( i=0 ; i<N ; i++) scanf("%d",&A[i]); output(N,A); insertionSort(N,A); return 0; } void insertionSort(int N, int A[]){ //change the place int i, j, v; for(i=1; i <N;i++){ ...
608
memory_bytes
{'s_id': 's023432389', 'p_id': 'p02255', 'u_id': 'u863756436', 'date': '1460524854', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '604'}
[ { "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 insertionSort();\nvoid output();\n\nint main(){\n\n int i,j,N;\n int A[1000];\n\n scanf(\"%d\",&N);\n f...
CDSS_620728
CDSS
#include<stdio.h> #include<string.h> int main() { int a,b,c,d,flag=0; char e[11]; char s[100][11]; // 整数の入力 scanf("%d", &a); // 文字列の入力 for(b=0;b<a;b++){ scanf("%s",e); strcpy(s[b],e); } // 出力 for(b=0;b<a;b++){ for(d=0;s[b][d]!='\0';d++); if(s[b][d-1]!=s[b+1][0...
128
memory_bytes
{'s_id': 's854421089', 'p_id': 'p03261', 'u_id': 'u189156509', 'date': '1556042337', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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 main()\n{\n int a,b,c,d,flag=0;\n char e[11];\n char s[100][11];\n // 整数の入力\n...
CDSS_387023
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define ll long long int main(void) { int n; int count = 0; long double dist, d; ll x, y; scanf("%d %Lf", &n, &d); for (int i = 0; i < n; i++) { scanf("%lld %lld", &x, &y); dist = sqrt((x * x) + (y ...
2,220
memory_bytes
{'s_id': 's483988609', 'p_id': 'p02595', 'u_id': 'u767290471', 'date': '1596416872', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '53', 'memory': '2220', 'code_size': '439'}
[ { "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#define ll long long\n\nint main(void)\n{\n int n;...
CDSS_136064
CDSS
#include<stdio.h> static const int N = 100; int main(){ int A[N][N]; int n,k,v,c; int i, j; scanf("%d", &n); for ( i = 0; i < n; i++ ){ for ( j = 0; j < n; j++ ) A[i][j] = 0; } for ( i = 0; i < n; i++ ){ scanf("%d %d", &c, &k); c--; for ( j = 0; j < k; j++ ){ scanf("%d",...
2,052
memory_bytes
{'s_id': 's256547290', 'p_id': 'p02237', 'u_id': 'u961385580', 'date': '1532652212', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '537'}
[ { "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>\nstatic const int N = 100;\n\nint main(){\n int A[N][N];\n int n,k,v,c;\n int i, j;\n\n scanf(\"%d\", &n);\n\n ...
CDSS_130231
CDSS
#include <stdio.h> int f[44]; int fibo(int n){ int i; f[0]=1; f[1]=1; if(n>1) for(i=2;i<=n;i++) f[i]=f[i-2]+f[i-1]; return f[n]; } int main(int argc, char const *argv[]) { int n; scanf("%d",&n); printf("%d\n",fibo(n)); return 0; }
596
memory_bytes
{'s_id': 's225303451', 'p_id': 'p02233', 'u_id': 'u903981312', 'date': '1499306144', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '253'}
[ { "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 f[44];\nint fibo(int n){\n int i;\n f[0]=1;\n f[1]=1;\n if(n>1)\n for(i=2;i<=n;i++) f[i]=f[i-2]+f[i-1...
CDSS_573374
CDSS
#include<stdio.h> int main(void){ int R, G, B, N, r, g; int count = 0; scanf("%d", &R); scanf("%d", &G); scanf("%d", &B); scanf("%d", &N); for(r = 0; r <= N/R; r++){ for(g = 0; g <= (N-R*r)/G; g++){ if((N - R*r - G*g) % B == 0) count += 1; } } printf("%d\n", count); return 0; }
128
memory_bytes
{'s_id': 's083674727', 'p_id': 'p03048', 'u_id': 'u946346344', 'date': '1557626159', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '14', 'memory': '128', '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\nint main(void){\n\nint R, G, B, N, r, g;\nint count = 0;\n\nscanf(\"%d\", &R);\nscanf(\"%d\", &G);\nscanf(\"%d\",...
CDSS_679133
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/errno.h> #include <limits.h> #define READ_BUF_SIZE 10000000 #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define ABS(a) ((a) > (-a) ? (a) : (-a)) static int read_num (FILE *fp, long *out, long max) { char format[128]; char buf[READ_BUF_SIZE]; ...
5,848
memory_bytes
{'s_id': 's383485065', 'p_id': 'p03557', 'u_id': 'u315612172', 'date': '1592670519', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '76', 'memory': '5848', 'code_size': '2234'}
[ { "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 <sys/errno.h>\n#include <limits.h>\n\n#define READ_BUF_SIZE 100...
CDSS_17475
CDSS
#include<stdio.h> int main(void) { int i,j,a; for(i=1;i<=9;i++){ for(j=1;j<=9;j++){ a = i*j; printf("%dx%d=%d\n",i,j,a); } } return 0; }
2,108
memory_bytes
{'s_id': 's621907893', 'p_id': 'p00000', 'u_id': 'u567607616', 'date': '1545265837', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '194'}
[ { "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 int i,j,a;\n for(i=1;i<=9;i++){\n for(j=1;j<=9;j++){\n a = i*j;\n ...
CDSS_556564
CDSS
#include<stdio.h> #include<stdbool.h> int main(){ int i, temp; char num[4]; bool bad_frag = false; scanf("%s", num); temp = num[0]; for(i = 1; i <=3 ; i++){ if(num[i] == temp){ bad_frag = true; } temp = num[i]; } if(bad_frag){ printf("Bad"); }else{ printf("Good"); ...
128
memory_bytes
{'s_id': 's316627880', 'p_id': 'p02993', 'u_id': 'u635280736', 'date': '1562595716', '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<stdbool.h>\n \nint main(){\n int i, temp;\n char num[4];\n bool bad_frag = false;\n \n scanf(\"%s\", ...
CDSS_540615
CDSS
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <inttypes.h> #include <ctype.h> #include <stdint.h> #include <string.h> #include <wchar.h> #include <math.h> #define N_MAX (100) #define P_MAX (100) #define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1) #define MIN(a, b) ((a) < (b) ? (a) : (b)) #define MAX...
22,784
memory_bytes
{'s_id': 's279009512', 'p_id': 'p02947', 'u_id': 'u615782628', 'date': '1565488917', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '94', 'memory': '22784', 'code_size': '4807'}
[ { "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 <ctype.h>\n#include <stdint.h>\n#includ...
CDSS_485935
CDSS
#include <stdio.h> int main() { int n,i,sum=0,a=0,b=0,count1=0,count2=0; scanf("%d",&n); int x[n]; for(i=0;i<n;i++) { scanf("%d",&x[i]); sum+=x[i]; } a=sum/n; b=sum/n+1; for(i=0;i<n;i++) { count1+=(x[i]-a)*(x[i]-a); count2+=(x[i]-b)*(x[i]-b); }...
128
memory_bytes
{'s_id': 's056488951', 'p_id': 'p02767', 'u_id': 'u162472790', 'date': '1582427186', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '450'}
[ { "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 n,i,sum=0,a=0,b=0,count1=0,count2=0;\n scanf(\"%d\",&n);\n int x[n];\n for(i=0;i<n...
CDSS_211199
CDSS
#include <stdio.h> #define MAX 100000 int Partition(int *,int); int main() { int i,n,A[MAX],m; scanf("%d",&n); for (i = 0; i < n; i++) { scanf("%d",&A[i]); } n--; m = paritition(A,n); for(i = 0; i < m ; i ++) { printf("%d ",A[i]); } printf("[%d] ",A[m]); for(i = m + 1; i < n; i++) { ...
988
memory_bytes
{'s_id': 's794449500', 'p_id': 'p02276', 'u_id': 'u083039796', 'date': '1465222459', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '988', 'code_size': '611'}
[ { "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 100000\n\nint Partition(int *,int);\n\nint main() {\n int i,n,A[MAX],m;\n\n scanf(\"%d\",&n);\n for...
CDSS_571711
CDSS
#include <stdio.h> int main(void){ char s[4]; int is[4], month = 12; scanf("%s", s); for(int i = 0; i < 4; i++) is[i] = s[i] - '0'; if(10*is[0] + is[1] <= month && 10*is[0] + is[1] != 0) { if(10*is[2] + is[3] <= month && 10*is[2] + is[3] != 0) printf("AMBIGUOUS"); else printf("MMYY"); } else if(...
128
memory_bytes
{'s_id': 's943752996', 'p_id': 'p03042', 'u_id': 'u540350602', 'date': '1558316648', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '410'}
[ { "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 char s[4];\n int is[4], month = 12;\n scanf(\"%s\", s);\n for(int i = 0; i < 4; i++) is[i]...
CDSS_662421
CDSS
#include<stdio.h> int main(){ int a,b; scanf("%d %d",&a,&b); if(a*b%2==0){ printf("Even\n"); }else{ printf("Odd\n"); } return 0; }
128
memory_bytes
{'s_id': 's298929628', 'p_id': 'p03455', 'u_id': 'u550014122', 'date': '1555368454', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '151'}
[ { "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*b%2==0){\n printf(\"Even\\n\");\n }else{\n print...
CDSS_723958
CDSS
#include<stdio.h> int main(){ char s[20]; int i; scanf("%s",s); for(i=0;s[i]!='\0';i++){ if(s[i]==','){ s[i] = ' '; } } printf("%s",s); return 0; }
128
memory_bytes
{'s_id': 's804586551', 'p_id': 'p03834', 'u_id': 'u710135612', 'date': '1549395379', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '206'}
[ { "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 char s[20];\n int i;\n\n scanf(\"%s\",s);\n\n for(i=0;s[i]!='\\0';i++){\n if(s[i...
CDSS_702694
CDSS
main(a,b){scanf("%d%d",&a,&b);printf(a+b>9?"error":"%d",a+b);}
128
memory_bytes
{'s_id': 's362935862', 'p_id': 'p03697', 'u_id': 'u244203620', 'date': '1537101890', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '62'}
[ { "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:\nmain(a,b){scanf(\"%d%d\",&a,&b);printf(a+b>9?\"error\":\"%d\",a+b);}\nPredict its memory footprint.", "role": "user" }, { ...
CDSS_83822
CDSS
#include <stdio.h> #define S (17 * 60 + 30) #define E (19 * 60 + 30) int p[7][7] = { {0,6,10,12,14,27,33}, {6,0,7,9,12,23,30}, {13,7,0,5,8,20,27}, {18,12,5,0,5,17,26}, {23,17,10,5,0,12,23}, {43,37,30,25,20,0,10}, {58,52,45,40,35,15,0} }; int main(){ int n1, h, m, n2, i, j, k, s, e; while(scanf("%d",...
600
memory_bytes
{'s_id': 's683750807', 'p_id': 'p00163', 'u_id': 'u709185111', 'date': '1394413881', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '683'}
[ { "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 S (17 * 60 + 30)\n#define E (19 * 60 + 30)\n\nint p[7][7] = { {0,6,10,12,14,27,33}, \n\t\t{6,0,7,9,12,23,3...
CDSS_46018
CDSS
#include <stdio.h> struct _line{ int p1, p2; }; typedef struct _line Line; int main(void) { int i, j, w, n; int currPos, ans[30]; Line line[30]; scanf("%d", &w); scanf("%d", &n); for(i=0; i<n; i++) scanf("%d,%d", &line[i].p1, &line[i].p2); for(i=0; i<w; i++) { currPos=i+1; for(j=0; j<n; j++) { if...
596
memory_bytes
{'s_id': 's151703122', 'p_id': 'p00011', 'u_id': 'u971942633', 'date': '1356322313', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '516'}
[ { "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\nstruct _line{ int p1, p2; };\ntypedef struct _line Line;\n\nint main(void)\n{\n\tint i, j, w, n;\n\tint currPos,...
CDSS_172281
CDSS
#include<stdio.h> void swap(int *x, int *y) { int tmp; tmp = *x; *x = *y; *y = tmp; } int selectionSort(int *A, int N) // N個の要素を含む0-オリジンの配列A { int minj, tmp; int count = 0; for(int i=0; i<N; i++){ minj = i; for(int j=i; j<N; j++){ if (A[j] < A[minj]) minj = j; } if ...
2,096
memory_bytes
{'s_id': 's987733104', 'p_id': 'p02260', 'u_id': 'u612759429', 'date': '1569588440', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2096', 'code_size': '741'}
[ { "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 swap(int *x, int *y)\n{\n int tmp;\n\n tmp = *x;\n *x = *y;\n *y = tmp;\n \n}\n\n\nint selectionSort(i...
CDSS_683884
CDSS
#include<stdio.h> int main(){ int n,a; scanf("%d%d",&n,&a); printf("%d\n",n*n-a); }
128
memory_bytes
{'s_id': 's275890009', 'p_id': 'p03597', 'u_id': 'u895954008', 'date': '1554498299', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '95'}
[ { "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,a;\n scanf(\"%d%d\",&n,&a);\n printf(\"%d\\n\",n*n-a);\n}\nPredict its memory footprin...
CDSS_682764
CDSS
#include <stdio.h> #define int long long int MOD(int a, int M){ a %= M; return a >= 0 ? a : a + M; } int power(int a, int N, int M){ if(N == 0){ return 1; } else if(N % 2 == 0){ return power(MOD(a * a, M), N / 2, M); } else{ return MOD(a * power(a, N - 1, M), M); } } int gcd(int a, int b){ if(b == 0){...
128
memory_bytes
{'s_id': 's410995565', 'p_id': 'p03586', 'u_id': 'u208608367', 'date': '1542255552', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '22', 'memory': '128', 'code_size': '2701'}
[ { "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 int long long\n\nint MOD(int a, int M){\n\ta %= M;\n\treturn a >= 0 ? a : a + M;\n}\n\nint power(int a, in...
CDSS_616747
CDSS
#include <stdio.h> int main(void) { int A,B,C; scanf("%d",&A); if (A%100 < (A/100)*10+A/100){ printf("%d",(A/100)*100+(A/100)*10+A/100); } else if (A%100 == (A/100)*10+A/100) { printf("%d",A); } else { printf("%d",(A/100+1)*100+(A/100+1)*10+A/100+1); } ...
128
memory_bytes
{'s_id': 's484385306', 'p_id': 'p03243', 'u_id': 'u251123951', 'date': '1550796715', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '322'}
[ { "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 A,B,C;\n scanf(\"%d\",&A);\n if (A%100 < (A/100)*10+A/100){\n printf(\"%...
CDSS_506137
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #include <stdbool.h> #define LL long long #define INF 1<<31-1 #define LNF 9223372036854775807 #define PI 3.14159265358979 #define MIN(x,y) ((x)<(y)?(x):(y)) #define MAX(x,y) ((x)<(y)?(y):(x)) #define FOR(i,a,n) for(i=a;i<n;i++) #define MOD 100...
128
memory_bytes
{'s_id': 's008219964', 'p_id': 'p02823', 'u_id': 'u596117821', 'date': '1577589806', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1594'}
[ { "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 <math.h>\n#include <stdbool.h>\n#define LL long long\n#define I...
CDSS_549442
CDSS
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #include<stdbool.h> #include<assert.h> typedef long long ll; typedef long double ld; #define rep(i,l,r)for(ll i=(l);i<(r);i++) #define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k)) #define rrep(i,l,r)for(ll i=(l);i>=(r);i--) #define INF (1LL<<60) #defin...
1,660
memory_bytes
{'s_id': 's408772923', 'p_id': 'p02975', 'u_id': 'u004279520', 'date': '1588876360', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '1660', 'code_size': '4608'}
[ { "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<math.h>\n#include<string.h>\n#include<stdbool.h>\n#include<assert.h>\ntypedef long lon...
CDSS_737793
CDSS
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <math.h> #define Max(a, b) ((a) > (b) ? (a) : (b)) #define Min(a, b) ((a) > (b) ? (b) : (a)) #define abs(x) ((x) > 0 ? (x) : -(x)) #define rep(i, n) for(int i = 0; i < (n); i++) #define INF 1000000000000 //10^12 #define MOD 1000000...
128
memory_bytes
{'s_id': 's281481678', 'p_id': 'p03998', 'u_id': 'u801102476', 'date': '1564532221', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '628'}
[ { "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 Max(a, b) ((a) > (b) ? ...
CDSS_113284
CDSS
/* AizuOnline A1084 Title */ #include <stdio.h> // Select Below //#include <stdlib.h> //#include <string.h> //#include <float.h> //#include <math.h> //#include <limits.h> //Global data section int n,k,c[100]; int max_teacher,max_student,max_product; // void get_max_product() { int i,j,p,m_p; //for(i=0;i<n;i++) /...
600
memory_bytes
{'s_id': 's467374618', 'p_id': 'p00669', 'u_id': 'u708993917', 'date': '1361148704', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '120', 'memory': '600', 'code_size': '1210'}
[ { "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/*\nAizuOnline A1084\nTitle\n*/\n#include <stdio.h>\n// Select Below\n//#include <stdlib.h>\n//#include <string.h>\n//#include <float....
CDSS_709411
CDSS
s;i;main(a,b,c){for(scanf("%d%d%d",&a,&b,&c);++i<=b;a*i%b-c||s++);puts(s?"YES":"NO");}
1,628
memory_bytes
{'s_id': 's766338240', 'p_id': 'p03730', 'u_id': 'u944651767', 'date': '1600300728', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1628', 'code_size': '87'}
[ { "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:\ns;i;main(a,b,c){for(scanf(\"%d%d%d\",&a,&b,&c);++i<=b;a*i%b-c||s++);puts(s?\"YES\":\"NO\");}\n\nPredict its memory footprint.", "r...
CDSS_95235
CDSS
// AOJ 0352: Forecast of Forces // 2017.10.26 #include <stdio.h> #define ABS(a) ((a)>=0?(a):-(a)) #define MAX(a,b) ((a)>=(b)?(a):(b)) int w, h; long long map[1002][1002]; long long dp[1002][1002]; long long score(int r, int c) { if ((r+c) & 1) return map[r+1][c] - (map[r+1][w] - map[r+1][c]); return (map[r+1][w] ...
17,516
memory_bytes
{'s_id': 's442150064', 'p_id': 'p00347', 'u_id': 'u847467233', 'date': '1509011798', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '17516', 'code_size': '759'}
[ { "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 0352: Forecast of Forces\n// 2017.10.26\n\n#include <stdio.h>\n\n#define ABS(a) ((a)>=0?(a):-(a))\n#define MAX(a,b) ((a)>=(b)?(...
CDSS_208899
CDSS
#include<stdio.h> #include<stdlib.h> void countingSort(int[],int[],int,int); void printArray(int[],int); int main(void) { int i;//counter int n;//length of array int max=0;//maximum value of array int *arr; int *sortedArr; scanf("%d",&n); arr=(int*)malloc(sizeof(int)*n); sortedArr=(int*)malloc(sizeof(in...
25,228
memory_bytes
{'s_id': 's756190726', 'p_id': 'p02275', 'u_id': 'u090372546', 'date': '1530247299', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '240', 'memory': '25228', 'code_size': '1043'}
[ { "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>\nvoid countingSort(int[],int[],int,int);\nvoid printArray(int[],int);\nint main(void)\n{\n int ...
CDSS_608783
CDSS
#include<stdio.h> int main() { long long int n, x; scanf("%lld%lld", &n, &x); long long int i; long long int sum[55]; sum[0] = 1; for (i = 1; i <= n; i++) sum[i] = 2 * sum[i - 1] + 3; long long int p[55]; p[0] = 1; for (i = 1; i <= n; i++) p[i] = 2 * p[i - 1] + 1; long long int ans = 0; i = n; while (x ...
128
memory_bytes
{'s_id': 's284752545', 'p_id': 'p03209', 'u_id': 'u600300412', 'date': '1558481652', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '579'}
[ { "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\tlong long int n, x;\n\tscanf(\"%lld%lld\", &n, &x);\n\tlong long int i;\n\tlong long int sum[55];\...
CDSS_594476
CDSS
#include<stdio.h> int main(){ int a,b; scanf("%d%d",&a,&b); if(b%a==0){ printf("%d",a+b); } else{ printf("%d",b-a); } return 0; }
128
memory_bytes
{'s_id': 's362754642', 'p_id': 'p03125', 'u_id': 'u089230684', 'date': '1573525701', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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(){\n\tint a,b;\n\tscanf(\"%d%d\",&a,&b);\n\tif(b%a==0){\n\t\tprintf(\"%d\",a+b);\n\t}\n\telse{\n\t\tprintf...
CDSS_365673
CDSS
#include<stdio.h> #include<ctype.h> char c; char c2; int d[26]; char ccc[26]; int i; int j; main(){ while ( scanf("%c", &c2) != EOF ){ if(isupper(c2)){ c =tolower(c2); }else{ c = c2; } for(j=0; j<26;j++){ if(j== c-'a'){ d[j]++; }else{ ; } } } for(j=0...
548
memory_bytes
{'s_id': 's960367461', 'p_id': 'p02417', 'u_id': 'u028210388', 'date': '1469067595', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', '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>\n#include<ctype.h>\n\nchar c;\nchar c2;\nint d[26];\nchar ccc[26];\nint i;\nint j;\n\nmain(){\n\t\twhile ( scanf(\"%...
CDSS_606346
CDSS
#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 repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k)) #define INF ((1LL<<62)-(1LL<<31)) #define max(p,q)((p)>(q)?(p):(q)) #define min(p,q)((p)<(q)?(p):(q)) #define bit(n,m)(((n)>>(m))&1) int upll(const vo...
128
memory_bytes
{'s_id': 's277574938', 'p_id': 'p03197', 'u_id': 'u382163500', 'date': '1545530802', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '128', 'code_size': '880'}
[ { "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#define ll long long\n#define rep(i,l,r)for(ll i=(l);i<(r);i++)\n#define...
CDSS_495980
CDSS
#include <stdio.h> int main(void) { long long H, x, i; scanf("%lld", &H); i=0; while (H!=0) { H/=2; i++; } x=1; while (i!=0) { x*=2; i--; } x--; printf("%lld", x); return 0; }
128
memory_bytes
{'s_id': 's302568816', 'p_id': 'p02786', 'u_id': 'u279160680', 'date': '1580069750', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '252'}
[ { "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 long long H, x, i;\n scanf(\"%lld\", &H);\n i=0;\n while (H!=0) {\n H/=2;\...
CDSS_528833
CDSS
#include <stdio.h> #include <stdlib.h> int main(void) { int n, k, q; scanf("%d %d %d", &n, &k, &q); int *points = malloc(sizeof(int) * n); for (int i = 0; i < q; i++) { int j; scanf("%d", &j); points[j - 1] += 1; } for (int i = 0; i < n; i++) { if (k + points[i] > q) printf("Yes\n"); el...
896
memory_bytes
{'s_id': 's879004487', 'p_id': 'p02911', 'u_id': 'u579668395', 'date': '1573312320', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '896', 'code_size': '344'}
[ { "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(void)\n{\n int n, k, q;\n scanf(\"%d %d %d\", &n, &k, &q);\n int *points = mall...
CDSS_233647
CDSS
#include <stdio.h> #include <math.h> int main(void){ double x1,x2,y1,y2; double dis = 0; scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2); dis = ((x1 - x2) * (x1 - x2)) + ((y1 - y2) * (y1 - y2)); dis = sqrt(dis); printf("%f\n",dis); return 0; }
652
memory_bytes
{'s_id': 's797306707', 'p_id': 'p02379', 'u_id': 'u548668974', 'date': '1429238847', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '652', 'code_size': '259'}
[ { "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,y1,y2;\n double dis = 0;\n \n scanf(\"%lf %lf %lf %l...
CDSS_126743
CDSS
// AOJ 2524: Mysterious Operator // 2017.10.5 bal4u@uu #include <stdio.h> int main() { int n, a, b, nn, m, m1, m2, m3, ans; scanf("%d", &n); for (ans = 0, m3 = 1, m = 10; ; m3 = m, m *= 10) { nn = n; m1 = nn / m, m2 = nn % m; a = m2 + m1, b = m2 - m1; if (m2 / m3 > 0 && !(a & 1) && b >= 0 && !(b & 1)) ans...
1,848
memory_bytes
{'s_id': 's070047454', 'p_id': 'p01636', 'u_id': 'u847467233', 'date': '1507152203', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1848', 'code_size': '383'}
[ { "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 2524: Mysterious Operator\n// 2017.10.5 bal4u@uu\n\n#include <stdio.h>\n\nint main()\n{\n\tint n, a, b, nn, m, m1, m2, m3, ans;...
CDSS_600283
CDSS
#include <stdio.h> #define MAX 1000000 int main() { int s; scanf("%d", &s); int tmp[MAX]; int i, j, flag = 0; for (i = 0; i < MAX; i++) tmp[i] = 0; for (i = 0; i < MAX; i++) { if (i == 0) { tmp[i] = s; } else { if (tmp[i-1] % 2 == 0) { tmp[i] = tmp[i-1] / 2; } else { tmp[i] = 3 * tmp[i-...
4,096
memory_bytes
{'s_id': 's387542413', 'p_id': 'p03146', 'u_id': 'u390581401', 'date': '1574463421', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '80', 'memory': '4096', 'code_size': '538'}
[ { "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 1000000\n\nint main()\n{\n\tint s;\n\tscanf(\"%d\", &s);\n\n\tint tmp[MAX];\n\tint i, j, flag = 0;\n...
CDSS_445824
CDSS
#include <stdio.h> #include <stdlib.h> int main(){ long N, i, Ai; long *B; scanf("%ld", &N); B = malloc(N * sizeof(long)); for(i=0; i<N-1; i++){ scanf("%ld", &Ai); B[Ai-1]++; } for(i=0; i<N; i++){ printf("%ld\n",B[i]); } return 0; }
3,300
memory_bytes
{'s_id': 's229606513', 'p_id': 'p02707', 'u_id': 'u643924927', 'date': '1587346804', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '3300', 'code_size': '254'}
[ { "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\tlong N, i, Ai;\n\tlong *B;\n\n\tscanf(\"%ld\", &N);\n\tB = malloc(N * sizeof...
CDSS_178263
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(){ int a,b; top=0; char s[100]; while(scanf("%s",s)!=EOF){ if(s[0]=='+'){ a=pop(); b=pop(); push(a+b); }else if(s[0]=='-'){ b=pop(); a=...
1,840
memory_bytes
{'s_id': 's096037432', 'p_id': 'p02263', 'u_id': 'u723915999', 'date': '1505470152', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1840', 'code_size': '471'}
[ { "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\n S[++top]=x;\n\n}\n\nint pop(){\...
CDSS_734679
CDSS
#include<stdio.h> #include <stdlib.h> int main () { int a, b, c; scanf("%d %d %d", &a, &b, &c); //printf("%d, %d, %d\n", a,b,c); if(a == b){ if(b == c){ puts("1"); }else{ puts("2"); } }else if(b == c){ if(a == b){ puts("1"); ...
128
memory_bytes
{'s_id': 's679400155', 'p_id': 'p03962', 'u_id': 'u933176444', 'date': '1476580275', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '530'}
[ { "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 int a, b, c;\n\n scanf(\"%d %d %d\", &a, &b, &c);\n //printf(\"%d, ...
CDSS_105907
CDSS
#include<stdio.h> int main(void){ int mun[5],a,i,j,set; for(i=0;i<5;i++){ scanf("%d",&mun[i]); } for(i=0;i<3;i++){ for(j=i+1;j<3;j++){ if(mun[i]>mun[j]){ a=mun[i]; mun[i]=mun[j]; mun[j]=a; } } } if(mu...
592
memory_bytes
{'s_id': 's330440528', 'p_id': 'p00488', 'u_id': 'u986060118', 'date': '1441180913', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '455'}
[ { "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 mun[5],a,i,j,set;\n for(i=0;i<5;i++){\n scanf(\"%d\",&mun[i]);\n }\n for(i...
CDSS_221621
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> struct Node{ int key; struct Node* per; struct Node* l; struct Node* r; }; typedef struct Node node; node* insert(node* px,int k); void printI(node* x); void printP(node* x); int main(void){ int i; int n,k; node* x=NULL; char com[1...
24,040
memory_bytes
{'s_id': 's606901205', 'p_id': 'p02283', 'u_id': 'u003762655', 'date': '1482324800', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '420', 'memory': '24040', 'code_size': '1368'}
[ { "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>\nstruct Node{\n int key;\n struct Node* per;\n struct Node* l;\n ...
CDSS_569067
CDSS
#include <stdio.h> void swap_int(int* x, int* y) { int temp; temp = *x; *x = *y; *y = temp; } void swap_char(char* x, char* y) { char temp; temp = *x; *x = *y; *y = temp; } void sort(int* array, int n, int mode) { int i, j; if (mode) { // 1 is ascending order for (i = 0...
128
memory_bytes
{'s_id': 's389439945', 'p_id': 'p03036', 'u_id': 'u679951803', 'date': '1558832715', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1240'}
[ { "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>\nvoid swap_int(int* x, int* y) {\n int temp;\n temp = *x;\n *x = *y;\n *y = temp;\n}\nvoid swap_char(ch...
CDSS_43733
CDSS
#include<stdio.h> main(){ int n,i,sum; while(scanf("%d",&n)!=EOF){ int l=2,a[1000001]={0}; sum=0; while(n>=l*l){ if(a[l]==0){ for(i=l+l;i<=n;i+=l){ a[i]=1; } } l++; } for(i=2;i<=n;i++){ if(a[i]==0){ sum++; } } printf("%d\n",sum); } return 0; }
4,316
memory_bytes
{'s_id': 's223989472', 'p_id': 'p00009', 'u_id': 'u147939316', 'date': '1307697451', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '90', 'memory': '4316', 'code_size': '315'}
[ { "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,i,sum;\n while(scanf(\"%d\",&n)!=EOF){\n int l=2,a[1000001]={0};\n sum=0;\n while(n>=l*l...
CDSS_342461
CDSS
#include<stdio.h> int main(void) { int a[10000]; int i,n; scanf("%d",&n); for(i = 0;i < n;i++){ scanf("%d",&a[i]); } for(i = n-1;i >= 0;i--){ printf("%d",a[i]); if(i != 0){ printf(" "); } } printf("\n"); return 0; }
608
memory_bytes
{'s_id': 's381365625', 'p_id': 'p02407', 'u_id': 'u197750783', 'date': '1495177794', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '236'}
[ { "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[10000];\n\tint i,n;\n\tscanf(\"%d\",&n);\n\tfor(i = 0;i < n;i++){\n\t\tscanf(\"%d\",&a[i...
CDSS_653501
CDSS
#include <stdio.h> int main() { int a, b, c; scanf("%d%d%d", &a, &b, &c); if((a + b) >= c) printf("Yes\n"); else { printf("No\n"); } return 0; }
128
memory_bytes
{'s_id': 's595430391', 'p_id': 'p03407', 'u_id': 'u839938263', 'date': '1524231246', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '237'}
[ { "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 a, b, c;\n\n scanf(\"%d%d%d\", &a, &b, &c);\n\n if((a + b) >= c)\n printf(\"Yes\\...
CDSS_252933
CDSS
#include<stdio.h> int main(void) { int n,x; scanf("%d %d",&n,&x); printf("%d %d\n",n * x,n + n + x + x); return 0; }
596
memory_bytes
{'s_id': 's590520658', 'p_id': 'p02389', 'u_id': 'u512443746', 'date': '1471842947', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '120'}
[ { "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 n,x;\n\tscanf(\"%d %d\",&n,&x);\n\tprintf(\"%d %d\\n\",n * x,n + n + x + x);\n\treturn 0;\...
CDSS_369734
CDSS
#include <stdio.h> #include <ctype.h> #include <string.h> int main(int argc, const char * argv[]) { // insert code here... char W[11], T[1001]; int i, count=0; scanf("%s", W); while (scanf("%s", T)!=EOF) { for (i=0; T[i]!='\0'; i++) { T[i]=tolower(T[i]); } if (st...
2,052
memory_bytes
{'s_id': 's982234554', 'p_id': 'p02419', 'u_id': 'u115332188', 'date': '1597761010', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '418'}
[ { "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 <ctype.h>\n#include <string.h>\n\nint main(int argc, const char * argv[]) {\n // insert code here...\n...
CDSS_220781
CDSS
#include<stdio.h> #include<stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL Node root; Node treeMinimum(Node x){ while(x->left!=NIL){ x=x->left; } return x; } Node treeMaximum(Node x){ while(x->right!=N...
25,128
memory_bytes
{'s_id': 's264111881', 'p_id': 'p02283', 'u_id': 'u958677701', 'date': '1531200664', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '320', 'memory': '25128', 'code_size': '2288'}
[ { "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\nstruct node{\n struct node *right;\n struct node *left;\n struct node *parent;\n int key;...
CDSS_475130
CDSS
#include <stdio.h> int main() { long squares; long H, W, r; r = scanf("%ld %ld\n", &H, &W); if (r == -1) return (0); if (H == 1 || W == 1) squares = 1; else if (H * W % 2) squares = (H * W) / 2 + 1; else squares = (H * W) / 2; printf("%ld\n", squares); return (0); }
128
memory_bytes
{'s_id': 's194724448', 'p_id': 'p02742', 'u_id': 'u662185644', 'date': '1584298666', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '287'}
[ { "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\t\tmain()\n{\n\tlong\tsquares;\n\tlong\tH, W, r;\n\n\tr = scanf(\"%ld %ld\\n\", &H, &W);\n\tif (r == -1)\n\t...
CDSS_210051
CDSS
#include <stdio.h> int A[5000000],B[5000000]; int n; void c_sort(int k){ int C[5000000]; int i,j; for(i = 0;i <= k;i++)C[i] = 0; for(j = 1;j <= n;j++)C[A[j]]++; for(i = 1;i <= k;i++)C[i] += C[i-1]; for(j = n;j >= 1;j--){ B[C[A[j]]] = A[j]; C[A[j]]--; } } int main(){ int i,max = 0; sca...
17,432
memory_bytes
{'s_id': 's799536871', 'p_id': 'p02275', 'u_id': 'u140576179', 'date': '1577082800', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '230', 'memory': '17432', 'code_size': '515'}
[ { "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 A[5000000],B[5000000];\nint n;\n\nvoid c_sort(int k){\n int C[5000000];\n int i,j;\n \n for(i = 0;i <= k...
CDSS_83548
CDSS
#include <stdio.h> int main(void){ int x, w, i, j, total = 0, score = 0, num; while (1){ scanf("%d", &num); if (num == 0) break; for (i = 0; i < num; i++){ for (j = 0; j < 3; j++){ scanf("%d", &x); if (x == 0) break; total += x; } scanf("%d", &w); if (total <= 60 && w <= 2){ score +...
600
memory_bytes
{'s_id': 's669657395', 'p_id': 'p00160', 'u_id': 'u135535178', 'date': '1466168632', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '600', 'code_size': '690'}
[ { "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\tint x, w, i, j, total = 0, score = 0, num;\n\twhile (1){\n\t\tscanf(\"%d\", &num);\n\t\tif (n...
CDSS_276647
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': 's083681987', 'p_id': 'p02392', 'u_id': 'u598577462', 'date': '1464187929', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '156'}
[ { "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,c;\n\tscanf(\"%d %d %d\",&a,&b,&c);\n\t\n\tif(a<b && b<c){\n\t\tprintf(\"Yes\\n\");\n\t}...
CDSS_426352
CDSS
#include <stdio.h> int main(void){ int k,a,b; int i; int flag = 0; scanf("%d %d %d",&k, &a, &b); for(i = a; i <= b; i++){ if(i % k == 0)flag = 1; } if(flag == 1){ printf("OK\n"); }else{ printf("NG\n"); } return 0; }
1,664
memory_bytes
{'s_id': 's486700457', 'p_id': 'p02693', 'u_id': 'u633881673', 'date': '1588472296', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1664', 'code_size': '260'}
[ { "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 k,a,b;\n int i;\n int flag = 0;\n \n scanf(\"%d %d %d\",&k, &a, &b);\n \n for(i = a...
CDSS_295298
CDSS
#include <stdio.h> int main(){ int i,x; for(i=1;i>0;i++){ scanf("%d\n",&x); if (x!=0) { printf("Case %d: %d\n",i,x); } else break; } return(0); }
604
memory_bytes
{'s_id': 's775416118', 'p_id': 'p02396', 'u_id': 'u020581035', 'date': '1462017169', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', '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>\n\n\nint main(){\n int i,x;\n for(i=1;i>0;i++){\n scanf(\"%d\\n\",&x);\n if (x!=0) {\n ...
CDSS_180429
CDSS
#include <stdio.h> #include <stdlib.h> void push(int); int pop(void); int stack[1000]; int stack_size = 0; int main(){ int a, b; char s[100]; while(scanf("%s",&s[0]) != EOF){ if(s[0] == '+'){ b = pop(); a = pop(); push(a + b); }else if(s[0] == '-'){ b = pop(); a = pop()...
2,052
memory_bytes
{'s_id': 's536618590', 'p_id': 'p02263', 'u_id': 'u379941870', 'date': '1544864847', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '614'}
[ { "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\nvoid push(int);\nint pop(void);\n\nint stack[1000];\nint stack_size = 0;\n\nint main(){\n ...
CDSS_615641
CDSS
#include <stdio.h> int absl(int a){ if(a>0){ return a; } return -a; } int main(){ int N,i; scanf("%d",&N); int x[N];int y[N];int h[N]; for(i=0;i<N;i++){ scanf("%d%d%d",&x[i],&y[i],&h[i]); } int cx,cy,H; int j=0; int flag; for(cx=0;cx<=100;cx++){ for(cy=0;cy<=101;cy++){ f...
128
memory_bytes
{'s_id': 's966766372', 'p_id': 'p03240', 'u_id': 'u950580323', 'date': '1538881461', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '952'}
[ { "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 absl(int a){\n if(a>0){\n return a;\n }\n return -a;\n}\n\nint main(){\n int N,i;\n scanf(\"%d\",&N)...
CDSS_199888
CDSS
#include<stdio.h> #define NUM 2000 int n,A[NUM]; int solve(int, int); int main(){ int q,m[NUM],i; scanf("%d",&n); for(i = 0; i < n; i++) scanf("%d",&A[i]); scanf("%d",&q); for(i = 0; i < q; i++){ scanf("%d",&m[i]); if(solve(0,m[i])) printf("yes\n"); else printf("no\n"); }...
588
memory_bytes
{'s_id': 's490995127', 'p_id': 'p02271', 'u_id': 'u867876418', 'date': '1496192067', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '580', 'memory': '588', 'code_size': '491'}
[ { "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 NUM 2000\n\nint n,A[NUM];\n\nint solve(int, int);\n\nint main(){\n int q,m[NUM],i;\n\n scanf(\"%d\",&n);\...
CDSS_204556
CDSS
#include<stdio.h> #define INF 1000000001 int count; void merge(int A[], int left, int mid, int right){ int i,j,k; int n1 = mid - left; int n2 = right - mid; int L[n1 + 1]; int R[n2 + 1]; for(i=0; i<n1; i++){ L[i] = A[left + i]; } for(i=0; i<n2; i++){ R[i] = A[mid + i]; } L[n1] = INF; R[n...
5,688
memory_bytes
{'s_id': 's932493870', 'p_id': 'p02272', 'u_id': 'u320661612', 'date': '1545124752', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '5688', 'code_size': '971'}
[ { "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 INF 1000000001\n\nint count;\n\nvoid merge(int A[], int left, int mid, int right){\n int i,j,k;\n int n1 ...
CDSS_137143
CDSS
#include <stdio.h> #define N 100 #define WHITE 0 #define GRAY 1 #define BLACK 2 int n,M[N][N]; int color[N],d[N],f[N],tt=0; void visit(int u){ int v; color[u]=GRAY; d[u]=++tt; for(v=0;v<n;v++){ if(M[u][v]==0) continue; if(color[v]==WHITE) visit(v); } color[u]=BLACK; f[u]=++tt; } void dfs(void...
2,144
memory_bytes
{'s_id': 's613966550', 'p_id': 'p02238', 'u_id': 'u251133066', 'date': '1579767361', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '740'}
[ { "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 WHITE 0\n#define GRAY 1\n#define BLACK 2\n\nint n,M[N][N];\nint color[N],d[N],f[N],tt=0;\n\...
CDSS_340182
CDSS
#include <stdio.h> int main(){ int i,j,n,x; scanf("%d",&n); for(i=1;i<=n;i++){ x=i; if(i%3==0)printf(" %d",i); else{ for(j=0;j<4;j++){ if(x%10==3){ printf(" %d",i); break; } x/=10; } } } printf("\n"); return 0; }
2,048
memory_bytes
{'s_id': 's248657683', 'p_id': 'p02406', 'u_id': 'u949483624', 'date': '1525962479', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '277'}
[ { "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 i,j,n,x;\n scanf(\"%d\",&n);\n for(i=1;i<=n;i++){\n x=i;\n if(i%3==0)printf(\" %d\",i);...
CDSS_336992
CDSS
#include <stdio.h> int main(void) { int H, W; while (1) { scanf("%d %d", &H, &W); if (H == 0 && W == 0) break; for (int i = 0; i < H; i++) { for (int j = 0; j < W; j++) { if (i % 2 == 0) { if(j % 2 == 0) printf("#"); ...
2,072
memory_bytes
{'s_id': 's034900435', 'p_id': 'p02405', 'u_id': 'u922981423', 'date': '1584414592', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2072', 'code_size': '568'}
[ { "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 H, W;\n\n while (1) {\n scanf(\"%d %d\", &H, &W);\n\n if (H == 0 && W...
CDSS_183577
CDSS
#include <stdio.h> #include <string.h> #define LEN 100005 typedef struct pp { char name[100]; int t; } P; P Q[LEN]; int head, tail, n; void enqueue(P x) { Q[tail] = x; tail = (tail + 1) % LEN; } P dequeue() { P x = Q[head]; head = (head + 1) % LEN; return x; } int min(int a, int b) { ...
11,880
memory_bytes
{'s_id': 's486361970', 'p_id': 'p02264', 'u_id': 'u849408428', 'date': '1591315882', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '11880', '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#include <string.h>\n#define LEN 100005\n\ntypedef struct pp\n{\n char name[100];\n int t;\n} P;\n\nP Q[LEN]...
CDSS_74648
CDSS
#include <stdio.h> int main(int argc, char const *argv[]) { int i, j; int sum[2001] = {0}, n, count, c; for (i = 0; i <= 1000; i++) for (j = 0; j <= 1000; j++) sum[i+j]++; while (EOF != scanf("%d", &n)) { for (count=0, c = 0; c <= 2000; c++) { if (n-c >= 0 && n-c <= 2000) count += s...
604
memory_bytes
{'s_id': 's858635352', 'p_id': 'p00096', 'u_id': 'u881491942', 'date': '1390923930', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '388'}
[ { "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(int argc, char const *argv[])\n{\n int i, j;\n int sum[2001] = {0}, n, count, c;\n for (i = 0; i <= ...
CDSS_490066
CDSS
#include<stdio.h> #include<string.h> int main(int argc, char const *argv[]) { struct N{ char st[10]; int ab; }; struct N n[2]; char u[10]; int i; scanf("%s %s\n%d %d\n%s",n[0].st,n[1].st,&n[0].ab,&n[1].ab,u); for(i=0;i<2;i++){ if(strcmp(n[i].st,u)==0)n[i].ab=n[i].ab-1; } printf("%d %d\n",n[0].ab,n[1].ab); r...
128
memory_bytes
{'s_id': 's380506321', 'p_id': 'p02777', 'u_id': 'u511672502', 'date': '1581368355', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '330'}
[ { "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(int argc, char const *argv[])\n{\nstruct N{\t\n\tchar st[10];\n\tint ab;\n};\n\nstru...
CDSS_275746
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': 's199131745', 'p_id': 'p02392', 'u_id': 'u616915037', 'date': '1444699053', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '151'}
[ { "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\tint a, b, c;\n\tscanf(\"%d %d %d\" ,&a ,&b ,&c);\n\tif (a < b && b < c) printf(\"Yes\\n\");\n\te...
CDSS_359349
CDSS
#include <stdio.h> int main() { long long i,j,k,n,m,l,a,b,c; long long A[101][101] = {0}; long long B[101][101] = {0}; long long C[101][101] = {0}; scanf("%lld %lld %lld",&n,&m,&l); for(j=0; j<n; j++) { for(i=0; i<m; i++) { scanf("%lld", &a); A[j][i] = a; } } for(j=0; j<m;...
852
memory_bytes
{'s_id': 's300262569', 'p_id': 'p02414', 'u_id': 'u952951927', 'date': '1429336602', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '852', 'code_size': '767'}
[ { "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 long long i,j,k,n,m,l,a,b,c;\n long long A[101][101] = {0};\n long long B[101][101] = {0};\n...
CDSS_226144
CDSS
#include<stdio.h> #include<stdlib.h> #define SIZE 250 int main(){ int i,m; int b[SIZE]; scanf("%d",&m); for(i = 1; i <= m; i++){ scanf("%d",&b[i]); } for(i = 1; i <= m; i++){ printf("node %d: key = %d,",i ,b[i]); if(i != 1){ printf(" parent key = %d,",b[i/2]); } if(2...
608
memory_bytes
{'s_id': 's680982905', 'p_id': 'p02287', 'u_id': 'u921303861', 'date': '1435208168', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '478'}
[ { "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#define SIZE 250\n \nint main(){\n int i,m;\n int b[SIZE];\n \n scanf(\"%d\",&m);\n \n f...
CDSS_314479
CDSS
#include <stdio.h> #define PI 3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230664709384460955058223172535940812848111745028410270193852110555964462294895493038196L int main() { double r = 0.0, enshu = 0.0, menseki = 0.0; scanf("%lf", &r); enshu =...
648
memory_bytes
{'s_id': 's073109740', 'p_id': 'p02400', 'u_id': 'u358840634', 'date': '1476363519', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '406'}
[ { "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 PI 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067...
CDSS_175884
CDSS
#include<stdio.h> int main() { int n,i,j,k,v,x,cnt=0,m=0; int A[1000000]; int G[1000000]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&A[i]); } G[0]=1; for(i=1;G[i-1]<=n;i++){ m++; G[i]=G[i-1]*3+1; if(m>100)break; } for(i=0;i<m/2;i++){ x=G[i]; G[i]=G[m-i-1]; ...
5,368
memory_bytes
{'s_id': 's362590769', 'p_id': 'p02262', 'u_id': 'u923072008', 'date': '1496036088', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '360', 'memory': '5368', 'code_size': '697'}
[ { "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 n,i,j,k,v,x,cnt=0,m=0;\n int A[1000000];\n int G[1000000];\n scanf(\"%d\",&n);\n \n for...
CDSS_118220
CDSS
#include<stdio.h> int max(int m1,int m2){ return m1<m2?m2:m1; } int main(){ int t1,t2,sum,a,i,j; for(;scanf("%d %d %d",&t1,&t2,&sum),sum;){ static int A[10000]; for(j=0;j<1001;j++)A[j]=0; int m=0; for(i=1;i<sum;i++){ a=i*(100+t1)/100; A[a]=i; ...
608
memory_bytes
{'s_id': 's857968427', 'p_id': 'p00773', 'u_id': 'u147509336', 'date': '1435143545', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '516'}
[ { "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 max(int m1,int m2){\n return m1<m2?m2:m1;\n}\n\nint main(){\n int t1,t2,sum,a,i,j;\n for(;scanf(\"%d...
CDSS_258420
CDSS
// たて a cm よこ b cm の長方形の面積と周の長さを求めるプログラムを作成して下さい。 // 【入力】 // a と b が1つの空白で区切られて与えられます。 // 【出力】 // 面積と周の長さを1つの空白で区切って1行に出力して下さい。 // 【制約】 // ・1 ≤ a, b ≤ 100 // 【例】 // ・入力:3 5、出力:15 16 #include <stdio.h> int main( void) { int a, b; // 長方形の縦と横の長さ(cm) int area; // 長方形の面積 int length; // 長方形の周の長さ scanf( "%d %d", &a,...
1,872
memory_bytes
{'s_id': 's392664088', 'p_id': 'p02389', 'u_id': 'u614317997', 'date': '1542554733', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1872', 'code_size': '688'}
[ { "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// たて a cm よこ b cm の長方形の面積と周の長さを求めるプログラムを作成して下さい。\n// 【入力】\n// a と b が1つの空白で区切られて与えられます。\n// 【出力】\n// 面積と周の長さを1つの空白で区切って1行に出力して下さい。\n/...
CDSS_237158
CDSS
#include <stdio.h> #include <math.h> int main(void) { int n,i,t,x[100],y[100]; double d1=0,d2=0,d3=0,di=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&x[i]); } for(i=0;i<n;i++){ scanf("%d",&y[i]); } for(i=0;i<n;i++){ t=x[i]-y[i]; if(t<0) ...
2,056
memory_bytes
{'s_id': 's694927545', 'p_id': 'p02382', 'u_id': 'u450405533', 'date': '1532250599', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '519'}
[ { "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 int n,i,t,x[100],y[100];\n\n double d1=0,d2=0,d3=0,di=0;\n scanf...