identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_347399
CDSS
#include <stdio.h> #include <math.h> int main(){ int card[4][14]; int num; char mark; int id; scanf("%d", &num); for(int m=0; m<4; m++){ for(int i=1; i<=13; i++){ card[m][i] = 0; } } for(int i=0;i<num;i++){ scanf("%*c%c %d", &mark, &id); //...
2,064
memory_bytes
{'s_id': 's324584131', 'p_id': 'p02408', 'u_id': 'u726320445', 'date': '1568727688', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '1232'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(){\n int card[4][14];\n int num;\n char mark;\n int id;\n\n scanf(\"%...
CDSS_84151
CDSS
#include <stdio.h> int main(void) { int i, n, num[105]; int i2, n2, step; while (1){ scanf("%d", &n); if (n == 0){ break; } step = 0; n2 = n; for (i = 0; i < n; i++){ scanf("%d", &num[i]); } for (i = 0; i < n; i++){ for (i2 = 0; i2 < n2; i2++){ if (num[i2] > num[i2...
600
memory_bytes
{'s_id': 's779115715', 'p_id': 'p00167', 'u_id': 'u135535121', 'date': '1375971242', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '535'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, num[105];\n\tint i2, n2, step;\n\t\n\twhile (1){\n\t\t\n\t\tscanf(\"%d\", &n);\n\...
CDSS_263372
CDSS
#include <stdio.h> int main(void) { int n,h,m,s; h < 60; m < 60; s < 60; scanf("%d\n",&n); h = n/3600; m = n%3600/60; s =n%60; printf("%d:%d:%d\n",h,m,s); return 0; }
2,040
memory_bytes
{'s_id': 's793525055', 'p_id': 'p02390', 'u_id': 'u935042117', 'date': '1523855127', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '179'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint n,h,m,s;\n\th < 60;\n\tm < 60;\n\ts < 60;\n\tscanf(\"%d\\n\",&n);\n\th = n/3600;\n\tm = ...
CDSS_637401
CDSS
#include<stdio.h> #include<stdlib.h> int main() { int a, b; scanf("%d %d", &a, &b); if(a<= 8 && b<=8 ) printf("Yay!\n"); else printf(":(\n"); return 0; }
128
memory_bytes
{'s_id': 's984396147', 'p_id': 'p03323', 'u_id': 'u089230684', 'date': '1538289597', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '182'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\nint main()\n{\n int a, b;\n scanf(\"%d %d\", &a, &b);\n if(a<= 8 && b<=8 )\n pr...
CDSS_716977
CDSS
#include<stdio.h> int n,ans; int main(){ scanf("%d",&n); ans=800*n-200*(n/15); printf("%d",ans); }
128
memory_bytes
{'s_id': 's379214244', 'p_id': 'p03795', 'u_id': 'u353919145', 'date': '1538757118', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '102'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint n,ans;\nint main(){\n\tscanf(\"%d\",&n);\n\tans=800*n-200*(n/15);\n\tprintf(\"%d\",ans);\n}\n\nPredict its memo...
CDSS_584406
CDSS
#include<stdio.h> #include<stdlib.h> #include<stdint.h> #include<inttypes.h> typedef int32_t i32; typedef int64_t i64; #define MIN(a,b) ((a) < (b) ? (a) : (b)) void run (void) { i64 n; scanf ("%" SCNi64, &n); i64 min = 1000000000000000LL; for (i32 i = 0; i < 5; ++i) { i64 a; scanf ("%" SCNi64, &a); ...
128
memory_bytes
{'s_id': 's016357916', 'p_id': 'p03077', 'u_id': 'u425248533', 'date': '1554585058', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '443'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<stdint.h>\n#include<inttypes.h>\n\ntypedef int32_t i32;\ntypedef int64_t i64;\n\n#defi...
CDSS_574705
CDSS
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> struct edge { int ix; int *v; }; struct res { int d, v; }; int *va, *vb; int *cnt; bool *visited; struct edge *e; struct res visit(int vertex) { struct res r, t; r.d = 0; r.v = vertex; visited[vertex] = true; for (int i = 0; i < e[vertex]....
21,504
memory_bytes
{'s_id': 's538100586', 'p_id': 'p03055', 'u_id': 'u081445141', 'date': '1557836144', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '94', 'memory': '21504', 'code_size': '1323'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nstruct edge {\n int ix;\n int *v;\n};\n\nstruct res {\n int d, v;\...
CDSS_538504
CDSS
#include <stdio.h> int main() { int a,b,c,d,e; scanf("%d",&a); scanf("%d",&b); c = a+b; d = a-b; e = a*b; if(e>d) { if(e>c) { printf("%d",e); } else { printf("%d",c); } } else if(d>c) { printf("%d",d); } else { printf("%d",c); } }
128
memory_bytes
{'s_id': 's510034494', 'p_id': 'p02945', 'u_id': 'u031853396', 'date': '1587268603', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '268'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n\tint a,b,c,d,e;\n\tscanf(\"%d\",&a);\n\tscanf(\"%d\",&b);\n\tc = a+b;\n\td = a-b;\n\te = a*b;\n\ti...
CDSS_280612
CDSS
int main(){ int a, b, c; scanf("%d%d%d", &a, &b, &c); if(a < b && b < c) printf("Yes\n"); else printf("No\n"); return 0; }
2,036
memory_bytes
{'s_id': 's988176637', 'p_id': 'p02392', 'u_id': 'u040291437', 'date': '1575261010', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '166'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nint main(){\n int a, b, c;\n \n scanf(\"%d%d%d\", &a, &b, &c);\n \n if(a < b && b < c)\n printf(\"Yes\\n\");\n el...
CDSS_486450
CDSS
#include <stdio.h> int main (void) { int a, b, c; scanf("%d %d %d", &a, &b, &c); if ((a == b && b != c) || (b == c && c != a) || (c == a && a != b)) { puts("Yes"); } else { puts("No"); } return 0; }
1,636
memory_bytes
{'s_id': 's643223727', 'p_id': 'p02771', 'u_id': 'u534985518', 'date': '1599067766', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1636', 'code_size': '246'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main (void) {\n int a, b, c;\n \n scanf(\"%d %d %d\", &a, &b, &c);\n \n if ((a == b && b != c) || ...
CDSS_693074
CDSS
#include<stdio.h> int main(){ int N; scanf("%d", &N); printf("ABC%d", N); return 0; }
128
memory_bytes
{'s_id': 's125904459', 'p_id': 'p03643', 'u_id': 'u767481489', 'date': '1576610623', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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\tint main(){\n int N;\n \tscanf(\"%d\", &N);\n \t\tprintf(\"ABC%d\", N);\n return 0;\n }\nP...
CDSS_238551
CDSS
#include <stdio.h> int main( void ) { unsigned char ubW_Ddice1[ 6 ]; unsigned char ubW_Ddice2[ 6 ]; unsigned char ubW_Dtrade; unsigned char ubW_Dcalc; unsigned char ubW_Ci; for( ubW_Ci = 0; ubW_Ci < 6; ubW_Ci++ ) { scanf("%d",&ubW_Ddice1[ubW_Ci]); } for( ubW_Ci = 0; ubW_Ci < 6; ubW_Ci++ ) { scanf("%d",&u...
580
memory_bytes
{'s_id': 's319220741', 'p_id': 'p02385', 'u_id': 'u548668974', 'date': '1430381750', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '2161'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tunsigned char ubW_Ddice1[ 6 ];\n\tunsigned char ubW_Ddice2[ 6 ];\n\tunsigned char ubW_D...
CDSS_239857
CDSS
#include <stdio.h> int main(void) { int x; scanf("%d",&x); printf("%d\n", x*x*x); return 0; }
2,048
memory_bytes
{'s_id': 's473756733', 'p_id': 'p02388', 'u_id': 'u883833394', 'date': '1546173170', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', '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>\n\nint main(void)\n{\n int x;\n scanf(\"%d\",&x);\n printf(\"%d\\n\", x*x*x);\n \n return 0;\n}\n\nP...
CDSS_56556
CDSS
#include <stdio.h> #include <math.h> int main() { int n,i; double xa ,ya ,ra ,xb ,yb ,rb ,dist; scanf("%d", &n); for(i=0;i<n;i++){ scanf("%lf %lf %lf %lf %lf %lf", &xa ,&ya ,&ra ,&xb ,&yb ,&rb); dist = sqrt((xb-xa)*(xb-xa)+(yb-ya)*(yb-ya)); if(dist>ra+rb) puts("0"); else ...
620
memory_bytes
{'s_id': 's457471433', 'p_id': 'p00023', 'u_id': 'u846318214', 'date': '1357100521', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '620', 'code_size': '432'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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,i;\n double xa ,ya ,ra ,xb ,yb ,rb ,dist;\n scanf(\"%d\", &n);\n...
CDSS_414133
CDSS
#include <stdio.h> int main() { int n; scanf("%d", &n); if ((n - 2) % 10 == 0) { printf("hon"); } if ((n - 4) % 10 == 0) { printf("hon"); } if ((n - 5) % 10 == 0) { printf("hon"); } if ((n - 7) % 10 == 0) { printf("hon"); } if ((n - 9) % 10 == 0) { printf("hon"); } if ((n -...
1,704
memory_bytes
{'s_id': 's956831872', 'p_id': 'p02675', 'u_id': 'u953314526', 'date': '1594790083', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1704', 'code_size': '573'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main() {\n int n;\n scanf(\"%d\", &n);\n if ((n - 2) % 10 == 0) {\n printf(\"hon\");\n }\n if ((n - 4)...
CDSS_637780
CDSS
#include <stdio.h> int main(){ int a, b; scanf("%d%d", &a, &b); printf(a <= 8 && b <= 8 ? "Yay!" : ":("); return 0; }
128
memory_bytes
{'s_id': 's802705745', 'p_id': 'p03323', 'u_id': 'u605917063', 'date': '1529198335', '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 int a, b;\n scanf(\"%d%d\", &a, &b);\n printf(a <= 8 && b <= 8 ? \"Yay!\" : \":(\");\n ...
CDSS_375294
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <ctype.h> #include <inttypes.h> //int compare_int(const void *a, const void *b){//qsort 整数比較< // return *(int*)a - *(int*)b; //} //int compare_int2(const void *a, const void *b){//qsort 整数比較> // return *(int*)b - *(int*)a; //} // //...
1,732
memory_bytes
{'s_id': 's571599218', 'p_id': 'p02547', 'u_id': 'u607307520', 'date': '1600542479', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1732', 'code_size': '815'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 <ctype.h>\n#include <inttypes.h>\n\n//int co...
CDSS_157552
CDSS
#include<stdio.h> int IsPrime(int x) { int i; if(x == 2) return 1; if(x < 2) return 0; for(i = 2; i*i <= x; i++){ if(x % i == 0) return 0; } return 1; } int main(void){ int n, num, i, count=0; scanf("%d", &n); //個数入力 for(i = 0; i < n; i++){ scanf("%d", &num); /...
2,104
memory_bytes
{'s_id': 's445860601', 'p_id': 'p02257', 'u_id': 'u047611969', 'date': '1525797967', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2104', 'code_size': '426'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint IsPrime(int x) {\n int i;\n if(x == 2) return 1;\n if(x < 2) return 0;\n for(i = 2; i*i <= x; i++){...
CDSS_104741
CDSS
#include <stdio.h> int main(void) { int a,b,c,d,x,y; scanf("%d\n%d\n%d\n%d\n",&a,&b,&c,&d); 1<=x<=59; 1<=y<=59; x=(a+b+c+d)/60; y=(a+b+c+d)%60; printf("%d\n%d\n",x,y); return 0; }
600
memory_bytes
{'s_id': 's252112870', 'p_id': 'p00477', 'u_id': 'u198452054', 'date': '1464251670', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '188'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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,c,d,x,y;\n\tscanf(\"%d\\n%d\\n%d\\n%d\\n\",&a,&b,&c,&d);\n\t1<=x<=59;\n\t1<=y<=59;\n...
CDSS_531938
CDSS
#include<stdio.h> int main(void) { char a[4],b[4]; int i,j; scanf("%s",a); scanf("%s",b); j=0; for(i=0;i<3;i++){ if(a[i]==b[i]){ j++; } } printf("%d",j); return 0; }
128
memory_bytes
{'s_id': 's476603816', 'p_id': 'p02921', 'u_id': 'u876653122', 'date': '1575907503', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '180'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tchar a[4],b[4];\n\tint i,j;\n\tscanf(\"%s\",a);\n\tscanf(\"%s\",b);\n\tj=0;\n\tfor(i=0;i<3;i++...
CDSS_87159
CDSS
i,f,p[5];main(){for(;~scanf("%d",p+i);i-5?:({for(;i;)puts(f%5+1-p[5-i--]?f%5-p[4-i]%3?"3":"1":"2");f=i;}))f|=1<<p[i++];}
0
memory_bytes
{'s_id': 's318072864', 'p_id': 'p00205', 'u_id': 'u720672771', 'date': '1265923776', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '120'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\ni,f,p[5];main(){for(;~scanf(\"%d\",p+i);i-5?:({for(;i;)puts(f%5+1-p[5-i--]?f%5-p[4-i]%3?\"3\":\"1\":\"2\");f=i;}))f|=1<<p[i++];}\nPred...
CDSS_188189
CDSS
#include<stdio.h> int main(void){ int n,q,i,j,c=0; int s[10000],t[500]; scanf("%d",&n);//n?????\??? //s?????\??? for(i=0; i<n ; i=i+1 ){ scanf("%d", &s[i] ); } scanf("%d",&q);//q?????\??? //t?????\??? for(i=0;i<q ; i=i+1){ scanf("%d",&t[i]); } //??¢?´¢(??°?????°??????) //q?????°????????? for...
640
memory_bytes
{'s_id': 's017921474', 'p_id': 'p02267', 'u_id': 'u560574413', 'date': '1469338665', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '553'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,q,i,j,c=0;\n\tint s[10000],t[500];\n\tscanf(\"%d\",&n);//n?????\\???\n\t\n\t//s?????\\???\...
CDSS_129226
CDSS
/* * C言語のサンプルプログラム - Webkaru * - フィボナッチ数の計算 - */ #include <stdio.h> int main(void) { /* 変数の宣言 */ int n; int f0, f1, f2; int count=0; f0 = 0; f1 = 1; scanf("%d",&n); /* フィボナッチ数の計算 */ while(n<=44) { count++; // フィボナッチ数の計算 f2 = f1 + f0; if(n==count){ printf("%d\n",f2); ...
2,112
memory_bytes
{'s_id': 's690436409', 'p_id': 'p02233', 'u_id': 'u524202128', 'date': '1532052923', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '548'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*\n * C言語のサンプルプログラム - Webkaru\n * - フィボナッチ数の計算 -\n */\n#include <stdio.h>\n \nint main(void)\n{\n /* 変数の宣言 */\n int n;\n int f0, f...
CDSS_127672
CDSS
// AOJ 2720: Identity Function // 2017.10.9 bal4u@uu #include <stdio.h> #include <math.h> #define SIZE 25 int size; int factor[SIZE]; int ptbl[] = { 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131,...
1,776
memory_bytes
{'s_id': 's970074115', 'p_id': 'p01821', 'u_id': 'u847467233', 'date': '1507551471', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1320', 'memory': '1776', 'code_size': '2635'}
[ { "content": "Your task is to predict the memory 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 2720: Identity Function\n// 2017.10.9 bal4u@uu\n\n#include <stdio.h>\n#include <math.h>\n\n#define SIZE 25\nint size;\nint fac...
CDSS_640174
CDSS
/* ex4_3 potter0723sw */ #include <stdio.h> int add (int factorial); int dif (int minuend,int subtrahend); int main(void) { int diff, heighta, heightb, ans, addition; scanf("%d %d", &heighta, &heightb); diff = dif(heightb,heighta);//塔の差を計算 addition = add(diff);//東の塔の高さを出す ans = dif(addition...
128
memory_bytes
{'s_id': 's693776834', 'p_id': 'p03328', 'u_id': 'u090523598', 'date': '1590691073', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '830'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* ex4_3\n potter0723sw */\n\n#include <stdio.h>\n\nint add (int factorial);\nint dif (int minuend,int subtrahend);\n\nint main(v...
CDSS_307213
CDSS
#include <stdio.h> int main(void) { int a, b, c, i, count = 0; scanf("%d %d %d", &a, &b, &c); for (i = a; i <= b; ++i ){ if (c % i) ; else ++count; } printf("%d\n", count); return 0; }
2,100
memory_bytes
{'s_id': 's606482404', 'p_id': 'p02398', 'u_id': 'u048655558', 'date': '1587445731', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '230'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int a, b, c, i, count = 0;\n\n scanf(\"%d %d %d\", &a, &b, &c);\n\n for (i = a; i <...
CDSS_717978
CDSS
#include <stdio.h> #include<string.h> int main(void){ unsigned long long n,m; scanf("%llu%llu",&n,&m); if(2*n>=m)printf("%lld\n",m/2); else if((m-2*n)<3)printf("%lld\n",n); else printf("%lld\n",n+(m-2*n)/4); return 0; }
128
memory_bytes
{'s_id': 's318218441', 'p_id': 'p03797', 'u_id': 'u869282786', 'date': '1496962394', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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#include<string.h>\nint main(void){\n unsigned long long n,m;\n scanf(\"%llu%llu\",&n,&m);\n if(2*n>=m)p...
CDSS_517632
CDSS
#include <stdio.h> int main(int argc, char const *argv[]) { int a,b; scanf("%d%d", &a,&b); if (a>=10 || b>=10) { printf("-1"); } else { printf("%d\n", a*b); } return 0; }
128
memory_bytes
{'s_id': 's860063276', 'p_id': 'p02879', 'u_id': 'u691276286', 'date': '1572741987', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '192'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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;\n scanf(\"%d%d\", &a,&b);\n if (a>=10 || b>=10) {\n prin...
CDSS_130038
CDSS
#include <stdio.h> int main() { int Fib[44],i,n; Fib[0]=1; Fib[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; }
596
memory_bytes
{'s_id': 's162697552', 'p_id': 'p02233', 'u_id': 'u359023956', 'date': '1498987202', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '196'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 Fib[44],i,n;\n \n Fib[0]=1;\n Fib[1]=1;\n\n scanf(\"%d\",&n);\n for(i=2; i<=n; i++) {\n ...
CDSS_229645
CDSS
#include <stdio.h> long H; long heap[500001]; long right(long i) { return 2 * i + 1; } long left(long i) { return 2 * i; } long parent(long i) { return i / 2 ;} void maxHeapify(long i) { long r = right(i); long l = left(i); long max; if (r<=H && heap[r]>heap[i]) { max = r; } else { max = i; } if (l<...
5,608
memory_bytes
{'s_id': 's634786459', 'p_id': 'p02288', 'u_id': 'u588681149', 'date': '1554780272', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '5608', 'code_size': '709'}
[ { "content": "Your task is to predict the memory 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\n\nlong H;\nlong heap[500001];\n\nlong right(long i) { return 2 * i + 1; }\nlong left(long i) { return 2 * i; }...
CDSS_454849
CDSS
#include <stdio.h> #include <ctype.h> #include <string.h> int main() { int N; scanf("%d", &N); long long sum=0; int i; for (i = 1; i < N + 1; i++) { if (i % 3 != 0 && i % 5 != 0) { sum = sum + i; } } printf("%lld", sum); return 0; }
1,716
memory_bytes
{'s_id': 's880870894', 'p_id': 'p02712', 'u_id': 'u631562787', 'date': '1589327742', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1716', 'code_size': '250'}
[ { "content": "Your task is to predict the memory 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 <ctype.h>\n#include <string.h>\n\n\nint main() {\n\tint N;\n\tscanf(\"%d\", &N);\n\tlong long sum=0;\n\...
CDSS_103451
CDSS
#include <stdio.h> int main(){ int sum,n,i,a,k; while(1){ sum=0; scanf("%d",&a); if(a==0){ return 0; } for(i=0;i<9;i++){ scanf("%d",&n); sum+=n; } k=a-sum; printf("%d\n",k); } }
600
memory_bytes
{'s_id': 's929884668', 'p_id': 'p00466', 'u_id': 'u096341170', 'date': '1431344127', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '217'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int sum,n,i,a,k;\n while(1){\n sum=0;\n scanf(\"%d\",&a);\n if(a==0){\n return 0;\n }\n...
CDSS_239410
CDSS
#include <stdio.h> typedef struct { int cur; int n; int s; int e; int w; } Dice; typedef enum { POSITIVE, NEGATIVE } ROLL_DIR; void dice_init(Dice * dice) { dice->cur = 1; dice->n = 5; dice->s = 2; dice->e = 3; dice->w = 4; } void v_index_change(int *cu...
580
memory_bytes
{'s_id': 's340805753', 'p_id': 'p02386', 'u_id': 'u979453636', 'date': '1502332111', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '3963'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 int cur;\n int n;\n int s;\n int e;\n int w;\n} Dice;\n \ntypedef enum {\...
CDSS_426816
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int compare_int(const void *a, const void *b) { return *(int*)a - *(int*)b; // return *(long long*)a - *(long long*)b; } // qsort(A, b, sizeof(int), compare_int); int compare_string(const void *a, const void *b) { return strcmp(*(...
1,660
memory_bytes
{'s_id': 's076204902', 'p_id': 'p02693', 'u_id': 'u301843562', 'date': '1588468797', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '1660', 'code_size': '2242'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\n\nint compare_int(const void *a, const void *b)\n{\...
CDSS_93354
CDSS
#include <stdio.h> int main(void){ int a[]={1,5,10,50,100,500}; int b[5],x=0,i; scanf("%d %d %d %d %d %d",&b[0],&b[1],&b[2],&b[3],&b[4],&b[5]); for(i=0;i<6;i++){ x+=a[i]*b[i]; } if(x>=1000) printf("1\n"); else printf("0\n"); return 0; }
1,804
memory_bytes
{'s_id': 's900882706', 'p_id': 'p00291', 'u_id': 'u956083378', 'date': '1506652752', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1804', 'code_size': '279'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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[]={1,5,10,50,100,500};\n int b[5],x=0,i;\n scanf(\"%d %d %d %d %d %d\",&b[0],&b[1],&...
CDSS_158945
CDSS
#include<stdio.h> #include<math.h> int main(){ int i,c=0,N,f=0,a; //load number scanf("%d",&N); //N>0 ->roop while(N-->0){ //road number scanf("%d",&a); if(a==1)continue; //judge number for(i=2;i<=sqrt((double)a);i++){ //if a%j=0 flag=1 if(a%i==0) f=1; } if(f==1)f=0; ...
0
memory_bytes
{'s_id': 's825767580', 'p_id': 'p02257', 'u_id': 'u575882803', 'date': '1334282571', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '710', 'memory': '0', 'code_size': '423'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n\nint main(){\n\n int i,c=0,N,f=0,a;\n //load number\n scanf(\"%d\",&N);\n //N>0 ->roop\n wh...
CDSS_509424
CDSS
#include<stdio.h> int main() { int a,b,c; scanf("%d %d %d", &a, &b, &c); if(a+b+c>=22) { printf("bust\n"); } else { printf("win\n"); } return 0; }
128
memory_bytes
{'s_id': 's676907285', 'p_id': 'p02835', 'u_id': 'u816631826', 'date': '1581138558', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '200'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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+c>=22)\n {\n printf(\"b...
CDSS_696619
CDSS
#include <stdio.h> int main(){ int n,i; long long int data[200000]={0},a=0,b=0,t1=0,t2=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%lld",&data[i]); b+=data[i]; } for(i=0;i<n-1;i++){ a+=data[i]; b-=data[i]; if(a>b){ t1=a-b; }else{ t1=b-a; } if(i==0){ t2=t1; }else if(t2>t1){ t2...
1,664
memory_bytes
{'s_id': 's689076224', 'p_id': 'p03659', 'u_id': 'u287060310', 'date': '1500170141', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '23', 'memory': '1664', 'code_size': '370'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 n,i;\n\tlong long int data[200000]={0},a=0,b=0,t1=0,t2=0;\n\tscanf(\"%d\",&n);\n\t\n\tfor(i=0...
CDSS_191229
CDSS
#include<stdio.h> int linearSearch(int A[],int i,int key); int main(){ int i,n,o,A[10001],key,sum=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&A[i]); } scanf("%d",&o); for(i=0;i<o;i++){ scanf("%d",&key); if(linearSearch(A,n,key)!=-1){ sum++; } } printf("%d\n",sum); return 0; ...
2,104
memory_bytes
{'s_id': 's073317097', 'p_id': 'p02267', 'u_id': 'u864567579', 'date': '1544677224', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', '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>\nint linearSearch(int A[],int i,int key);\nint main(){\n int i,n,o,A[10001],key,sum=0;\n scanf(\"%d\",&n);\n for(...
CDSS_556402
CDSS
#include <stdio.h> #include <stdbool.h> int main() { char s[4]; int i = 0; scanf("%s", &s); bool isgood = true; if (s[0] == s[1]) isgood = false; if (s[1] == s[2]) isgood = false; if (s[2] == s[3]) isgood = false; if (isgood) { puts("Good"); }else{ puts("Bad"); ...
128
memory_bytes
{'s_id': 's611766771', 'p_id': 'p02993', 'u_id': 'u804880828', 'date': '1567290261', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\n#include <stdbool.h>\n\nint main() {\n char s[4];\n int i = 0;\n scanf(\"%s\", &s);\n bool isgood = tr...
CDSS_317062
CDSS
/* * main.c * * Created on: 2020/07/27 * Author: 113896 */ #include <stdio.h> #define PI 3.14159265358979 int main() { double r; scanf("%lf", &r); printf("%.6lf %.6lf", r*r*PI, r*2.0*PI); return 0; }
2,072
memory_bytes
{'s_id': 's957446589', 'p_id': 'p02400', 'u_id': 'u035401074', 'date': '1595817296', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2072', '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/*\n * main.c\n *\n * Created on: 2020/07/27\n * Author: 113896\n */\n#include <stdio.h>\n\n#define PI 3.14159265358979\n\nint m...
CDSS_424723
CDSS
#include <string.h> #include <stdio.h> #include <math.h> int main(void){ int x; scanf("%d",&x); for(int i=-200;i<200;i++) { for(int j=-200;j<200;j++) { if(pow(i,5)-pow(j,5)==x) { printf("%d %d",i,j); return 0; } } } }
2,548
memory_bytes
{'s_id': 's222211477', 'p_id': 'p02690', 'u_id': 'u190233776', 'date': '1588573634', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '19', 'memory': '2548', 'code_size': '255'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <string.h>\n#include <stdio.h>\n#include <math.h>\n\n\n\nint main(void){\n\t\n\tint x;\n\tscanf(\"%d\",&x);\n\n\tfor(int i=-2...
CDSS_235315
CDSS
#include<stdio.h> #include<math.h> int main(void) { double PI = acos(-1); int a, b; double C; scanf("%d %d %lf", &a, &b, &C); C = PI*C/180.0; printf("%lf\n", a*b * sin(C)/2.0); printf("%lf\n", a+b + sqrt( a*a + b*b - 2*a*b*cos(C))); printf("%lf\n", b*sin(C)); }
2,096
memory_bytes
{'s_id': 's046922220', 'p_id': 'p02380', 'u_id': 'u239892997', 'date': '1593193674', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2096', '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{\n double PI = acos(-1);\n int a, b;\n double C;\n scanf(\"%d %d %...
CDSS_28705
CDSS
/* AOJ 0002 Digit Number */ #include <stdio.h> int main(void) { int a, b, sum; int n_digits; while (scanf("%d %d", &a, &b) == 2) { sum = a + b; n_digits = 0; while (sum > 0) { n_digits++; sum /= 10; } printf("%d\n", n_digits); } r...
600
memory_bytes
{'s_id': 's893833786', 'p_id': 'p00002', 'u_id': 'u593170857', 'date': '1379243477', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '330'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* AOJ 0002 Digit Number */\n\n#include <stdio.h>\n\nint\nmain(void)\n{\n int a, b, sum;\n int n_digits;\n\n while (scanf(\"%...
CDSS_584527
CDSS
#include<stdio.h> int main(){ long n; long a[5]; int b; long c; scanf("%ld",&n); for(b=0;b<5;b++) scanf("%ld",&a[b]); c=a[0]; for(b=1;b<5;b++) if(a[b]<c) c=a[b]; long d; if(n%c==0) d=n/c; else d=(n/c)+1; printf("%ld",d+4); return 0; }
128
memory_bytes
{'s_id': 's138532694', 'p_id': 'p03077', 'u_id': 'u026973031', 'date': '1554582177', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '261'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 long n;\n long a[5];\n int b;\n long c;\n scanf(\"%ld\",&n);\n for(b=0;b<5;b++) scanf(\"%ld\",&...
CDSS_477338
CDSS
#include<stdio.h> #include<string.h> int main(){ char s[20]; char an1[20], an2[20], an3[20], an4[20], an5[20]; strcpy(an1, "hi"); strcpy(an2, "hihi"); strcpy(an3, "hihihi"); strcpy(an4, "hihihihi"); strcpy(an5, "hihihihihi"); gets(s); if(!(strcmp(s, an1)) || !(strcmp(s, an2)) || !(strcmp(s, an3)) || !(strcm...
128
memory_bytes
{'s_id': 's617095918', 'p_id': 'p02747', 'u_id': 'u337576892', 'date': '1583716632', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '397'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tchar s[20];\n\tchar an1[20], an2[20], an3[20], an4[20], an5[20];\n\tstrcpy(an1...
CDSS_240856
CDSS
#include<stdio.h> int main(){ int x; int output; scanf("%d",&x); output = x*x*x; printf("%d\n",output); return 0; }
596
memory_bytes
{'s_id': 's814954220', 'p_id': 'p02388', 'u_id': 'u083188241', 'date': '1436345171', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '120'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\nint x;\nint output;\n\nscanf(\"%d\",&x);\noutput = x*x*x;\n\nprintf(\"%d\\n\",output);\n\nreturn 0...
CDSS_196194
CDSS
#include<stdio.h> #include<string.h> #define M 1000000 #define NIL -1 #define L 14 char H[M][L]; /* Hash Table */ 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; } /* convert a string into an in...
14,280
memory_bytes
{'s_id': 's329249710', 'p_id': 'p02269', 'u_id': 'u393989512', 'date': '1501635883', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '210', 'memory': '14280', 'code_size': '1429'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 1000000\n#define NIL -1\n#define L 14\n \nchar H[M][L]; /* Hash Table */\n \nint g...
CDSS_585898
CDSS
#include <stdio.h> int main(void){ // Your code here! char b; scanf("%c",&b); switch(b){ case 'A': printf("T"); break; case 'T': printf("A"); break; case 'C': printf("G"); break; case 'G': printf("C"); break;...
128
memory_bytes
{'s_id': 's145743057', 'p_id': 'p03085', 'u_id': 'u675509234', 'date': '1559558027', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '329'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 // Your code here!\n char b;\n scanf(\"%c\",&b);\n switch(b){\n case 'A':\n ...
CDSS_298430
CDSS
#include <stdio.h> int main(){ int x=1; int i= 1; while(1){ scanf("%d", &x); if(x == 0){ break; } printf("Case %d: %d\n", i, x); i++; } return 0; }
2,040
memory_bytes
{'s_id': 's765851798', 'p_id': 'p02396', 'u_id': 'u471248802', 'date': '1527756237', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', '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>\n\nint main(){\n \n int x=1;\n int i= 1;\n \n while(1){\n scanf(\"%d\", &x);\n if(x ==...
CDSS_262356
CDSS
#include <stdio.h> int main(){ int S; scanf("%d",&S); printf("%d:%d:%d\n",S/3600,S%3600/60,S%3600%60%60); return 0; }
592
memory_bytes
{'s_id': 's791746369', 'p_id': 'p02390', 'u_id': 'u896626256', 'date': '1497426396', '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>\n\nint main(){\n\tint S;\n\tscanf(\"%d\",&S);\n\tprintf(\"%d:%d:%d\\n\",S/3600,S%3600/60,S%3600%60%60);\n\treturn 0...
CDSS_733698
CDSS
#include <stdio.h> #include <string.h> int main(){ char line[120]; char str[120]; char *p; int len; int flag = 0, i, flag2 = 0; fgets(line, sizeof(line), stdin); sscanf(line, "%s", &str ); len = strlen(str); p = str; for(i=0; i<len; i...
128
memory_bytes
{'s_id': 's354737049', 'p_id': 'p03957', 'u_id': 'u271719815', 'date': '1477271678', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '573'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(){\n char line[120];\n char str[120];\n char *p;\n int...
CDSS_316321
CDSS
#include<stdio.h> #include<math.h> #define pi 3.14159265359 int main() { double r,A,C; scanf("%lf",&r); A=pi*r*r; C=2*pi*r; printf("%lf %lf",A,C); return 0; }
2,100
memory_bytes
{'s_id': 's818774276', 'p_id': 'p02400', 'u_id': 'u771426914', 'date': '1524863400', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '221'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n#define pi 3.14159265359\nint main()\n{\n double r,A,C;\n scanf(\"%lf\",&r);\n ...
CDSS_225002
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,440
memory_bytes
{'s_id': 's925994868', 'p_id': 'p02285', 'u_id': 'u570958314', 'date': '1580107297', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '300', 'memory': '20440', '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\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};...
CDSS_650893
CDSS
#include<stdio.h> int main() { char str[3]; int resa = 0, resb = 0, resc = 0; scanf("%s", str); for (int i = 0; i < 3; i++) { if (str[i] == 'a') resa = 1; else if (str[i] == 'b') resb = 1; else if (str[i] == 'c') resc = 1; else resa = 0; } if (resa == 1 && resb ...
128
memory_bytes
{'s_id': 's313550975', 'p_id': 'p03385', 'u_id': 'u797674884', 'date': '1523150797', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '399'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 str[3];\n int resa = 0, resb = 0, resc = 0;\n\n scanf(\"%s\", str);\n\n for (int ...
CDSS_480155
CDSS
#include <stdio.h> int main(){ int ans=-1; int A,B; scanf("%d %d",&A,&B); for(int i=1;i<=20000;i++){ if((i*8)/100==A && (i*10)/100==B){ ans=i; break; } } printf("%d\n",ans); return 0; }
1,712
memory_bytes
{'s_id': 's308403281', 'p_id': 'p02755', 'u_id': 'u347116006', 'date': '1593748992', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '1712', 'code_size': '220'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 ans=-1;\n int A,B;\n scanf(\"%d %d\",&A,&B);\n for(int i=1;i<=20000;i++){\n if((i*8)/10...
CDSS_690638
CDSS
#include <stdio.h> #include <stdlib.h> int main(){ int a,b,c,d,st,end; scanf("%d%d%d%d",&a,&b,&c,&d); st = a > c ? a : c; end =b < d ? b : d ; if(end-st>=0) printf("%d",end-st); else printf("0"); return 0; }
128
memory_bytes
{'s_id': 's155027186', 'p_id': 'p03632', 'u_id': 'u353919145', 'date': '1503086909', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '257'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 int a,b,c,d,st,end;\n scanf(\"%d%d%d%d\",&a,&b,&c,&d);\n st =...
CDSS_710582
CDSS
#include<stdio.h> int main(void){ char s1[10],s2[10],s3[10],t='A'-'a'; scanf("%s %s %s",s1,s2,s3); printf("%c%c%c\n",s1[0]+t,s2[0]+t,s3[0]+t); return 0; }
128
memory_bytes
{'s_id': 's900933494', 'p_id': 'p03737', 'u_id': 'u506166992', 'date': '1530132048', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '170'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n char s1[10],s2[10],s3[10],t='A'-'a';\n scanf(\"%s %s %s\",s1,s2,s3);\n printf(\"%c%c%c\\...
CDSS_318212
CDSS
#include <stdio.h> #define NUM 10000 int main() { int a[NUM], b[NUM], ans[NUM], i = 0; char op[NUM]; while(1) { scanf("%d %c %d", &a[i], &op[i], &b[i]); if (op[i] == '?') { break; } i++; } i = 0; while(1) { if (op[i] == '+') { ans[i] = a[i]+b[i]; } if (op[i] == '-') { ans[i] = a[i]-...
616
memory_bytes
{'s_id': 's741286697', 'p_id': 'p02401', 'u_id': 'u666869674', 'date': '1452788986', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '616', '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#include <stdio.h>\n\n#define NUM 10000\n\nint main()\n{\n\tint a[NUM], b[NUM], ans[NUM], i = 0;\n\tchar op[NUM];\n\t\n\twhile(1) {\n\...
CDSS_222491
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> struct Node{ int key; struct Node *right, *left , *parent; }; struct Node *root , *NIL; void insert(int k) { struct Node *y = NIL; struct Node *x = root; struct Node *z; z = (struct Node *)malloc(sizeof(struct Node)); z->key = k; z->left = NIL; z-...
25,236
memory_bytes
{'s_id': 's053051524', 'p_id': 'p02283', 'u_id': 'u648225325', 'date': '1575008523', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '400', 'memory': '25236', 'code_size': '1193'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nstruct Node{\n\tint key;\n\tstruct Node *right, *left , *parent;\n};\n...
CDSS_184276
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 cur = nil->next; while(cur!=nil&&cur->key!=key){ cur=cur->next; } return ...
32,968
memory_bytes
{'s_id': 's490781022', 'p_id': 'p02265', 'u_id': 'u161614866', 'date': '1545951521', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '220', 'memory': '32968', 'code_size': '1682'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 *p...
CDSS_370864
CDSS
#include <stdio.h> #include <stdlib.h> void replace( char*, int ); int main( void ){ int times = 0; int digit = 0; int i; char word[201] = {'\0'}; while( 1 ){ scanf( "%s", &word ); if( word[0] == '-' ){ break; } scanf( "%d", &times ); ...
2,032
memory_bytes
{'s_id': 's553730269', 'p_id': 'p02420', 'u_id': 'u158367088', 'date': '1532741337', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2032', 'code_size': '1019'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 replace( char*, int );\nint main( void ){\n int times = 0;\n int digit = 0;\n ...
CDSS_245879
CDSS
#include <stdio.h> int main(int argc, const char * argv[]) { int x; scanf("%d",&x); printf("%d\n",x*x*x); return 0; }
596
memory_bytes
{'s_id': 's008010109', 'p_id': 'p02388', 'u_id': 'u642983072', 'date': '1502112774', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '132'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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, const char * argv[])\n\n{\n int x;\n scanf(\"%d\",&x);\n printf(\"%d\\n\",x*x*x);\n re...
CDSS_399926
CDSS
#include<stdio.h> int main(void){ int n,k; scanf("%d%d",&n,&k); int i; int p[n]; for(i=0;i<n;i++){ scanf("%d",&p[i]); } int tmp=0; int j=0; for(i=0;i<n;i++){ for(j=i+1;j<n;j++){ if(p[i]>p[j]){ tmp=p[i]; p[i]=p[j]; p[j]=tmp; } } } int sum=0; for(i=0...
1,664
memory_bytes
{'s_id': 's557495959', 'p_id': 'p02628', 'u_id': 'u148856092', 'date': '1592789198', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '1664', 'code_size': '386'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int n,k;\n scanf(\"%d%d\",&n,&k);\n int i;\n int p[n];\n for(i=0;i<n;i++){\n scanf(\"%d\"...
CDSS_742660
CDSS
//set many funcs template #include<stdio.h> #include<string.h> #include<stdlib.h> #define inf 1072114514 #define llinf 4154118101919364364 #define mod 1000000007 int max(int a,int b){if(a>b){return a;}return b;} int min(int a,int b){if(a<b){return a;}return b;} int zt(int a,int b){return max(a,b)-min(a,b);} int round(...
128
memory_bytes
{'s_id': 's380109242', 'p_id': 'p04030', 'u_id': 'u721060623', 'date': '1510114291', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '2840'}
[ { "content": "Your task is to predict the memory 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#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#define inf 1072114514\n#define llinf 4154118101...
CDSS_84167
CDSS
#include <stdio.h> #include <stdlib.h> int sort(int* Array, int n); int main(void){ while(1){ int n,a; scanf("%d",&n); if(n==0){break;} int* Array=(int*)malloc(n*sizeof(int)); for(int i=0;i<n;i++){ scanf("%d",&a); Array[i]=a; } int retval=sort(Array,n); printf("%d\n",ret...
1,992
memory_bytes
{'s_id': 's193749884', 'p_id': 'p00167', 'u_id': 'u371539389', 'date': '1585803490', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1992', '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\n\nint sort(int* Array, int n);\n\nint main(void){\n while(1){\n int n,a;\n scanf(\"%...
CDSS_684205
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX(a,b) (a > b ? a : b) #define MIN(a,b) (a < b ? a : b) const int inf = 1000000000; // 10^9 int main(){ int n,k;scanf("%d%d",&n,&k); int x[100]; for(int i = 0;i < n;i++){ scanf("%d",&x[i]); } int ans=0; for(int i = 0;i < n;i+...
256
memory_bytes
{'s_id': 's308331613', 'p_id': 'p03598', 'u_id': 'u596612094', 'date': '1584650914', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '398'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 MAX(a,b) (a > b ? a : b)\n#define MIN(a,b) (a < b ? a : b)\nco...
CDSS_594226
CDSS
#include <stdint.h> #include <inttypes.h> #include <stdio.h> size_t bsrch(int64_t ary[], size_t sz, int64_t v) { size_t low = 0; size_t high = sz - 1; while (low < high) { size_t mid = low + (high - low) / 2; if (ary[mid] < v) { low = mid + 1; } else { high = mid; } } return low...
3,584
memory_bytes
{'s_id': 's861758838', 'p_id': 'p03112', 'u_id': 'u081445141', 'date': '1551559338', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '75', 'memory': '3584', 'code_size': '1373'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdint.h>\n#include <inttypes.h>\n#include <stdio.h>\n\nsize_t bsrch(int64_t ary[], size_t sz, int64_t v)\n{\n size_t low =...
CDSS_470231
CDSS
#include <stdio.h> int main() { int i; int k, n; int first, pre, crnt, dist; int max = 0, max_i; scanf("%d%d", &k, &n); scanf("%d", &first); pre = first; for (i = 1; i < n; i++) { scanf("%d", &crnt); dist = crnt - pre; if (dist > max) { max = dist...
1,688
memory_bytes
{'s_id': 's626659028', 'p_id': 'p02725', 'u_id': 'u813269900', 'date': '1594060577', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '37', 'memory': '1688', 'code_size': '482'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 int k, n;\n int first, pre, crnt, dist;\n int max = 0, max_i;\n\n scanf(...
CDSS_224078
CDSS
#include<stdio.h> #include<math.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL Node root; Node treeMinimum(Node x){ while(x->left!=NIL){ x=x->left; } return x; //ok } Node treeMaximum(Node x){ while(x->right!...
20,552
memory_bytes
{'s_id': 's943388756', 'p_id': 'p02284', 'u_id': 'u827484500', 'date': '1547184495', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '280', 'memory': '20552', 'code_size': '2077'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nstruct node{\n struct node *right;\n struct node *left;\n struct node *parent;\n int key;\n...
CDSS_601645
CDSS
#include <stdio.h> int main(void){ int N, A, B, q = 0, q1 = 0, q2 = 0, q3 = 0; int P[100] = {}; int i; scanf("%d", &N); scanf("%d %d", &A, &B ); for( i=0 ; i<N ; i++ ) scanf("%d", &P[i]); for( i=0 ; i<N ; i++ ){ if(P[i] <= A) q1++; } for( i=0 ; i<N...
128
memory_bytes
{'s_id': 's421512526', 'p_id': 'p03156', 'u_id': 'u469872244', 'date': '1547328991', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '644'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int N, A, B, q = 0, q1 = 0, q2 = 0, q3 = 0;\n int P[100] = {};\n int i;\n \n scan...
CDSS_194706
CDSS
#include <stdio.h> int A[10000000]; int n; int binarySearch(int key) { int left = 0; int right = n; int mid; while (left < right){ mid = (left + right) / 2; if(key == A[mid]) return 1; if(key > A[mid]) left = mid + 1; else if(key < A[mid]) right = mid; } return 0; } int main() { int i, q, k; int c...
2,144
memory_bytes
{'s_id': 's457318651', 'p_id': 'p02268', 'u_id': 'u644619737', 'date': '1574864574', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2144', 'code_size': '518'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint A[10000000];\nint n;\n\nint binarySearch(int key)\n{\n\tint left = 0;\n\tint right = n;\n\tint mid;\n\t\n\tw...
CDSS_737913
CDSS
#include <stdio.h> #include <string.h> char Sa[105]; char Sb[105]; char Sc[105]; int main(){ scanf("%s",Sa); scanf("%s",Sb); scanf("%s",Sc); int len_A=strlen(Sa); int len_B=strlen(Sb); int len_C=strlen(Sc); int i,j,k,turn; i=0; j=0; k=0; turn=1; while(1){ if(i==len_A&&turn==1){ break; } if...
128
memory_bytes
{'s_id': 's112138005', 'p_id': 'p03998', 'u_id': 'u305950321', 'date': '1534299607', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '886'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nchar Sa[105];\nchar Sb[105];\nchar Sc[105];\n\nint main(){\n\n\tscanf(\"%s\",Sa);\n\tscanf(...
CDSS_334263
CDSS
#include <stdio.h> int main(){ int H,W; int i=0; int j=0; while(1){ scanf("%d %d",&H,&W); if(H==0 && W==0) break; for(i=0;i<H;i++){ for(j=0;j<W;j++){ if(i ==0 || i ==H-1 || j==0 || j==W-1){ printf("#"); ...
1,696
memory_bytes
{'s_id': 's378573893', 'p_id': 'p02404', 'u_id': 'u701413943', 'date': '1508416348', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1696', 'code_size': '503'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int H,W;\n int i=0;\n int j=0;\n while(1){\n scanf(\"%d %d\",&H,&W);\n i...
CDSS_689613
CDSS
#include<stdio.h> int main (){ char a[3]; scanf ("%s",a); if ( a[0] == a[2] ){ printf ("Yes");} else {printf ("No");} return 0; }
128
memory_bytes
{'s_id': 's941344547', 'p_id': 'p03631', 'u_id': 'u444555640', 'date': '1545716184', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '136'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 (){\nchar a[3];\n scanf (\"%s\",a);\n if ( a[0] == a[2] ){\n printf (\"Yes\");}\n else {printf (\"No\")...
CDSS_420620
CDSS
// AtCoder165 C #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <math.h> #include <assert.h> #include <string.h> #include <memory.h> #include <malloc.h> #include <stdlib.h> // qsortで用いる比較用関数.*a<*bならaが先になる. int compare(const void* a, const void* b) { return *(int*)a - *(int*)b; } int revcompare(const ...
1,716
memory_bytes
{'s_id': 's765127192', 'p_id': 'p02682', 'u_id': 'u955519695', 'date': '1589161158', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1716', 'code_size': '1782'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// AtCoder165 C\n\n#define _CRT_SECURE_NO_WARNINGS\n#include <stdio.h>\n#include <math.h>\n#include <assert.h>\n#include <string.h>\n#...
CDSS_572514
CDSS
#pragma region kyopuro_templates #include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #include<stdbool.h> #include<assert.h> #include<time.h> #include<ctype.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)) #def...
15,316
memory_bytes
{'s_id': 's568969371', 'p_id': 'p03044', 'u_id': 'u004279520', 'date': '1597201988', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '82', 'memory': '15316', 'code_size': '15456'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#pragma region kyopuro_templates\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n#include<string.h>\n#include<stdbool.h>\n#i...
CDSS_686337
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> #include <limits.h> int n,m,r,ans=1e9,tmp,count; int d[10],a[20000],b[20000],c[20000],cost[300][300]; bool visited[10]; int dfs(int a,int b){ visited[b]=true; count++; tmp+=cost[d[a]][d[b]]; if (count>=r-...
640
memory_bytes
{'s_id': 's022605387', 'p_id': 'p03608', 'u_id': 'u750028862', 'date': '1534253039', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '17', 'memory': '640', 'code_size': '1524'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <stdbool.h>\n#include <math.h>\n#include <limits.h>\n\nint n,m,...
CDSS_257670
CDSS
#include<stdio.h> int main (){ int a,b,m,s; scanf("%d %d", &a, &b); m = a * b; s = 2 * (a + b); printf( "%d %d\n" ,m , s); return 0; }
2,052
memory_bytes
{'s_id': 's225197138', 'p_id': 'p02389', 'u_id': 'u238403390', 'date': '1595473403', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '158'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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,m,s;\n scanf(\"%d %d\", &a, &b); \n m = a * b;\n s = 2 * (a + b);\n\n printf( ...
CDSS_641118
CDSS
#include "stdio.h" #include "stdlib.h" int digit(int A,int B); int main(void) { int N; scanf("%d",&N); int A,B,tmp; int min = 114514810; for(int i = 1;i <= N;i++) { A = i; B = N - i; tmp = digit(A,B); if(min > tmp) min = tmp; } if(min == 1 && N != 1) min = 10; print...
128
memory_bytes
{'s_id': 's878580695', 'p_id': 'p03331', 'u_id': 'u579882657', 'date': '1528389327', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '128', 'code_size': '1013'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 digit(int A,int B);\n\nint main(void)\n{\n int N;\n scanf(\"%d\",&N);\n int A,B,...
CDSS_174821
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> void bubblesort(char a[][3],int c[],int n){ int i=0,j,s = 0,flag = 1,k,m; char x[3]; while(flag != 0){ flag = 0; for(j = n-1;j > i;j--){ if(c[j-1] > c[j]){ k = c[j]; c[j] = c[j-1]; c[j-1] = k; strcpy(x,a[j]); strcpy(a[j],a[j-1]); strc...
2,104
memory_bytes
{'s_id': 's175239185', 'p_id': 'p02261', 'u_id': 'u640101808', 'date': '1576470991', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '1311'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nvoid bubblesort(char a[][3],int c[],int n){\n int i=0,j,s = 0,flag = ...
CDSS_139834
CDSS
#include <stdio.h> #define INF 10000 #define BLACK 1 #define WHITE 0 #define NIL -1 #define N 2000 int A[N][N]; int n; int prim() { int i, u, v, count=0, mincost; int p[N],d[N],color[N]; for( i=0 ; i<n ; i++ ){ d[i] = N; p[i]=NIL; color[i]=WHITE; } while(1){ mincost = INF; for( i=0 ; i<...
2,180
memory_bytes
{'s_id': 's653550717', 'p_id': 'p02241', 'u_id': 'u582635824', 'date': '1549249024', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2180', 'code_size': '845'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define INF 10000\n#define BLACK 1\n#define WHITE 0\n#define NIL -1\n#define N 2000\n\n\nint A[N][N];\nint n;\n\ni...
CDSS_579255
CDSS
#include <stdio.h> int main(void){ int A,B,ans=0; scanf("%d%d",&A,&B); ans += (A>B ? A-- : B--); ans += (A>B ? A : B); printf("%d",ans); return 0; }
128
memory_bytes
{'s_id': 's969766547', 'p_id': 'p03071', 'u_id': 'u564185267', 'date': '1573044445', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '160'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,ans=0;\n scanf(\"%d%d\",&A,&B);\n ans += (A>B ? A-- : B--);\n ans += (A>B ? A : B);\...
CDSS_635209
CDSS
#include <stdio.h> #include <math.h> int main() { char S[4]; int num = 0; for(int i = 0 ;i<4;i++) S[i] = getchar(); for(int i = 0;i<4;i++) { if(S[i] == '+') num++; else num--; } printf("%d",num); retur...
128
memory_bytes
{'s_id': 's007555140', 'p_id': 'p03315', 'u_id': 'u214502450', 'date': '1529805406', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '351'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\n\n\n\n\nint main()\n{\n \n \n char S[4];\n int num = 0;\n \n for(int i = 0 ...
CDSS_389287
CDSS
#include <stdio.h> int main() { int L,R,d,M,c=0,i=2; scanf("%d %d %d",&L,&R,&d); M=d; while(M<=R) { if((M>=L)&&(M<=R)) c++; M=d*i; i++; } printf("%d\n",c); return 0; }
1,728
memory_bytes
{'s_id': 's044307734', 'p_id': 'p02606', 'u_id': 'u674645289', 'date': '1594517524', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1728', 'code_size': '236'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int L,R,d,M,c=0,i=2;\n scanf(\"%d %d %d\",&L,&R,&d);\n M=d;\n while(M<=R)\n {\n ...
CDSS_220324
CDSS
#include<stdio.h> #define NIL -1 typedef struct node{ int right; int left; int parent; }Node; Node A[25]; void inorder(int u){ if(A[u].left != NIL) inorder(A[u].left); printf(" %d",u); if(A[u].right != NIL) inorder(A[u].right); } void preorder(int u){ printf(" %d",u); if(A[u].left != NIL) preorder(A...
2,104
memory_bytes
{'s_id': 's865176473', 'p_id': 'p02281', 'u_id': 'u690187759', 'date': '1548585764', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '1097'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 NIL -1\n\ntypedef struct node{\n int right;\n int left;\n int parent;\n}Node;\n\nNode A[25];\n\nvoid ino...
CDSS_232155
CDSS
#include<stdio.h> #include<string.h> #include<limits.h> #define Size 15 long int dist[Size][Size], dp[1 << Size][Size]; int rec(int S, int v, int size); int main(void) { int i, j, n, e, s, t, d; scanf("%d%d\n", &n, &e); for (i = 0; i < n; i++) { for (j = 0; j < n; j++) { dist[i][j] = INT_MAX; } } ...
5,696
memory_bytes
{'s_id': 's038244530', 'p_id': 'p02323', 'u_id': 'u141038857', 'date': '1527521665', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '5696', 'code_size': '864'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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<limits.h>\n#define Size 15\nlong int dist[Size][Size], dp[1 << Size][Size];\nint rec(i...
CDSS_86243
CDSS
#include<stdio.h> #include<stdlib.h> typedef struct team{ char n[9]; int p[5]; }TEAM; TEAM a[15]; int comp(const void *_p,const void *_q){ TEAM *x=(TEAM *)_p,*y=(TEAM *)_q; if(x->p[0] != y->p[0]){ return y->p[0] - x->p[0]; }else{ return x->p[1] - y->p[1]; } } int main(){ int n,i,j,d; while(scanf("%d",&n)!=E...
0
memory_bytes
{'s_id': 's880748926', 'p_id': 'p00196', 'u_id': 'u500961378', 'date': '1314957529', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '578'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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>\ntypedef struct team{\n\tchar n[9];\n\tint p[5];\n}TEAM;\nTEAM a[15];\nint comp(const void *_p,c...
CDSS_483845
CDSS
#include <malloc.h> #include <math.h> #include <stdio.h> #include <string.h> #include <stdlib.h> //ABC157D int root(int *pare, int x) { if(pare[x-1]==x) return x; return root(pare, pare[x-1]); } void connect(int *pare, int *cou, int a, int b) { int tmp; if(pare[a-1]==a) tmp=a, a=b, b=tmp; int ra=root(pare, ...
3,072
memory_bytes
{'s_id': 's484463043', 'p_id': 'p02762', 'u_id': 'u859946952', 'date': '1589128951', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '150', 'memory': '3072', 'code_size': '962'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <malloc.h>\n#include <math.h>\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\n//ABC157D\nint root(int *pare,...
CDSS_676327
CDSS
#include<stdio.h> int add(int x, int y) { return x + y; } int jian(int x, int y) { return x - y; } int main() { int a[10], i, j, k; char sign[2] = { '+','-' }; int(*p[2])(int, int) = { add,jian }; for (i = 0; i < 4; i++) scanf("%1d", a + i); int sum=a[0]; for (i = 0; i < 2; i++) { for (j = 0; j < 2; j++) {...
128
memory_bytes
{'s_id': 's812077190', 'p_id': 'p03545', 'u_id': 'u863370423', 'date': '1548654203', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '554'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint add(int x, int y) {\n\treturn x + y;\n}\nint jian(int x, int y) {\n\treturn x - y;\n}\nint main() {\n\tint a[10...
CDSS_479131
CDSS
#include<stdio.h> #include <stdlib.h> #include<string.h> #include<math.h> #define loop(i, l, r) for(i=l; i<r; i++)/*Instead of function, (for).*/ #define rep(i,r) for(i=0; i<r; i++) #define Max(a, b) ((a) > (b) ? (a) : (b)) #define Min(a, b) ((a) < (b) ? (a) : (b)) typedef long long int lli; /*Return Combination ,(nCr)...
128
memory_bytes
{'s_id': 's300902305', 'p_id': 'p02754', 'u_id': 'u971811058', 'date': '1585800348', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '739'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 loop(i, l, r) for(i=l; i<r; i++)/*Instead of fun...
CDSS_350438
CDSS
#include<stdio.h> int main(){ int n,m,i[101],j,b,a[1000][101],ans[1000]={},ai,ue,oka; scanf("%d %d",&n,&m); for(ai=0;ai<n;ai++){ for(ue=0;ue<m;ue++){ scanf("%d",&a[ai][ue]); } } for(oka=0;oka<m;oka++){ scanf("%d",&i[oka]); } for(ai=0;ai<n;ai++){ for(ue=0;ue<m;ue++){ ans[ai]+=i[ue]*a[ai][ue]; } }...
644
memory_bytes
{'s_id': 's559732677', 'p_id': 'p02410', 'u_id': 'u195954908', 'date': '1404464144', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '644', 'code_size': '404'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 n,m,i[101],j,b,a[1000][101],ans[1000]={},ai,ue,oka;\n\tscanf(\"%d %d\",&n,&m);\n\tfor(ai=0;ai<n;...
CDSS_635480
CDSS
#include <stdio.h> int sub(int n){ if(n < 10){ return n; } int a = n / 10; return n % 10 + sub(a); } int main(){ int in; scanf("%d",&in); if(in % sub(in) == 0){ printf("Yes"); }else{ printf("No"); } }
128
memory_bytes
{'s_id': 's680573103', 'p_id': 'p03316', 'u_id': 'u290533353', 'date': '1575072956', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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#include <stdio.h>\nint sub(int n){\n if(n < 10){\n return n;\n }\n int a = n / 10;\n return n % 10 + sub(a);\n}\n\nint main(){...
CDSS_677477
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int x, y, z, pessoa; scanf("%d %d %d", &x, &y, &z); pessoa=x/(y+z); if (x%(y+z) >= z) { printf("%d\n", pessoa); } else { printf("%d\n", pessoa-1); } return 0; }
128
memory_bytes
{'s_id': 's043663036', 'p_id': 'p03548', 'u_id': 'u109867600', 'date': '1575690909', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '263'}
[ { "content": "Your task is to predict the memory 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\nint main() {\n int x, y, z, pessoa;\n scanf(\"%d %d %d\", &x, &y, &z);\n pesso...
CDSS_210062
CDSS
#include <stdio.h> #include <stdlib.h> #define MAX 2000001 #define VMAX 10000 void CountingSort(int *, int *, int *, int); int main(){ int *A, *B; int C[VMAX+1]; int n, i, j; scanf("%d", &n); A = malloc(sizeof(int)*n+1); B = malloc(sizeof(int)*n+1); /* your code */ for (i = 1; i <= n; i++) { sc...
17,384
memory_bytes
{'s_id': 's468590767', 'p_id': 'p02275', 'u_id': 'u427538020', 'date': '1577081781', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '230', 'memory': '17384', 'code_size': '827'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#define MAX 2000001\n#define VMAX 10000\n\nvoid CountingSort(int *, int *, int *, int);\n\nin...
CDSS_730907
CDSS
/* cat <<EOF >mistaken-paste */ #pragma GCC diagnostic ignored "-Wincompatible-pointer-types" #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> #define BIG 2000000007 #define VERYBIG 200000000000007LL #define MOD 1000000007 typedef uint64_t ull; ty...
3,836
memory_bytes
{'s_id': 's516098054', 'p_id': 'p03878', 'u_id': 'u238041222', 'date': '1517786324', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '55', 'memory': '3836', 'code_size': '9081'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*\ncat <<EOF >mistaken-paste\n*/\n\n#pragma GCC diagnostic ignored \"-Wincompatible-pointer-types\"\n\n#include <stdio.h>\n#include <...
CDSS_172224
CDSS
#include<stdio.h> int Sort(int A[], int N) { int i, j; int count = 0; int min; for (i = 0; i < N; i++) { min = i; for (j = i; j < N; j++) { if (A[j] < A[min]) { min = j; } } if (i != min) { int temp = A[i]; A[i] = A[min]; A[min] = temp; count++; } } return count; } int main() { ...
2,104
memory_bytes
{'s_id': 's305295981', 'p_id': 'p02260', 'u_id': 'u214859999', 'date': '1575872257', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '566'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint Sort(int A[], int N) {\n\tint i, j;\n\tint count = 0;\n\tint min;\n\tfor (i = 0; i < N; i++) {\n\t\tmin = i;\...
CDSS_651245
CDSS
#include<stdio.h> #include<math.h> main(){ int A,B,K,i; scanf("%d %d %d",&A,&B,&K); if((B-A+1) < K*2){ for(i=A;i<=B;i++){ printf("%d\n",i); } } else{ for(i=A;i<=A+K-1;i++){ print...
128
memory_bytes
{'s_id': 's395401095', 'p_id': 'p03386', 'u_id': 'u127414352', 'date': '1523494515', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '465'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 \nmain(){\n \n int A,B,K,i;\n scanf(\"%d %d %d\",&A,&B,&K);\n \n if((B-A+1)...
CDSS_316000
CDSS
#include<stdio.h> #include<math.h> int main(void){ double r; scanf("%lf",&r); printf("%.6f %.6f\n",r*r*M_PI,2*r*M_PI); return(0); }
1,848
memory_bytes
{'s_id': 's241123842', 'p_id': 'p02400', 'u_id': 'u374429353', 'date': '1510412300', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1848', '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<math.h>\nint main(void){\n double r;\n scanf(\"%lf\",&r);\n printf(\"%.6f %.6f\\n\",r*r*M_PI,2*r*M_PI);...
CDSS_117608
CDSS
#include<stdio.h> # define ousama 196470 int main() { int dai,syou; int n,Y,M,D; int i,c,t; scanf("%d",&n); for(i=0;i<n;i++){ t=0; scanf("%d %d %d",&Y,&M,&D); for(c=1;c<Y;c++){ if(c%3==0) t+=200; else t+=195; } if(Y%3==0){ for(c=1;c<M;c++){ t+=20; } for(c=1;c<D;c++) t++; } else{ for(c=1;c<M;c++){ if(c%2==0) t+=19; e...
596
memory_bytes
{'s_id': 's571430616', 'p_id': 'p00760', 'u_id': 'u140808473', 'date': '1373448251', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '395'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n# define ousama 196470\nint main()\n{\n int dai,syou;\n int n,Y,M,D;\n int i,c,t;\nscanf(\"%d\",&n);\nfor(i=0;i<n;i...