identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_710298
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #define N 200000 #define INF 0x3f3f3f3f3f3f3f3fLL long long min(long long a, long long b) { return a < b ? a : b; } void update(long long *ft, int i, int n, long long x) { while (i < n) { ft[i] = min(ft[i], x); i |= i + 1; } } long long query(long lon...
6,412
memory_bytes
{'s_id': 's187242823', 'p_id': 'p03736', 'u_id': 'u206350900', 'date': '1598099481', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '6412', 'code_size': '1080'}
[ { "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\n#define N\t200000\n#define INF\t0x3f3f3f3f3f3f3f3fLL\n\nlong long min(...
CDSS_136582
CDSS
#include <stdio.h> int n,G[101][101]; int d[101]; int T = 0; int F[101] = {0}; int k = 0; void visit(int u) { int i,j,v; T++; d[u] = T; for(v=0;v<n;v++) { if(G[u][v] == 1 && d[v] == 0 ) { visit(v); } } T++; F[u] = T; } int main() { int i,j,k,l,u,a,t; for(i=0;i<n;i++) d[i] = 0; ...
636
memory_bytes
{'s_id': 's848452742', 'p_id': 'p02238', 'u_id': 'u149941997', 'date': '1468417477', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '754'}
[ { "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,G[101][101];\nint d[101];\nint T = 0;\nint F[101] = {0};\nint k = 0;\n\nvoid visit(int u) {\n int i,j,v;\n ...
CDSS_136005
CDSS
#include <stdio.h> #define N 100 int main () { int M[N][N], n, u, k, v, i, j; scanf ( "%d", &n ); for ( i = 0; i < n; i++ ) { for ( j = 0; j < n; j++ ) { M[i][j] = 0; } } for ( i = 0; i < n; i++ ) { scanf ( "%d %d", &u, &k ); u--; for ( j = 0; j < k; j++ ) { scanf ( "%d", &v ); v--; M[u]...
2,128
memory_bytes
{'s_id': 's995672005', 'p_id': 'p02237', 'u_id': 'u538727877', 'date': '1543928462', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2128', 'code_size': '502'}
[ { "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\nint main () {\n\tint M[N][N], n, u, k, v, i, j;\n\tscanf ( \"%d\", &n );\n\t\n\tfor ( i = 0; i < ...
CDSS_185913
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> struct node{ int key; struct node *next; struct node *prev; }; typedef struct node * NodePointer; NodePointer nil; void insert(int key); int delete(int key); int deleteFirst(); int deleteLast(); void init(); /* This fanction is initializing nil. */...
15,000
memory_bytes
{'s_id': 's812273305', 'p_id': 'p02265', 'u_id': 'u231257914', 'date': '1336652781', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '550', 'memory': '15000', 'code_size': '1632'}
[ { "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\nstruct node{\n int key;\n struct node *next;\n struct node *prev;\n...
CDSS_252157
CDSS
#include <stdio.h> int main(void) { int length, width; scanf("%d %d", &length, &width); printf("%d %d\n", length * width, (length * 2) +(width * 2)); return 0; }
596
memory_bytes
{'s_id': 's584065402', 'p_id': 'p02389', 'u_id': 'u076989009', 'date': '1462158114', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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(void)\n{\n\tint length, width;\n\t\n\tscanf(\"%d %d\", &length, &width);\n\t\n\tprintf(\"%d %d\\n\", le...
CDSS_267800
CDSS
#include<stdio.h> int main(void){ int a,b; scanf("%d%d",&a,&b); if (a < b){ printf("a < b\n",a,b); }else if(a > b){ printf("a > b\n",a,b); }else if(a == b){ printf("a == b\n",a,b); } return 0 ; }
580
memory_bytes
{'s_id': 's586728047', 'p_id': 'p02391', 'u_id': 'u049627893', 'date': '1461568945', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '202'}
[ { "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){\nint a,b;\n\nscanf(\"%d%d\",&a,&b);\n\nif (a < b){\n\tprintf(\"a < b\\n\",a,b);\n}else if(a > b){...
CDSS_124295
CDSS
// AOJ 2243: Step Step Evolution // 2017.11.11 bal4u@uu #include <stdio.h> #define LEFT 0 #define RIGHT 1 #define check(l,r) ((tr[l])<=(tr[r])) char a[100002]; int tr['9'+1]; int main() { int i, s, cnt, ans; char *p, l, r; tr['1'] = tr['4'] = tr['7'] = 1; tr['2'] = tr['8'] = 2; tr['3'] = tr['6'] =...
1,940
memory_bytes
{'s_id': 's896886605', 'p_id': 'p01360', 'u_id': 'u847467233', 'date': '1510404492', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1940', 'code_size': '909'}
[ { "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 2243: Step Step Evolution\n// 2017.11.11 bal4u@uu\n\n#include <stdio.h>\n\n#define LEFT 0\n#define RIGHT 1\n#define check(l,r)...
CDSS_344395
CDSS
#include <stdio.h> int main(void) { int n; int card[4][13]; char suit[4] = "SHCD"; scanf("%d", &n); int i,j,c; char s; for (i=0;i<4;i++) { for (j=0; j<13;j++) { card[i][j] = 0; } } for (i=0;i<2*n;i++) { scanf("%c ...
2,064
memory_bytes
{'s_id': 's378779866', 'p_id': 'p02408', 'u_id': 'u316584871', 'date': '1541147379', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '736'}
[ { "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 int main(void)\n {\n int n;\n int card[4][13];\n char suit[4] = \"SHCD\";\n scanf(\"%d\", &n);\...
CDSS_350043
CDSS
#include <stdio.h> int main() { int i, j, k; int n; int building, floor, room, people; int cnt[4][3][10]; /*people[building][floor][room]*/ /*initialize*/ for (i = 0; i < 4; i++){ for (j = 0; j < 3; j++){ for (k = 0; k < 10; k++){ cnt[i][j][k] = 0; ...
612
memory_bytes
{'s_id': 's905378438', 'p_id': 'p02409', 'u_id': 'u641568203', 'date': '1403018643', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '895'}
[ { "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 int n;\n int building, floor, room, people;\n int cnt[4][3][10];\n ...
CDSS_266078
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{ printf("a == b\n"); } return 0; }
580
memory_bytes
{'s_id': 's679391756', 'p_id': 'p02391', 'u_id': 'u112277261', 'date': '1418439854', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', '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>\nint main(){\n\tint a,b;\n\tscanf(\"%d %d\",&a,&b);\n\tif(a>b){\n\t\tprintf(\"a > b\\n\");\n\t}\n\telse if(a<b){\n\...
CDSS_172687
CDSS
#include<stdio.h> #include<stdbool.h> struct Card{ char suit; char value; }; void bubble(struct Card A[],int N){ int i,j; for(i=0;i<N;i++){ for(j=N-1;j>=i+1;j--){ if(A[j].value<A[j-1].value){ struct Card t=A[j]; A[j]=A[j-1]; A[j-1]=t; } } } } void sel...
2,112
memory_bytes
{'s_id': 's988007184', 'p_id': 'p02261', 'u_id': 'u887274653', 'date': '1531996608', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '1152'}
[ { "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 struct Card{\n char suit;\n char value;\n };\n void bubble(struct Card A[],int N){\n int...
CDSS_544383
CDSS
#include<stdio.h> #include<math.h> int main(){ int A, B; scanf("%d %d", &A, &B); if((A-B)%2==0){ if(A<B){ printf("%d", abs(A-B)/2+A); }else{ printf("%d", abs(A-B)/2+B); } }else{ printf("IMPOSSIBLE"); } return 0; }
128
memory_bytes
{'s_id': 's105638945', 'p_id': 'p02957', 'u_id': 'u235231201', 'date': '1564277585', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '297'}
[ { "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(){\n int A, B;\n\n scanf(\"%d %d\", &A, &B);\n\n if((A-B)%2==0){\n if(...
CDSS_107473
CDSS
#include<stdio.h> int main(){ int N; int x[200][3] = {}; int a[200][3] = {}; int ans[200] = {}; int i, j, k; scanf("%d", &N); for(i = 0; i < N; i++){ scanf("%d %d %d",&x[i][0],&x[i][1],&x[i][2]); } for(i = 0; i < 3; i++){ for(j = 0; j < N; j++){ for(k = 0; k < N; k++){ ...
600
memory_bytes
{'s_id': 's625088215', 'p_id': 'p00500', 'u_id': 'u146816547', 'date': '1385628554', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '593'}
[ { "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;\n int x[200][3] = {};\n\tint a[200][3] = {};\n\tint ans[200] = {};\n\tint i, j, k;\n\n ...
CDSS_102433
CDSS
#include <stdio.h> int main(){ int h[3][2],m[3][2],s[3][2],i,k,koh[3],kom[3],kos[3],da=0,de=0; for(k=0;k<3;k++){ scanf("%d %d %d %d %d %d",&h[k][0],&m[k][0],&s[k][0],&h[k][1],&m[k][1],&s[k][1]); } for(i=0;i<3;i++){ if(s[i][0]<=s[i][1]){ kos[i]=s[i][1]-s[i][0]; } else{kos[i]=s[i][1]+60-s[i][0]; m...
1,796
memory_bytes
{'s_id': 's279825120', 'p_id': 'p00455', 'u_id': 'u529373084', 'date': '1510664602', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1796', 'code_size': '541'}
[ { "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 h[3][2],m[3][2],s[3][2],i,k,koh[3],kom[3],kos[3],da=0,de=0;\n\nfor(k=0;k<3;k++){\nscanf(\"%d %d %...
CDSS_396789
CDSS
#include<stdio.h> #include<math.h> #include <limits.h> #include<stdlib.h> int main() { char *s = (char*)malloc(200000); char *t = (char*)malloc(200000); int i = 0; int count = 0; scanf("%s", s); scanf("%s", t); while (s[i] != '\0') { if (s[i] != t[i]) { count++; } i++; } printf("%d\n", count); retu...
2,076
memory_bytes
{'s_id': 's720112650', 'p_id': 'p02622', 'u_id': 'u959863738', 'date': '1593307356', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '2076', 'code_size': '327'}
[ { "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#include <limits.h>\n#include<stdlib.h>\n\n\nint main() {\n\tchar *s = (char*)malloc(200000);\n\t...
CDSS_235123
CDSS
#include <stdio.h> #define _USE_MATH_DEFINES #include <math.h> int main(){ int a, b, angle; double s, l, h; scanf("%d %d %d", &a, &b, &angle); h=b*sin(angle*M_PI/180.0); s=a*h/2; l=a+b+sqrt((a*a+b*b-2*a*b*cos(angle*M_PI/180.0))); printf("%f\n", s); printf("%f\n", l); ...
2,076
memory_bytes
{'s_id': 's233973517', 'p_id': 'p02380', 'u_id': 'u064125291', 'date': '1525742116', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2076', 'code_size': '365'}
[ { "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 _USE_MATH_DEFINES \n#include <math.h> \n int main(){ \n int a, b, angle; \n double s, l, h; \n ...
CDSS_238181
CDSS
#include <stdio.h> int i,N[7],n,a,b; int t[7][7]={ {0,0,0,0,0,0,0}, {0,0,3,5,2,4,0}, {0,4,0,1,6,0,3}, {0,2,6,0,0,1,5}, {0,5,1,0,0,6,2}, {0,3,0,6,1,0,4}, {0,0,4,2,5,3,0} }; int hantei(int p){ int i; for(i=1;i<7;i++){ ...
1,852
memory_bytes
{'s_id': 's217115403', 'p_id': 'p02384', 'u_id': 'u601537279', 'date': '1508421680', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1852', 'code_size': '566'}
[ { "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 i,N[7],n,a,b;\nint t[7][7]={\n {0,0,0,0,0,0,0},\n {0,0,3,5,2,4,0},\n {0,4,0,1...
CDSS_335728
CDSS
#include <stdio.h> int main() { int a,b; int c,d; while(1){ scanf("%d %d",&a,&b); if(a==0 && b==0) return 0; for(c=1;c<=a;c++) { if(c%2 == 1) { for(d=1;d<=b;d++) { if(d%2 == 1) printf("#"); if(d%2 == 0) printf("."); ...
572
memory_bytes
{'s_id': 's840604809', 'p_id': 'p02405', 'u_id': 'u116501200', 'date': '1463127841', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '617'}
[ { "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;\n int c,d;\n while(1){\n scanf(\"%d %d\",&a,&b);\n if(a==0 && b==0) retu...
CDSS_131495
CDSS
#include<stdio.h> #define Max 101 int x; int P[Max]; int M[Max][Max]; void Matrix_Chain_Order(){ int n,i,j,l,k,q; n=x; for(i=1;i<=n;i++){ M[i][i]=0; } for(l=2;l<=n;l++){ for(i=1;i<=n-l+1;i++){ j=i+l-1; M[i][j]=100000; for(k=i;k<=j-1;k++){ q=M[i][k]+M[k+1][j]+P[i]*P[k+1]*P[j+1...
636
memory_bytes
{'s_id': 's119718744', 'p_id': 'p02234', 'u_id': 'u908075228', 'date': '1435810738', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '585'}
[ { "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 101\nint x;\nint P[Max];\nint M[Max][Max];\nvoid Matrix_Chain_Order(){\n int n,i,j,l,k,q;\n n=x;\n...
CDSS_644673
CDSS
#include<stdio.h> int main() { long long int n, s[1001] = {},m,count=0; scanf("%lld",&n); if(n==999){printf("961");return 0;} for (int i = n; i >= 1; i--) { m = i; for (int k = 2; k <= 1000; k++) { s[k]=0; } for (int j = 2; j <= 1000; j++) { for (int k = 1; k <= 10; k++) { if (...
128
memory_bytes
{'s_id': 's695067893', 'p_id': 'p03352', 'u_id': 'u018872912', 'date': '1546226771', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '128', '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>\nint main() {\n\tlong long int n, s[1001] = {},m,count=0;\n \tscanf(\"%lld\",&n);\n if(n==999){printf(\"961\");ret...
CDSS_676771
CDSS
#include <stdio.h> int main(void){ char x,y; scanf("%c %c", &x, &y); if (x < y) { printf("<\n"); } else if (y < x) { printf(">\n"); } else { printf("=\n"); } return 0; }
128
memory_bytes
{'s_id': 's074116445', 'p_id': 'p03547', 'u_id': 'u581816556', 'date': '1587180536', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', '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(void){\n\n char x,y;\n\tscanf(\"%c %c\", &x, &y);\n\tif (x < y) {\n\t\tprintf(\"<\\n\");\n\t} else if ...
CDSS_613275
CDSS
i;main(a,b,k){for(scanf("%d%d%d",&a,&b,&k);i++<k;)i%2?b+=a/=2:(a+=b/=2);printf("%d %d",a,b);}
128
memory_bytes
{'s_id': 's735726127', 'p_id': 'p03228', 'u_id': 'u751488284', 'date': '1573498754', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '93'}
[ { "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:\ni;main(a,b,k){for(scanf(\"%d%d%d\",&a,&b,&k);i++<k;)i%2?b+=a/=2:(a+=b/=2);printf(\"%d %d\",a,b);}\nPredict its memory footprint.", ...
CDSS_210694
CDSS
#include<stdio.h> #include <stdlib.h> int main(){ int n,i,j,k,x,swap,*A; scanf("%d",&n); A = (int *) malloc ( sizeof(int) * n); for(j=0;j<n;j++) scanf("%d",&A[j]); i=-1; for(j=0;j<n-1;j++){ if(A[j] <= A[n-1]) { i++; swap=A[i]; A[i]=A[j]; ...
2,244
memory_bytes
{'s_id': 's573256871', 'p_id': 'p02276', 'u_id': 'u494048940', 'date': '1545751968', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2244', 'code_size': '557'}
[ { "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 n,i,j,k,x,swap,*A;\n\n scanf(\"%d\",&n);\n\n A = (int *) malloc (...
CDSS_657904
CDSS
#include <stdio.h> int main(){ int a,b; scanf("%d",&a); scanf("%d",&b); a = a%500; if (a>b) printf("No\n"); else printf("Yes\n"); return 0; }
128
memory_bytes
{'s_id': 's915709573', 'p_id': 'p03433', 'u_id': 'u409064224', 'date': '1572304412', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '167'}
[ { "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\",&a);\n scanf(\"%d\",&b);\n a = a%500;\n if (a>b)\n printf(\"No\\n\...
CDSS_571391
CDSS
#include <stdio.h> int main(){ int s, high, low; scanf("%d", &s); high = s / 100; low = s % 100; if(high == 0){ if(low == 0 || 12 < low) printf("NA\n"); else printf("YYMM\n"); } else if(high <= 12){ if(low == 0 || 12 < low) pr...
128
memory_bytes
{'s_id': 's099394986', 'p_id': 'p03042', 'u_id': 'u097683098', 'date': '1561043236', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '527'}
[ { "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 s, high, low;\n\n scanf(\"%d\", &s);\n\n high = s / 100;\n low = s % 100;\n\n ...
CDSS_210428
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> int partition(int a[], int p, int r){ int i = p - 1; int x = a[r]; for(int j = p; j <= r-1; j++){ if(a[j] <= x){ i++; int temp = a[i]; a[i] = a[j]; a[j] = temp; } } int t = a[i+...
2,124
memory_bytes
{'s_id': 's925077567', 'p_id': 'p02276', 'u_id': 'u713994760', 'date': '1535196155', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2124', 'code_size': '915'}
[ { "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>\nint partition(int a[], int p, int r){\n int i = p - 1;\n int x = a...
CDSS_185114
CDSS
#include <string.h> #include <stdio.h> #include <stdlib.h> struct Node { int key; struct Node *prev, *next; }; struct Node *nil; void init() { nil = (struct Node *)malloc(sizeof(struct Node)); nil->next = nil; nil->prev = nil; } void insert(int key) { struct Node *x = (struct Node *)malloc...
31,788
memory_bytes
{'s_id': 's334444414', 'p_id': 'p02265', 'u_id': 'u309410141', 'date': '1499659995', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '350', 'memory': '31788', 'code_size': '1844'}
[ { "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 <string.h>\n#include <stdio.h>\n#include <stdlib.h>\nstruct Node {\n int key;\n struct Node *prev, *next;\n};\n \nstruc...
CDSS_282467
CDSS
#include<stdio.h> int main() { int a,b,c; int x,y,z; scanf("%d %d %d",&a,&b,&c); if(a<b) { if(a<c) { x=a; if(b<c) { y=b; z=c; } else { ...
596
memory_bytes
{'s_id': 's573289393', 'p_id': 'p02393', 'u_id': 'u014452370', 'date': '1448692095', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '967'}
[ { "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 int x,y,z;\n scanf(\"%d %d %d\",&a,&b,&c);\n if(a<b)\n {\n ...
CDSS_626533
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main() { long long a, b, c, X, Y; int D, G; // char s[101]={}; // char s_temp[101]={}; char t[101]={}; // char s[10000000000000000001]={}; char s[101]={}; int len=0; int N, M; int A[20000]={}; int B[20000]={}; int C[...
128
memory_bytes
{'s_id': 's067758297', 'p_id': 'p03282', 'u_id': 'u301843562', 'date': '1534644978', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '860'}
[ { "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 \nint main()\n{\n long long a, b, c, X, Y;\n int D...
CDSS_242780
CDSS
#include<stdio.h> int main() { int x, y; scanf("%d",&x); y = x*x*x; printf("%d\n",y); return 0; }
596
memory_bytes
{'s_id': 's485856937', 'p_id': 'p02388', 'u_id': 'u202512417', 'date': '1463798857', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '108'}
[ { "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 x, y;\n\n scanf(\"%d\",&x);\n y = x*x*x;\n printf(\"%d\\n\",y);\n return 0;\n}\nPredict it...
CDSS_298226
CDSS
#include <stdio.h> int main(int argc, const char * argv[]) { int i=1, x; scanf("%d", &x); while (x != 0) { printf("Case %d: %d\n", i, x); i++; scanf("%d", &x); } return 0; }
2,040
memory_bytes
{'s_id': 's305190274', 'p_id': 'p02396', 'u_id': 'u517357119', 'date': '1526834487', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '229'}
[ { "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, const char * argv[]) {\n int i=1, x;\n \n scanf(\"%d\", &x);\n while (x != 0) {\n...
CDSS_149031
CDSS
#include<stdio.h> int main() { int A[100]; int N; int key; int i, j, k; //Read N and keys scanf("%d", &N); for(i=0; i<N; i++)scanf("%d", &A[i]); //Sort for(i=0; i<N; i++) { key=A[i]; j=i-1; //if A[j]>key, change A[j] into A[j+1] while(j>=0 && A[j]>key) { A[j+1]=A[j]...
0
memory_bytes
{'s_id': 's112753438', 'p_id': 'p02255', 'u_id': 'u883466764', 'date': '1334278244', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '488'}
[ { "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[100];\n int N;\n int key;\n int i, j, k;\n\n //Read N and keys\n scanf(\"%d\", &N);\n...
CDSS_432972
CDSS
#include<stdio.h> int main(void) { int a,b,c,d; scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); scanf("%d",&d); while(-1){ c=c-b; if(c<=0){ printf("Yes");break; } a=a-d; if(a<=0){ printf("No");break; } } return 0; }
1,728
memory_bytes
{'s_id': 's057699797', 'p_id': 'p02700', 'u_id': 'u207816634', 'date': '1596481845', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1728', '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{\n int a,b,c,d;\n scanf(\"%d\",&a);\n scanf(\"%d\",&b);\n scanf(\"%d\",&c);\n scanf(\"%d\",...
CDSS_210190
CDSS
#include<stdio.h> #define N 2000001 #define M 10001 int n,A[N],B[N],C[M]; void countingSort(void); int main(){ int i; int count=0; scanf("%d",&n); for(i=1;i<=n;i++){ scanf("%d",&A[i]); } countingSort(); for(i=1;i<=n;i++){ if( (i-1)!=0 ){ printf(" "); } printf("%d",B[i]); count++;...
17,408
memory_bytes
{'s_id': 's378267730', 'p_id': 'p02275', 'u_id': 'u360402760', 'date': '1536072355', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '230', 'memory': '17408', 'code_size': '586'}
[ { "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 2000001\n#define M 10001\nint n,A[N],B[N],C[M];\nvoid countingSort(void);\nint main(){\n int i;\n int c...
CDSS_494120
CDSS
#include <stdio.h> int main(h, n, t, s) { s=0; scanf("%d%d", &h, &n); while(n--) { scanf("%d", &t); s+=t; if(s>=h) break; } printf("%s\n", (s>=h)?"Yes":"No"); return 0; }
256
memory_bytes
{'s_id': 's380330335', 'p_id': 'p02784', 'u_id': 'u796654386', 'date': '1585916869', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '256', 'code_size': '222'}
[ { "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(h, n, t, s)\n{\n s=0;\n scanf(\"%d%d\", &h, &n);\n while(n--)\n {\n scanf(\"%d\", &t);...
CDSS_65109
CDSS
#include<stdio.h> int main(void){ int n,s[4]={0,0,0,0}; char bt[3]=""; while(scanf("%d,%s\n",&n,bt)!=EOF){ if(bt[1]=='B'){s[2]++;} else { switch(bt[0]){ case 'A':s[0]++;break; case 'B':s[1]++;break; case 'O':s[3]++;break; } } } printf("%d\n",s[0]); printf("%d\n",s[1]); printf("%d\n",s[2]); printf(...
600
memory_bytes
{'s_id': 's334242897', 'p_id': 'p00049', 'u_id': 'u993045812', 'date': '1497593932', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '346'}
[ { "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 n,s[4]={0,0,0,0};\n\tchar bt[3]=\"\";\n\twhile(scanf(\"%d,%s\\n\",&n,bt)!=EOF){\n\tif(bt[1...
CDSS_484999
CDSS
#include <stdio.h> int main(void){ int n,k,i; scanf("%d%d",&n,&k); for(i=1;k<=n;i++){ n/=k; } printf("%d\n",i); return 0; }
128
memory_bytes
{'s_id': 's249373971', 'p_id': 'p02766', 'u_id': 'u242939895', 'date': '1588383894', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '171'}
[ { "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,k,i;\n \n scanf(\"%d%d\",&n,&k);\n \n for(i=1;k<=n;i++){\n n/=k;\n ...
CDSS_447492
CDSS
#include<stdio.h> int main(){ char n[3]; scanf("%s",n); if(n[0]=='7'||n[1]=='7'||n[2]=='7'){ printf("Yes"); }else{ printf("No"); } return 0; }
1,700
memory_bytes
{'s_id': 's229143714', 'p_id': 'p02711', 'u_id': 'u168683156', 'date': '1596661233', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1700', '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\nint main(){\n char n[3];\n \n scanf(\"%s\",n);\n if(n[0]=='7'||n[1]=='7'||n[2]=='7'){\n printf(\"Yes...
CDSS_471040
CDSS
char out[100000];outsz; char c[10]; main() { int N,X,Y; scanf("%d%d%d",&N,&X,&Y); int loop=Y-X+1; for(int k=1;k<N;k++) { int ans=0; int z=X<k?X-1:k-1; if(k-z<=loop/2) { int t=2*k-loop-1>0?2*k-loop-1:0; ans+=(z-t/2)*2; ans-=!(loop&1)&&loop/2<k&&k-loop/2<X; } z=N-Y<k-1?N-Y:k-1; if(k-z<=loop/2)...
128
memory_bytes
{'s_id': 's007137762', 'p_id': 'p02726', 'u_id': 'u657913472', 'date': '1585553966', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '726'}
[ { "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:\nchar out[100000];outsz;\nchar c[10];\nmain()\n{\n\tint N,X,Y;\n\tscanf(\"%d%d%d\",&N,&X,&Y);\n\tint loop=Y-X+1;\n\tfor(int k=1;k<N;k++...
CDSS_653434
CDSS
#include<stdio.h> int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a+b>=c)puts("Yes"); else puts("No"); return 0; }
128
memory_bytes
{'s_id': 's826990735', 'p_id': 'p03407', 'u_id': 'u850894780', 'date': '1530888485', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '131'}
[ { "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;\n scanf(\"%d %d %d\",&a,&b,&c);\n if(a+b>=c)puts(\"Yes\");\n else puts(\"No\");\n ret...
CDSS_270207
CDSS
#include<stdio.h> int main(void){ int a,b; scanf("%d %d",&a ,&b); if(a<b)printf("a < b\n",a,b); if(a>b)printf("a > b\n",a,b); if(a==b)printf("a == b\n",a,b); return 0; }
580
memory_bytes
{'s_id': 's413803514', 'p_id': 'p02391', 'u_id': 'u144557094', 'date': '1491801483', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '169'}
[ { "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 a,b;\nscanf(\"%d %d\",&a ,&b);\nif(a<b)printf(\"a < b\\n\",a,b);\nif(a>b)printf(\"a > b\\n\",a...
CDSS_314142
CDSS
#include <stdio.h> #include <math.h> int main(void) { double r; scanf("%lf", &r); printf("%f %f\n", M_PI * r * r, 2 * M_PI * r); return 0; }
648
memory_bytes
{'s_id': 's780544088', 'p_id': 'p02400', 'u_id': 'u848303657', 'date': '1466329920', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '154'}
[ { "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 r;\n\n scanf(\"%lf\", &r);\n \n printf(\"%f %f\\n\", M_PI * r ...
CDSS_636883
CDSS
#include<stdio.h> #include<stdlib.h> #include<math.h> typedef long long int int64; #define MAX(a,b) ((a)>(b)?(a):(b)) #define MIN(a,b) ((a)<(b)?(a):(b)) #define ABS(a) ((a)>(0)?(a):-(a)) void run(void){ int n,k; scanf("%d%d",&n,&k); int *a=(int *)malloc(sizeof(int)*n); int i; for(i=0;i<n;i++) scanf("%d",a+...
512
memory_bytes
{'s_id': 's736944638', 'p_id': 'p03319', 'u_id': 'u425248533', 'date': '1529831526', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '512', 'code_size': '459'}
[ { "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\ntypedef long long int int64;\n\n#define MAX(a,b) ((a)>(b)?(a):(b))\n#define...
CDSS_274184
CDSS
#include <stdio.h> int main(int argc, char *argv[]) { int a, b; scanf("%d%d", &a, &b); if (a < b) puts("a < b"); else if (a > b) puts("a > b"); else puts("a == b"); return 0; }
2,128
memory_bytes
{'s_id': 's288800108', 'p_id': 'p02391', 'u_id': 'u875300163', 'date': '1569083922', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2128', 'code_size': '228'}
[ { "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 *argv[])\n{\n int a, b;\n\n scanf(\"%d%d\", &a, &b);\n if (a < b)\n puts...
CDSS_121124
CDSS
#include<stdio.h> #include<stdlib.h> int N,M,A,i,a[1001][3],r[101]; int c(const void *a,const void *b) { return ((int*)b)[0]-((int*)a)[0]; } int main() { for(;scanf("%d%d%d",&N,&M,&A),N;) { for(i=0;i<M;i++) scanf("%d%d%d",&a[i][0],&a[i][1],&a[i][2]); qsort(a,M,sizeof(int[3]),c); for(i=1;i<=N;i++)r[i]=i; f...
672
memory_bytes
{'s_id': 's293376457', 'p_id': 'p01126', 'u_id': 'u363039534', 'date': '1393466792', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '672', 'code_size': '459'}
[ { "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 N,M,A,i,a[1001][3],r[101];\nint c(const void *a,const void *b)\n{\n\treturn ((int*)b)[0]-((...
CDSS_499921
CDSS
#include <stdio.h> int main(void) { char c; scanf("%c", &c); printf("%c\n", c+1); return 0; }
128
memory_bytes
{'s_id': 's212647601', 'p_id': 'p02801', 'u_id': 'u896847891', 'date': '1583090368', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '101'}
[ { "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 c;\n scanf(\"%c\", &c);\n printf(\"%c\\n\", c+1);\n return 0;\n}\nPredict its memory ...
CDSS_377263
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.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)...
6,396
memory_bytes
{'s_id': 's379113249', 'p_id': 'p02556', 'u_id': 'u382163500', 'date': '1600365075', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '98', 'memory': '6396', 'code_size': '972'}
[ { "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#define rep(i,l,r)for(ll i=(l);...
CDSS_206298
CDSS
#include<stdio.h> long n; long A[200000]; /*void bubbleSort(){ int i, j; int tmp; for(i = 0; i < n; i++){ for(j = n-1; j > i; j--){ if(A[j] < A[j-1]){ tmp = A[j]; A[j] = A[j-1]; A[j-1] = tmp; count++; } } } }*/ #define LIMIT 200000 #define INFTY 2000000000 ...
4,964
memory_bytes
{'s_id': 's713190892', 'p_id': 'p02274', 'u_id': 'u978799212', 'date': '1572764609', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '4964', 'code_size': '1305'}
[ { "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 n;\nlong A[200000];\n\n/*void bubbleSort(){\n int i, j;\n int tmp;\n\n for(i = 0; i < n; i++){\n for(j...
CDSS_39625
CDSS
#include<stdio.h> #include<string.h> int main(void){ int weeks; int account = 100000; int surplus; int i; scanf("%d", &weeks); for(i = 0; i < weeks; i++){ account *= 1.05; if((surplus = account % 1000) != 0){ account -= surplus; account += 1000; ...
596
memory_bytes
{'s_id': 's831585790', 'p_id': 'p00007', 'u_id': 'u748994841', 'date': '1458480945', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '400'}
[ { "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 int weeks;\n int account = 100000;\n int surplus;\n int i;\n s...
CDSS_282963
CDSS
#include <stdio.h> int main(){ int a, b, c, temp; scanf("%d %d %d", &a, &b, &c); if(a > b){ temp = a; a = b; b = temp; } if(b > c){ temp = b; b = c; c = temp; } if(a > b){ temp = a; a = b; b = temp; } printf("%d %d %d\n", a, b, c); return 0; }
596
memory_bytes
{'s_id': 's346722106', 'p_id': 'p02393', 'u_id': 'u670498238', 'date': '1462165023', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '271'}
[ { "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\nint a, b, c, temp;\nscanf(\"%d %d %d\", &a, &b, &c);\nif(a > b){\n\ttemp = a;\n a = b;\n b = te...
CDSS_570838
CDSS
#include <stdio.h> int main() { int n, k; char s[50]; scanf("%d%d", &n, &k); scanf("%s", s); if (s[k - 1] == 'A') s[k - 1] = 'a'; else if (s[k - 1] == 'B') s[k - 1] = 'b'; else s[k - 1] = 'c'; printf("%s",s); return 0; }
128
memory_bytes
{'s_id': 's164471353', 'p_id': 'p03041', 'u_id': 'u670925964', 'date': '1558315479', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '280'}
[ { "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, k;\n char s[50];\n scanf(\"%d%d\", &n, &k);\n scanf(\"%s\", s);\n if (s[k - ...
CDSS_635008
CDSS
#include <stdio.h> int main() { char a[4]; scanf("%s", a); int n=0; for(int i=0;i<=3;i++) { if(a[i]=='-') { n=n-1; }else n=n+1; } printf("%d",n); return 0; }
128
memory_bytes
{'s_id': 's486789357', 'p_id': 'p03315', 'u_id': 'u016191555', 'date': '1537517094', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '251'}
[ { "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 a[4];\n scanf(\"%s\", a);\n int n=0;\n for(int i=0;i<=3;i++)\n {\n if(...
CDSS_554919
CDSS
#include <stdio.h> int main(){ int i,n,l=0,x[100]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d ",&x[i]); } for(i=1;i<n-1;i++){ if((x[i-1]<x[i]&&x[i]<x[i+1])||(x[i-1]>x[i]&&x[i]>x[i+1])) l++; } printf("%d ",l); }
128
memory_bytes
{'s_id': 's329798669', 'p_id': 'p02988', 'u_id': 'u546853743', 'date': '1562024975', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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(){\nint i,n,l=0,x[100];\nscanf(\"%d\",&n);\nfor(i=0;i<n;i++){\nscanf(\"%d \",&x[i]);\n}\nfor(i=1;i<n-1;i+...
CDSS_412092
CDSS
#include <stdio.h> typedef long long ll; int main() { ll a; int d = 1; ll ans = 0; char b[5]; scanf("%lld%s", &a, b); int nb[3]; nb[0] = b[3] - '0'; nb[1] = b[2] - '0'; nb[2] = b[0] - '0'; for (int i = 0; i < 3; i++) { ans += nb[i] * a * d; d *= 10; } printf("%lld\n", ans / 100); return 0; }
1,732
memory_bytes
{'s_id': 's659688903', 'p_id': 'p02659', 'u_id': 'u030504180', 'date': '1590975668', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1732', 'code_size': '309'}
[ { "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>\ntypedef long long ll;\nint main() {\n\tll a;\n\tint d = 1;\n\tll ans = 0;\n\tchar b[5];\n\tscanf(\"%lld%s\", &a, b...
CDSS_385932
CDSS
#include <stdio.h> int main(void) { int x; if (scanf("%d", &x) == EOF) return (-1); if (30 <= x) printf("Yes\n"); else printf("No"); return (0); }
1,724
memory_bytes
{'s_id': 's404804553', 'p_id': 'p02594', 'u_id': 'u256252286', 'date': '1596417495', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1724', '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>\n\nint\tmain(void)\n{\n\tint\tx;\n \n if (scanf(\"%d\", &x) == EOF)\n \treturn (-1);\n if (30 <= x)\n ...
CDSS_139392
CDSS
#include<stdio.h> #define N 110 #define INF 100000 #define WHITE 0 #define GRAY 1 #define BLACK 2 int main(){ int n,keep[N][N]; int i,j,num,min,sum=0,u; int d[N],p[N],color[N]; scanf("%d",&n); for(i=1;i<=n;i++){ d[i]=INF; p[i]=-1; color[i]=WHITE; } d[1]=0; for(i=1;i<=n;i++){ f...
648
memory_bytes
{'s_id': 's920616758', 'p_id': 'p02241', 'u_id': 'u940187630', 'date': '1500514584', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '861'}
[ { "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 110\n#define INF 100000\n#define WHITE 0\n#define GRAY 1\n#define BLACK 2\n\n\n\nint main(){\n int n,kee...
CDSS_308847
CDSS
#include<stdio.h> int main(void) { int a,b; scanf("%d %d",&a,&b); printf("%d %d %f\n",a/b,a%b,(double)a/(double)b); return 0; }
636
memory_bytes
{'s_id': 's641461472', 'p_id': 'p02399', 'u_id': 'u299903344', 'date': '1461224575', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '152'}
[ { "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\n{\n\n\n int a,b;\n\n\n scanf(\"%d %d\",&a,&b);\n\n\n printf(\"%d %d %f\\n\",a/b,a%b,(do...
CDSS_256701
CDSS
#include<stdio.h> int main(void){ int x, y; scanf("%d %d", &x, &y); printf("%d %d\n", x * y, x * 2 + y * 2); return 0; }
2,044
memory_bytes
{'s_id': 's586811108', 'p_id': 'p02389', 'u_id': 'u075006557', 'date': '1525941764', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '130'}
[ { "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, y;\n scanf(\"%d %d\", &x, &y);\n printf(\"%d %d\\n\", x * y, x * 2 + y * 2);\n return...
CDSS_682956
CDSS
//set many funcs #include<stdio.h> #include<string.h> #include<stdlib.h> #define inf 1072114514 #define llinf 1145141919810364364 #define mod 1000000007 int max(int a,int b){if(a>b){return a;}return b;} int min(int a,int b){if(a<b){return a;}return b;} int zt(int a,int b){return max(a,b)-min(a,b);} int round(int a,int...
128
memory_bytes
{'s_id': 's511660950', 'p_id': 'p03588', 'u_id': 'u721060623', 'date': '1506830911', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '21', 'memory': '128', 'code_size': '2777'}
[ { "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//set many funcs\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#define inf 1072114514\n#define llinf 1145141919810364364...
CDSS_101895
CDSS
n,C[124][101],*p,a,b,c;D(i){int f[101]={0},T;memset(p=C,9,404);for(p[a]=0;T=a;)for(f[T]=1,a=i=0;i++<n;a=f[i]|p[i]>p[a]?a:i)c=p[T]+C[T][i],p[i]=p[i]<c?p[i]:c;printf("%d\n",p[b]>1e8?-1:p[b]);}main(k){for(;scanf("%d%d",&n,&k)*n;)for(memset(C,9,5e4);k--;a?scanf("%d%d%d",&a,&b,&c),C[a][b]=fmin(C[a][b],c),C[b][a]=fmin(C[b][a...
468
memory_bytes
{'s_id': 's189415043', 'p_id': 'p00449', 'u_id': 'u399107199', 'date': '1298035071', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '200', 'memory': '468', 'code_size': '364'}
[ { "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:\nn,C[124][101],*p,a,b,c;D(i){int f[101]={0},T;memset(p=C,9,404);for(p[a]=0;T=a;)for(f[T]=1,a=i=0;i++<n;a=f[i]|p[i]>p[a]?a:i)c=p[T]+C[T]...
CDSS_665705
CDSS
#include<stdio.h> int main() { int N,Y; int x,y,z; int i,j; int a; scanf("%d%d",&N,&Y); for(i=0;i<=N;i++){ for(j=0;j<=N-i;j++){ a=Y-10000*i-5000*j; if(a==1000*(N-i-j)){ x=i; y=j; z=N-i-j; printf("%d ",x); printf("%d ",y); printf("%d ",z); ...
1,732
memory_bytes
{'s_id': 's045168246', 'p_id': 'p03471', 'u_id': 'u287365470', 'date': '1593395181', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '1732', '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\nint main()\n{\n int N,Y;\n int x,y,z;\n int i,j;\n int a;\n scanf(\"%d%d\",&N,&Y);\n for(i=0;i<=N;i++){\n ...
CDSS_612587
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define MOD1 1000000007 #define MOD2 998244353 #define LIMIT1 200002 #define LIMIT2 500002 typedef long long ll; typedef long double ld; #define rep(i,n) for(i=0;i<n;i++) #define max(a,b) ((a)>(b) ? (a) : (b)) #define min(a,b) ((a)<(b) ? (a) :...
5,240
memory_bytes
{'s_id': 's995845240', 'p_id': 'p03221', 'u_id': 'u091870478', 'date': '1587870532', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '62', 'memory': '5240', 'code_size': '2092'}
[ { "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 MOD1 1000000007\n#define MOD2 998244353\n#def...
CDSS_599700
CDSS
#include<stdio.h> int main() { int AB, BC, CA; scanf("%d%d%d",&AB, &BC, &CA); printf("%d",AB*BC/2); return 0; }
128
memory_bytes
{'s_id': 's072901979', 'p_id': 'p03145', 'u_id': 'u353919145', 'date': '1582368950', '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{\n int AB, BC, CA;\n scanf(\"%d%d%d\",&AB, &BC, &CA);\n printf(\"%d\",AB*BC/2);\n return 0...
CDSS_464152
CDSS
#include <stdio.h> int main(void){ int N,M; scanf("%d",&N); scanf("%d",&M); int v[N]; int count = 0; int all = 0; int r = 0; for(int i = 0;i < N;i++){ scanf("%d",&v[i]); all += v[i]; } for(int i = 0;i < N;i++){ r = 0; r = v[i]*4*M; if(r >= all){ count++; } } if(cou...
1,732
memory_bytes
{'s_id': 's457693372', 'p_id': 'p02718', 'u_id': 'u449180978', 'date': '1594664885', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', 'code_size': '395'}
[ { "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 N,M;\n scanf(\"%d\",&N);\n scanf(\"%d\",&M);\n int v[N];\n int count = 0;\n int all ...
CDSS_554800
CDSS
#include <stdio.h> int is_median(int a, int n1, int n2) { return (n1 <= a && a <= n2) || (n2 <= a && a <= n1); } int main(int argc, char** argv) { int n; scanf("%d", &n); int* p = malloc(sizeof(int)*n); int i; for (i = 0; i < n; i++) { scanf("%d", p+i); } int result = 0; for (i = 1; i < ...
128
memory_bytes
{'s_id': 's197297286', 'p_id': 'p02988', 'u_id': 'u209782508', 'date': '1563048358', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '447'}
[ { "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 is_median(int a, int n1, int n2)\n{\n return (n1 <= a && a <= n2) || (n2 <= a && a <= n1);\n}\n\nint main(i...
CDSS_598821
CDSS
#if 0 cat <<EOF >mistaken-paste #endif // thanks for @rsk0315_h4x #pragma GCC diagnostic ignored "-Wincompatible-pointer-types" #define _USE_MATH_DEFINES #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> #include <time.h> #define BIG 2000000007 #def...
10,368
memory_bytes
{'s_id': 's991189190', 'p_id': 'p03138', 'u_id': 'u238041222', 'date': '1549255604', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '34', 'memory': '10368', 'code_size': '6640'}
[ { "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#if 0\ncat <<EOF >mistaken-paste\n#endif\n// thanks for @rsk0315_h4x\n\n#pragma GCC diagnostic ignored \"-Wincompatible-pointer-types\...
CDSS_157626
CDSS
#include <stdio.h> #include <math.h> #include <string.h> #include <stdlib.h> int cPrime(int x) { if(x%2==0) return 1; int i, len=sqrt(x); for(i=3;i<=len;i+=2) { if(x%i==0 && x!=i) return 1; } return 0; } int main() { int a,count=0; scanf("%d",&a); while(a--) { int x; scanf("%d",&x); if((cPr...
2,120
memory_bytes
{'s_id': 's842587407', 'p_id': 'p02257', 'u_id': 'u011621222', 'date': '1528912859', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2120', 'code_size': '394'}
[ { "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#include <string.h>\n#include <stdlib.h>\n\nint cPrime(int x)\n{\n\n\tif(x%2==0) return 1;\n\ti...
CDSS_271017
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; }
580
memory_bytes
{'s_id': 's943906678', 'p_id': 'p02391', 'u_id': 'u490243634', 'date': '1497501627', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '201'}
[ { "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 a, b;\n\n\tscanf(\"%d %d\",&a,&b);\n\n\tif(a < b)\n\t{\n\t\tprintf(\"a < b\\n\");\n\t}...
CDSS_518106
CDSS
#include <stdio.h> int main() { int A,B; scanf("%d %d",&A,&B); int tmp1 = A/10, tmp2 = B/10; if (tmp1 > 0 || tmp2 > 0) printf("-1\n"); else printf("%d\n",A*B); return 0; }
128
memory_bytes
{'s_id': 's468784000', 'p_id': 'p02879', 'u_id': 'u227604873', 'date': '1572224570', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '178'}
[ { "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\tint A,B;\n\tscanf(\"%d %d\",&A,&B);\n\tint tmp1 = A/10, tmp2 = B/10;\n\tif (tmp1 > 0 || tmp2 > 0...
CDSS_733925
CDSS
#include<stdio.h> #include<stdlib.h> #define MIN(a,b) ((a)<(b)?(a):(b)) #define POS(i,j) ((i)*(h+1)+(j)) void run(void){ int h,w; scanf("%d%d",&h,&w); char *s=(char *)calloc(h*w+1,sizeof(char)); int i,j,k; for(i=0;i<h;i++) scanf("%s",s+i*w); char *x=(char *)calloc(h,sizeof(char)); char *y=(char *)callo...
1,024
memory_bytes
{'s_id': 's374342551', 'p_id': 'p03960', 'u_id': 'u425248533', 'date': '1550921084', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '87', 'memory': '1024', '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#include<stdio.h>\n#include<stdlib.h>\n\n#define MIN(a,b) ((a)<(b)?(a):(b))\n\n#define POS(i,j) ((i)*(h+1)+(j))\n\nvoid run(void){\n ...
CDSS_57632
CDSS
#include <stdio.h> int main(void) { int num[2][4]; int h_count = 0; int b_count = 0; int i, j; while (scanf("%d %d %d %d", &num[0][0], &num[0][1], &num[0][2], &num[0][3]) != EOF) { scanf("%d %d %d %d", &num[1][0], &num[1][1], &num[1][2], &num[1][3]); h_count = 0; b_count = 0; for (i = 0; i < 4; i++) { ...
596
memory_bytes
{'s_id': 's498069479', 'p_id': 'p00025', 'u_id': 'u820929609', 'date': '1378874831', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '554'}
[ { "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 num[2][4];\n\tint h_count = 0;\n\tint b_count = 0;\n\tint i, j;\n\n\twhile (scanf(\"%d ...
CDSS_89303
CDSS
#include<stdio.h> #include<string.h> int main(){ char r[6],a[6]; int hit,blow,i,j; while(scanf("%s%s",r,a)!=EOF){ if(strcmp(r,"0")==0 && strcmp(a,"0")==0)break; hit=blow=0; for(i=0;i<4;i++){ if(r[i]==a[i])hit++; for(j=0;j<4;j++){ if(j!=i && r[i]==a[j])blow++; } } printf("%d %d\n",hit,blow); }...
0
memory_bytes
{'s_id': 's685867099', 'p_id': 'p00226', 'u_id': 'u500961378', 'date': '1314951267', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '333'}
[ { "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\tchar r[6],a[6];\n\tint hit,blow,i,j;\n\twhile(scanf(\"%s%s\",r,a)!=EOF){\n\t\tif...
CDSS_556112
CDSS
#include<stdio.h> #include<stdlib.h> #include<stdint.h> #include<inttypes.h> #include<string.h> #include<math.h> typedef int32_t i32; typedef int64_t i64; #define MAX(a,b) ((a)>(b)?(a):(b)) #define MIN(a,b) ((a)<(b)?(a):(b)) #define ABS(a) ((a)>(0)?(a):-(a)) #define ALLOC(size,type) ((type*)calloc((size),sizeof(type)...
25,476
memory_bytes
{'s_id': 's987190942', 'p_id': 'p02992', 'u_id': 'u425248533', 'date': '1561858929', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '65', 'memory': '25476', 'code_size': '1454'}
[ { "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<stdint.h>\n#include<inttypes.h>\n#include<string.h>\n#include<math.h>\n\ntypedef int32...
CDSS_74100
CDSS
#include <stdio.h> int main(void){ int a,b; double s; scanf("%d %d", &a,&b); s=a*b/3.305785; printf("%lf", s); return 0; }
632
memory_bytes
{'s_id': 's422379506', 'p_id': 'p00094', 'u_id': 'u677738777', 'date': '1444179846', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '632', 'code_size': '162'}
[ { "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;\n double s;\n \n scanf(\"%d %d\", &a,&b);\n s=a*b/3.305785;\n \n...
CDSS_307068
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int a, b, c; int k; int n; scanf("%d%d%d", &a, &b, &c); n = 0; for (k = a; k <= b; k++) { if (c % k == 0) n++; } printf("%d\n", n); return 0; }
2,108
memory_bytes
{'s_id': 's108637597', 'p_id': 'p02398', 'u_id': 'u542576355', 'date': '1530696709', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '209'}
[ { "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\tint a, b, c;\n\tint k;\n\tint n;\n\n\tscanf(\"%d%d%d\", &a, &b, &c);\n\tn ...
CDSS_332358
CDSS
#include <stdio.h> int main (void) { int h, w; for (;;) { 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++) { printf ("#"); } printf ("\n"); } printf ("\n"); } ...
2,048
memory_bytes
{'s_id': 's833388719', 'p_id': 'p02403', 'u_id': 'u950102196', 'date': '1588132173', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '336'}
[ { "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 for (;;) {\n scanf (\"%d %d\", &h, &w);\n\n if (h==0 && w=...
CDSS_720151
CDSS
#include <stdio.h> #include <math.h> int main() { long long N; long long A; long long even; long long odd; long long i; scanf("%d",&N); even=0; for(i=0; i<N; i++) { scanf("%d",&A); if ( (A%2)==0 ) even++; } odd=N-even; if( (odd%2)==0) { ...
128
memory_bytes
{'s_id': 's425602838', 'p_id': 'p03807', 'u_id': 'u265756457', 'date': '1486280752', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '128', 'code_size': '387'}
[ { "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()\n{\nlong long N;\nlong long A;\nlong long even;\nlong long odd;\nlong long i;\n s...
CDSS_366119
CDSS
#include <stdio.h> int main(void){ char a[1201]; int i,c[26]; for(i=0;i<26;i++){ c[i]=0; } while(1){ if(scanf("%s",a)==EOF) break; for(i=0;i<1201;i++){ if(a[i]=='\0') break; if(a[i]>='A' && a[i]<='Z'){ a[i]=a[i]+('a'-'A'); } if(a[i]>='a' && a[i]<='z'){ c[a[i]-'a']++; } } } for(i=...
540
memory_bytes
{'s_id': 's201812571', 'p_id': 'p02417', 'u_id': 'u606776111', 'date': '1503300280', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '540', 'code_size': '382'}
[ { "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\tchar a[1201];\n\tint i,c[26];\n\tfor(i=0;i<26;i++){\n\t\tc[i]=0;\n\t}\n\twhile(1){\n\t\tif(sc...
CDSS_725168
CDSS
#include<stdio.h> int main(){ int sx,sy,tx,ty,i; int dx,dy; scanf("%d %d %d %d",&sx,&sy,&tx,&ty); dx = tx-sx; dy=ty - sy; for(i=0;i<dy;i++){ printf("U"); } for(i=0;i<dx;i++){ printf("R"); } for(i=0;i<dy;i++){ printf("D"); } for(i=0;i<dx+1;i++){ ...
128
memory_bytes
{'s_id': 's601952985', 'p_id': 'p03836', 'u_id': 'u710135612', 'date': '1549424526', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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\nint main(){\n int sx,sy,tx,ty,i;\n int dx,dy;\n\n scanf(\"%d %d %d %d\",&sx,&sy,&tx,&ty);\n dx = tx-s...
CDSS_553512
CDSS
#include <stdio.h> typedef struct List { struct List *next; int v, col, len; } list; void DFS(int u, list* adj[], list* memo[], int dep[], int count[], int sum[]) { list *p; for (p = memo[u]; p != NULL; p = p->next) p->len = sum[0] - sum[p->col] + p->len * count[p->col]; for (p = adj[u]; p != NULL; p = p->next) ...
31,656
memory_bytes
{'s_id': 's508435703', 'p_id': 'p02986', 'u_id': 'u943800443', 'date': '1600999455', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '186', 'memory': '31656', 'code_size': '2552'}
[ { "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 List {\n\tstruct List *next;\n\tint v, col, len;\n} list;\n\nvoid DFS(int u, list* adj[], list* m...
CDSS_518289
CDSS
/* ex3_4 moka223711 */ // 1から9までの2つの数の積として表せるような数であるかを判定する #include <stdio.h> int main(void){ int num, dis = 0; // discriminant scanf("%d", &num); // numを1から9で割って、余りが0かつ商が9以下になっているものを探す // 割れるものが見つかったらdisを1に変える for(int i = 1; i <= 9; i++){ if(num % i == 0 && num / i <= 9){ dis = 1; break; } } ...
128
memory_bytes
{'s_id': 's758596512', 'p_id': 'p02880', 'u_id': 'u242706056', 'date': '1590087893', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '713'}
[ { "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/* ex3_4\n moka223711 */\n\n// 1から9までの2つの数の積として表せるような数であるかを判定する\n\n#include <stdio.h>\n\nint main(void){\n\tint num, dis = 0; // dis...
CDSS_149731
CDSS
#include <stdio.h> #define N 1000 int main(){ int i, j, k, v, a_length; int A[N]; scanf("%d", &a_length); for(i = 0; i < a_length; i++){ scanf("%d", &A[i]); } for(i = 1; i <= a_length; i++){ v = A[i]; j = i - 1; for(k = 0; k < a_length - 1; k++) { printf("%d ", A[k]); ...
2,144
memory_bytes
{'s_id': 's060933735', 'p_id': 'p02255', 'u_id': 'u217028373', 'date': '1575610096', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', '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\n#define N 1000\n\nint main(){\n int i, j, k, v, a_length;\n int A[N];\n\n scanf(\"%d\", &a_length);\n\n for(...
CDSS_165561
CDSS
#include<stdio.h> void bubbleSort(int A[],int N); int count=0; int main() { int i; int A[100],N; scanf("%d",&N); for(i=0;i<N;++i){ scanf("%d",&A[i]); } bubbleSort(A,N); for(i=0;i<N;i++){ printf("%d",A[i]); if(i!=N-1)printf(" "); } printf("\n"); printf("%d\n",count); return 0...
604
memory_bytes
{'s_id': 's739436980', 'p_id': 'p02259', 'u_id': 'u092025520', 'date': '1461126413', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', '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\n#include<stdio.h>\n\nvoid bubbleSort(int A[],int N);\n\nint count=0;\n\nint main()\n{\n\n int i;\n int A[100],N;\n\n scanf(\"%d...
CDSS_172424
CDSS
#include <stdio.h> void selectionSort(int[],int); int main() { int i,N,A[100]; scanf("%d",&N); for(i = 0;i < N;i++) { scanf("%d",&A[i]); } selectionSort(A,N); return 0; } void selectionSort(int A[],int N) { int a,i,j,minj,count = 0; for(i = 0;i <= N-1;i++) { minj = i; for(...
2,108
memory_bytes
{'s_id': 's838384933', 'p_id': 'p02260', 'u_id': 'u005337603', 'date': '1544507815', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '615'}
[ { "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 selectionSort(int[],int);\n\nint main()\n{\n int i,N,A[100];\n\n scanf(\"%d\",&N);\n for(i = 0;i < N;i++...
CDSS_673114
CDSS
#include <stdio.h> #include <stdlib.h> int ordena(const void *a, const void *b){ return (*(int *)a)- (*(int *)b); } int vezes[200000]; //vezes que cada numero de a[i] apareceu; int main (){ int n,k,c=0,a; scanf("%d%d", &n,&k); for (int i = 0; i < n; i++){ scanf("%d", &a); vezes[a-1]++; } qso...
1,788
memory_bytes
{'s_id': 's036760845', 'p_id': 'p03495', 'u_id': 'u447305329', 'date': '1581146530', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '34', 'memory': '1788', 'code_size': '436'}
[ { "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 ordena(const void *a, const void *b){\n return (*(int *)a)- (*(int *)b);\n}\n\nint vez...
CDSS_690332
CDSS
#include <stdio.h> int main(){ int a,b,c,d,t,time; scanf("%d%d%d%d",&a,&b,&c,&d); if(a<=c){ if(b>=d) time=d-c; else if(b<=c) time=0; else if(b>c) time=b-c; } if(a>c){ t=a; a=c; c=t; t=b; b=d; d=t; if(b>=d) time=d-c; else if(b<=c) time=0; else if(b>c) time=b-c; } ...
128
memory_bytes
{'s_id': 's668818187', 'p_id': 'p03632', 'u_id': 'u863370423', 'date': '1514582543', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '366'}
[ { "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,c,d,t,time;\n\tscanf(\"%d%d%d%d\",&a,&b,&c,&d);\n\n\tif(a<=c){\n\t\tif(b>=d)\n\t\t\ttime=d-...
CDSS_331555
CDSS
#include<stdio.h> int main(){ int h,w,x,y; while(1){ scanf("%d %d",&h,&w); if(h+w == 0) break; for(y=0;y<h;++y){ for(x=0;x<w;++x){ printf("#"); } printf("\n"); } printf("\n"); } return 0; }
2,040
memory_bytes
{'s_id': 's258211666', 'p_id': 'p02403', 'u_id': 'u414147590', 'date': '1526892751', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '242'}
[ { "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,x,y;\n\n while(1){\n scanf(\"%d %d\",&h,&w);\n\n if(h+w == 0) break;\n\n for(y=0...
CDSS_469534
CDSS
#include<stdio.h> int main(){ int x,a,b,c; scanf("%d",&x); a=x/500; b=x%500/5; c=a*1000+b*5; printf("%d",c); return 0; }
128
memory_bytes
{'s_id': 's034672215', 'p_id': 'p02724', 'u_id': 'u233752869', 'date': '1586376849', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '140'}
[ { "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,a,b,c;\n\n scanf(\"%d\",&x);\n\n a=x/500;\n b=x%500/5;\n\n c=a*1000+b*5;\n printf(\"%...
CDSS_20570
CDSS
j;main(i){for(;i<=9;i++){for(j=1;j<=9;j++){printf("%dx%d=%d\n",i,j,i*j);}}exit(0);}
0
memory_bytes
{'s_id': 's470419216', 'p_id': 'p00000', 'u_id': 'u108432367', 'date': '1321800361', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '83'}
[ { "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:\nj;main(i){for(;i<=9;i++){for(j=1;j<=9;j++){printf(\"%dx%d=%d\\n\",i,j,i*j);}}exit(0);}\nPredict its memory footprint.", "role": "u...
CDSS_344730
CDSS
#include<stdio.h> int main(void) { int i,n,a,num[52]={}; char b; scanf("%d",&n); for(i=0;i<n;i++) { scanf(" %c",&b); scanf("%d",&a); switch(b) { case 'S': num[a-1]=a; break; case 'H': num[a+12]=a; break; case 'C': num[a+25]=a; break; case 'D': ...
596
memory_bytes
{'s_id': 's166780828', 'p_id': 'p02408', 'u_id': 'u873302699', 'date': '1425646724', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '608'}
[ { "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,n,a,num[52]={};\n char b;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++)\n {\n scanf(...
CDSS_616934
CDSS
#include <stdio.h> int main(){ int n,ans; scanf("%d",&n); if(n <= 111) ans = 111; else if(n > 111&&n <= 222) ans = 222; else if(n > 222&&n <= 333) ans = 333; else if(n > 333&&n <= 444) ans = 444; else if(n > 444&&n <= 555) ans = 555; else if(n > 555&&n <= 666) ans = 666; else if(n > 666&&n <= 7...
128
memory_bytes
{'s_id': 's035913086', 'p_id': 'p03243', 'u_id': 'u120865944', 'date': '1538270781', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '460'}
[ { "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 n,ans;\n scanf(\"%d\",&n);\n \n if(n <= 111) ans = 111;\n else if(n > 111&&n <= 222) ...
CDSS_121253
CDSS
#include<stdio.h> #include<string.h> #include<stdlib.h> int main() { char s[9][5]={".,!? ","abc","def","ghi","jkl","mno","pqrs","tuv","wxyz"}; char answer[76],enter[1025]; int n,i,j,k,l,r,flag; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%s",enter); for(j=0;j<76;j++) answer[j]='\0'; flag=0; k=0; l=0...
588
memory_bytes
{'s_id': 's167282348', 'p_id': 'p01131', 'u_id': 'u814434459', 'date': '1470816018', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '588', 'code_size': '679'}
[ { "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\nint main() {\n\n\tchar s[9][5]={\".,!? \",\"abc\",\"def\",\"ghi\",\"jkl\"...
CDSS_525194
CDSS
#include <stdio.h> #include <math.h> #define PI 3.14159265358979323846 int main(void) { int N, K; scanf("%d%d", &N, &K); int h[100000]; int count = 0; for (int i = 0; i < N; i++) { scanf("%d", &h[i]); if (h[i] >= K) { count++; } } printf("%d", count); return 0; }
512
memory_bytes
{'s_id': 's364283973', 'p_id': 'p02898', 'u_id': 'u276980836', 'date': '1569865912', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '512', 'code_size': '285'}
[ { "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#define PI 3.14159265358979323846\n\nint main(void) {\n\tint N, K;\n\tscanf(\"%d%d\", &N, &K);\...
CDSS_18074
CDSS
#include<stdio.h> int main(void){ int a,b; for(a=1; a<=9; a++){ for(b=1; b<=9; b++){ printf("%dx%d=%d\n",a,b,a*b); } } return 0; }
524
memory_bytes
{'s_id': 's641438282', 'p_id': 'p00000', 'u_id': 'u203500458', 'date': '1439086070', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '141'}
[ { "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\tfor(a=1; a<=9; a++){\n\t\tfor(b=1; b<=9; b++){\n\t\t\tprintf(\"%dx%d=%d\\n\",a,b,a*b...
CDSS_503022
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #define BUF_SIZE 30 int get_int(void) { int num; #ifdef BUF_SIZE char line[BUF_SIZE]; if(!fgets(line, BUF_SIZE, stdin)) return 0; sscanf(line, "%d", &num); #else #error #endif return num; } // <arr[0]> <arr[1]> .. <arr[size-1]> int fget_array(int ...
128
memory_bytes
{'s_id': 's952925533', 'p_id': 'p02813', 'u_id': 'u866370648', 'date': '1583637584', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '128', 'code_size': '1905'}
[ { "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\n#define BUF_SIZE 30\n\nint get_int(void) {\n int num;\n#ifdef BUF_SIZ...
CDSS_73633
CDSS
#include <stdio.h> int check (int year) { int ret; if (year % 400 == 0) { ret = 1; } else if (year % 100 == 0) { ret = 0; } else if (year % 4 == 0) { ret = 1; } else { ret = 0; } return ret; } int main(void) { int start = 0; while (1) { i...
1,796
memory_bytes
{'s_id': 's904938586', 'p_id': 'p00093', 'u_id': 'u910664394', 'date': '1506176365', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1796', 'code_size': '788'}
[ { "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 check (int year) {\n int ret;\n if (year % 400 == 0) {\n ret = 1; \n } else if (year % 100 =...
CDSS_644080
CDSS
#include <stdio.h> int main(){ int a,b,c,d,x=0; scanf("%d %d %d %d",&a,&b,&c,&d); if (abs(a-b)<=d&&abs(b-c)<=d) { x=1; }else if(abs(a-c)<=d) { x=1; } if (x==1) { printf("Yes\n"); }else { printf("No\n"); } }
128
memory_bytes
{'s_id': 's581452691', 'p_id': 'p03351', 'u_id': 'u980659030', 'date': '1542234110', '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>\nint main(){\n int a,b,c,d,x=0;\n scanf(\"%d %d %d %d\",&a,&b,&c,&d);\n if (abs(a-b)<=d&&abs(b-c)<=d)\n ...
CDSS_20539
CDSS
main(i,j){for(i=j=1;(i<=9||(i=(j++)&&1))&&j<=9;i++)printf("%dx%d=%d\n",j,i,i*j);exit(0);}
0
memory_bytes
{'s_id': 's575815528', 'p_id': 'p00000', 'u_id': 'u488108750', 'date': '1320514751', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '89'}
[ { "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(i,j){for(i=j=1;(i<=9||(i=(j++)&&1))&&j<=9;i++)printf(\"%dx%d=%d\\n\",j,i,i*j);exit(0);}\nPredict its memory footprint.", "rol...
CDSS_142387
CDSS
#include <stdio.h> #define N 8 #define NOT_FREE 1 #define FREE 0 void printBoard(); void putQueen(int); int row[N],col[N],dpos[2*N-1],dneg[2*N-1],x[N][N]; int main(){ int i,j,n,r,c; for(i=0;i<N;i++) row[i]=col[i]=FREE; for(i=0;i<2*N-1;i++) dpos[i]=dneg[i]=FREE; for(i=0;i<N;i++){ for(j=0;j<N;j++){ ...
2,112
memory_bytes
{'s_id': 's119148556', 'p_id': 'p02244', 'u_id': 'u953743009', 'date': '1533133681', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '1049'}
[ { "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 8\n#define NOT_FREE 1\n#define FREE 0\n\nvoid printBoard();\nvoid putQueen(int);\n\nint row[N],col[N],dp...
CDSS_243717
CDSS
#include <stdio.h> int main() { int x, ans; scanf("%d", &x); ans = x * x * x; printf("%d\n", ans); return 0; }
596
memory_bytes
{'s_id': 's319325759', 'p_id': 'p02388', 'u_id': 'u193103112', 'date': '1476240759', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '127'}
[ { "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, ans;\n scanf(\"%d\", &x);\n ans = x * x * x;\n printf(\"%d\\n\", ans);\n\n retu...