identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_101945
CDSS
#include<stdio.h> int graph[101][101],n,c,d; void warshall_floyd(){ int i,j; for(i=1;i<=n;i++) for(j=1;j<=n;j++) graph[i][j]=graph[j][i]=min(graph[i][j],graph[i][c]+graph[c][d]+graph[d][j]); } int min(int x,int y){ return x<y?x:y; } int main(){ int k,i,j,x,e,a,b; while(scanf("%d %d",&n,&k),n,k){...
0
memory_bytes
{'s_id': 's489223026', 'p_id': 'p00449', 'u_id': 'u047988051', 'date': '1322377330', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '0', 'code_size': '672'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 graph[101][101],n,c,d;\n\nvoid warshall_floyd(){\n int i,j;\n for(i=1;i<=n;i++)\n for(j=1;j<=n;j++)\n ...
CDSS_222249
CDSS
#define _USE_MATH_DEFINES #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define ABS(x) ( (x)>0 ? x : -(x) ) #define MIN(x,y) ( (x) < (y) ? (x) : (y) ) #define MAX(x,y) ( (x) > (y) ? (x) : (y) ) #define MOD 1000000007 void swap(int* a, int* b) { int tmp; tmp = *a; *a = *b; *b = tmp;...
17,424
memory_bytes
{'s_id': 's121998530', 'p_id': 'p02283', 'u_id': 'u129426219', 'date': '1588660179', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '320', 'memory': '17424', 'code_size': '1880'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _USE_MATH_DEFINES\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n\n#define ABS(x) ( (x)>0 ?...
CDSS_321816
CDSS
#include<stdio.h> int main(void){ long long a,b,c,d,e,n; c=-10000000; d=10000000; e=0; scanf("%lld",&n); for(a=0;a<n;a++){ scanf("%lld",&b); if(b>c){ c=b; } if(b<d){ d=b; } e=e+b; } printf("%d %d %lld\n",(int)d,(int)...
600
memory_bytes
{'s_id': 's340165572', 'p_id': 'p02402', 'u_id': 'u844913463', 'date': '1432192826', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '341'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 long a,b,c,d,e,n;\n c=-10000000;\n d=10000000;\n e=0;\n scanf(\"%lld\",&n);\n...
CDSS_724301
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int k,s; int x,y,z; int cnt = 0; scanf("%d %d",&k,&s); for(x=0;x<=k;x++){ for(y=0;y<=k;y++){ if(0 <= (s-(x+y)) && (s-(x+y)) <= k){cnt++;} } } prin...
128
memory_bytes
{'s_id': 's483859178', 'p_id': 'p03835', 'u_id': 'u553864013', 'date': '1592327662', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '128', 'code_size': '363'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n #include <stdio.h>\n #include <stdlib.h>\n \n int main() {\n \n int k,s;\n int x,y,z;\n int c...
CDSS_711267
CDSS
#include<stdio.h> int main() { int n; scanf("%d", &n); int i; double a[100005]; for (i = 0; i < n; i++) scanf("%lf", &a[i]); double ans[2]; double sb, sa; if (a[0] <= 0) { ans[0] = 1 - a[0]; sb = 1; } else { ans[0] = 0; sb = a[0]; ...
896
memory_bytes
{'s_id': 's884253879', 'p_id': 'p03739', 'u_id': 'u600300412', 'date': '1548626201', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '896', 'code_size': '1341'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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;\n scanf(\"%d\", &n);\n int i;\n double a[100005];\n for (i = 0; i < n; i++)\n...
CDSS_706642
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int a, b, c; scanf("%d %d %d",&a,&b,&c); if (c>=a && c<=b) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
256
memory_bytes
{'s_id': 's957081516', 'p_id': 'p03719', 'u_id': 'u018679195', 'date': '1509579549', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', '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>\n#include <stdlib.h>\n\nint main()\n{\n int a, b, c;\n scanf(\"%d %d %d\",&a,&b,&c);\n if (c>=a && c<=b)\n...
CDSS_178440
CDSS
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> int STACK[1000]; int POINT = 0; void push(int i){ STACK[POINT] = i; POINT++; } int pop(void){ POINT--; return STACK[POINT]; } int main(void){ char read[10]; int l=0; int r=0; while(scanf("%s ", read)== 1){ ...
1,828
memory_bytes
{'s_id': 's300095782', 'p_id': 'p02263', 'u_id': 'u262053696', 'date': '1512360705', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1828', 'code_size': '743'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 <ctype.h>\n#include <string.h>\n\nint STACK[1000];\nint POINT = 0;\n\nvoid push(int ...
CDSS_308765
CDSS
#include<stdio.h> #include<float.h> int main (){ int a,b,w,am; double f; scanf("%d%d",&a,&b); w = a / b; am = a % b; f = a*1.0 / b; printf("%d %d %f\n",w,am,f); return 0; }
636
memory_bytes
{'s_id': 's370412042', 'p_id': 'p02399', 'u_id': 'u427452976', 'date': '1461148116', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '190'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include<stdio.h>\n#include<float.h>\n\nint main (){\n int a,b,w,am;\n double f;\n scanf(\"%d%d\",&a,&b);\n w = a / b;\n am = a...
CDSS_414865
CDSS
#include <stdio.h> #include <string.h> int main(void){ char hon[10]; scanf("%s",&hon); for(int i=0;i<=3;i++){ if(hon[i+1]=='\0'){ if(strncmp("3",&hon[i],1)==0){ printf("bon"); return 0; }else if(strncmp("0",&hon[i],1)==0||strncmp("1",&hon[i],1...
1,728
memory_bytes
{'s_id': 's658088925', 'p_id': 'p02675', 'u_id': 'u631638943', 'date': '1589767098', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1728', '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#include <string.h>\n\nint main(void){\n char hon[10];\n scanf(\"%s\",&hon);\n for(int i=0;i<=3;i++){\n ...
CDSS_19014
CDSS
#include <stdio.h> int main(void){ int i,j; for(j=1;j<=9;j++){ for(i=1;i<=9;i++){ printf("%dx%d=%d\n",j,i,j*i); } } return 0; }
520
memory_bytes
{'s_id': 's419987536', 'p_id': 'p00000', 'u_id': 'u897599699', 'date': '1474078006', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '520', 'code_size': '138'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 i,j;\n\tfor(j=1;j<=9;j++){\n\t\tfor(i=1;i<=9;i++){\n\t\t\tprintf(\"%dx%d=%d\\n\",j,i,j*i);\...
CDSS_692109
CDSS
#include<stdio.h> #include<string.h> int main(void){ int i,l; char s[100]; scanf("%s",s); l=strlen(s); printf("%c%d%c\n",s[0],l-2,s[l-1]); return 0; }
128
memory_bytes
{'s_id': 's000779533', 'p_id': 'p03636', 'u_id': 'u992736202', 'date': '1551215270', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '163'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 int i,l;\n char s[100];\n scanf(\"%s\",s);\n l=strlen(s);\n printf(\"%...
CDSS_528332
CDSS
#include<stdio.h> #include<string.h> int main(void) { char s[100]; int n,i; scanf("%s", s); n=strlen(s); for(i=0; i<n; i++) { if(i%2==1&&s[i]=='R') { printf("No\n"); break; } if(i%2==0&&s[i]=='L') { printf("No\n"); break; } if(i==n-1) printf("Yes\n"); } return 0; }
128
memory_bytes
{'s_id': 's411017395', 'p_id': 'p02910', 'u_id': 'u550605178', 'date': '1569357091', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '303'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main(void)\n{\n\tchar s[100];\n\tint n,i;\n\tscanf(\"%s\", s);\n\tn=strlen(s);\n\tfor(i=0; ...
CDSS_675404
CDSS
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main() { int a, b, c, d; int N; scanf("%d",&N); a = N / 1000; b = (N - (a * 1000)) / 100; c = (N - (a * 1000) - (b * 100)) / 10; d = N - (a * 1000) - (b * 100) - (c * 10); if (a == b&& b == c) { printf("Yes"); } else if (b == c&& c == d) { pri...
128
memory_bytes
{'s_id': 's810846963', 'p_id': 'p03543', 'u_id': 'u541026870', 'date': '1513315435', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '378'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n\n\n#include <stdio.h>\n\nint main()\n{\n\tint a, b, c, d;\n\tint N;\n\tscanf(\"%d\",&N);\n\t\n\ta = ...
CDSS_171952
CDSS
#include<stdio.h> #define swap(a,b)({a ^= b; b ^= a; a ^= b;}) int main(){ int n, i, j, a[101], count, mini; scanf("%d", &n); for(i=0;i<n;i++){ scanf("%d", &a[i]); } count=0; for(i = 0; i<n; i++){ mini = i; for(j=i+1;j<n;j++){ if(a[j] < a[mini]) mini = j; ...
2,112
memory_bytes
{'s_id': 's872785638', 'p_id': 'p02260', 'u_id': 'u436776849', 'date': '1593031031', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '525'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 swap(a,b)({a ^= b; b ^= a; a ^= b;})\nint main(){\n int n, i, j, a[101], count, mini;\n\n scanf(\"%d\...
CDSS_526896
CDSS
#include<stdio.h> int main(){ int h, w, a, b; scanf("%d %d %d %d", &h, &w, &a, &b); for(int i=1; i<=h; i++){ for(int j=1; j<=w; j++){ if((i<=b&&j<=a)||(i>b&&j>a)){ printf("1"); }else{ printf("0"); } } printf("\n"); ...
1,152
memory_bytes
{'s_id': 's873361715', 'p_id': 'p02903', 'u_id': 'u071680334', 'date': '1577482092', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '1152', 'code_size': '342'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, a, b;\n scanf(\"%d %d %d %d\", &h, &w, &a, &b);\n for(int i=1; i<=h; i++){\n ...
CDSS_229754
CDSS
#include<stdio.h> #define MAX 1000000 void maxHeapify(int); int h,H[MAX]; int main(){ int i; scanf("%d",&h); for(i=1;i<=h;i++){ scanf("%d",&H[i]); } for(i=h/2;i>=1;i--){ maxHeapify(i); } for(i=1;i<=h;i++){ printf(" %d",H[i]); } printf("\n"); return 0; } void maxHeapify(int i){ int ...
3,652
memory_bytes
{'s_id': 's930202518', 'p_id': 'p02288', 'u_id': 'u635348322', 'date': '1547616241', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '50', 'memory': '3652', '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#define MAX 1000000\n\nvoid maxHeapify(int);\n\nint h,H[MAX];\n\nint main(){\n int i;\n scanf(\"%d\",&h);\n for(...
CDSS_249050
CDSS
#include <stdio.h> int main() { int x; scanf("%d", &x); printf("%d\n",x*x*x); return 0; }
2,044
memory_bytes
{'s_id': 's807445282', 'p_id': 'p02388', 'u_id': 'u493506560', 'date': '1557888869', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '98'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 x;\n\tscanf(\"%d\", &x);\n\tprintf(\"%d\\n\",x*x*x);\n \n\treturn 0;\n}\n\nPredict its mem...
CDSS_92995
CDSS
#include <stdio.h> int main(void) { int a,b; scanf("%d %d",&a,&b); printf("%d\n",a*b); return 0; }
596
memory_bytes
{'s_id': 's738204738', 'p_id': 'p00290', 'u_id': 'u423833259', 'date': '1464250134', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '105'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 a,b;\n\t\n\tscanf(\"%d %d\",&a,&b);\n\tprintf(\"%d\\n\",a*b);\n\treturn 0;\n}\nPredict i...
CDSS_431599
CDSS
#include <stdio.h> int main() { int s,w; scanf("%d %d", &s, &w); if (s <= w) printf("unsafe"); else printf("safe"); return (0); }
1,728
memory_bytes
{'s_id': 's965009126', 'p_id': 'p02699', 'u_id': 'u501325458', 'date': '1587949399', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1728', '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\nint main() {\n int s,w;\n scanf(\"%d %d\", &s, &w);\n \n if (s <= w)\n printf(\"unsafe\");\n else\n p...
CDSS_684137
CDSS
#include<stdio.h> int main() { int n,a; while(scanf("%d%d",&n,&a)==2) { printf("%d\n",(n*n)-a); } return 0; }
128
memory_bytes
{'s_id': 's631491828', 'p_id': 'p03597', 'u_id': 'u774885411', 'date': '1505610268', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '138'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,a;\n while(scanf(\"%d%d\",&n,&a)==2)\n {\n printf(\"%d\\n\",(n*n)-a);\n }\...
CDSS_637395
CDSS
#include<stdio.h> int main() { int A, B; scanf("%d %d", &A, &B); if(A<=8 && B<=8) printf("Yay!"); else printf(":("); return 0; }
128
memory_bytes
{'s_id': 's345235682', 'p_id': 'p03323', 'u_id': 'u374372942', 'date': '1539510313', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', '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>\nint main()\n{\n int A, B;\n scanf(\"%d %d\", &A, &B);\n \n if(A<=8 && B<=8) printf(\"Yay!\");\n else printf(\"...
CDSS_725990
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int A,B; char op; scanf("%d %c %d",&A,&op,&B); if(op=='+') printf("%d",A+B); else if(op=='-') printf("%d",A-B); return 0; }
128
memory_bytes
{'s_id': 's642212631', 'p_id': 'p03844', 'u_id': 'u353919145', 'date': '1585077097', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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 int A,B;\n char op;\n scanf(\"%d %c %d\",&A,&op,&B);\n if(op=='...
CDSS_594953
CDSS
#include <stdio.h> int main() { int a, b; int result = scanf("%d %d", &a, &b); if (result) { if (b % a == 0) { // aはbの約数 printf("%d", a+b); } else { printf("%d", b-a); } } return 0; }
128
memory_bytes
{'s_id': 's871958288', 'p_id': 'p03125', 'u_id': 'u465172006', 'date': '1550369316', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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 int a, b;\n int result = scanf(\"%d %d\", &a, &b);\n \n if (result) {\n if (b % a == 0) {...
CDSS_344189
CDSS
#include <stdio.h> int main(void){ int i,n,a[100]; scanf("%d",&n); for(i=0;i<n;i++) scanf("%d",&a[i]); for(i=1;i<=n;i++){ printf("%d",a[n-i]); if(i==n) printf("\n"); else printf(" "); } return 0; }
2,056
memory_bytes
{'s_id': 's665694777', 'p_id': 'p02407', 'u_id': 'u078456964', 'date': '1532421113', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '245'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int i,n,a[100];\n scanf(\"%d\",&n);\n \n for(i=0;i<n;i++) \n scanf(\"%d\",&a[i]);\n\n ...
CDSS_307454
CDSS
#include <stdio.h> int main (void){ int a,b,c; int i; int t=0; scanf("%d%d%d",&a,&b,&c); for(i=a;i<=b;i++){ if(c%i==0)t++; } printf("%d\n",t); return 0; }
2,104
memory_bytes
{'s_id': 's538845524', 'p_id': 'p02398', 'u_id': 'u419804138', 'date': '1557847974', '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>\nint main (void){\n int a,b,c;\n int i;\n int t=0;\n scanf(\"%d%d%d\",&a,&b,&c);\n for(i=a;i<=b;i++)...
CDSS_685386
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #include <stdlib.h> #include <stdbool.h> #define MOD 1000000007 #define END printf("\n");return 0; #define QS09(how_data,data) qsort(data,how_data,sizeof(long),(int (*)(const void *,const void *))qsort_09); #define QS90(how_data,data) qsort(da...
128
memory_bytes
{'s_id': 's689131758', 'p_id': 'p03605', 'u_id': 'u926548116', 'date': '1505005264', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '7381'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <math.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#define MO...
CDSS_299133
CDSS
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main(void) { int x,i=1; while (1) { scanf("%d", &x); if (x == 0)break; printf("Case %d: %d\n", i,x); i++; } return 0; }
2,060
memory_bytes
{'s_id': 's161677750', 'p_id': 'p02396', 'u_id': 'u986384119', 'date': '1582121683', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2060', 'code_size': '232'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n#include <stdio.h>\nint main(void) {\n int x,i=1;\n while (1) {\n scanf(\"%d\", &x);\n ...
CDSS_317729
CDSS
#include<stdio.h> int main (void) { int a,b,i; char op; for(i=1;i>0;i++){ scanf("%d %c %d",&a,&op,&b); if (op=='+'){ printf("%d\n",a+b); }else if (op=='-'){ printf("%d\n",a-b); } else if (op=='*'){ printf("%d\n",a*b); }else if (op==...
2,040
memory_bytes
{'s_id': 's488275002', 'p_id': 'p02401', 'u_id': 'u419804138', 'date': '1559145144', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '433'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,i;\n char op;\n for(i=1;i>0;i++){\n scanf(\"%d %c %d\",&a,&op,&b);\n ...
CDSS_197909
CDSS
#include<stdio.h> #include<string.h> #define M 1046527 #define NIL (-1) #define L 14 char H[M][L]; int getChar(char ch){ if(ch=='A')return 1; else if(ch=='C')return 2; else if(ch=='G')return 3; else if(ch=='T')return 4; else return 0; } long long getKey(char str[]){ long long sum=0,p=1,i; ...
16,100
memory_bytes
{'s_id': 's466059681', 'p_id': 'p02269', 'u_id': 'u442969736', 'date': '1552449195', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '190', 'memory': '16100', 'code_size': '1391'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 M 1046527\n#define NIL (-1)\n#define L 14\n\nchar H[M][L];\n\nint getChar(char ch){\n...
CDSS_455664
CDSS
#include <stdio.h> int main(void) { unsigned int a=1; unsigned int d=0; unsigned long sum=0; scanf("%d",&d); while(a <= d){ // aが3の倍数 または 5の倍数のとき if(a % 3 == 0 || a % 5 == 0) { }else{ sum+=a; } a+=1; } printf("%lu\n",sum); ...
1,732
memory_bytes
{'s_id': 's761462563', 'p_id': 'p02712', 'u_id': 'u604655161', 'date': '1586744479', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '1732', '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 main(void)\n{\n \n \n unsigned int a=1;\n unsigned int d=0;\n unsigned long sum=0;\n \n ...
CDSS_196460
CDSS
#include <stdio.h> #include <string.h> #define M 1046527 #define NIL (-1) #define L 14 char H[M][L]; int getChar(char ch){ if(ch=='A') return 1; else if(ch=='C') return 2; else if(ch=='G') return 3; else if(ch=='T') return 4; else return 0; } long long getKey(char str[]){ long long sum=0, p=1, i; fo...
15,996
memory_bytes
{'s_id': 's543403050', 'p_id': 'p02269', 'u_id': 'u549192905', 'date': '1521080844', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '200', 'memory': '15996', 'code_size': '1635'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#define M 1046527\n#define NIL (-1)\n#define L 14\nchar H[M][L];\nint getChar(char ch){\n if...
CDSS_455861
CDSS
#include <stdio.h> int main(){ int n; scanf("%d",&n); long long int sum = 0; for(int i =0;i<n+1;i++){ if(i % 5 !=0 && i % 3 !=0){ sum+=i; } } printf("%lld", sum); return 0; }
1,728
memory_bytes
{'s_id': 's995170646', 'p_id': 'p02712', 'u_id': 'u474561976', 'date': '1586742766', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1728', 'code_size': '215'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 scanf(\"%d\",&n);\n long long int sum = 0;\n for(int i =0;i<n+1;i++){\n if(...
CDSS_385911
CDSS
#include<stdio.h> int main() { int temp; scanf("%d", &temp); if(temp>=30) { printf("Yes"); } else { printf("No"); } }
1,728
memory_bytes
{'s_id': 's131335311', 'p_id': 'p02594', 'u_id': 'u823757186', 'date': '1596417984', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1728', 'code_size': '148'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int temp;\n scanf(\"%d\", &temp);\n if(temp>=30)\n {\n\n printf(\"Yes\");\n }\n else\n ...
CDSS_157850
CDSS
#include<stdio.h> #include<math.h> int main(){ int n,N, count=0,i,j; double sqrtN; scanf("%d",&N); /*素数判定*/ for(i=1;i<=N;i++){ scanf("%d",&n); if(n==2){ count++; continue; } else if(n%2==0) continue; else if(n < 2) continue; sqrtN = sqrt(n); for (j=3;j<=sqrtN;j+=2){...
2,140
memory_bytes
{'s_id': 's610380793', 'p_id': 'p02257', 'u_id': 'u803250944', 'date': '1529142398', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '453'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\nint main(){\n\n int n,N, count=0,i,j;\n double sqrtN;\n\n scanf(\"%d\",&N);\n\n /*素数判定*/\n f...
CDSS_667713
CDSS
#include <stdio.h> int st[500][3]; int main() { int N; scanf("%d",&N); int i = 0; while(i<N-1){ scanf("%d",&st[i][0]); scanf("%d",&st[i][1]); scanf("%d",&st[i][2]); i++; } int now = 0; while(now<N-1){...
128
memory_bytes
{'s_id': 's874387741', 'p_id': 'p03475', 'u_id': 'u172505933', 'date': '1514689050', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '743'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 st[500][3];\nint main()\n{\n int N;\n scanf(\"%d\",&N);\n int i = 0;\n while(i<N-1...
CDSS_742894
CDSS
#include <stdio.h> int N; int a[101]; int cost, min = 987654321; int main(void) { int i, j; scanf("%d", &N); for (i = 0; i < N; ++i) { scanf("%d", &a[i]); } for (i = -100; i <= 100; ++i) { cost = 0; for (j = 0; j < N; ++j) { cost += (a[j]-i)*(a[j]-i); } if (cost < min...
128
memory_bytes
{'s_id': 's250523459', 'p_id': 'p04031', 'u_id': 'u952075446', 'date': '1573048154', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '377'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint N;\nint a[101];\nint cost, min = 987654321;\n\nint main(void)\n{\n int i, j;\n \n scanf(\"%d\", &N);\n f...
CDSS_426579
CDSS
#include <stdio.h> int main() { int k, a, b, i, mult=0; scanf("%d", &k); scanf("%d%d", &a, &b); for(i=a; b>=i; ++i){ if(i%k==0){ mult = mult + i; } } if(mult>0){ printf("OK"); } else{ printf("NG"); } return 0; }
1,736
memory_bytes
{'s_id': 's750243771', 'p_id': 'p02693', 'u_id': 'u872571729', 'date': '1588469759', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1736', 'code_size': '294'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 k, a, b, i, mult=0;\n scanf(\"%d\", &k);\n scanf(\"%d%d\", &a, &b);\n for(i=a; b>...
CDSS_379999
CDSS
#include<stdio.h> typedef long long ll; #define IMF 1000000007 int main(void){ int n; scanf("%d",&n); ll a[n]; for(int i = 0;i < n;i ++){ scanf("%lld",&a[i]); } ll ans = 0 , tas = 0; for(int i = 0;i < n;i ++){ tas += a[i]; tas %= IMF; } for(int i = 0;i < n-1;i ++){ if(tas < a[i]){...
3,292
memory_bytes
{'s_id': 's179855274', 'p_id': 'p02572', 'u_id': 'u391247609', 'date': '1598729328', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '43', 'memory': '3292', 'code_size': '468'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 long long ll;\n#define IMF 1000000007\n\nint main(void){\n int n;\n scanf(\"%d\",&n);\n\n ll a[n];\n ...
CDSS_385815
CDSS
#include<stdio.h> int main(){ int x; scanf("%d",&x); if(x >29){printf("Yes\n");}else{printf("No\n");} }
1,660
memory_bytes
{'s_id': 's108432910', 'p_id': 'p02594', 'u_id': 'u838152098', 'date': '1596462681', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1660', 'code_size': '109'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int x;\n scanf(\"%d\",&x);\n if(x >29){printf(\"Yes\\n\");}else{printf(\"No\\n\");}\n}\nPredict it...
CDSS_116374
CDSS
#include <stdio.h> int w, h; int X[50][50]; void A( int i, int j ){ X[i][j] = 0; int k,i1,j1; int x[8]={0,0,-1,1,1,1,-1,-1}; int y[8]={-1,1,0,0,1,-1,-1,1}; for( k = 0 ; k < 8 ; k++ ){ i1 = i + x[k]; j1 = j + y[k]; if( j1 < w && i1< h && j1 > -1 && i1 > -1 ){ if( X[i1][j1] == 1 ){ A( i1, j1 ); } ...
824
memory_bytes
{'s_id': 's875070097', 'p_id': 'p00741', 'u_id': 'u326110023', 'date': '1432484559', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '824', 'code_size': '697'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\tint w, h;\n\tint X[50][50];\nvoid A( int i, int j ){\n\tX[i][j] = 0;\n\tint k,i1,j1;\n\tint x[8]={0,0,-1,1,1,1,-...
CDSS_524176
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #define PI 3.14159265358979323846 int main(void) { int N; scanf("%d", &N); if (N % 2 == 0) { printf("%f", (double)1/ 2); } else { printf("%f", (double) (N / 2 + 1) / N); } return 0; }
128
memory_bytes
{'s_id': 's220623662', 'p_id': 'p02897', 'u_id': 'u276980836', 'date': '1571685066', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '295'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#include <time.h>\n#define PI 3.14159265358979323846\...
CDSS_639959
CDSS
#include <stdio.h> int main (){ int Z; scanf ("%d",&Z); if(Z<=999){ printf("ABC"); } else{ printf("ABD"); } return 0; }
128
memory_bytes
{'s_id': 's344361864', 'p_id': 'p03327', 'u_id': 'u108534906', 'date': '1528749856', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '133'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 Z;\n\tscanf (\"%d\",&Z);\n\tif(Z<=999){\n\t\tprintf(\"ABC\");\n\t}\n\telse{\n\t\tprintf(\"ABD\...
CDSS_201351
CDSS
#include<stdio.h> int n,A[50]; int solve(int i,int m){ if(m==0) return 1; if(i>=n) return 0; int res=solve(i+1,m) || solve(i+1,m-A[i]); return res; } int main(){ int q,M,i; scanf("%d",&n); for(i=0;i<n;i++)scanf("%d",&A[i]); scanf("%d",&q); for(i=0;i<q;i++){ scanf("%d",&M); if(solve(0,M))printf("yes\n"...
2,136
memory_bytes
{'s_id': 's971470545', 'p_id': 'p02271', 'u_id': 'u147996029', 'date': '1539240330', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '500', 'memory': '2136', 'code_size': '362'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint n,A[50];\n\nint solve(int i,int m){\n\tif(m==0) return 1;\n\tif(i>=n) return 0;\n\tint res=solve(i+1,m) || so...
CDSS_23839
CDSS
#include <stdio.h> int main(){ int n,count,count2,temp; int mountain[10]; for(n=0;n<10;n++){ scanf("%d",&mountain[n]); } for(count=0;count<n;count++){ for(count2=count;count2<n;count2++){ if(mountain[count2]>mountain[count]){ temp=mountain[count]; mountain[count]=mountain[count2]...
600
memory_bytes
{'s_id': 's940131552', 'p_id': 'p00001', 'u_id': 'u100370736', 'date': '1496763025', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '431'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,count,count2,temp;\n int mountain[10];\n for(n=0;n<10;n++){\n scanf(\"%d\",&mountain[n])...
CDSS_83337
CDSS
#include <stdio.h> int main(void) { int n; int c; while (1) { scanf("%d", &n); c = 0; if (n == 0){ break; } while (n != 1){ if (n % 2 == 0){ n /= 2; } else if (n % 2 != 0){ n *= 3; n += 1; } c++; } printf("%d\n", c); } return (0); }
600
memory_bytes
{'s_id': 's581993130', 'p_id': 'p00158', 'u_id': 'u192770095', 'date': '1456231505', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '295'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 n;\n\tint c;\n\t\n\twhile (1) {\n\t\tscanf(\"%d\", &n);\n\t\tc = 0;\n\t\t\n\t\tif (n ==...
CDSS_590476
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> #define min(a,b) ((a)>(b)?(b):(a)) long long n,m,i,a[111111][2]; int cmp(const long long *a,const long long *b){ return *a-*b; } int main(){ scanf("%lld%lld",&n,&m); for(i=0;i<n;i++){ scanf("%lld%lld",&a[i][0],&a[i][1]); } qsort(a,n,sizeof(a[0]),...
3,452
memory_bytes
{'s_id': 's895895666', 'p_id': 'p03103', 'u_id': 'u244203620', 'date': '1552163671', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '35', 'memory': '3452', 'code_size': '458'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 min(a,b) ((a)>(b)?(b):(a))\n\nlong long n,m,i,a[111111][2];\n\nin...
CDSS_87620
CDSS
#include <stdio.h> int main(){ int i,j,k; int a,b,c; int n[200]={0}; while(1){ scanf("%d",&a); if(a==0){ break; } b=0; while(a){ n[b]=a%8; a/=8; b++; } n[b]=0; c=0; i=0; while(i<=b){ if(n[i]>3){ n[i]++; } if(n[i]>5){ n[i]++; } i++; } for(i=b-1;i>...
604
memory_bytes
{'s_id': 's698109936', 'p_id': 'p00208', 'u_id': 'u018134297', 'date': '1406303415', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '604', 'code_size': '375'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 i,j,k;\n\tint a,b,c;\n\tint n[200]={0};\n\twhile(1){\n\t\tscanf(\"%d\",&a);\n\t\tif(a==0){\n\...
CDSS_581741
CDSS
#include<stdio.h> #include<string.h> int main(void){ char s[1000000]; scanf("%s",&s); int cnt = 0; for(int i = 1;i < strlen(s);i++){ if(s[i] == s[i - 1]){ cnt++; if(s[i] == '0'){ s[i] = '1'; }else{ s[i] = '0'; } } } if(strlen(s) < 2 * cnt)cnt = strlen(s) - cnt...
256
memory_bytes
{'s_id': 's069738482', 'p_id': 'p03073', 'u_id': 'u008829811', 'date': '1555241207', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '263', 'memory': '256', 'code_size': '357'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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[1000000];\n scanf(\"%s\",&s);\n int cnt = 0;\n for(int i = 1;i < s...
CDSS_73835
CDSS
#include<stdio.h> int leap(int x){ if(x % 400 == 0)return 1; if(x % 100 == 0)return 0; if(x % 4 == 0)return 1; return 0; } int main(){ int a, b, num, i, first = 1; while(1){ scanf("%d%d", &a, &b); if(a == 0 && b == 0)return 0; if(!first)puts(""); first = 0; num = 0; for(i = a;i <= ...
612
memory_bytes
{'s_id': 's745306470', 'p_id': 'p00093', 'u_id': 'u611853667', 'date': '1349886387', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '422'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 leap(int x){\n if(x % 400 == 0)return 1;\n if(x % 100 == 0)return 0;\n if(x % 4 == 0)return 1;\n return 0...
CDSS_606260
CDSS
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #include<stdbool.h> typedef long long ll; typedef long double ld; #define rep(i,l,r)for(ll i=(l);i<(r);i++) #define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k)) #define rrep(i,l,r)for(ll i=(l);i>=(r);i--) #define rrepp(i,l,r,k)for(ll i=(l);i>=(r);i-=(k...
7,936
memory_bytes
{'s_id': 's211374190', 'p_id': 'p03196', 'u_id': 'u004279520', 'date': '1585537014', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '7936', 'code_size': '1998'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n#include<string.h>\n#include<stdbool.h>\ntypedef long long ll;\ntypedef long ...
CDSS_471712
CDSS
#include <stdio.h> #include <stdlib.h> int main (void) { int n, m; scanf("%d%d", &n, &m); printf("%d\n", ((n+m)*(n+m-1)/2) - (n*m)); return EXIT_SUCCESS; }
128
memory_bytes
{'s_id': 's697981353', 'p_id': 'p02729', 'u_id': 'u263564761', 'date': '1585143866', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', '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>\n#include <stdlib.h>\n\nint main (void) {\n int n, m;\n scanf(\"%d%d\", &n, &m);\n\n printf(\"%d\\n\", ((n...
CDSS_510520
CDSS
#include <stdio.h> #include <string.h> int main(){ int i,len,cnt=0; char s[110]; scanf("%s",&s); len = strlen(s); if(len%2==0){ for(i=0;i<len/2;i++){ if(s[i]!=s[len-1-i]) { cnt++;} //printf("%c, %c, %d\n",s[i],s[len-1-i],i); } } else { for(i=0;i<len/2;i++){ if(s[i]!=s[len-1-i]) { ...
128
memory_bytes
{'s_id': 's966079805', 'p_id': 'p02836', 'u_id': 'u062865912', 'date': '1575857678', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '427'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(){\n\n\tint i,len,cnt=0;\n\tchar s[110];\n\t\n\tscanf(\"%s\",&s);\n\tlen = strlen(...
CDSS_564519
CDSS
S['= r'],m[4]['= r'],z,d[4]={0,-2},k,i;f(i){m[k][i]=S[i]+47?0:m[k][i]?:1+f(d[k]-~i);}main(t){for(scanf("%*d%d",d),d[2]=-*d-2;S[++i-~*d]=~getchar(););for(;--i;z=fmax(z,1-t))for(t=k=4;k--;)t-=f(i-~*d);printf("%d",z);}
78,464
memory_bytes
{'s_id': 's862013822', 'p_id': 'p03014', 'u_id': 'u657913472', 'date': '1560241319', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '211', 'memory': '78464', 'code_size': '215'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nS['= r'],m[4]['= r'],z,d[4]={0,-2},k,i;f(i){m[k][i]=S[i]+47?0:m[k][i]?:1+f(d[k]-~i);}main(t){for(scanf(\"%*d%d\",d),d[2]=-*d-2;S[++i-~...
CDSS_174939
CDSS
#include <stdio.h> typedef struct { char suit, value; } Card; void bubble(Card A[], int N) { int i,j; Card t; for(i = 0; i<N; i++) { for(j = N-1; j >= i; j--) { if(A[j].value < A[j-1].value) { t = A[j]; A[j] = A[j-1]; A[j-1] = t; } } } } void selection(Card A[], int N) { int i,j...
2,056
memory_bytes
{'s_id': 's488016857', 'p_id': 'p02261', 'u_id': 'u169177355', 'date': '1564471308', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '1313'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 { char suit, value; } Card;\n\nvoid bubble(Card A[], int N) {\n int i,j;\n Card t;\n for(i = 0...
CDSS_331762
CDSS
#include <stdio.h> int main(void) { int h,w; while(scanf("%d%d", &h,&w)){ if(h == 0 && w == 0) break; int i,c; for(i =0; h > i; i++){ for(c = 0; w > c; c++){ printf("#"); } printf("\n"); } printf("\n"); ...
2,100
memory_bytes
{'s_id': 's709279154', 'p_id': 'p02403', 'u_id': 'u170760250', 'date': '1528376793', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '339'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 while(scanf(\"%d%d\", &h,&w)){\n if(h == 0 && w == 0)\n b...
CDSS_105165
CDSS
#include <stdio.h> #include <string.h> int main(void) { char ring[21]; char temp[11]; char search_ring[11]; int num; int ok; int i, j; scanf("%s", search_ring); getchar(); scanf("%d", &num); ok = 0; for (i = 0; i < num; i++){ scanf("%s", ring); strcpy(temp, ring); strcat(ring, temp); for ...
0
memory_bytes
{'s_id': 's856570165', 'p_id': 'p00478', 'u_id': 'u032763525', 'date': '1315391041', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '480'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tchar ring[21];\n\tchar temp[11];\n\tchar search_ring[11];\n\tint num;\...
CDSS_53253
CDSS
#include <stdio.h> #include <ctype.h> int main() { char c; while(scanf("%c", &c) != EOF) printf("%c", toupper(c)); return 0; }
524
memory_bytes
{'s_id': 's538126975', 'p_id': 'p00020', 'u_id': 'u146816547', 'date': '1469958534', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '139'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <ctype.h>\n\nint main()\n{\n char c;\n\n while(scanf(\"%c\", &c) != EOF)\n printf(\"%c\", toupper(c)...
CDSS_198699
CDSS
#include<stdio.h> typedef long long l; int n,k; l T[100000]; int check(l P){ int i=0; int j; for(j=0;j<k;j++){ l s=0; while(s+T[i]<=P){ s+=T[i]; i++; if(i==n){return n;} } } return i; } int solve(){ l left=0; l right=100000*10000; l mid; int v; while(right - left > 1){ mid=(left+right)/2...
2,528
memory_bytes
{'s_id': 's815587085', 'p_id': 'p02270', 'u_id': 'u177158537', 'date': '1574408299', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2528', 'code_size': '565'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 l;\n\nint n,k;\nl T[100000];\n\nint check(l P){\n\tint i=0;\n\tint j;\n\tfor(j=0;j<k;j++){\n\t\tl...
CDSS_233691
CDSS
#include<stdio.h> #include<math.h> int main(){ double x1, x2, y1, y2, a; scanf("%lf %lf %lf %lf", &x1, &y1, &x2, &y2); a = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2); printf("%.11lf", sqrt(a)); return 0; }
656
memory_bytes
{'s_id': 's298924358', 'p_id': 'p02379', 'u_id': 'u611684804', 'date': '1441807631', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '656', '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#include<math.h>\n\nint main(){\n\n\tdouble x1, x2, y1, y2, a;\n\n\tscanf(\"%lf %lf %lf %lf\", &x1, &y1, &x2, &y2);...
CDSS_575595
CDSS
#include<stdio.h> int main(void){ int n,b,t,ans=0; scanf("%d %d %d",&n,&b,&t); while(1){ if(t<n){ break; } ans+=b; t-=n; } printf("%d\n",ans); }
128
memory_bytes
{'s_id': 's901178988', 'p_id': 'p03059', 'u_id': 'u699796231', 'date': '1556413385', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '210'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,b,t,ans=0;\n scanf(\"%d %d %d\",&n,&b,&t);\n while(1){\n if(t<n){\n ...
CDSS_59129
CDSS
#include<stdio.h> int main() { int a[101]={0},b[101]={-1}; int i,j=0,inp,max=0; while(scanf("%d",&inp) != EOF) { if(inp<0 || inp>100) continue; a[inp]++; } for(i=0;i<101;i++) { if(max<a[i]) { max=a[i]; } } for(i=0;i<101;i++) { if(max==a[i]) { printf("%d\n",i); } } return 0; }
596
memory_bytes
{'s_id': 's517629010', 'p_id': 'p00028', 'u_id': 'u429399627', 'date': '1368854981', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '316'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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[101]={0},b[101]={-1};\n\tint i,j=0,inp,max=0;\n\n\twhile(scanf(\"%d\",&inp) != EOF)\n\t{\n...
CDSS_412840
CDSS
#include <stdio.h> #include <stdlib.h> int hayamin(const void* x, const void* y) { int a = *(const int*)x, b = *(const int*)y; return a < b ? -1 : a > b; } int N; int A[271828], B[271828]; int main(void) { int i; int ayane, asumi; if (scanf("%d", &N) != 1) return 1; for (i = 0; i < N; i++) { if (scanf("%d%d"...
4,048
memory_bytes
{'s_id': 's357678900', 'p_id': 'p02661', 'u_id': 'u646118499', 'date': '1590981444', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '91', 'memory': '4048', 'code_size': '616'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 hayamin(const void* x, const void* y) {\n\tint a = *(const int*)x, b = *(const int*)y;\...
CDSS_403401
CDSS
#include <stdio.h> int main(void) { int a,b; scanf("%d%d",&a,&b); if(b%2==1){printf("No");} else if(a*2>b){printf("No");} else if(a*4<b){printf("No");} else{printf("Yes");} return 0; }
1,732
memory_bytes
{'s_id': 's015187851', 'p_id': 'p02640', 'u_id': 'u845348122', 'date': '1592183391', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1732', 'code_size': '193'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 a,b;\n\tscanf(\"%d%d\",&a,&b);\n\tif(b%2==1){printf(\"No\");}\n\telse if(a*2>b){printf(...
CDSS_78321
CDSS
#include<stdio.h> #include<stdlib.h> #define MAX 50000 int judge(const void* a,const void* b){ return *(long long int*)a-*(long long int*)b; } int main(){ long long int a[MAX]; long long int i,n,ans,wait; while(1){ scanf("%d",&n); if(n==0)break; for(i=0;i<MAX;i++){ a[i]=0; } for(i=0;i<n;i++){ sc...
1,108
memory_bytes
{'s_id': 's421214923', 'p_id': 'p00112', 'u_id': 'u884495090', 'date': '1354706718', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1108', 'code_size': '498'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#define MAX 50000\nint judge(const void* a,const void* b){\n\treturn *(long long int*)a-*(long ...
CDSS_596071
CDSS
#include<stdio.h> int a[10]; int b[10]; int c[10]={0,2,5,5,4,5,6,3,7,6}; int t,n,m; int f(int d){ if(a[d]){ b[d]++; n-=c[d]; return 1; } return 0; } int main(){ scanf("%d%d",&n,&m); for(int i=0;i<m;i++){ scanf("%d",&t); a[t]++; } if(a[1]){ //1を使う if(n%2==1){ //1,1 if(f(7));//7111 //3,1...
128
memory_bytes
{'s_id': 's203120233', 'p_id': 'p03128', 'u_id': 'u870468721', 'date': '1550417215', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '2656'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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[10];\nint b[10];\nint c[10]={0,2,5,5,4,5,6,3,7,6};\nint t,n,m;\n\nint f(int d){\n\tif(a[d]){\n\t\tb[d]++;\n\t...
CDSS_345114
CDSS
#include <stdio.h> int main(void) { int n, no, a, i, j; char m; int x[4][13] ={{0}}; scanf("%d",&n); while(n > 0){ scanf(" %c",&m); scanf("%d",&no); if(m == 'S') a = 0; if(m == 'H') a = 1; if(m == 'C') a = 2; if(m == 'D') a = 3; x[a][no - 1] = 1; n--; } for(i = 0; i < 4; i++){ for(j = 0; j < 13; j++){ if(x[i][j] =...
596
memory_bytes
{'s_id': 's125188496', 'p_id': 'p02408', 'u_id': 'u948281687', 'date': '1457077861', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '455'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\nint n, no, a, i, j;\nchar m;\nint x[4][13] ={{0}};\n\nscanf(\"%d\",&n);\n\nwhile(n > 0){\nscanf...
CDSS_746293
CDSS
#include<stdio.h> #include<math.h> void QSort(long long x[ ], int left, int right); void Swap(long long x[ ], int i, int j); int main(){ int n; scanf("%d",&n); long long l[n*2]; for(int i=0;i<n*2;i++){ scanf("%lld",&l[i]); } QSort(l,0,2*n-1); long long k=0; for(int i=0;i<n;...
128
memory_bytes
{'s_id': 's818901723', 'p_id': 'p04047', 'u_id': 'u223904637', 'date': '1521664047', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1914'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n \nvoid QSort(long long x[ ], int left, int right);\nvoid Swap(long long x[ ], int i, int j);\n \...
CDSS_397038
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main() { char s[200002], t[200002]; scanf("%s", s); scanf("%s", t); int n=strlen(s); int c=0; for(int i=0;i<n;i++){ if(s[i]!=t[i]) c++; } printf("%d", c); return 0; }
2,540
memory_bytes
{'s_id': 's250482282', 'p_id': 'p02622', 'u_id': 'u301600230', 'date': '1593306165', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '2540', 'code_size': '270'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n\nint main() {\n char s[200002], t[200002];\n scanf...
CDSS_662868
CDSS
#include <stdio.h> int main(void){ int a=0; int b=0; scanf("%d %d",&a,&b); if((a*b)%2){ printf("Odd"); }else{ printf("Even"); } return 0; }
128
memory_bytes
{'s_id': 's070857659', 'p_id': 'p03455', 'u_id': 'u175232503', 'date': '1516587030', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '151'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\tint a=0;\n\tint b=0;\n\tscanf(\"%d %d\",&a,&b);\n\tif((a*b)%2){\n\t\tprintf(\"Odd\");\n\t}els...
CDSS_273122
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; }
2,072
memory_bytes
{'s_id': 's319755026', 'p_id': 'p02391', 'u_id': 'u059178077', 'date': '1528772531', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2072', 'code_size': '215'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 scanf(\"%d%d\", &a,&b);\n\n if (a < b) {\n printf(\"a < b\\n\");\n\n } else if (a >...
CDSS_676660
CDSS
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <math.h> #include <limits.h> #define Max(a, b) ((a) > (b) ? (a) : (b)) #define Min(a, b) ((a) > (b) ? (b) : (a)) #define abs(x) ((x) > 0 ? (x) : -(x)) #define MOD 1000000007 //10^9 + 7 #define endl printf("\n") typedef long long ll...
128
memory_bytes
{'s_id': 's122241001', 'p_id': 'p03546', 'u_id': 'u801102476', 'date': '1566326723', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '128', 'code_size': '1067'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include <string.h>\n#include <math.h>\n#include <limits.h>\n#define Ma...
CDSS_484663
CDSS
#include <stdio.h> int main(void){ int n, r, k; scanf("%d%d", &n, &r); if(n >= 10){ printf("%d", r); }else{ k = r + 100 * (10 - n); printf("%d", k); } }
128
memory_bytes
{'s_id': 's186823237', 'p_id': 'p02765', 'u_id': 'u320681122', 'date': '1582423561', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '198'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, r, k;\n scanf(\"%d%d\", &n, &r);\n\n if(n >= 10){\n printf(\"%d\", r);\...
CDSS_128571
CDSS
/* A3001.c */ #include <stdio.h> #include <stdlib.h> int n; struct jk_st { double gpa; int point; int order; } data[100000]; int compA( const void * a , const void * b ) { if( ((struct jk_st * )a)->gpa > ((struct jk_st * )b)->gpa) return -1; else if( ((struct jk_st * )a)->gpa == ((struct jk_st *...
4,684
memory_bytes
{'s_id': 's153809418', 'p_id': 'p02099', 'u_id': 'u708993917', 'date': '1572088091', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '4684', 'code_size': '1449'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*\nA3001.c\n*/\n\n#include <stdio.h>\n#include <stdlib.h>\nint n;\nstruct jk_st\n{\n double gpa;\n int point;\n int order;\n} data...
CDSS_120379
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> int T[300][300],W[300],n; int dfs(int i,int j){ if(~T[i][j])return T[i][j]; if(abs(W[i]-W[j])<=1){ if(i+1==j)return 2; if(dfs(i+1,j-1)==j-i-1)return T[i][j]=j-i+1; } int r=0,t,k=i; for(;k<j;k++){ t=dfs(i,k)+dfs(k+1,j); r=r>t?r:t; } return T[i][j]...
984
memory_bytes
{'s_id': 's955396929', 'p_id': 'p01096', 'u_id': 'u300645821', 'date': '1480329728', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1110', 'memory': '984', 'code_size': '468'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 T[300][300],W[300],n;\nint dfs(int i,int j){\n\tif(~T[i][j])return T...
CDSS_624925
CDSS
#include<stdio.h> #include<math.h> int min(int a, int b) { if (a < b) return a; else return b; } int main() { int n, k; scanf("%d %d", &n, &k); int x[100005]; int i; for (i = 0; i < n; i++) scanf("%d", &x[i]); if (k == 1) { printf("%d\n", abs(x[0])); ...
512
memory_bytes
{'s_id': 's324263783', 'p_id': 'p03276', 'u_id': 'u600300412', 'date': '1535246059', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '512', 'code_size': '572'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\nint min(int a, int b)\n{\n if (a < b)\n return a;\n else\n return b;\n}\nint ...
CDSS_690733
CDSS
#include <stdio.h> int main(){ int A, B, C, D; scanf("%d %d %d %d", &A, &B, &C, &D); if(A <= C) { if(B <= C) { printf("0"); } else if(B > C && B <= D) { printf("%d", B - C); } else if(B > D) { printf("%d", D - C); } } else if(A > C) { if(D <= A) { printf("0"); } else if(D > A ...
128
memory_bytes
{'s_id': 's482779857', 'p_id': 'p03632', 'u_id': 'u833251692', 'date': '1502587457', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '413'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(){\n\tint A, B, C, D;\n\n\tscanf(\"%d %d %d %d\", &A, &B, &C, &D);\n\n\tif(A <= C) {\n\t\tif(B <= C) {...
CDSS_520461
CDSS
#include<stdio.h> #include<math.h> int main(void){ #define PI 3.141592653589793 int a,b,x; double ad,bd,xd; double dgr; scanf("%d %d %d",&a,&b,&x); ad = (double)a; bd = (double)b; xd = (double)x; if ( a*a*b > 2*x){ dgr = atan(ad*bd*bd/(2*xd)) * 180 / PI; }else{ dgr = atan(2*(ad*ad*bd - xd)/(...
128
memory_bytes
{'s_id': 's977902572', 'p_id': 'p02882', 'u_id': 'u523698212', 'date': '1572227646', '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<math.h>\nint main(void){\n #define PI 3.141592653589793\n int a,b,x;\n double ad,bd,xd;\n double dgr;\...
CDSS_654302
CDSS
//O(N^2) #include <stdio.h> #include <x86intrin.h> typedef unsigned int uint; #pragma GCC optimize ("O3") inline uint read(void){ int flag = 0; uint num = 0; for(;;){ uint c = getchar_unlocked() - 48; if(c < 10){ num = num*10+c; flag = 1; }else if(flag){ ...
1,792
memory_bytes
{'s_id': 's546756794', 'p_id': 'p03412', 'u_id': 'u188638030', 'date': '1521493516', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2503', 'memory': '1792', 'code_size': '3974'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//O(N^2)\n#include <stdio.h>\n#include <x86intrin.h>\ntypedef unsigned int uint;\n#pragma GCC optimize (\"O3\")\ninline uint read(void...
CDSS_141009
CDSS
#include<stdio.h> #include<string.h> int moguru(int[][100],int); int n,ans[100]; int main(){ int i,j,a[100][100],mita[100],now,to,leng; scanf("%d",&n); for(i=0;i<n;i++){ ans[i]=-1; } for(i=0;i<n;i++) for(j=0;j<n;j++) a[i][j] = -1; for(i=0;i<n;i++){ scanf("%d",&now); scanf("%d",&now); ...
2,044
memory_bytes
{'s_id': 's165290380', 'p_id': 'p02242', 'u_id': 'u087396673', 'date': '1580110705', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2044', 'code_size': '731'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 moguru(int[][100],int);\nint n,ans[100];\nint main(){\n int i,j,a[100][100],mita[100],now,...
CDSS_698153
CDSS
#include <stdio.h> #include <string.h> int gu(char *s) { int len = strlen(s); if (len % 2 == 1) { return 0; } for (int i = 0; i < len/2; ++i) { if (s[i] != s[i+len/2]) { return 0; } } return 1; } int main(int argc, char **argv) { char s[256]; scanf("...
128
memory_bytes
{'s_id': 's658215425', 'p_id': 'p03672', 'u_id': 'u573784997', 'date': '1510078945', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '530'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint gu(char *s)\n{\n int len = strlen(s);\n if (len % 2 == 1) {\n return 0;\n ...
CDSS_717485
CDSS
#define _USE_MATH_DEFINES #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <limits.h> #include <stdbool.h> #define inf (INT_MAX-1) #define INF 9223372036854775807 #define PI 3.14159265358979323846; #define EPS 1e-10 #define sq(n) ((n)*(n)) #define rep(i,n) for(i=0;i<n;i++) #de...
128
memory_bytes
{'s_id': 's167795791', 'p_id': 'p03796', 'u_id': 'u389185410', 'date': '1543690960', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '2404'}
[ { "content": "Your task is to predict the memory 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#define _USE_MATH_DEFINES\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#include <limits.h> \n#...
CDSS_198008
CDSS
#include<stdio.h> #include<string.h> #define M 1046527 #define Nil (-1) #define L 14 char H[M][L]; int getChar(char ch){ if (ch == 'A') return 1; else if(ch == 'C') return 2; else if(ch == 'G') return 3; else if(ch == 'T') return 4; else return 0; } long long getKey(char str[]){ long long sum, p=1, i;...
15,976
memory_bytes
{'s_id': 's563416985', 'p_id': 'p02269', 'u_id': 'u609159835', 'date': '1544107552', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '180', 'memory': '15976', 'code_size': '1340'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\n#define M 1046527\n#define Nil (-1)\n#define L 14\n\nchar H[M][L];\n\nint getChar(char ch){...
CDSS_516461
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main() { int n; scanf("%d", &n); if(n%2==0) printf("%d", n/2-1); else printf("%d", n/2); return 0; }
128
memory_bytes
{'s_id': 's472722066', 'p_id': 'p02865', 'u_id': 'u530195688', 'date': '1573351434', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '191'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tint n;\n\tscanf(\"%d\", &n);\n\tif...
CDSS_96122
CDSS
int main() { int N, K, ans, sum, len; scanf("%d%d", &N, &K); ans = sum = K + 1; if (N <= sum) { printf("%d\n", N); return 0; } len = 2; while (1) { while (sum > len*K) len++; sum += len; if (sum > N) break; ans++; } printf("%d\n", ans); return 0; }
2,044
memory_bytes
{'s_id': 's663563379', 'p_id': 'p00389', 'u_id': 'u152830535', 'date': '1557227491', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '272'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nint main()\n{\n\tint N, K, ans, sum, len;\n\n\tscanf(\"%d%d\", &N, &K);\n\tans = sum = K + 1;\n\tif (N <= sum) {\n\t\tprintf(\"%d\\n\"...
CDSS_530996
CDSS
#include<stdio.h> #include<stdlib.h> int main(){ int n,i,sum=0; int a[30],b[30],c[30]; scanf("%d",&n); for(i=1;i<=n;i++){ scanf("%d",a+i); } for(i=1;i<=n;i++){ scanf("%d",b+i); } for(i=1;i<=n-1;i++){ scanf("%d",c+i); } for(i=1;i<=n;i++){ sum+=b...
128
memory_bytes
{'s_id': 's337809210', 'p_id': 'p02916', 'u_id': 'u776606088', 'date': '1567906723', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '440'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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,sum=0;\n int a[30],b[30],c[30];\n\n scanf(\"%d\",&n);\n\n f...
CDSS_650984
CDSS
#include <stdio.h> int main() { int a, b, k; scanf("%d %d %d", &a, &b, &k); int arr[k * 2]; int cnt = 0; int maxdata = a + k; int counter = (b - a + 1 <= k ? b - a + 1 : k); for (int i = 0; i < counter; i++) { //printf("%d\n", a + i); arr[i] = a + i; cnt++; ...
1,700
memory_bytes
{'s_id': 's193562210', 'p_id': 'p03386', 'u_id': 'u163680061', 'date': '1592654218', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1700', '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 <stdio.h>\n\nint main() {\n\n int a, b, k;\n scanf(\"%d %d %d\", &a, &b, &k);\n\n int arr[k * 2];\n\n int cnt = 0...
CDSS_225082
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> struct Node{ int key; struct Node *right, *left , *parent; }; struct Node *root , *NIL; struct Node * treeMinimum(struct Node *x) { while(x->left != NIL) x = x->left; return x; } struct Node * find(struct Node *u , int k) { while( u != NIL && k != u->...
20,476
memory_bytes
{'s_id': 's996623564', 'p_id': 'p02285', 'u_id': 'u648225325', 'date': '1575009999', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '380', 'memory': '20476', 'code_size': '2373'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nstruct Node{\n\tint key;\n\tstruct Node *right, *left , *parent;\n};...
CDSS_470189
CDSS
#include <stdio.h> int main(void){ int k,n; int longn = 0; scanf("%d",&k); scanf("%d",&n); int a[n]; for(int i = 0;i < n;i++){ scanf("%d ",&a[i]); if((i == n - 1) && (longn < (k - a[n-1] + a[0]))){ longn = k -a[n-1] + a[0]; } else if((a[i] - a[i-1])> longn && i > 0){ longn = a[i...
2,500
memory_bytes
{'s_id': 's485351516', 'p_id': 'p02725', 'u_id': 'u449180978', 'date': '1594063302', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '36', 'memory': '2500', 'code_size': '384'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int k,n;\n int longn = 0;\n scanf(\"%d\",&k);\n scanf(\"%d\",&n);\n int a[n];\n for(int ...
CDSS_246660
CDSS
#include<stdio.h> int main(void) { int x,a; scanf("%d", &x); a = x*x*x; printf("%d\n", a); return 0; }
1,812
memory_bytes
{'s_id': 's077363842', 'p_id': 'p02388', 'u_id': 'u772871709', 'date': '1513900822', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1812', 'code_size': '107'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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;\n\tscanf(\"%d\", &x);\n\ta = x*x*x;\n\tprintf(\"%d\\n\", a);\n\treturn 0;\n}\nPredict...
CDSS_568024
CDSS
#include <stdio.h> int main(){ int a,b; scanf("%d %d",&a,&b); if(a>=13) printf("%d\n",b); else if(a<=5) printf("0\n"); else printf("%d",b/2); return 0; }
128
memory_bytes
{'s_id': 's459167393', 'p_id': 'p03035', 'u_id': 'u410736938', 'date': '1562045027', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\n\nint main(){\n int a,b;\n scanf(\"%d %d\",&a,&b);\n \n if(a>=13) printf(\"%d\\n\",b);\n else if(a<=5) printf...
CDSS_609927
CDSS
#include<stdio.h> int main() { int str[10]; int i = 0; int j, ch, ans, res; while((ch = fgetc(stdin)) != '\n'){ str[i] = ch - '0'; i++; } res = 753; for(j = 0; j < i-2; j++){ ans = str[j]*100 + str[j+1]*10 + str[j+2] - 753; if(ans < 0) ans = -ans; if(...
128
memory_bytes
{'s_id': 's111615227', 'p_id': 'p03211', 'u_id': 'u816645498', 'date': '1545954369', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '389'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int str[10];\n int i = 0;\n int j, ch, ans, res;\n while((ch = fgetc(stdin)) != '\\n'...
CDSS_223760
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> struct Node { int key; struct Node *right, *left, *parent; }; typedef struct Node Node; Node *root, *NIL; Node * treeMinimum(Node *x) { while(x->left != NIL) x = x->left; return x; } Node * find(Node *u, int k) { while(u != NIL && k != u->key)...
20,540
memory_bytes
{'s_id': 's628328891', 'p_id': 'p02284', 'u_id': 'u534760593', 'date': '1580107364', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '290', 'memory': '20540', 'code_size': '2381'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 *right, *left, *parent;\n};\n...
CDSS_350637
CDSS
#include <stdio.h> int main(void) { int A[100][100], b[100], c[100] = {0}; int i,j,n,m; scanf("%d %d",&n,&m); for (i=0; i<n; i++) { for (j=0; j<m; j++) { scanf("%d",&A[i][j]); } } for (j=0; j<m; j++) { scanf("%d",&b[j]); } for (i=0; i<n; i++) { for (j=0; j<m; j++) { c[i] += A[i][j] * b[j] ; }...
640
memory_bytes
{'s_id': 's102003657', 'p_id': 'p02410', 'u_id': 'u799680650', 'date': '1453809900', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', '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\nint main(void)\n{\n\tint A[100][100], b[100], c[100] = {0};\n\tint i,j,n,m;\n\t\n\tscanf(\"%d %d\",&n,&m);\n\tfo...
CDSS_126759
CDSS
// AOJ 2529: Brainf*ck // 2018.2.7 bal4u #include <stdio.h> #include <math.h> #define ABS(a) ((a)>=0?(a):-(a)) char s[1003]; int memo[16]; char c4d[2] = {'-','+'}; char c4k[2] = {'<','>'}; void pr(char *s) { while (*s) putchar(*s++); } int main() { int i, k, pk, d, b, f; char *p; fgets(s, 1003, stdin); putc...
2,108
memory_bytes
{'s_id': 's076524791', 'p_id': 'p01641', 'u_id': 'u847467233', 'date': '1517973497', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '948'}
[ { "content": "Your task is to predict the memory 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 \t2529: Brainf*ck\n// 2018.2.7 bal4u\n \n#include <stdio.h>\n#include <math.h>\n\n#define ABS(a)\t((a)>=0?(a):-(a))\n\nchar s[1...
CDSS_81565
CDSS
#include <stdio.h> #define N 101 int check(int s,int d,int v); int root[N][N]; /* rooter path */ int distance[N]; /* already visited flag */ int main(){ int n,r,k,t; int p,s,d,v; int i,j; char c; int ans; /* init root */ for(i=0;i<N;i++){ for(j=0;j<N;j++){ root[i][j]...
1,784
memory_bytes
{'s_id': 's610361401', 'p_id': 'p00144', 'u_id': 'u198069342', 'date': '1505737371', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '50', 'memory': '1784', 'code_size': '1197'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 101\n\nint check(int s,int d,int v);\n\nint root[N][N]; /* rooter path */\nint distance[N]; /* already...
CDSS_115736
CDSS
#include <stdio.h> #define LOGOUT (0U) #define LOGIN (1U) #define PRE (0U) /* 計測開始前 */ #define RUN (1U) /* 計測中 */ #define END (2U) /* 計測終了後 */ #define MAX (1000U) int log[MAX][4]; int r; int calc(int ts,int te,int m); int main(){ int N,M,q,ts,te,m; int i; while(scanf("%d %d",&N,&M)...
2,004
memory_bytes
{'s_id': 's163312051', 'p_id': 'p00729', 'u_id': 'u198069342', 'date': '1521636781', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2004', 'code_size': '1991'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 LOGOUT (0U)\n#define LOGIN (1U)\n\n#define PRE (0U) /* 計測開始前 */\n#define RUN (1U) /* 計測中 */...
CDSS_725743
CDSS
#include<stdio.h> long long llmax(long long a,long long b){if(a>b){return a;}return b;} long long llmin(long long a,long long b){if(a<b){return a;}return b;} int main(void){ long long int q,i,o,t,j,l,s,z,r1=0,r2=0; scanf("%lld%lld%lld%lld%lld%lld%lld",&i,&o,&t,&j,&l,&s,&z); r1+=(o+(i/2)*2+(j/2)*2+(l/2)*2); if(i%2...
128
memory_bytes
{'s_id': 's683069647', 'p_id': 'p03840', 'u_id': 'u721060623', 'date': '1516941401', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '478'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nlong long llmax(long long a,long long b){if(a>b){return a;}return b;}\nlong long llmin(long long a,long long b){i...
CDSS_584681
CDSS
#include<stdio.h> #include<stdlib.h> typedef long long llint; int revcmp(const void *a,const void *b){ return *(llint*)a - *(llint*)b ? *(llint*)a > *(llint*)b ? -1 : 1 : 0; } int main(void){ register int i,j,l; int x,y,z,k; scanf("%d %d %d %d",&x,&y,&z,&k); llint a[x],b[y],c[z]; for(i = 0;i ...
35,452
memory_bytes
{'s_id': 's016319263', 'p_id': 'p03078', 'u_id': 'u491343140', 'date': '1587856387', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '234', 'memory': '35452', 'code_size': '896'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\ntypedef long long llint;\n\nint revcmp(const void *a,const void *b){\n return *(llint*)a -...
CDSS_478437
CDSS
#include <stdio.h> int main() { char s[80]; int i=0; scanf("%s",s); for (i=0;s[i]!='\0';i++) ; if (i==3){ if (s[0]=='A' || s[0]=='B'){ if ((s[0]==s[1]) && (s[1]==s[2])) printf("No"); else printf("Yes"); } } return 0; }
128
memory_bytes
{'s_id': 's725539838', 'p_id': 'p02753', 'u_id': 'u227778888', 'date': '1583637018', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '248'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tchar s[80];\n\tint i=0;\n\n\tscanf(\"%s\",s);\n\tfor (i=0;s[i]!='\\0';i++)\n\t\t;\n\n\tif (i==3...
CDSS_41070
CDSS
#include <stdio.h> int main(void){ int n; int i,j,k,l; int cnt; while(scanf("%d",&n) != EOF){ cnt=0; for(i=0; i<=9; i++){ for(j=0; j<=9; j++){ for(k=0; k<=9; k++){ for(l=0; l<=9; l++){ if(i+j+k+l == n){ ...
596
memory_bytes
{'s_id': 's921769882', 'p_id': 'p00008', 'u_id': 'u218114451', 'date': '1477377119', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '491'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int n;\n int i,j,k,l;\n int cnt;\n \n while(scanf(\"%d\",&n) != EOF){\n cn...