identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_186508
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> struct node{ unsigned int key; struct node *next; struct node *prev; }; typedef struct node * NodePointer; NodePointer nil; NodePointer listSearch(int key){ NodePointer x; for(x = nil->next;x!=nil;x=x->next){ if(x->key==key)return x; } retu...
32,936
memory_bytes
{'s_id': 's224363364', 'p_id': 'p02265', 'u_id': 'u250813039', 'date': '1543419144', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '210', 'memory': '32936', 'code_size': '1683'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 unsigned int key;\n struct node *next;\n struct node *...
CDSS_31508
CDSS
#include <stdio.h> int main() { int a; int b; int c; int n; int i = 0; int j = 0; int ans[1000] = {}; scanf("%d\n", &n); while (scanf("%d %d %d\n", &a, &b, &c) != EOF) { if (a*a+b*b==c*c || b*b+c*c==a*a || a*a+c*c==b*b)...
2,108
memory_bytes
{'s_id': 's284401127', 'p_id': 'p00003', 'u_id': 'u476198222', 'date': '1586095147', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '606'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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;\n int b;\n int c;\n int n;\n int i = 0;\n int j...
CDSS_741145
CDSS
#include<stdio.h> int main() { int i,N,S=0; scanf("%d",&N); for(i=0;i<=N;i++) S+=i; printf("%d",S); return 0; }
128
memory_bytes
{'s_id': 's475341977', 'p_id': 'p04029', 'u_id': 'u692031422', 'date': '1586538436', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '135'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,N,S=0;\n\n scanf(\"%d\",&N);\n for(i=0;i<=N;i++)\n S+=i;\n printf(\"%d\",S);\n...
CDSS_107603
CDSS
#include <stdio.h> #include <stdlib.h> int suit[200][200]; int main(void){ int d,n,i,j,k,ans=0; scanf("%d %d",&d,&n); int tem[d],A[n],B[n],hade[n],dp[d][n]; for(i=0;i<d;i++){ scanf("%d",&tem[i]); } for(i=0;i<n;i++){ scanf("%d %d %d",&A[i],&B[i],&hade[i]); } for(i=0;i<d;i++){ for(j=0;j<n;j++){ dp[i][j]=...
2,020
memory_bytes
{'s_id': 's088661526', 'p_id': 'p00502', 'u_id': 'u204605037', 'date': '1512830772', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2020', 'code_size': '834'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 suit[200][200];\nint main(void){\n\tint d,n,i,j,k,ans=0;\n\tscanf(\"%d %d\",&d,&n);\n\tin...
CDSS_132366
CDSS
#include <stdio.h> #define MAX 105 void matrixChainOrder(int n,int *p){ int i,j,k,q,l,m[MAX][MAX]; 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]=200000; for(k=i;k<=j-1;k++){ q=m[i][k]+m[k+1][j]+p[i-1]*p[k]*p[j]; if(m[i][j]>q)m[i][j]=q; } } } pr...
2,108
memory_bytes
{'s_id': 's973251575', 'p_id': 'p02234', 'u_id': 'u509359926', 'date': '1548644553', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '542'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 105\nvoid matrixChainOrder(int n,int *p){\n int i,j,k,q,l,m[MAX][MAX];\n for(i=1;i<=n;i++)m[i][i]=0;...
CDSS_252621
CDSS
#include<stdio.h> int main(void) { int a,b; scanf("%d %d",&a,&b); printf("%d %d\n",a*b,2*(a+b)); return 0; }
596
memory_bytes
{'s_id': 's896412352', 'p_id': 'p02389', 'u_id': 'u117671979', 'date': '1466573854', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '112'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint a,b;\n\tscanf(\"%d %d\",&a,&b);\n\tprintf(\"%d %d\\n\",a*b,2*(a+b));\n\treturn 0;\n}\nPred...
CDSS_329513
CDSS
#include<stdio.h> int main(void) { int a,b,c,d; c=0; do{ scanf("%d%d",&a,&b); while(a!=c){ for(d=0;d!=b;d++){ printf("#"); } printf("\n"); c++; if(c==a){ printf("\n"); } } c=0; }while(a+b!=0); return 0; }
572
memory_bytes
{'s_id': 's036054298', 'p_id': 'p02403', 'u_id': 'u613278035', 'date': '1461830392', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', '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>\nint main(void)\n{\n\tint a,b,c,d;\n\tc=0;\n\tdo{\n\t\tscanf(\"%d%d\",&a,&b);\n\t\twhile(a!=c){\n\t\t\tfor(d=0;d!=b;...
CDSS_280843
CDSS
#include<stdio.h> int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); if (a<b) { if (b<c) printf("Yes\n"); else printf("No\n"); } else printf("No\n"); return 0; }
2,056
memory_bytes
{'s_id': 's250943412', 'p_id': 'p02392', 'u_id': 'u664256757', 'date': '1551685193', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '241'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 scanf(\"%d %d %d\",&a,&b,&c);\n if (a<b)\n {\n if (b<c)\n ...
CDSS_58128
CDSS
#include <stdio.h> int const NUM[3][13] = { {0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0}, {0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1} }; int main() { int x, y, size; int i, zero, max; int paper[100] = {0}; int const *vrange; while (scanf(" %d,%d,%d", &x, &y, &size) != EOF) { ...
600
memory_bytes
{'s_id': 's767564132', 'p_id': 'p00026', 'u_id': 'u782850731', 'date': '1362264234', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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\nint const NUM[3][13] = {\n\t{0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0},\n\t{0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0},...
CDSS_259387
CDSS
#include <stdio.h> int main(){ int i; scanf("%d",&i); printf("%d:%d:%d\n",i/3600,i%3600/60,i%3600%60); return 0; }
592
memory_bytes
{'s_id': 's731006510', 'p_id': 'p02390', 'u_id': 'u060746771', 'date': '1429175209', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '122'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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;\n scanf(\"%d\",&i);\n printf(\"%d:%d:%d\\n\",i/3600,i%3600/60,i%3600%60);\n return 0;\n}\...
CDSS_656879
CDSS
#include<stdio.h> int main(void){ long int i,N; scanf("%ld",&N); if(N <= 2){ printf("0"); return 0; } char S[10]; long int count[5] = {0,0,0,0,0}; for(i = 0;i < N;i++){ scanf("%s",S); if(S[0] == 'M') count[0]++; if(S[0] == 'A') count[1]++; ...
128
memory_bytes
{'s_id': 's773770338', 'p_id': 'p03425', 'u_id': 'u139112688', 'date': '1540336941', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '128', 'code_size': '871'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 int i,N;\n scanf(\"%ld\",&N);\n if(N <= 2){\n printf(\"0\");\n retu...
CDSS_433880
CDSS
#include <stdio.h> int main(){ int a,b,c,d; int flag1 = 0; int flag2 = 0; scanf("%d %d %d %d", &a, &b, &c, &d); while(a > 0){ a = a - d; flag1++; } while(c > 0){ c = c - b; flag2++; } if(flag1 >= flag2){ printf("Yes"); }else{ printf("No"); } return 0; }
1,708
memory_bytes
{'s_id': 's425152545', 'p_id': 'p02700', 'u_id': 'u087807690', 'date': '1587952752', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1708', 'code_size': '314'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,d;\n int flag1 = 0;\n int flag2 = 0;\n \n scanf(\"%d %d %d %d\", &a, &b, &c, &d...
CDSS_255033
CDSS
#include<stdio.h> int main (){ int a,b,men=0,shu=0; scanf("%d %d",&a,&b); men=a*b; shu=(a+b)*2; printf("%d %d\n",men,shu); return 0; }
596
memory_bytes
{'s_id': 's451641028', 'p_id': 'p02389', 'u_id': 'u226258218', 'date': '1500599943', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '164'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,men=0,shu=0;\n\n scanf(\"%d %d\",&a,&b);\n\n men=a*b;\n shu=(a+b)*2;\n\n ...
CDSS_671128
CDSS
#include <stdio.h> int main() { int a, b, c, d; scanf("%d", &a); b = a % 100 % 10; c = (a / 10) % 10; d = a / 100; printf("%d", b + c + d); return (0); }
1,688
memory_bytes
{'s_id': 's663528803', 'p_id': 'p03493', 'u_id': 'u221374645', 'date': '1596750559', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1688', '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\n\tint a, b, c, d;\n\t\n\tscanf(\"%d\", &a);\n b = a % 100 % 10;\n c = (a / 10) % 10;\n \t...
CDSS_541412
CDSS
#include<stdio.h> int main() { int a,b,c,d; scanf("%d %d %d",&a,&b,&c); d=b+c; if(a<d) { printf("%d",d-a); } else { printf("0"); } }
128
memory_bytes
{'s_id': 's635565503', 'p_id': 'p02951', 'u_id': 'u568382716', 'date': '1565163789', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '185'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,d;\n scanf(\"%d %d %d\",&a,&b,&c);\n d=b+c;\n if(a<d)\n {\n printf(...
CDSS_306777
CDSS
#include <stdio.h> int main(void){ int a,b,c,x,y=0; scanf("%d %d %d",&a,&b,&c); for( x=a; x <=b;x++){ if(c%x==0){ y++; } } printf("%d\n",y);// Your code here! return(0); }
2,048
memory_bytes
{'s_id': 's213743934', 'p_id': 'p02398', 'u_id': 'u414096184', 'date': '1526880072', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', '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>\nint main(void){\n int a,b,c,x,y=0;\n scanf(\"%d %d %d\",&a,&b,&c);\n for( x=a; x <=b;x++){\n \n ...
CDSS_641170
CDSS
#include <stdio.h> int main() { int n; scanf("%d", &n); int ans = 0; if(n < 10){ ans = n; } else { while(n!=0){ ans += n % 10; n /= 10; } } if(ans == 1) ans = 10; printf("%d", ans); return 0; }
128
memory_bytes
{'s_id': 's337812169', 'p_id': 'p03331', 'u_id': 'u459215900', 'date': '1528074969', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '243'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 n;\n scanf(\"%d\", &n);\n\n int ans = 0;\n if(n < 10){\n ans = n;\n } else {\n whi...
CDSS_499063
CDSS
#include<stdio.h> int main() { int h,w,n,t; scanf("%d%d%d",&h,&w,&n); t=h>w?h:w; if(n%t!=0) printf("%d",n/t+1); else printf("%d",n/t); return 0; }
128
memory_bytes
{'s_id': 's789060918', 'p_id': 'p02795', 'u_id': 'u162472790', 'date': '1579378839', '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>\nint main()\n{\n int h,w,n,t;\n scanf(\"%d%d%d\",&h,&w,&n);\n t=h>w?h:w;\n if(n%t!=0)\n printf(\"...
CDSS_373124
CDSS
#include <stdio.h> #include <stdbool.h> #define MAX 100000 bool binary_search(int); int A[MAX]; int n; int main(void) { int q, k, 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", &k); if(binary_search(k)) { printf("1\n"); ...
2,128
memory_bytes
{'s_id': 's076996399', 'p_id': 'p02451', 'u_id': 'u324261218', 'date': '1536679121', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '2128', 'code_size': '643'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\n#define MAX 100000\n\nbool binary_search(int);\n\nint A[MAX];\nint n;\n\nint main(void) {\...
CDSS_118961
CDSS
#include <stdio.h> int main(void) { int dataset_num,cur_data; unsigned int chunks[9]; int i,j; int key,sum; scanf("%d",&dataset_num); for(cur_data=0;cur_data<dataset_num;cur_data++) { for(i=0;i<9;i++)scanf("%x",&chunks[i]); key=0; for(i=0;i<32;i++) { for(sum=0,j=0;j<8;j++)sum+=chunks[j]; if((sum & (1...
0
memory_bytes
{'s_id': 's436573560', 'p_id': 'p00829', 'u_id': 'u543521645', 'date': '1333762572', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '444'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 dataset_num,cur_data;\n\tunsigned int chunks[9];\n\tint i,j;\n\tint key,sum;\n\tscanf(\"...
CDSS_463223
CDSS
#include<stdio.h> int main() { int x,y,z; scanf("%d %d %d",&x,&y,&z); printf("%d %d %d",z,x,y); return 0; }
128
memory_bytes
{'s_id': 's431555131', 'p_id': 'p02717', 'u_id': 'u766413013', 'date': '1586143720', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '116'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,z;\n scanf(\"%d %d %d\",&x,&y,&z);\n printf(\"%d %d %d\",z,x,y);\n return 0;\n}\n\nPred...
CDSS_486765
CDSS
#include <stdio.h> int main(void) { int a , b , c ; scanf("%d" , &a ) ; scanf("%d" , &b) ; scanf( "%d" , &c) ; if ((a == b && a != c)|| (a == c && a!=b ) || (b == c && b!= a)) { printf("Yes") ; ...
128
memory_bytes
{'s_id': 's865166993', 'p_id': 'p02771', 'u_id': 'u149923287', 'date': '1592319674', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '391'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 a , b , c ;\n scanf(\"%d\" , &a ) ;\n scanf(\"%d\" , &b) ;\n ...
CDSS_40942
CDSS
#include <stdio.h> int main(void) { int a, b, c, d; int n; int m, l; while (scanf("%d", &n) != EOF){ m = 0; for (a = 0; a <= 9; a++){ for (b = 0; b <= 9; b++){ for (c = 0; c <= 9; c++){ for (d = 0; d <= 9; d++){ l = a + b + c + d; if (l == n){ m++; } } } } ...
596
memory_bytes
{'s_id': 's246080756', 'p_id': 'p00008', 'u_id': 'u603777231', 'date': '1442382288', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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:\n#include <stdio.h>\n\nint main(void)\n{\n\tint a, b, c, d;\n\tint n;\n\tint m, l;\n\t\n\twhile (scanf(\"%d\", &n) != EOF){\n\t\tm = 0;...
CDSS_636985
CDSS
#include <stdio.h> #include <string.h> #define BOTH 0 #define TAKA 1 #define HASI 2 #define DEBUG #undef DEBUG int main(int argc, char *argv[]) { int N, M; int from, to; int old, new; char swapflag; int i, j, k; int ans; char bridge[700][700] = {0}; long state[700] = {0}; int...
640
memory_bytes
{'s_id': 's898490318', 'p_id': 'p03321', 'u_id': 'u747557923', 'date': '1532802613', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '81', 'memory': '640', 'code_size': '5097'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\n#define BOTH 0\n#define TAKA 1\n#define HASI 2\n\n#define DEBUG\n#undef DEBUG\n\nint main(i...
CDSS_490248
CDSS
#include<stdio.h> #include<assert.h> #include<stdlib.h> #include<string.h> int main(void) { char S[10], T[10], U[10]; int A, B; scanf("%s %s", S, T); scanf("%d %d", &A, &B); scanf("%s", U); assert((1 <= A)&&(A <= 10)); assert((1 <= B)&&(B <= 10)); assert(strcmp(S, U)||strcmp(T, U)); if(strcmp(S, U)) ...
128
memory_bytes
{'s_id': 's829742950', 'p_id': 'p02777', 'u_id': 'u851376749', 'date': '1581280002', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '371'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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<assert.h>\n#include<stdlib.h>\n#include<string.h>\n\nint main(void)\n{\n char S[10], T[10], U[10];\n int...
CDSS_165489
CDSS
#include<stdio.h> int main(){ int N,num[100]; int i,j=0,flag,res,count=0; scanf("%d",&N); for(i=0;i<N;++i){ scanf("%d",&num[i]); } while(j!=N){ flag=1; while(flag){ flag=0; for(i=N-1;i>0;--i){ if(num[i]<num[i-1]){ res=num[i]; num[i]=num[i-1]; num[i-1]=res;...
604
memory_bytes
{'s_id': 's040562162', 'p_id': 'p02259', 'u_id': 'u363078904', 'date': '1461119897', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '517'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include<stdio.h>\n\nint main(){\n int N,num[100];\n int i,j=0,flag,res,count=0;\n\n scanf(\"%d\",&N);\n \n \n for(i=0;i<N;++i...
CDSS_129308
CDSS
#include <stdio.h> int main(void){ int n,i; int fib[100]={1,1}; scanf("%d",&n); for(i=2;i<=n;i++){ fib[i]=fib[i-1]+fib[i-2]; } printf("%d\n",fib[n]); return 0; }
2,104
memory_bytes
{'s_id': 's729570068', 'p_id': 'p02233', 'u_id': 'u644828029', 'date': '1532135907', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', '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>\nint main(void){\n int n,i;\n int fib[100]={1,1};\n \n scanf(\"%d\",&n);\n \n for(i=2;i<=n;i++){...
CDSS_130763
CDSS
#include <stdio.h> int F[50]; int fibonacci(int x){ if(x == 0 || x == 1) return F[x] = 1; if(F[x] != NULL)return F[x]; return F[x] = fibonacci(x - 1) + fibonacci(x - 2); } int main(){ int x; scanf("%d",&x); printf("%d\n",fibonacci(x)); return 0; }
2,056
memory_bytes
{'s_id': 's552257937', 'p_id': 'p02233', 'u_id': 'u140576179', 'date': '1579501618', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '270'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint F[50];\n\nint fibonacci(int x){\n if(x == 0 || x == 1) return F[x] = 1;\n if(F[x] != NULL)return F[x];\n ...
CDSS_421166
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define SIZE 100 #define rep(i, N) for (i = 0; i < N; i++) //制御変数iを用いてN回転 #define array(N, t) ((t)*)calloc(N, sizeof(t)) //t型N要素の配列を動的確保後0クリア(freeを忘れずに) #define zero(a); {int iter; rep(iter, sizeof(a)/sizeof((a)[0])) (a)[iter]=0;} //1次元配列aのゼロ初...
1,724
memory_bytes
{'s_id': 's261164706', 'p_id': 'p02683', 'u_id': 'u020173959', 'date': '1589162860', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1724', 'code_size': '1597'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 SIZE 100\n#define rep(i, N) for (i = 0; i < N...
CDSS_646641
CDSS
#include<stdio.h> int p[55]={2,7,17,37,47,67,97,107,127,137,157,167,197,227,257,277,307,317,337,347,367,397,457,467,487,547,557,577,587,607,617,647,677,727,757,787,797,827,857,877,887,907,937,947,967,977,997,1087,1097,1117,1187,1217,1237,1277,1297}; int main(){ int N,i; scanf("%d",&N); for(i=0;i<N-1;i++)printf("%d...
128
memory_bytes
{'s_id': 's791372229', 'p_id': 'p03362', 'u_id': 'u573082373', 'date': '1539205501', '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>\n\nint p[55]={2,7,17,37,47,67,97,107,127,137,157,167,197,227,257,277,307,317,337,347,367,397,457,467,487,547,557,577...
CDSS_691351
CDSS
#include <stdio.h> #include <string.h> #include <stdbool.h> int n,q,k; int m,head[300020],next[300020],to[300020]; long long len[300020],dis[300020]; bool visited[300020]; void dfs(int x,int y, long long d){ dis[x]=d; visited[x]=true; for (int e=head[x]; e!=-1; e=next[e]){ if (visited[to[e]]==fals...
14,080
memory_bytes
{'s_id': 's958196856', 'p_id': 'p03634', 'u_id': 'u750028862', 'date': '1534609795', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '64', 'memory': '14080', 'code_size': '1073'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 <stdbool.h>\n\nint n,q,k;\nint m,head[300020],next[300020],to[300020];\nlong long le...
CDSS_640981
CDSS
#include <stdio.h> int kochousinobu(int kanndaakemi) { int morigutihiroko = 0; while (kanndaakemi > 0) { morigutihiroko += kanndaakemi % 10; kanndaakemi /= 10; } return morigutihiroko; } int main(void) { int N; int i; int nakagawasyouko = 999999999; if (scanf("%d", &N) != 1) return 1; for (i = 1; i < N; ...
1,728
memory_bytes
{'s_id': 's407513497', 'p_id': 'p03331', 'u_id': 'u646118499', 'date': '1593672531', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1728', 'code_size': '483'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 kochousinobu(int kanndaakemi) {\n\tint morigutihiroko = 0;\n\twhile (kanndaakemi > 0) {\n\t\tmorigutihiroko ...
CDSS_108538
CDSS
#include <stdio.h> int main(void){ int N,M,i,j,A[1000],c,b[1000],max_count=0,max_game=-1; scanf("%d%d",&N,&M); for(i=0;i<N;i++){ scanf("%d",&A[i]); b[i]=0; } for(i=0;i<M;i++){ scanf("%d",&c); for(j=0;j<N;j++){ if(A[j]<=c){ b[j]++; break; } } }...
604
memory_bytes
{'s_id': 's769360916', 'p_id': 'p00516', 'u_id': 'u223852077', 'date': '1443176127', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '494'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){ \n\tint N,M,i,j,A[1000],c,b[1000],max_count=0,max_game=-1; \n\tscanf(\"%d%d\",&N,&M); \n\tfor...
CDSS_542735
CDSS
#include<stdio.h> int main(){ int i,j,k=0; int N; scanf("%d",&N); for(i=0;i<N;i++){ scanf("%d ",&j); if(k > j){ puts("No"); return 0; } else if(k==j){ k=j; } else k=(j-1); } puts("Yes"); return 0; }
128
memory_bytes
{'s_id': 's598131314', 'p_id': 'p02953', 'u_id': 'u491818247', 'date': '1565226732', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '14', 'memory': '128', 'code_size': '264'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 i,j,k=0;\n int N;\n scanf(\"%d\",&N);\n \n for(i=0;i<N;i++){\n scanf(\"%d \",&j);\n ...
CDSS_128521
CDSS
// AOJ 2960 Four Tea // 2019.8.8 bal4u #include <stdio.h> #include <string.h> #define MAX 505 #define INF 10000000 int p[5], t[5]; int dp[MAX]; int main() { int i, j, k, N, a, ma, ans; scanf("%d", &N); for (i = 1; i <= 4; i++) scanf("%d", p+i); for (i = 1; i <= 4; i++) scanf("%d", t+i); for (i = 1; i < MAX; i...
2,144
memory_bytes
{'s_id': 's706882681', 'p_id': 'p02060', 'u_id': 'u847467233', 'date': '1565239781', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '715'}
[ { "content": "Your task is to predict the memory 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 2960 Four Tea\n// 2019.8.8 bal4u\n\n#include <stdio.h>\n#include <string.h>\n\n#define MAX 505\n#define INF 10000000\nint p[5],...
CDSS_733831
CDSS
#include <stdlib.h> #include <stdio.h> int main() { int k,t,i; scanf("%d %d",&k,&t); int s[t]; for (i = 0;i<t;i++) scanf("%d",&s[i]); if (t == 1) printf("%d\n",k-1); else { int b = s[0]; int index = 0; for (i = 0;i<t;i++) if (s[i] > b){ index = i; b = s[i]; } for (i = 0;i<t;i++){ if (i...
128
memory_bytes
{'s_id': 's805521055', 'p_id': 'p03958', 'u_id': 'u757424147', 'date': '1477272514', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '428'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdlib.h>\n#include <stdio.h>\n\nint main()\n{\n\tint k,t,i;\n\tscanf(\"%d %d\",&k,&t);\n\tint s[t];\n\tfor (i = 0;i<t;i++) ...
CDSS_510014
CDSS
#include<stdio.h> int main() { int a[3]; scanf("%d %d %d", &a[0], &a[1], &a[2]); if (a[0] + a[1] + a[2] >= 22) printf("bust\n"); else printf("win\n"); return 0; }
128
memory_bytes
{'s_id': 's009938262', 'p_id': 'p02835', 'u_id': 'u600300412', 'date': '1575856897', '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()\n{\n\tint a[3];\n\tscanf(\"%d %d %d\", &a[0], &a[1], &a[2]);\n\tif (a[0] + a[1] + a[2] >= 22)\n\t\tprint...
CDSS_209898
CDSS
#include<stdio.h> #include<stdlib.h> #define M 10000 void CountingSort(int *,int *,int,int); int main(){ int *A,*B,n,i; int max=0; scanf("%d",&n); A = malloc(sizeof(int)*n+1); B = malloc(sizeof(int)*n+1); for(i=1;i<=n;i++) scanf("%d",&A[i]); CountingSort(A,B,M,n); for(i=1;i<n;i++) printf("%d...
17,404
memory_bytes
{'s_id': 's987707708', 'p_id': 'p02275', 'u_id': 'u736538251', 'date': '1578555600', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '230', 'memory': '17404', '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#include<stdlib.h>\n#define M 10000\n\nvoid CountingSort(int *,int *,int,int);\nint main(){\n int *A,*B,n,i;\n in...
CDSS_648699
CDSS
#include <stdio.h> int main(){ int A,B,X; scanf("%d %d %d",&A,&B,&X); if(A<=X && X<=A+B){ printf("YES\n"); }else{ printf("NO\n"); } return 0; }
1,612
memory_bytes
{'s_id': 's709584870', 'p_id': 'p03377', 'u_id': 'u455691947', 'date': '1597168823', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1612', '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,X;\n scanf(\"%d %d %d\",&A,&B,&X);\n \n if(A<=X && X<=A+B){\n printf(\"YES\\n\");\n...
CDSS_300231
CDSS
#include<stdio.h> int main() { int x; int y; int z; while(1) { scanf("%d %d",&x,&y); if(x==0&&y==0) { break; } if(x>y) { z=x; x=y; y=z; } printf("%d %d\n",x,y); } return 0; }
600
memory_bytes
{'s_id': 's398928383', 'p_id': 'p02397', 'u_id': 'u964131793', 'date': '1447923347', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '195'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\nint x;\nint y;\nint z;\nwhile(1)\n{\n scanf(\"%d %d\",&x,&y);\n if(x==0&&y==0)\n {\n break;\n }\n ...
CDSS_580463
CDSS
#include <stdio.h> #define N 20 int main() { static int aa[N]; int n, i, j, cnt, yes; scanf("%d", &n); for (i = 0; i < n; i++) scanf("%d", &aa[i]); cnt = 1; for (i = 1; i < n; i++) { yes = 1; for (j = 0; j < i; j++) if (aa[j] > aa[i]) { yes = 0; break; } if (yes) cnt++; } printf("%d\...
128
memory_bytes
{'s_id': 's286555673', 'p_id': 'p03072', 'u_id': 'u000120715', 'date': '1559787826', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '343'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 20\n\nint main() {\n\tstatic int aa[N];\n\tint n, i, j, cnt, yes;\n\n\tscanf(\"%d\", &n);\n\tfor (i = ...
CDSS_487518
CDSS
#include <stdio.h> int main(void){ int a, b, c; scanf("%d%d%d", &a, &b, &c); if ((a == b && a != c) || (a == c && a != b) || (b == c && a != b)) printf("%s\n", "Yes"); else printf("%s\n", "No"); return 0; }
128
memory_bytes
{'s_id': 's786448656', 'p_id': 'p02771', 'u_id': 'u977661421', 'date': '1581966089', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main(void){\n int a, b, c;\n scanf(\"%d%d%d\", &a, &b, &c);\n\n if ((a == b && a != c) || (a == c && ...
CDSS_374659
CDSS
#include<stdio.h> int main(){ char s[1000]; int i; char c=getchar(),d; while(c!=EOF&&(c!='\n')){ putchar(c); d=c; c=getchar(); } if (d=='s') printf("es\n"); else printf("s\n"); return 0; }
1,492
memory_bytes
{'s_id': 's350419830', 'p_id': 'p02546', 'u_id': 'u221462115', 'date': '1600545075', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '1492', 'code_size': '216'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 char s[1000];\n int i;\n char c=getchar(),d;\n while(c!=EOF&&(c!='\\n')){\n putchar(c);\n d...
CDSS_37378
CDSS
#include<stdio.h> #include<string.h> int main(){ int i; char a[21]; while ( (fscanf(stdin, "%s", a)) != EOF){ for (i=strlen(a)-1; i >= 0; i--){ printf("%c", a[i]); } printf("\n"); } return 0; }
520
memory_bytes
{'s_id': 's899347410', 'p_id': 'p00006', 'u_id': 'u135516417', 'date': '1443945769', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '520', '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#include<string.h>\n\nint main(){\n\n int i;\n char a[21];\n\n while ( (fscanf(stdin, \"%s\", a)) != EOF){...
CDSS_604388
CDSS
#include<stdio.h> #include<stdlib.h> void run(void){ int n,k; scanf("%d%d",&n,&k); int *a=(int *)calloc(n,sizeof(int)); int i,j; for(i=0;i<n;i++) scanf("%d",a+i); char *dp=(char *)calloc(k+1,sizeof(char)); for(i=0;i<k;i++){ if(dp[i]) continue; for(j=0;j<n && a[j]<=k-i;j++){ dp[i+a[j]]=1; ...
256
memory_bytes
{'s_id': 's389545859', 'p_id': 'p03170', 'u_id': 'u425248533', 'date': '1552618766', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '402'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nvoid run(void){\n int n,k;\n scanf(\"%d%d\",&n,&k);\n int *a=(int *)calloc(n,sizeof(int));...
CDSS_150121
CDSS
#include<stdio.h> int main(){ int i,j,n,b,k; scanf("%d",&n); int a[n]; for(k=0;k<n;k++){ scanf("%d",&a[k]); } for(k=0;k<n;k++){ if(k==n-1){ printf("%d\n",a[k]); }else{ printf("%d ",a[k]); } } for(i=1;i<=n-1;i++){ b=a[i]; j=i-1; while(j>=0 && a[j]>b){ ...
2,072
memory_bytes
{'s_id': 's429914889', 'p_id': 'p02255', 'u_id': 'u352341417', 'date': '1543893508', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2072', '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\nint main(){\n int i,j,n,b,k;\n scanf(\"%d\",&n);\n int a[n];\n for(k=0;k<n;k++){\n scanf(\"%d\",&a[k]);\n ...
CDSS_76728
CDSS
#include <stdio.h> #include <string.h> int main(void) { int n; char event[8]; int out = 0; int base[3] = {0}; int i; int score; scanf("%d", &n); while (n != 0){ score = 0; base[0] = 0; base[1] = 0; base[2] = 0; out = 0; while (out < 3){ scanf("%s", event); if (strcmp(event, "HIT") == 0...
596
memory_bytes
{'s_id': 's000898293', 'p_id': 'p00103', 'u_id': 'u374098633', 'date': '1410657428', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '787'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void)\n{\n\tint n;\n\tchar event[8];\n\tint out = 0;\n\tint base[3] = {0};\n\tint ...
CDSS_613395
CDSS
#include <stdio.h> int main() { int A,B,K; scanf("%d %d %d",&A,&B,&K); for (int i = 0; i < K; ++i) { if(i%2 == 0){ if(A%2 == 1){ A -= 1; B += A/2; A = A/2; } else{ B += A/2; A /= 2; } } if(i%2 == 1){ if(B%2 == 1){ B -= 1; A += B/2; B = B/2; } else{ A ...
128
memory_bytes
{'s_id': 's250398223', 'p_id': 'p03228', 'u_id': 'u995314932', 'date': '1540689655', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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()\n{\n\tint A,B,K;\n\tscanf(\"%d %d %d\",&A,&B,&K);\n\tfor (int i = 0; i < K; ++i)\n\t{\n\t\tif(i%2 == ...
CDSS_509618
CDSS
#include <stdio.h> int main(int argc, char const *argv[]) { int a,b,c,sum; scanf("%d %d %d",&a,&b,&c ); sum = a+b+c; if (sum<=21) { printf("win\n"); }else{ printf("bust\n"); } return 0; }
128
memory_bytes
{'s_id': 's427387148', 'p_id': 'p02835', 'u_id': 'u677869061', 'date': '1576899212', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '235'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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(int argc, char const *argv[]) {\n int a,b,c,sum;\n\n scanf(\"%d %d %d\",&a,&b,&c );\n\n sum = a+...
CDSS_539929
CDSS
#include<stdio.h> int main(){ int K,X; int i; scanf("%d %d",&K,&X); for(i=X+1-K;i<X;i++){ printf("%d ",i); } printf("%d ",X); for(i=X+1;i<X+K;i++){ printf("%d ",i); } return (0); }
128
memory_bytes
{'s_id': 's774689292', 'p_id': 'p02946', 'u_id': 'u991757033', 'date': '1565486972', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '207'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 K,X;\n int i;\n scanf(\"%d %d\",&K,&X);\n for(i=X+1-K;i<X;i++){\n printf(\"%d \",i);\n }\...
CDSS_543282
CDSS
#include<stdio.h> int main(){ char s[100001]; scanf("%s", s); int n=0; while(s[n] != '\0'){ n++; } int a[n]; for(int i=0; i<n; i++){ a[i] = 0; } int r=0; for(int i=0; i<n; i++){ if(s[i] == 'L' && r != -1){ a[i-1] += (i - r + 1)/2; ...
896
memory_bytes
{'s_id': 's984522378', 'p_id': 'p02954', 'u_id': 'u071680334', 'date': '1576074462', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '896', 'code_size': '774'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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[100001];\n scanf(\"%s\", s);\n int n=0;\n while(s[n] != '\\0'){\n n++;\n ...
CDSS_519945
CDSS
#include <stdio.h> #include <math.h> int main(void){ long int i, n; scanf("%ld", &n); long int ans = n; for(i = 1; i <= (long int)sqrt(n); ++i){ if(n % i == 0){ if(ans > i + n/i - 2 ){ ans = i + n/i - 2; } } } printf("%ld\n", ans); return 0; }
128
memory_bytes
{'s_id': 's386469441', 'p_id': 'p02881', 'u_id': 'u752847729', 'date': '1572229547', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '128', 'code_size': '300'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 long int i, n;\n scanf(\"%ld\", &n);\n long int ans = n;\n for(...
CDSS_280234
CDSS
#include<stdio.h> int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a<b&&b<c) printf("Yes"); else printf("No"); printf("\n"); return 0; }
584
memory_bytes
{'s_id': 's128129193', 'p_id': 'p02392', 'u_id': 'u481005624', 'date': '1387362427', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '148'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\nint a,b,c;\n\nscanf(\"%d %d %d\",&a,&b,&c);\n\nif(a<b&&b<c) printf(\"Yes\");\nelse printf(\"No\");...
CDSS_270317
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 if(a==b){ printf("a == b\n"); } return 0; }
580
memory_bytes
{'s_id': 's521892918', 'p_id': 'p02391', 'u_id': 'u323062582', 'date': '1492413509', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', '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(void)\n{\n int a,b;\n scanf(\"%d %d\",&a,&b);\n if (a<b){\n printf(\"a <...
CDSS_707374
CDSS
w[51],m,n,j;main(i){scanf("%d%d",&n,&m);for(m*=2;m--;w[i]++)scanf("%d",&i);while(j++-n)printf("%d\n",w[j]);}
128
memory_bytes
{'s_id': 's675135406', 'p_id': 'p03720', 'u_id': 'u302827412', 'date': '1494731013', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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:\nw[51],m,n,j;main(i){scanf(\"%d%d\",&n,&m);for(m*=2;m--;w[i]++)scanf(\"%d\",&i);while(j++-n)printf(\"%d\\n\",w[j]);}\nPredict its memor...
CDSS_98887
CDSS
#include <stdio.h> int main(){ int a[4],b[4],i,sum[2]; scanf("%d %d %d %d\n",&a[0],&a[1],&a[2],&a[3]); scanf("%d %d %d %d",&b[0],&b[1],&b[2],&b[3]); sum[0]=a[0]+a[1]+a[2]+a[3]; sum[1]=b[0]+b[1]+b[2]+b[3]; if(sum[0]<sum[1]){ printf("%d\n",sum[1]);} else {printf("%d\n",sum[0]);} return 0; }
1,848
memory_bytes
{'s_id': 's954144413', 'p_id': 'p00433', 'u_id': 'u529373084', 'date': '1510657016', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1848', 'code_size': '310'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\nint a[4],b[4],i,sum[2];\n\nscanf(\"%d %d %d %d\\n\",&a[0],&a[1],&a[2],&a[3]);\nscanf(\"%d %d %d %d\",...
CDSS_704292
CDSS
#include <stdio.h> #include <stdlib.h> #define datatype lli #define lli long long int //比較関数 int compare(datatype a, datatype b){ if(a < b){ return -1; } else if(a > b){ return 1; } else{ return 0; } } //昇順 lli inv_num_sub(datatype *origin, int left, int right, datatype *tmp){ lli ans = 0; if(right - l...
3,328
memory_bytes
{'s_id': 's802226752', 'p_id': 'p03703', 'u_id': 'u208608367', 'date': '1497232551', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '41', 'memory': '3328', 'code_size': '1279'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 datatype lli\n#define lli long long int\n\n//比較関数\nint compare(datatype a, datatype...
CDSS_625653
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main() { int n, divisores = 0, num=0; scanf("%d", &n); for (int i=1; i<=n; ++i) { for (int j=1; j<=i; ++j) { if(divisores>8) { divisores = 0; break; } ...
128
memory_bytes
{'s_id': 's992938070', 'p_id': 'p03281', 'u_id': 'u058238394', 'date': '1571284350', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '626'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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#include <stdlib.h>\n\n#include <string.h>\n\n#include <math.h>\n\nint main() {\n\n int n, divisores = 0, num...
CDSS_660100
CDSS
#include<stdio.h> int main(void) { int x,a,b; int sum; scanf("%d",&x); scanf("%d",&a); scanf("%d",&b); sum = x - a; while(sum >= b){ sum = sum - b; } printf("%d\n",sum); return 0; }
128
memory_bytes
{'s_id': 's133709248', 'p_id': 'p03447', 'u_id': 'u109526490', 'date': '1563817055', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main(void)\n{\n\tint x,a,b;\t\n\tint sum;\n\n\tscanf(\"%d\",&x);\n\tscanf(\"%d\",&a);\n\tscanf(\"%d\",&b);\n\t\...
CDSS_35896
CDSS
#include<stdio.h> int main() { int a, b,c,A,B; while (scanf("%d %d", &a, &b) != EOF) { A = a; B = b; while (b != 0) { c = a%b; a = b; b = c; } printf("%d %d\n", a, A / a*B); } return 0; }
1,980
memory_bytes
{'s_id': 's547340499', 'p_id': 'p00005', 'u_id': 'u043039307', 'date': '1520060731', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1980', 'code_size': '213'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,c,A,B;\n\n\twhile (scanf(\"%d %d\", &a, &b) != EOF) {\n\t\tA = a;\n\t\tB = b;\n\t\twhile...
CDSS_108234
CDSS
#include<stdio.h> int main(){ int i=1, sum5=0; for( i ; i <= 5 ; i++){ int seiseki=0; scanf("%d",&seiseki); if(seiseki < 40){ seiseki=40; } sum5 += seiseki; } printf("%d\n",sum5/5); return 0; }
596
memory_bytes
{'s_id': 's501940315', 'p_id': 'p00515', 'u_id': 'u109659972', 'date': '1430304013', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '231'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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=1, sum5=0;\n for( i ; i <= 5 ; i++){\n int seiseki=0;\n scanf(\"%d\",&seiseki);\n if...
CDSS_495815
CDSS
#include<stdio.h> #include<stdlib.h> int main(){ double H; scanf("%lf",&H); double t=2*pow(2,(int)log2(H))-1; printf("%.0f",t); return 0; }
128
memory_bytes
{'s_id': 's854230736', 'p_id': 'p02786', 'u_id': 'u236468356', 'date': '1580423433', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '144'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\nint main(){\n\tdouble H;\n\tscanf(\"%lf\",&H);\n\tdouble t=2*pow(2,(int)log2(H))-1;\n\tprintf(\...
CDSS_256001
CDSS
#include<stdio.h> int main(){ int a,b; scanf("%d %d", &a, &b); printf("%d %d\n", a*b, 2*(a+b)); return 0; }
2,024
memory_bytes
{'s_id': 's389670628', 'p_id': 'p02389', 'u_id': 'u485146969', 'date': '1523491756', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2024', 'code_size': '117'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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;\n\n\tscanf(\"%d %d\", &a, &b);\n\n\tprintf(\"%d %d\\n\", a*b, 2*(a+b));\n\n\treturn 0;\...
CDSS_612145
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> int main(){ int n,t,a,i,best; scanf("%d",&n); scanf("%d %d",&t,&a); int h[n]; double temp[n]; for(i=0;i<n;i++){ scanf("%d",&h[i]); } for(i=0;i<n;i++){ temp[i]=t-h[i]*0.006; } best=0; for(i=1;i<n;i++){ if(fabs(a-temp[best])>fabs(...
128
memory_bytes
{'s_id': 's052020488', 'p_id': 'p03220', 'u_id': 'u745223262', 'date': '1542318869', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '385'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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>\nint main(){\n int n,t,a,i,best;\n scanf(\"%d\",&n);\n scanf(\"%d %d\",&...
CDSS_686107
CDSS
#include <stdio.h> int sort(const void *a, const void *b) { return (*(int*)a - *(int*)b); } int main(void) { int N; int a[100000] = { 0 }; int ans = 0; scanf("%d", &N); for (int i = 0; i < N; i++) { scanf("%d", &a[i]); } qsort(a, N, sizeof(int), sort); for (int i = 0; i < N; i++) { if (a[i] == a[i + 1]...
892
memory_bytes
{'s_id': 's208544050', 'p_id': 'p03607', 'u_id': 'u203927510', 'date': '1505317211', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '25', 'memory': '892', 'code_size': '380'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 sort(const void *a, const void *b) {\n\treturn (*(int*)a - *(int*)b);\n}\n\nint main(void) {\n\tint N;\n\tin...
CDSS_236348
CDSS
#include <stdio.h> #include <math.h> int main(void) { int n, s[1010], sum, j = 0, i; double ave, dev[1010], bun; while (1) { scanf("%d", &n); if (n == 0) break; sum = 0; for (i = 0; i<n; i++) { scanf("%d", &s[i]); sum += s[i]; } ave = (double)sum / (double)n; bun = 0.0; for (i = 0; ...
2,112
memory_bytes
{'s_id': 's930996491', 'p_id': 'p02381', 'u_id': 'u183363727', 'date': '1563176957', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '469'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\tint n, s[1010], sum, j = 0, i;\n\tdouble ave, dev[1010], bun;\n\n\n\twhi...
CDSS_183141
CDSS
#include<string.h> #include<stdio.h> struct Process { char name[100]; int r; }; struct Process Q[1000]; int seisuu; void enqueue(struct Process x) { int i; for(i = 1; i < seisuu; i++) Q[i]=Q[i+1]; Q[seisuu]=x; } struct Process dequeue(){ seisuu--;} int main(){ int i,q,time=0; scanf("%d %d",...
520
memory_bytes
{'s_id': 's077818487', 'p_id': 'p02264', 'u_id': 'u480459673', 'date': '1336733786', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '510', 'memory': '520', 'code_size': '685'}
[ { "content": "Your task is to predict the memory footprint (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\nstruct Process\n {\n char name[100];\n int r;\n\n };\n\nstruct Process Q[1000];\n\nint seis...
CDSS_402511
CDSS
#include <stdio.h> int main() { int x,y; scanf("%d %d",&x,&y); for ( int i=0 ; i<=x ; i++) { if ( (2*i + 4*(x-i)) == y) { printf("Yes"); return 0; } } printf("No"); return 0; }
1,732
memory_bytes
{'s_id': 's141496857', 'p_id': 'p02640', 'u_id': 'u964774428', 'date': '1596843370', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1732', 'code_size': '241'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int x,y;\n scanf(\"%d %d\",&x,&y);\n for ( int i=0 ; i<=x ; i++) {\n if ( (2*i +...
CDSS_203337
CDSS
#include<stdio.h> #define N 500000 int A[N],B[N],count=0; void Mergesort(int *A,int left,int right){ int i,j,k,mid; if(right > left){ mid=(right+left)/2; Mergesort(A,left,mid); Mergesort(A,mid+1,right); for(i=mid+1;i>left;i--) B[i-1] = A[i-1]; for(j=mid; j<right; j++) B[right+m...
4,504
memory_bytes
{'s_id': 's630383922', 'p_id': 'p02272', 'u_id': 'u258796943', 'date': '1501222004', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '170', 'memory': '4504', 'code_size': '639'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 500000\n\nint A[N],B[N],count=0;\n\nvoid Mergesort(int *A,int left,int right){\n\n int i,j,k,mid;\n if(...
CDSS_58997
CDSS
#include<stdio.h> int main(void){ int input[105]; int cnt[105]; int i,max_cnt,end; for(i=1;i<=100;i++)cnt[i]=0; for(i=1;input[i-1]!=EOF;i++){ scanf("%d ",&input[i]); if(input[i]<=0 || input[i]>100) break; } end=i; for(i=1;i<end;i++){//ツ禿シツ療債つオツつスツ青板篠堋づ可つオツつスツつェツづづ、ツつサツづ個要ツ素ツ青板づ個づつアツづォツづー++ cnt[input[i...
0
memory_bytes
{'s_id': 's711110341', 'p_id': 'p00028', 'u_id': 'u757519851', 'date': '1298896510', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '680'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 input[105];\n\tint cnt[105];\n\tint i,max_cnt,end;\n\n\tfor(i=1;i<=100;i++)cnt[i]=0;\n\tfor(...
CDSS_420130
CDSS
#include <stdio.h> int main(void) { int a, b, c, k; scanf("%d", &a); scanf("%d", &b); scanf("%d", &c); scanf("%d", &k); if(k <= a){ printf("%d\n", k); } else if(k <= (a + b)){ printf("%d\n", a); } else{ printf("%d\n", a-(...
1,736
memory_bytes
{'s_id': 's166145466', 'p_id': 'p02682', 'u_id': 'u946346344', 'date': '1589677213', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1736', 'code_size': '355'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n\nint main(void)\n{\n int a, b, c, k;\n scanf(\"%d\", &a);\n scanf(\"%d\", &b);\n scanf(\"%d\", &c);...
CDSS_511243
CDSS
#include <stdio.h> #include <string.h> #include <stdbool.h> #include <stdint.h> #include <stdlib.h> #include <limits.h> #include <math.h> int acs(const void *a, const void *b){return *(int*)a - *(int*)b;} /* 1,2,3,4.. */ int des(const void *a, const void *b){return *(int*)b - *(int*)a;} /* 8,7,6,5.. */ int cmp_char(con...
128
memory_bytes
{'s_id': 's184137612', 'p_id': 'p02841', 'u_id': 'u391667116', 'date': '1575258204', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '839'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 <stdbool.h>\n#include <stdint.h>\n#include <stdlib.h>\n#include <limits.h>\n#include...
CDSS_228283
CDSS
#include<stdio.h> int A[500001]; int n; int maxh(int i){ int l=i*2; int r=i*2+1; int max; if(l<=n&&A[l]>A[i]){max=l;} else max=i; if(r<=n&&A[r]>A[max]){max=r;} if(max!=i){ int tmp=A[i];A[i]=A[max];A[max]=tmp; maxh(max); } ...
3,648
memory_bytes
{'s_id': 's168205079', 'p_id': 'p02288', 'u_id': 'u542576355', 'date': '1545881186', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '3648', 'code_size': '671'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 A[500001];\n int n;\n int maxh(int i){\n int l=i*2;\n int r=i*2+1;\n\n int max;\n if(l<...
CDSS_509027
CDSS
#include <stdio.h> int main(){ int A1,A2,A3; scanf("%d%d%d", &A1, &A2, &A3); if(A1+A2+A3 >= 22) { printf("bust"); } else { printf("win"); } return 0; }
1,708
memory_bytes
{'s_id': 's612333391', 'p_id': 'p02835', 'u_id': 'u816631826', 'date': '1600220913', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1708', 'code_size': '159'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 A1,A2,A3;\nscanf(\"%d%d%d\", &A1, &A2, &A3);\n\n\tif(A1+A2+A3 >= 22)\n{\n\t\tprintf(\"bust\");\n}...
CDSS_731237
CDSS
//set many funcs template //Ver.20180717 #include<stdio.h> #include<string.h> #include<stdlib.h> #include<stdbool.h> #include<time.h> #define inf 1072114514 #define llinf 4154118101919364364 #define mod 1000000007 #define pi 3.1415926535897932384 int max(int a,int b){if(a>b){return a;}return b;} int min(int a,int b){i...
1,664
memory_bytes
{'s_id': 's101065521', 'p_id': 'p03914', 'u_id': 'u266755928', 'date': '1548940219', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '99', 'memory': '1664', 'code_size': '4877'}
[ { "content": "Your task is to predict the memory 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 template\n//Ver.20180717\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<stdbool.h>\n#include<ti...
CDSS_620139
CDSS
#include <stdio.h> int main(void) { int A, B; scanf("%d %d", &A, &B); puts(A % 2 && B % 2 ? "Yes" : "No"); return (0); }
128
memory_bytes
{'s_id': 's581633822', 'p_id': 'p03260', 'u_id': 'u874723578', 'date': '1561422661', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '126'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\nmain(void)\n{\n\tint A, B;\n\tscanf(\"%d %d\", &A, &B);\n\tputs(A % 2 && B % 2 ? \"Yes\" : \"No\");\n\tretu...
CDSS_421409
CDSS
#include <stdio.h> #include <stdlib.h> int main(void) { int n,i,p=1,t=0; int start=0; long long int k; long long int loop; int a[300000]={}; int *b; b=(int*)malloc(sizeof(int)*300000); for(i=0;i<220000;i++){ b[i]=0; } b[1]=1; (void)scanf("%d %lld",&n,&k); for(i=1;i<=n;i++){ (void)scanf("%d",&a[i]); }...
3,688
memory_bytes
{'s_id': 's917659985', 'p_id': 'p02684', 'u_id': 'u173404831', 'date': '1589170563', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '28', 'memory': '3688', 'code_size': '720'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\tint n,i,p=1,t=0;\n int start=0;\n\tlong long int k;\n\tlong long int l...
CDSS_631383
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { int i, s_len, t_len; char s[128], t[256]; scanf("%s", s); scanf("%s", t); s_len = strlen(s); t_len = strlen(t); strncpy(t+t_len, t, t_len-1); if (strstr(t, s) != NULL) { printf("Yes"); } else { printf("No"); } return 0; }
128
memory_bytes
{'s_id': 's872168228', 'p_id': 'p03293', 'u_id': 'u570891521', 'date': '1532222749', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\n#include <stdlib.h>\n#include <string.h>\n\nint main()\n{\n\tint i, s_len, t_len;\n\tchar s[128], t[256];\n\tscanf...
CDSS_376478
CDSS
#include <stdio.h> int main(void){ long long a,b,c,d,max; scanf("%lld%lld%lld%lld",&a,&b,&c,&d); max=a*c; if(max<b*d) max=b*d; if(max<a*d) max=a*d; if(max<c*b) max=c*b; printf("%lld\n",max); return 0; }
1,696
memory_bytes
{'s_id': 's267312231', 'p_id': 'p02553', 'u_id': 'u728662995', 'date': '1600029783', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '1696', 'code_size': '223'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n long long a,b,c,d,max;\n scanf(\"%lld%lld%lld%lld\",&a,&b,&c,&d);\n max=a*c;\n if(max<b*d...
CDSS_566273
CDSS
#include <stdio.h> int main(){ int a,p,i; int ans; scanf("%d %d",&a,&p); p = p+(a*3); ans = p/2; printf("%d\n",ans); return 0; }
128
memory_bytes
{'s_id': 's871188627', 'p_id': 'p03029', 'u_id': 'u553864013', 'date': '1591019234', '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>\n\nint main(){\n int a,p,i;\n int ans;\n scanf(\"%d %d\",&a,&p);\n\n p = p+(a*3);\n ans = p/2;\n printf(\"%d\...
CDSS_70601
CDSS
#include <stdio.h> typedef struct{ int no; double w; double h; int flag; }stu; int main(void) { stu a[500]; int i=0; while( scanf("%d,%lf,%lf", &a[i].no, &a[i].w, &a[i].h) != EOF) { double bmi=a[i].w/a[i].h/a[i].h; a[i].flag=0; if(bmi>=25.0) a[i].flag=1; i++; } int j; for(j=0; j<i; j++) { ...
632
memory_bytes
{'s_id': 's060702888', 'p_id': 'p00075', 'u_id': 'u979000952', 'date': '1403162822', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '632', 'code_size': '381'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 no;\n\tdouble w;\n\tdouble h;\n\tint flag;\n}stu;\n\nint main(void) {\n\tstu a[500];\n\ti...
CDSS_248134
CDSS
#include <stdio.h> int main(void){ int n; scanf("%d",&n); printf("%d\n",n * n * n); return 0; }
596
memory_bytes
{'s_id': 's274443250', 'p_id': 'p02388', 'u_id': 'u682037079', 'date': '1393007438', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '96'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 n;\nscanf(\"%d\",&n);\nprintf(\"%d\\n\",n * n * n);\nreturn 0;\n}\nPredict its memory footp...
CDSS_48378
CDSS
#include <stdio.h> int main(void) { int i; int area; int n; while (scanf("%d", &n) != EOF){ area = 0; for (i = n; i < 600; i += n){ area += n * i * i; } printf("%d\n", area); } return (0); }
596
memory_bytes
{'s_id': 's429162724', 'p_id': 'p00014', 'u_id': 'u409597161', 'date': '1403152076', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '213'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 i;\n\tint area;\n\tint n;\n\n\twhile (scanf(\"%d\", &n) != EOF){\n\t\tarea = 0;\n\n\t\t...
CDSS_682229
CDSS
//#include "pch.h" #include <stdio.h> #include <math.h> #include <string.h> #include <stdlib.h> #define ll long long #define fr(i,l,r) for(i=(l);i<(r);i++) #define min(p,q) ((p)<(q)?(p):(q)) #define max(p,q) ((p)>(q)?(p):(q)) #define INF 1000000000000//10^12 int n; int map[60][60]; int from[60]; int pre[60]; int lo...
128
memory_bytes
{'s_id': 's173728188', 'p_id': 'p03575', 'u_id': 'u705931757', 'date': '1550540418', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1761'}
[ { "content": "Your task is to predict the memory 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\n//#include \"pch.h\"\n#include <stdio.h>\n#include <math.h>\n#include <string.h>\n#include <stdlib.h>\n\n#define ll long long\n#de...
CDSS_332400
CDSS
#include<stdio.h> int main() { int W,H,i,j; for(i=1;;i++) { scanf("%d%d",&H,&W); if(H==0 && W==0){break;} for(i=1;i<=H;i++) { for(j=1;j<=W;j++) { printf("#"); } printf("\n"); } printf("\n"); ...
2,108
memory_bytes
{'s_id': 's810828085', 'p_id': 'p02403', 'u_id': 'u274938043', 'date': '1586019007', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', '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>\nint main()\n{\n int W,H,i,j;\n for(i=1;;i++)\n {\n scanf(\"%d%d\",&H,&W);\n if(H==0 && W==0)...
CDSS_169826
CDSS
#include <stdio.h> #define X 100 int main(){ int i,j,n,sum=0,mini,temp,flag; int A[X]; scanf("%d",&n); for(i=0; i<n; i++){ scanf("%d",&A[i]); } for(i=0; i<=n-1; i++){ mini = i; for(j=i; j<=n-1; j++){ if(A[j]<A[mini]){ mini = j; flag = 1; } } temp = A[i]; A[i] = A[...
604
memory_bytes
{'s_id': 's155872742', 'p_id': 'p02260', 'u_id': 'u155559517', 'date': '1460607509', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '545'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 X 100\n\nint main(){\n\n int i,j,n,sum=0,mini,temp,flag;\n int A[X];\n\n scanf(\"%d\",&n);\n\n for(i=0...
CDSS_225375
CDSS
#include<stdio.h> #include<stdlib.h> #include<math.h> struct node{ int id; int k; int pk; int lk; int rk; }; typedef struct node *Node; int parent(i){ return floor(i/2); } int left(i){ return 2*i; } int right(i){ return (2*i)+1; } int main(){ int H, i, K, P; Node n; scanf("%d",&H); n ...
2,040
memory_bytes
{'s_id': 's983745227', 'p_id': 'p02287', 'u_id': 'u803250944', 'date': '1531450801', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '1022'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\nstruct node{\n int id;\n int k;\n int pk;\n int lk;\n int rk;\n};\ntyp...
CDSS_544237
CDSS
#include<stdio.h> int main(void) { int a,b; scanf("%d %d",&a,&b); if ((a + b) % 2 == 0){ printf("%d\n", (a + b) / 2); } else{ printf("IMPOSSIBLE\n"); } return 0; }
128
memory_bytes
{'s_id': 's084019850', 'p_id': 'p02957', 'u_id': 'u490089586', 'date': '1564694256', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '174'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint a,b;\n\tscanf(\"%d %d\",&a,&b);\n\tif ((a + b) % 2 == 0){\n\t\tprintf(\"%d\\n\", (a + b) /...
CDSS_339280
CDSS
#include <stdio.h> int main() { int i, n, x; scanf("%d", &n); for(i=1; i<=n; ++i){ x = i; if(x%3 == 0){ printf(" %d", i); } else { while(x){ if(x%10 == 3){ printf(" %d", i); break; ...
600
memory_bytes
{'s_id': 's999853559', 'p_id': 'p02406', 'u_id': 'u663449350', 'date': '1494567378', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '419'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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, n, x;\n \n scanf(\"%d\", &n);\n \n for(i=1; i<=n; ++i){\n x = i;\n ...
CDSS_216041
CDSS
#include<stdio.h> #define N 100000 struct Node{int r,l,in;}; struct Node T[N]; int n, length[N]; int depth(int, int); int main() { int i,id,k,c,j,l,in; scanf("%d",&n); for(i = 0 ; i < n ; i++) { T[i].r = -1; T[i].l = -1; T[i].in = -1; } for(i = 0 ; i < n ; i++) { scanf("%d%d",&id,&k); ...
5,300
memory_bytes
{'s_id': 's638755277', 'p_id': 'p02279', 'u_id': 'u548515518', 'date': '1497494540', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '5300', 'code_size': '1081'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 100000\n\nstruct Node{int r,l,in;};\nstruct Node T[N];\n\nint n, length[N];\n\nint depth(int, int);\n\nin...
CDSS_522952
CDSS
N,M,L,Q; D[301][301]; i,j,k; a,b,c; main() { scanf("%d%d%d",&N,&M,&L); for(i=0;i<N;i++)for(j=0;j<N;j++)D[i][j]=1000000001; for(i=0;i<M;i++) { scanf("%d%d%d",&a,&b,&c); --a; --b; D[a][b]=D[b][a]=c; } for(k=0;k<N;k++)for(i=0;i<N;i++)for(j=0;j<N;j++) if(D[i][j]>D[i][k]+D[k][j])D[i][j]=D[i][k]+D[k][j]; for...
768
memory_bytes
{'s_id': 's454071679', 'p_id': 'p02889', 'u_id': 'u657913472', 'date': '1571564853', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '84', 'memory': '768', 'code_size': '623'}
[ { "content": "Your task is to predict the 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,M,L,Q;\nD[301][301];\ni,j,k;\na,b,c;\nmain()\n{\n\tscanf(\"%d%d%d\",&N,&M,&L);\n\tfor(i=0;i<N;i++)for(j=0;j<N;j++)D[i][j]=1000000001...
CDSS_682405
CDSS
#include<stdio.h> #include<string.h> int main(void){ char s[51],t[51]={'0'}; scanf("%s",s); strncpy(t,s,strlen(s)-8); printf("%s",t); return 0; }
128
memory_bytes
{'s_id': 's038270680', 'p_id': 'p03577', 'u_id': 'u612175324', 'date': '1538685737', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '155'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 char s[51],t[51]={'0'};\n scanf(\"%s\",s);\n strncpy(t,s,strlen(s)-8);\n ...
CDSS_201505
CDSS
#include<stdio.h> #define MAX 500000 #define SENTINEL 2000000000 int L[MAX/2+2], R[MAX/2+2]; int c; void merge(int e[], int n, int left, int mid, int right){ int i, j, k; int x = mid - left; int y = right - mid; for ( i = 0; i < x; i++ ) L[i] = e[left + i]; for ( i = 0; i < y; i++ ) R[i] = e[mid + i]; L[...
5,636
memory_bytes
{'s_id': 's092900092', 'p_id': 'p02272', 'u_id': 'u961385580', 'date': '1530841169', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '110', 'memory': '5636', 'code_size': '1050'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 500000\n#define SENTINEL 2000000000\n\nint L[MAX/2+2], R[MAX/2+2];\nint c;\n\nvoid merge(int e[], int n...
CDSS_526424
CDSS
#include<stdio.h> #define ll long long ll gcd(ll a, ll b){return b?gcd(b,a%b):a;} int main(){ ll a,b; scanf("%lld%lld",&a,&b); ll c=0,i; a=gcd(a,b); for(i=2;i*i<=a;i++){ if(a%i)continue; c++; while(a%i==0)a/=i;} if(a-1) c++; printf("%lld\n",c+1); return 0;}
128
memory_bytes
{'s_id': 's360246766', 'p_id': 'p02900', 'u_id': 'u188486233', 'date': '1569903467', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '128', 'code_size': '291'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 ll long long \nll gcd(ll a, ll b){return b?gcd(b,a%b):a;}\nint main(){\n ll a,b;\n scanf(\"%lld%lld\",&a,...
CDSS_544596
CDSS
#include <stdio.h> int main() { int i,n,j,count = 0; scanf("%d",&n); for(int i=1;i<=n;i++) { scanf("%d" ,&j); if( j != i ) count++; } if( count == 0 || count == 2) printf("YES\n"); else printf("NO\n"); return 0; }
2,084
memory_bytes
{'s_id': 's896035604', 'p_id': 'p02958', 'u_id': 'u018679195', 'date': '1600929156', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '2084', '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>\nint main()\n{\n int i,n,j,count = 0;\n scanf(\"%d\",&n);\n for(int i=1;i<=n;i++)\n {\n scanf(\"%d\" ,&j);\n...
CDSS_324192
CDSS
#include<stdio.h> int main(){ int n,min,max,i; long int sum=0; int a[10000]; scanf("%d",&n); for(i=0;i<n;i++) scanf("%d",&a[i]); max=a[0],min=a[0]; for(i=0;i<n;i++){ if(max<a[i]) max=a[i]; else if(max>a[i] && min>a[i]) min=a[i]; s...
640
memory_bytes
{'s_id': 's152530063', 'p_id': 'p02402', 'u_id': 'u336686699', 'date': '1480470974', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', '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\nint main(){\n\n int n,min,max,i;\n long int sum=0;\n int a[10000];\n\n scanf(\"%d\",&n);\n\n for(i...
CDSS_519819
CDSS
#include<stdio.h> #include<math.h> int main(){ long long int N,ans=1000000000000; int i; scanf("%lld",&N); for(i=1;i<=sqrt(N);i++){ if(N%i==0){ if(ans>i+N/i-2){ ans=i+N/i-2; } } } printf("%lld",ans); return 0; }
256
memory_bytes
{'s_id': 's798125208', 'p_id': 'p02881', 'u_id': 'u937747602', 'date': '1572315459', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '256', 'code_size': '243'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\t\n\tlong long int N,ans=1000000000000;\n\tint i;\n\tscanf(\"%lld\",&N);\n\t\n\tf...
CDSS_216858
CDSS
#include<stdio.h> #define M 100001 #define NULL -1 void print(int); int rec(int,int); typedef struct Node{ int p,l,r; }Node; Node T[M]; int N,dep[M]; int main(){ int i,j,id,k,c,l,r; scanf("%d",&N); for(i=0;i<N;i++){ T[i].p=T[i].l=T[i].r=NULL; } for(i=0;i<N;i++){ scanf("%d%d",&id,&k); /*idは節点の番号kは子...
6,376
memory_bytes
{'s_id': 's999332110', 'p_id': 'p02279', 'u_id': 'u289274598', 'date': '1578296505', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '6376', 'code_size': '1063'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define M 100001\n#define NULL -1\nvoid print(int);\nint rec(int,int);\ntypedef struct Node{\n int p,l,r;\n}Node;\...
CDSS_307510
CDSS
#include<stdio.h> int main(){ int a,b,c,temp; scanf("%d %d %d",&a,&b,&c); for(int i=a;i<=b;i++){ if(c%i==0) temp++; } printf("%d\n",temp); return 0; }
2,104
memory_bytes
{'s_id': 's812389688', 'p_id': 'p02398', 'u_id': 'u037034101', 'date': '1545188274', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '195'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,temp;\n\n scanf(\"%d %d %d\",&a,&b,&c);\n\n for(int i=a;i<=b;i++){\n if(...
CDSS_376783
CDSS
#include <stdio.h> int main(void){ long a, b, c, d; scanf("%ld %ld %ld %ld ", &a, &b, &c, &d); long max = a * c; if(max < a * d) max = a * d; if(max < b * c) max = b * c; if(max < b * d) max = b * d; printf("%ld\n",max); }
2,156
memory_bytes
{'s_id': 's035537466', 'p_id': 'p02553', 'u_id': 'u930207599', 'date': '1600024576', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '2156', '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>\nint main(void){\n long a, b, c, d;\n scanf(\"%ld %ld %ld %ld \", &a, &b, &c, &d);\n long max = a * c;\n ...