identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_57224
CDSS
#include<stdio.h> int main(void){ int t; float breakvalue,n,y; while(scanf("%f",&breakvalue) != EOF){ n = breakvalue / 9.8; y = 4.9 * n * n; for(t = 0;5 * t - 5 < y;t ++){ } printf("%d\n",t); } return 0; }
624
memory_bytes
{'s_id': 's993035170', 'p_id': 'p00024', 'u_id': 'u783707634', 'date': '1403092348', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '624', 'code_size': '222'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\tint t;\n\tfloat breakvalue,n,y;\n\n\twhile(scanf(\"%f\",&breakvalue) != EOF){\n\t\tn = break...
CDSS_544662
CDSS
#include<stdio.h> #include<stdlib.h> int main() { int a,b,nd=0,x,y,z=1,i,X,sum=0; scanf("%d",&a); int A[a]; for(i=0;i<a;i++){ scanf("%d",&A[i]); } for(i=0;i<a;i++,z++) { if(A[i]!=z) sum++; } if(sum<=2)printf("YES\n"); else printf("NO\n"); re...
1,640
memory_bytes
{'s_id': 's123333981', 'p_id': 'p02958', 'u_id': 'u913919241', 'date': '1600432553', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1640', 'code_size': '332'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\n\nint main()\n{\n\n int a,b,nd=0,x,y,z=1,i,X,sum=0;\n\n scanf(\"%d\",&a);\n\n int ...
CDSS_508294
CDSS
#include<stdio.h> #include<string.h> int gcd(long long int x, long long int y){ if (y == 0) return x; else return gcd(y, x % y); } int main(){ long long int a,b,ans,ansb; scanf("%lld %lld",&a,&b); ans=gcd(a,b); ansb=a*b; ansb=ansb/ans; printf("%lld",ansb); return 0; }
128
memory_bytes
{'s_id': 's660646035', 'p_id': 'p02831', 'u_id': 'u751806526', 'date': '1577069153', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '311'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint gcd(long long int x, long long int y){\n if (y == 0) return x;\n else return...
CDSS_70816
CDSS
#include <stdio.h> #define MAX 111 int main(void){ int i, j; int mode; int counter; char str[MAX]; while(1){ mode = 0; counter = 0; if(scanf("%s",str) == EOF){break;} for(i = 0; str[i] != 0; i++){ if(str[i] == '@'){ mode = 1; }else if(mode == 0){ putchar(str[i]); }else if(mode == 1){ c...
0
memory_bytes
{'s_id': 's281378481', 'p_id': 'p00077', 'u_id': 'u777217452', 'date': '1322793434', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '500'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define MAX 111\nint main(void){\n\tint i, j;\n\tint mode;\n\tint counter;\n\tchar str[MAX];\n\twhile(1){\n\t\tm...
CDSS_567028
CDSS
#include<stdio.h> int main() { int a, p; scanf("%d %d", &a, &p); p += 3 * a; printf("%d\n", p / 2); return 0; }
128
memory_bytes
{'s_id': 's704234071', 'p_id': 'p03029', 'u_id': 'u600300412', 'date': '1558918898', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '116'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint a, p;\n\tscanf(\"%d %d\", &a, &p);\n\tp += 3 * a;\n\tprintf(\"%d\\n\", p / 2);\n\treturn 0;\...
CDSS_298985
CDSS
#include<stdio.h> int main(void){ int i=1; int x; while(1){ scanf("%d",&x); if(x==0) break; printf("Case %d: %d\n",i,x); i++; } return 0; }
2,032
memory_bytes
{'s_id': 's268279730', 'p_id': 'p02396', 'u_id': 'u376788152', 'date': '1593565850', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2032', 'code_size': '268'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int i=1;\n int x;\n while(1){\n scanf(\"%d\",&x);\n ...
CDSS_122879
CDSS
// AOJ 2113 Electrophoretic // 2018.3.11 bal4u #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define QMAX 10000 typedef struct { int s; double t; } QUE; QUE que[QMAX]; int qsize; #define PARENT(i) ((i)>>1) #define LEFT(i) ((i)<<1) #define RIGHT(i) (((i)<<1)+1) void min_heapify(int ...
3,488
memory_bytes
{'s_id': 's010046610', 'p_id': 'p01235', 'u_id': 'u847467233', 'date': '1520781909', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '3488', 'code_size': '5869'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n// AOJ 2113 Electrophoretic\n// 2018.3.11 bal4u\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n...
CDSS_78968
CDSS
// AOJ 0120: Patisserie // 2017.9.28 bal4u@uu #include <stdio.h> #include <string.h> #include <math.h> #define EQ(a,b) (fabs(a-b)<= 1e-7) int r[13]; double d[13][13]; // ???????????±???????????????????°´????????¢ double dp[13][4100]; // ?°´????????¢, ??´?????????????????±??????????±\??´????????? char buf[50],...
2,020
memory_bytes
{'s_id': 's040910150', 'p_id': 'p00120', 'u_id': 'u847467233', 'date': '1509522478', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2020', 'code_size': '1363'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n// AOJ 0120: Patisserie\n// 2017.9.28 bal4u@uu\n\n#include <stdio.h>\n#include <string.h>\n#include <math.h>\n\n#define EQ(a,b) (fab...
CDSS_310491
CDSS
int main(){ int a,b; scanf("%d%d",&a,&b); printf("%d %d %f\n",a/b,a%b,(double)a/b); return 0; }
636
memory_bytes
{'s_id': 's858362347', 'p_id': 'p02399', 'u_id': 'u480459225', 'date': '1494486130', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '101'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\nint main(){\n\tint a,b;\n\t\n\tscanf(\"%d%d\",&a,&b);\n\tprintf(\"%d %d %f\\n\",a/b,a%b,(double)a/b);\n\treturn 0;\n}\nPredict its m...
CDSS_66604
CDSS
#include <stdio.h> int main() { int i; double a, s; while (scanf(" %lf ", &a) != EOF) { s = a; for (i = 0; i < 9; i++) { if (i % 2 == 0) a *= 2.0; else a /= 3.0; s += a; } printf("%.6lf\n", s); } re...
656
memory_bytes
{'s_id': 's041514760', 'p_id': 'p00055', 'u_id': 'u395334793', 'date': '1488363799', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '656', 'code_size': '329'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main() {\n int i;\n double a, s;\n \n while (scanf(\" %lf \", &a) != EOF) {\n s = a;\n ...
CDSS_306194
CDSS
#include <stdio.h> int main(void) { int a, b, c; int i; int n = 0; scanf("%d %d %d", &a, &b, &c); for (i = a; i <= b; i++){ if (c % i == 0) { n++; } } printf("%d\n", n); return (0); }
596
memory_bytes
{'s_id': 's301687996', 'p_id': 'p02398', 'u_id': 'u048875676', 'date': '1500598523', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '207'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint a, b, c;\n\tint i;\n\tint n = 0;\n\t\n\tscanf(\"%d %d %d\", &a, &b, &c);\n\t\n\tfor (...
CDSS_40327
CDSS
#include<stdio.h> int main(void) { int i,l,m,n,x,y; i=1; scanf("%d",&n); m=100000; while(i<=n) { m=m*105/100; x=m%1000; if(x!=0) { y=1000-x; m=m+y; } i+=1; } printf("%d\n",m); return 0; }
592
memory_bytes
{'s_id': 's563057006', 'p_id': 'p00007', 'u_id': 'u089494965', 'date': '1353314550', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '211'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint i,l,m,n,x,y;\n\ti=1;\n\tscanf(\"%d\",&n);\n\tm=100000;\n\twhile(i<=n) {\n\t\tm=m*105/100...
CDSS_112452
CDSS
#include <stdio.h> #define N (100) #define N_RESULT (100) int main(){ int shoot, set; int hit, total; char str[N]; int result[N_RESULT]; int i, j; for( i=0; i<N_RESULT; i++ ){ // Scan number of shuut fgets( str, N-1, s...
2,028
memory_bytes
{'s_id': 's636890484', 'p_id': 'p00627', 'u_id': 'u831557238', 'date': '1592281987', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2028', 'code_size': '1046'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define N (100)\n#define N_RESULT (100)\n\nint main(){\n int shoot, set;\n int hit, tota...
CDSS_711633
CDSS
#include<stdio.h> #include<stdlib.h> int main(){ int N,i,ans=1,k=0,A[100010]; scanf("%d",&N); for(i=1;i<=N;i++){ scanf("%d",&A[i]); } for(i=1;i<=N-1;i++){ if(k==0&&A[i+1]!=A[i]){ k=(A[i+1]-A[i])/abs(A[i+1]-A[i]); //符号// } if(k*(A[i+1]-A[i])<0){ ans++; k=0; } } printf("\n%d\...
512
memory_bytes
{'s_id': 's018661760', 'p_id': 'p03745', 'u_id': 'u937747602', 'date': '1556227442', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '14', 'memory': '512', 'code_size': '355'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\t\n\tint N,i,ans=1,k=0,A[100010];\n\t\n\tscanf(\"%d\",&N);\n\t\n\tfor(i=1;i<=...
CDSS_681681
CDSS
#include <stdio.h> int main(){ int A,B,C; scanf("%d %d %d",&A,&B,&C); if(A==B){ printf("%d",C); }else if(A==C){ printf("%d",B); }else{ printf("%d",A); } return 0; }
128
memory_bytes
{'s_id': 's823400687', 'p_id': 'p03573', 'u_id': 'u992407450', 'date': '1508729572', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int A,B,C;\n scanf(\"%d %d %d\",&A,&B,&C);\n if(A==B){\n printf(\"%d\",C);\n }else if(A==...
CDSS_81035
CDSS
#include <stdio.h> typedef struct { int group; int no; float time; } TIME; int main(void) { int i, j; TIME data[24]; TIME tmp; int n; for (i = 0; i < 24; i++){ scanf("%d%f", &data[i].no, &data[i].time); data[i].group = (i / 8) + 1; } for (i = 0; i < 24...
0
memory_bytes
{'s_id': 's290240277', 'p_id': 'p00138', 'u_id': 'u648926140', 'date': '1314955826', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '1112'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\ntypedef struct {\n int group;\n int no;\n float time;\n} TIME;\n\nint main(void)\n{\n int i, j;\n ...
CDSS_484273
CDSS
#include<stdio.h> int main(){ int n; int r; scanf("%d %d", &n, &r); if(n >= 10) printf("%d\n", r); else printf("%d\n", r + 100*(10 - n)); return 0; }
128
memory_bytes
{'s_id': 's472633736', 'p_id': 'p02765', 'u_id': 'u253584031', 'date': '1586487266', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '166'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int n;\n int r;\n\n scanf(\"%d %d\", &n, &r);\n\n if(n >= 10) printf(\"%d\\n\", r);\n\n else...
CDSS_471613
CDSS
#include<stdio.h> int main(){ int n,m; scanf("%d %d", &n,&m); printf("%d\n",(n*(n-1) + m*(m-1))/2); return 0; }
128
memory_bytes
{'s_id': 's725461088', 'p_id': 'p02729', 'u_id': 'u108934099', 'date': '1586553532', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '121'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int n,m;\n scanf(\"%d %d\", &n,&m);\n printf(\"%d\\n\",(n*(n-1) + m*(m-1))/2);\n\n return 0;\...
CDSS_454603
CDSS
#include <stdio.h> main(void){ int x; int i; long int total=0; scanf("%d",&x); for(i=1;i<=x;i++){ if(i%3!=0 && i%5!=0)total+=i; } printf("%ld",total); return 0; }
1,728
memory_bytes
{'s_id': 's058203232', 'p_id': 'p02712', 'u_id': 'u260687914', 'date': '1595268954', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1728', 'code_size': '183'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nmain(void){\n int x;\n int i;\n long int total=0;\n scanf(\"%d\",&x);\n for(i=1;i<=x;i++){\n if(i%3!=0 &...
CDSS_429674
CDSS
#include <stdio.h> int main() { int s, w; scanf("%d%d", &s, &w); if (s <= w) printf("unsafe\n"); else printf("safe\n"); return 0; }
1,660
memory_bytes
{'s_id': 's274930338', 'p_id': 'p02699', 'u_id': 'u813269900', 'date': '1596477795', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1660', 'code_size': '176'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int s, w;\n\n scanf(\"%d%d\", &s, &w);\n\n if (s <= w)\n printf(\"unsafe\\n\")...
CDSS_252223
CDSS
#include <stdio.h> int main(void){ int a,b; scanf("%d %d",&a, &b); printf("%d %d\n",a*b,a+a+b+b); return 0; }
596
memory_bytes
{'s_id': 's746464241', 'p_id': 'p02389', 'u_id': 'u202735540', 'date': '1463128835', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '118'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\n int a,b;\n scanf(\"%d %d\",&a, &b);\n printf(\"%d %d\\n\",a*b,a+a+b+b);\nreturn 0;\n\n}...
CDSS_735585
CDSS
#include<stdio.h> int main() { char a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p; char s[16] = "CODEFESTIVAL2016"; scanf("%c",&a); scanf("%c",&b); scanf("%c",&c); scanf("%c",&d); scanf("%c",&e); scanf("%c",&f); scanf("%c",&g); scanf("%c",&h); scanf("%c",&i); scanf("%c",&j); scanf("%c",&k); scanf("%c",&l); scanf("%c"...
128
memory_bytes
{'s_id': 's155503671', 'p_id': 'p03970', 'u_id': 'u368432054', 'date': '1476125940', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '975'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n\tchar a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p;\n\tchar s[16] = \"CODEFESTIVAL2016\";\n\tscanf(\"%c\",&a...
CDSS_23218
CDSS
#include<stdio.h> void bubble_sort(int m[]); int m[10],i,j,temp; int main() { for(i=0;i<10;i++){ scanf("%d",&m[i]); } bubble_sort(m); return 0; } void bubble_sort(int m[]) { for(j=0;j<10-1;j++){ for(i=0;i<10-j-1;i++){ if(m[i]<m[i+1]){ temp=m[i...
600
memory_bytes
{'s_id': 's750332707', 'p_id': 'p00001', 'u_id': 'u011621222', 'date': '1464288653', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '489'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nvoid bubble_sort(int m[]);\nint m[10],i,j,temp;\nint main()\n{\n for(i=0;i<10;i++){\n scanf(\"%d\",&m[i...
CDSS_248786
CDSS
#include <stdio.h> int x; int main(){ scanf("%d", &x); printf("%d\n", x*x*x); return 0; }
2,044
memory_bytes
{'s_id': 's855463063', 'p_id': 'p02388', 'u_id': 'u877181703', 'date': '1571622424', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '102'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint x;\nint main(){\n scanf(\"%d\", &x);\n printf(\"%d\\n\", x*x*x);\n return 0;\n}\n\nPredict its memo...
CDSS_608202
CDSS
#include <stdio.h> int main(){ int n,i,m,s,p; scanf("%d",&n); for (s=i=0;i<n;i++) { scanf("%d",&p); if (i==0) m=p; else if (m<p) m=p; s+=p; } printf("%d\n",s-m/2); return 0; }
128
memory_bytes
{'s_id': 's777590823', 'p_id': 'p03207', 'u_id': 'u337657882', 'date': '1544322054', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '224'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int n,i,m,s,p;\n \n scanf(\"%d\",&n);\n for (s=i=0;i<n;i++) {\n scanf(\"%d\",&p);\...
CDSS_42197
CDSS
#include<stdio.h> #define MAX 1000000 int main(){ char prime[MAX]; int num,i,j,ans; for(i = 0; i < MAX; i++){ prime[i] = 1; } prime[0] = prime[1] = 0; for(i = 2; i < (MAX /2); i++){ if(prime[i]){ for(j=2*i;j<MAX;j+=i){ prime[j] = 0; } } } while(scanf("%d",&num) != EOF){ ...
1,572
memory_bytes
{'s_id': 's845703444', 'p_id': 'p00009', 'u_id': 'u782900939', 'date': '1430537904', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '1572', 'code_size': '427'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n#define MAX 1000000\n\nint main(){\n char prime[MAX];\n int num,i,j,ans;\n\n for(i = 0; i < MAX; i++){\n ...
CDSS_236251
CDSS
#include<stdio.h> #include<math.h> int main(){ double str[1001]={0,}; int n,i; double a,m,h; while(1){ scanf("%d",&n); if(n==0){ break; } for(i=0,m=0;i<n;i++){ scanf("%lf",&str[i]); m += str[i]; } m /= n; for(i=0...
2,028
memory_bytes
{'s_id': 's405461242', 'p_id': 'p02381', 'u_id': 'u436907557', 'date': '1588684343', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2028', 'code_size': '455'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\nint main(){\n double str[1001]={0,};\n int n,i;\n double a,m,h;\n while(1){\n ...
CDSS_383815
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> int main(void) { int ans=0; int max=0; char s[4]; scanf("%s",s); for(int i=0;i<3;i++) { if(s[i]=='S') ans*=0; else ans+=1; if(max<ans) max=ans; } printf("%d\n",max); return 0; }
1,728
memory_bytes
{'s_id': 's304167526', 'p_id': 'p02582', 'u_id': 'u410159888', 'date': '1597518607', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1728', 'code_size': '268'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\nint main(void)\n{\n int ans=0;\n int max=0;\n char s[4];\n scanf(\...
CDSS_368164
CDSS
#include<stdio.h> #include<string.h> int ring(char s[101],char p[101]){ int i=0; int n = strlen(s),count; while (i<=2*n){ count = 0; if (p[0] == s[i]){ while (p[0 + count] == s[(i + count) % n]){ count++; if (count == strlen(p)) return 1; } } i++; } return 0; } int main(void){ char s...
2,148
memory_bytes
{'s_id': 's212275239', 'p_id': 'p02418', 'u_id': 'u257033470', 'date': '1583472569', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2148', 'code_size': '670'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nint ring(char s[101],char p[101]){\n\tint i=0;\n\tint n = strlen(s),count;\n\twhile (i<=2*n...
CDSS_280594
CDSS
#include <stdio.h> int main(){ int x,y,z; scanf("%d %d %d",&x,&y,&z); if(x<y && y<z){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
2,056
memory_bytes
{'s_id': 's446991825', 'p_id': 'p02392', 'u_id': 'u284542536', 'date': '1580362076', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '153'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n\tint x,y,z;\n\tscanf(\"%d %d %d\",&x,&y,&z);\n\tif(x<y && y<z){\n\t\tprintf(\"Yes\\n\");\n\t}else{...
CDSS_679055
CDSS
#include<stdio.h> #include<math.h> int main() { int a,b,c,n; scanf("%d",&n); b=sqrt(n); c=b*b; printf("%d\n",c); return 0; }
128
memory_bytes
{'s_id': 's708519623', 'p_id': 'p03556', 'u_id': 'u556737561', 'date': '1509846579', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '131'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\tint a,b,c,n;\n\tscanf(\"%d\",&n);\n\tb=sqrt(n);\n\tc=b*b;\n\tprintf(\"%d\\n\",...
CDSS_394127
CDSS
#include <stdio.h> int main(void) { int d; scanf("%d", &d); long c[26]; for (int i = 0; i < 26; i++) { scanf("%ld", &c[i]); } long s[d][26]; for (int i = 0; i < d; i++) { for (int j = 0; j < 26; j++) { scanf("%ld", &s[i][j]); } } int t[d]; for (int i = 0; i < d; i++) { scanf(...
1,796
memory_bytes
{'s_id': 's307038405', 'p_id': 'p02620', 'u_id': 'u581816556', 'date': '1593396490', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1087', 'memory': '1796', 'code_size': '1115'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\n int d;\n scanf(\"%d\", &d);\n long c[26];\n for (int i = 0; i < 26; i++) {\n scanf...
CDSS_38772
CDSS
#include<stdio.h> #include<string.h> int main(){ int i; char str[21]; scanf("%s", str); for(i = strlen(str) - 1;i >= 0;i--){ putchar(str[i]); } puts(""); return 0; }
524
memory_bytes
{'s_id': 's367895869', 'p_id': 'p00006', 'u_id': 'u611853667', 'date': '1349713808', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '185'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\n\nint main(){\n int i;\n char str[21];\n scanf(\"%s\", str);\n for(i = strlen(str) - 1;...
CDSS_303386
CDSS
#include<stdio.h> int main(void) { int x,y; while(1){ scanf("%d %d",&x,&y); if(x == 0 && y == 0) break; else if(x < y){ printf("%d %d\n",x,y); } else{ printf("%d %d\n",y,x); } } return 0; }
600
memory_bytes
{'s_id': 's410050745', 'p_id': 'p02397', 'u_id': 'u761679437', 'date': '1399171918', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '222'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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,y;\n\n while(1){\n scanf(\"%d %d\",&x,&y);\n if(x == 0 && y == 0)\n break;\n ...
CDSS_168468
CDSS
#include<stdio.h> #define swap(a,b){a+=b;b=a-b;a-=b;} int main(){ int n,i,j,A[100],count=0; scanf("%d",&n); for (i = 0; i < n; i++) scanf("%d",&A[i]); for (i = 0; i <= n - 1; i++){ for (j = n - 1; j >= i + 1; j--){ if (A[j] < A[j - 1]){ swap(A[j], A[j - 1]); count++; } } } for (i = 0; i < n...
604
memory_bytes
{'s_id': 's848981665', 'p_id': 'p02259', 'u_id': 'u725029766', 'date': '1397726303', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '423'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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-b;a-=b;}\n\nint main(){\n\tint n,i,j,A[100],count=0;\n\tscanf(\"%d\",&n);\n\tfor (i = ...
CDSS_579758
CDSS
#include<stdio.h> int main(void) { int a,b,s,i; scanf("%d%d",&a,&b); s=0; for(i=0;i<2;i++){ if(a>b){ s=s+a; a=a-1; } else if(b>a){ s=s+b; b=b-1; } else if(a=b){ s=s+a; a=a-1; } } printf("%d\n",s); return 0; }
128
memory_bytes
{'s_id': 's159587144', 'p_id': 'p03071', 'u_id': 'u805148103', 'date': '1555422251', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '289'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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,s,i;\n\n scanf(\"%d%d\",&a,&b);\n\n s=0;\n for(i=0;i<2;i++){\n if(a>b)...
CDSS_723170
CDSS
#include<stdio.h> int main() { int n,max=0,i,x=0; char s[1001]; scanf("%d", &n); scanf("%s", s); for(i=0; i<n; i++){ if(s[i]=='I') x++; else x--; if(x > max) max=x; } printf("%d\n", max); return 0; }
128
memory_bytes
{'s_id': 's903608293', 'p_id': 'p03827', 'u_id': 'u538438162', 'date': '1501293314', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '199'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\nint n,max=0,i,x=0;\nchar s[1001];\nscanf(\"%d\", &n);\nscanf(\"%s\", s);\nfor(i=0; i<n; i++){\nif(...
CDSS_267337
CDSS
#include<stdio.h> int main(void) { int a,b; scanf("%d %d",&a,&b); if(a<b){ printf("a < b\n"); }else if(a>b){ printf("a > b\n"); }else if(a==b){ printf("a == b\n"); } return 0; }
580
memory_bytes
{'s_id': 's284297457', 'p_id': 'p02391', 'u_id': 'u453616341', 'date': '1461285946', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '192'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint a,b;\n\tscanf(\"%d %d\",&a,&b);\n\tif(a<b){\n\t\tprintf(\"a < b\\n\");\n\t}else if(a>b){...
CDSS_656107
CDSS
#include<stdio.h> int main(void) { int n,x; scanf("%d",&n); x=n/3; printf("%d\n",x); return 0; }
256
memory_bytes
{'s_id': 's424905643', 'p_id': 'p03423', 'u_id': 'u490089586', 'date': '1533744318', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '101'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint n,x;\n\tscanf(\"%d\",&n);\n\tx=n/3;\n\tprintf(\"%d\\n\",x);\n\treturn 0;\n}\nPredict its...
CDSS_503022
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #define BUF_SIZE 30 int get_int(void) { int num; #ifdef BUF_SIZE char line[BUF_SIZE]; if(!fgets(line, BUF_SIZE, stdin)) return 0; sscanf(line, "%d", &num); #else #error #endif return num; } // <arr[0]> <arr[1]> .. <arr[size-1]> int fget_array(int ...
128
memory_bytes
{'s_id': 's952925533', 'p_id': 'p02813', 'u_id': 'u866370648', 'date': '1583637584', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '128', 'code_size': '1905'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\n#define BUF_SIZE 30\n\nint get_int(void) {\n int num;\n#ifdef BUF_S...
CDSS_507353
CDSS
#include <stdio.h> int main() { int n; char S[101], T[101]; scanf("%d", &n); scanf("%s %s", S, T); for (int i = 0; i < n; i++) { putchar(S[i]); putchar(T[i]); } putchar('\n'); return 0; }
128
memory_bytes
{'s_id': 's238431516', 'p_id': 'p02830', 'u_id': 'u666964944', 'date': '1587340283', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '212'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n int n;\n char S[101], T[101];\n scanf(\"%d\", &n);\n scanf(\"%s %s\", S, T);\n for (int i ...
CDSS_502432
CDSS
#include <stdio.h> int main(void) { int n, countABC; char s[51]; int i; scanf("%d", &n); scanf("%s", s); /* d */ for (i = 0; i < n - 2; i++) { if ((s[i] == 'A') && (s[i + 1] == 'B') && (s[i + 2] == 'C')) { countABC++; } } printf("%d", countABC); return 0; }
128
memory_bytes
{'s_id': 's801622391', 'p_id': 'p02812', 'u_id': 'u632734596', 'date': '1591046829', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '284'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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, countABC;\n\tchar s[51];\n\tint i;\n\t\n\tscanf(\"%d\", &n);\n\tscanf(\"%s\", s);\...
CDSS_239612
CDSS
#include <stdio.h> #include <string.h> const int max_dice_number = 105; void toss_dice_x(int _dice[][7], int x, char direction){ int temp; switch(direction){ case 'N': temp = _dice[x][1]; _dice[x][1] = _dice[x][2]; _dice[x][2] = _dice[x][6]; _dice[x][...
2,112
memory_bytes
{'s_id': 's133867725', 'p_id': 'p02386', 'u_id': 'u672641807', 'date': '1553336406', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '2598'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nconst int max_dice_number = 105;\n\nvoid toss_dice_x(int _dice[][7], int x, char directio...
CDSS_614794
CDSS
#include <stdio.h> int main(void){ int N, T; scanf("%d%d", &N, &T); int c[N],t[N]; for (int i = 0; i < N; i++){ scanf("%d%d", &c[i], &t[i]); } int x = 0; int min = c[0]; for(int i = 0; i < N; i++){ if (t[i] > T){ x += 1; } else{ i...
128
memory_bytes
{'s_id': 's176386819', 'p_id': 'p03239', 'u_id': 'u977661421', 'date': '1576690565', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '509'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int N, T;\n scanf(\"%d%d\", &N, &T);\n int c[N],t[N];\n for (int i = 0; i < N; i...
CDSS_317163
CDSS
#include <stdio.h> int main(void){ double r; double pai = 3.141592653589; double are, circ; scanf("%lf",&r); are = pai*r*r; circ = 2*pai*r; printf("%f %f\n",are,circ); return 0; }
2,052
memory_bytes
{'s_id': 's791072310', 'p_id': 'p02400', 'u_id': 'u356123368', 'date': '1587617051', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '188'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n\tdouble r;\n\tdouble pai = 3.141592653589;\n\tdouble are, circ;\n\tscanf(\"%lf\",&r);\n\tare =...
CDSS_623225
CDSS
#include <stdio.h> int main(){ int a,b; scanf("%d%d",&a,&b); a=a-b+1; printf("%d",a); return 0; }
128
memory_bytes
{'s_id': 's259249446', 'p_id': 'p03272', 'u_id': 'u054263161', 'date': '1563685312', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '107'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int a,b;\n scanf(\"%d%d\",&a,&b);\n a=a-b+1;\n printf(\"%d\",a);\n return 0;\n}\nPredict its ...
CDSS_91829
CDSS
#include<stdio.h> int main(){ int a,b,ab; int i; for(i = 0; i < 7; i++){ scanf("%d",&a); scanf("%d",&b); ab = b - a; ab = abs(ab); printf("%d\n",ab); } return 0;...
600
memory_bytes
{'s_id': 's377262333', 'p_id': 'p00271', 'u_id': 'u452212317', 'date': '1430301936', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '322'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int a,b,ab;\n int i;\n\n for(i = 0; i < 7; i++){\n scanf(\"%d...
CDSS_74187
CDSS
#include<stdio.h> #define N 3.305785 int main(){ int a, b; scanf("%d %d", &a, &b); double ans = ((double)a*b)/N; printf("%.6f\n", ans); return 0; }
636
memory_bytes
{'s_id': 's648030433', 'p_id': 'p00094', 'u_id': 'u278606251', 'date': '1365399762', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '158'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 3.305785\n\nint main(){\n int a, b;\n scanf(\"%d %d\", &a, &b);\n double ans = ((double)a*b)/N;\n p...
CDSS_339815
CDSS
#include <stdio.h> int main(void) { int i,n,x; scanf("%d",&n); for(i=3;i<=n;i++){ if(i%3==0){ printf(" %d",i); } else{ x=i; while(x!=0){ if(x%10==3){ printf(" %d",i); break; } x/=10; } } } printf("\n"); return 0; }
600
memory_bytes
{'s_id': 's591027224', 'p_id': 'p02406', 'u_id': 'u653442293', 'date': '1503997276', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '266'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint i,n,x;\n\n\tscanf(\"%d\",&n);\n\n\tfor(i=3;i<=n;i++){\n\t\tif(i%3==0){\n\t\t\tprintf(\...
CDSS_735855
CDSS
#include<stdio.h> int main(){ long ans = 0; int N; scanf("%d",&N); long A[N]; int i = 0; for(i=0 ; i<N ; i++){ scanf("%ld",&A[i]); } ans += A[0]-1 ; long r = 2; for(i = 1; i<N ; i++) { if(A[i] != r){ ans += (A[i]-1)/r ; } else r++; } printf("%ld\n",ans); return 0; }
896
memory_bytes
{'s_id': 's109279874', 'p_id': 'p03973', 'u_id': 'u368432054', 'date': '1476122778', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '16', 'memory': '896', 'code_size': '294'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tlong ans = 0;\n\tint N;\n\tscanf(\"%d\",&N);\n\tlong A[N];\n\tint i = 0;\n\tfor(i=0 ; i<N ; i++){\...
CDSS_454885
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <limits.h> #define REP(i,n) for(i=0;i<n;i++) #define MAX 1000000 #define MOD 1000000007 long long fac[MAX], finv[MAX], inv[MAX]; //prototype declaration int i_in(); long long ll_in(); double d_in(); char c_in(); void s_in(char *s)...
2,152
memory_bytes
{'s_id': 's406788478', 'p_id': 'p02712', 'u_id': 'u420082791', 'date': '1588453364', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '2152', 'code_size': '4506'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 <limits.h>\n\n#define REP(i,n) for(i=0;i<n...
CDSS_689948
CDSS
main(n){scanf("%d",&n);puts(n%10==n/100?"Yes":"No");}
128
memory_bytes
{'s_id': 's335394350', 'p_id': 'p03631', 'u_id': 'u657913472', 'date': '1502586048', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '53'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\nmain(n){scanf(\"%d\",&n);puts(n%10==n/100?\"Yes\":\"No\");}\nPredict its memory footprint.", "role": "user" }, { "conten...
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 should 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 (in...
CDSS_432972
CDSS
#include<stdio.h> int main(void) { int a,b,c,d; scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); scanf("%d",&d); while(-1){ c=c-b; if(c<=0){ printf("Yes");break; } a=a-d; if(a<=0){ printf("No");break; } } return 0; }
1,728
memory_bytes
{'s_id': 's057699797', 'p_id': 'p02700', 'u_id': 'u207816634', 'date': '1596481845', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1728', 'code_size': '260'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n int a,b,c,d;\n scanf(\"%d\",&a);\n scanf(\"%d\",&b);\n scanf(\"%d\",&c);\n scanf(\"%d\...
CDSS_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 should 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 lon...
CDSS_402269
CDSS
#include <stdio.h> int main() { for(int i = 0; i < 5; i++) { int n; scanf("%d", &n); if(n == 0) printf("%d", i + 1); } return 0; }
1,656
memory_bytes
{'s_id': 's121107448', 'p_id': 'p02639', 'u_id': 'u930207599', 'date': '1592183053', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1656', 'code_size': '183'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n for(int i = 0; i < 5; i++)\n {\n int n;\n scanf(\"%d\", &n);\n if(n...
CDSS_650796
CDSS
/* * A.c * * Created on: 2018/04/16 * Author: Haruyuk1 */ #include <stdio.h> int main(void){ char string[4]; int i, j, k, res; res = 0; scanf("%s", string); for (i = 0; i <= 2; i++){ if (string[i] == 'a'){ for (j = 0; j <= 2; j++){ if (string[j] == 'b'){ for (k = 0; k <= 2; k++){ ...
128
memory_bytes
{'s_id': 's676272004', 'p_id': 'p03385', 'u_id': 'u025235255', 'date': '1523906447', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '468'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n/*\n * A.c\n *\n * Created on: 2018/04/16\n * Author: Haruyuk1\n */\n\n#include <stdio.h>\n\nint main(void){\n\tchar string[4]...
CDSS_570667
CDSS
char s[99]; main(K){ scanf("%*d%d%s",&K,s); s[K-1]+=32; puts(s); }
128
memory_bytes
{'s_id': 's652231213', 'p_id': 'p03041', 'u_id': 'u657913472', 'date': '1558550469', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '72'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\nchar s[99];\nmain(K){\n scanf(\"%*d%d%s\",&K,s);\n s[K-1]+=32;\n puts(s);\n}\nPredict its memory footprint.", "role": "user" ...
CDSS_696385
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> /*ソートの時に使う int sort(const void *a, const void *b){ return *(int*)a-*(int*)b ; } qsort (data,sizeof(data),sizeof(int),sort); */ int main(void){ int n; scanf("%d",&n); long long a[n],sum[n]; for (i...
3,328
memory_bytes
{'s_id': 's718462252', 'p_id': 'p03659', 'u_id': 'u750028862', 'date': '1530886231', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '24', 'memory': '3328', 'code_size': '774'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\n/*ソートの時に使う\nint sort(const ...
CDSS_76205
CDSS
#include <stdio.h> #include <string.h> int main(int argc, char *argv[]){ char *p,eng[1002]; int n; scanf("%d ",&n); while(n--){ fgets(eng,1002,stdin); while(1){ p=strstr(eng,"Hoshino"); if(p != NULL) *(p+6)='a'; else break; } printf("%s",eng); } return 0; }
0
memory_bytes
{'s_id': 's015459627', 'p_id': 'p00101', 'u_id': 'u907526155', 'date': '1335527008', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '287'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(int argc, char *argv[]){\n\tchar *p,eng[1002];\n\tint n;\n\tscanf(\"%d \",&n);\n...
CDSS_702738
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int descending_compare(const void *a, const void *b){ if (*(int*)a > *(int*)b){ return -1; }else if (*(int*)a == *(int*)b){ return 0; }else{ return 1; } } int ascending_compare(const void *a, const voi...
128
memory_bytes
{'s_id': 's253591744', 'p_id': 'p03697', 'u_id': 'u543284218', 'date': '1515132365', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1396'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 descending_compare(const void *a, const void ...
CDSS_324732
CDSS
#include <stdio.h> int main(void){ int a; int b; int z; int min; int max; long int sum; min = 1000000; max = -1000000; sum = 0; scanf("%d",&a); for(b=0; b<a; b++) { scanf("%d",&z); if(min > z) { min = z; ...
600
memory_bytes
{'s_id': 's200678309', 'p_id': 'p02402', 'u_id': 'u897771980', 'date': '1482391746', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '481'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h> \n\nint main(void){ \n\nint a; \n\nint b; \n\nint z; \n\nint min; \n\nint max; \n\nlong int sum...
CDSS_186589
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> struct node{ unsigned int key; struct node *next; struct node *prev; }; typedef struct node * NodePointer; NodePointer nil; NodePointer listSearch(int key){ NodePointer x; for(x = nil->next;x!=nil;x=x->next){ if(x->key==key)return x; } retu...
32,992
memory_bytes
{'s_id': 's681270412', 'p_id': 'p02265', 'u_id': 'u351272696', 'date': '1532329254', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '210', 'memory': '32992', 'code_size': '1682'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n \nstruct node{\n unsigned int key;\n struct node *next;\n struct node...
CDSS_536541
CDSS
#include <stdio.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main(){ int n; char str[10]; scanf("%d",&n); scanf("%s", str); if(n>=3200){ printf("%s",str); }else{ printf("red"); } }
128
memory_bytes
{'s_id': 's811854885', 'p_id': 'p02933', 'u_id': 'u985735467', 'date': '1566176655', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '218'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nint main(){\n int n;\n char str[10];\n scanf(...
CDSS_72390
CDSS
char s[];main(){double*q=s,b;for(;~scanf("%s",s);getchar()<14&&printf("%f\n",*q))sscanf(s,"%lf",q+1)-1?b=*q--,*q=*s-47?*s-42?*s-45?*q+b:*q-b:*q*b:*q/b:*++q;}
0
memory_bytes
{'s_id': 's191682175', 'p_id': 'p00087', 'u_id': 'u479246559', 'date': '1328964421', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '157'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\nchar s[];main(){double*q=s,b;for(;~scanf(\"%s\",s);getchar()<14&&printf(\"%f\\n\",*q))sscanf(s,\"%lf\",q+1)-1?b=*q--,*q=*s-47?*s-42?...
CDSS_371647
CDSS
#include<stdio.h> int main(void) { int n; int i,j,t=0,h=0,d; char ct[100],ch[100]; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%s %s",ct,ch); j=0; while(ct[j]!='\0' || ch[j]!='\0') { if(ct[j]<ch[j]) { h++; break; } else if(ct[j]>ch[j]) { t++; break; } j++; } } ...
2,064
memory_bytes
{'s_id': 's412679585', 'p_id': 'p02421', 'u_id': 'u612737109', 'date': '1562289897', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '379'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint n;\n\tint i,j,t=0,h=0,d;\n\tchar ct[100],ch[100];\n\t\n\tscanf(\"%d\",&n);\n\t\n\tfor(i=...
CDSS_53096
CDSS
#include<stdio.h> #include<string.h> int main(){ char s[10001]; int i; fgets(s,10001,stdin); for(i=0;i<strlen(s);i++){ printf("%c",toupper(s[i])); } return 0; }
524
memory_bytes
{'s_id': 's387905108', 'p_id': 'p00020', 'u_id': 'u731027244', 'date': '1416476417', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '176'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main(){\n char s[10001];\n int i;\n fgets(s,10001,stdin);\n for(i=0;i<strlen(s);i++){...
CDSS_205434
CDSS
#include<stdio.h> #include<math.h> struct Point{ double x; double y; }; void koch(int n,struct Point p1,struct Point p2){ if(n == 0) return; struct Point s,t,u; double th = M_PI * 60.0 / 180.0; s.x = (2.0 * p1.x + 1.0 * p2.x) / 3.0; s.y = (2.0 * p1.y + 1.0 * p2.y) / 3.0; t.x = (1.0 * ...
2,112
memory_bytes
{'s_id': 's384854221', 'p_id': 'p02273', 'u_id': 'u249971676', 'date': '1580025856', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '939'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n\nstruct Point{\n double x;\n double y;\n};\n\nvoid koch(int n,struct Point p1,struct Poi...
CDSS_201278
CDSS
#include<stdio.h> #define TRUE 1 #define FALSE 0 int func(int,int); int n,A[2000]; int main(){ int q,m[2000],i; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&A[i]); } scanf("%d",&q); for(i=0;i<q;i++){ scanf("%d",&m[i]); } for(i=0;i<q;i++){ if(func(0,m[i])==TRUE){ printf("ye...
2,044
memory_bytes
{'s_id': 's513561767', 'p_id': 'p02271', 'u_id': 'u957657351', 'date': '1545024704', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '440', 'memory': '2044', 'code_size': '566'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n#define TRUE 1\n#define FALSE 0\n\n\nint func(int,int);\n\nint n,A[2000];\n\nint main(){\n int q,m[2000],i;\n\...
CDSS_427488
CDSS
#include<stdio.h> int main(void) { long x,yokin,i=0; scanf("%ld",&x); yokin=100; while(1) { yokin=yokin*(1.01); i++; if(yokin>=x) { printf("%ld",i); break; } } return 0; }
1,716
memory_bytes
{'s_id': 's584307664', 'p_id': 'p02694', 'u_id': 'u749012715', 'date': '1588754939', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1716', 'code_size': '193'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tlong x,yokin,i=0;\n\tscanf(\"%ld\",&x);\n\tyokin=100;\n\twhile(1) {\n\t\tyokin=yokin*(1.01);...
CDSS_352978
CDSS
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main() { int i,c,m, f, r; char result[100]; i = 0; while (1) { scanf("%d %d %d", &m, &f, &r); if (m == -1 && f == -1 && r == -1) { break; } if (m==-1||f==-1){ result[i] = 'F'; } else if (80 <= m + f ) { result[i] = 'A'; }else if (65<=m + ...
1,824
memory_bytes
{'s_id': 's451875801', 'p_id': 'p02411', 'u_id': 'u516781876', 'date': '1509360621', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1824', 'code_size': '674'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n#include <stdio.h>\n\nint main() {\n\tint i,c,m, f, r;\n\tchar result[100];\n\ti = 0;\n\twhile (1) ...
CDSS_175669
CDSS
#include<stdio.h> #include<stdlib.h> void insertionSort(int *, int, int); void shellSort(int *,int); int cnt = 0; main(){ int i,j,n,*A; scanf("%d",&n); A=(int *)malloc(sizeof(int)*n); for(i=0;i<n;i++){ scanf("%d",&A[i]); } shellSort(A, n); printf("%d\n",cnt); for(i=0;i<n;i++){ printf("%d\n"...
4,500
memory_bytes
{'s_id': 's230385862', 'p_id': 'p02262', 'u_id': 'u805338419', 'date': '1469165673', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '370', 'memory': '4500', 'code_size': '915'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n \nvoid insertionSort(int *, int, int);\nvoid shellSort(int *,int);\n\nint cnt = 0;\nmain(){\...
CDSS_497763
CDSS
#include<stdio.h> int main(){ int a,b,i; scanf("%d%d",&a,&b); if(a<b){ for(i=1; i<=b; i++){ printf("%d",a); } printf("\n"); } else{ for(i=1; i<=a; i++){ printf("%d",b); } printf("\n"); } return 0; }
128
memory_bytes
{'s_id': 's664251441', 'p_id': 'p02790', 'u_id': 'u481026841', 'date': '1579464790', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '249'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int a,b,i;\n scanf(\"%d%d\",&a,&b);\n if(a<b){\n for(i=1; i<=b; i++){\n printf(\"%d\",a)...
CDSS_40940
CDSS
#include <stdio.h> int main(void) { int n; int i, j, k, l; int count; int sum; while (scanf("%d", &n) != EOF){ count = 0; for (i = 0; i < 10; i++){ for (j = 0; j < 10; j++){ for (k = 0; k < 10; k++){ for (l = 0; l < 10;l++){ sum = i + j + k + l; if (sum == n){ count++; }...
596
memory_bytes
{'s_id': 's847794231', 'p_id': 'p00008', 'u_id': 'u318910474', 'date': '1442380566', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '387'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 i, j, k, l;\n\tint count;\n\tint sum;\n\t\n\twhile (scanf(\"%d\", &n) != EO...
CDSS_21993
CDSS
i, j;main(){for(i=1;i<=9;i++)for(j=1;j<=9;)printf("%dx%d=%d\n",i,j++,i*j);return 0;}
524
memory_bytes
{'s_id': 's418121979', 'p_id': 'p00000', 'u_id': 'u145643522', 'date': '1400473250', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '84'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\ni, j;main(){for(i=1;i<=9;i++)for(j=1;j<=9;)printf(\"%dx%d=%d\\n\",i,j++,i*j);return 0;}\nPredict its memory footprint.", "role":...
CDSS_521005
CDSS
#include <stdio.h> int main(void) { int a, b; scanf("%d%d", &a, &b); if(a-2*b <= 0) printf("0\n"); else printf("%d\n", a-2*b); return 0; }
128
memory_bytes
{'s_id': 's152328238', 'p_id': 'p02885', 'u_id': 'u231261695', 'date': '1572029998', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '160'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n int a, b;\n scanf(\"%d%d\", &a, &b);\n if(a-2*b <= 0) printf(\"0\\n\");\n else ...
CDSS_313129
CDSS
#include<stdio.h> int main(){ double r,m,e; scanf("%lf",&r); m=r*r*3.14159265358979; e=2*r*3.14159265358979; printf("%.8lf %.8lf\n",m,e); return 0; }
652
memory_bytes
{'s_id': 's136697913', 'p_id': 'p02400', 'u_id': 'u644062579', 'date': '1433155838', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '652', 'code_size': '161'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n double r,m,e;\n scanf(\"%lf\",&r);\n m=r*r*3.14159265358979;\n e=2*r*3.14159265358979;\n print...
CDSS_108923
CDSS
#include<stdio.h> int main(){ int n,x,y1,y2,y3; scanf("%d%d%d%d%d",&x,&y1,&y2,&y3,&n); x=x*n; if(y2<=n)y1=y1+y3*(n-y2); if(x>y1)x=y1; printf("%d\n",x); return 0; }
2,148
memory_bytes
{'s_id': 's222548533', 'p_id': 'p00531', 'u_id': 'u390505413', 'date': '1535527893', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2148', 'code_size': '171'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tint n,x,y1,y2,y3;\n\tscanf(\"%d%d%d%d%d\",&x,&y1,&y2,&y3,&n);\n\tx=x*n;\n\tif(y2<=n)y1=y1+y3*(n-y2...
CDSS_512655
CDSS
#include<stdio.h> int main(void){ char str[5]; int m; scanf("%s",str); if(strcmp(str,"SUN") == 0) m = 7; else if(strcmp(str,"MON") == 0) m = 6; else if(strcmp(str,"TUE") == 0) m = 5; else if(strcmp(str,"WED") == 0) m = 4; else if(strcmp(str,"THU") == 0) m = 3; else if(str...
128
memory_bytes
{'s_id': 's164104633', 'p_id': 'p02847', 'u_id': 'u866861266', 'date': '1574648495', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '430'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n \n char str[5];\n int m;\n \n scanf(\"%s\",str);\n \n if(strcmp(str,\"SUN\") == 0)\n ...
CDSS_605166
CDSS
#include<stdio.h> #include<stdlib.h> #include<stdint.h> #include<inttypes.h> typedef int32_t i32; typedef int64_t i64; typedef struct line { i64 a, b; } line; i64 eval (line l, i64 x) { return l.a * x + l.b; } int cond (line p, line q, line r) { return -(p.b - q.b) * (q.a - r.a) < -(q.b - r.b) * (p.a - q.a); ...
5,632
memory_bytes
{'s_id': 's125478046', 'p_id': 'p03185', 'u_id': 'u425248533', 'date': '1559999763', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '25', 'memory': '5632', 'code_size': '1124'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\ntyp...
CDSS_139633
CDSS
#include<stdio.h> #define MAX 100 #define INFTY 5000 #define WHITE 0 #define GRAY 1 #define BLACK 2 int prim(void); int n,M[MAX][MAX]; int main() { int i,j; scanf("%d",&n); for(i=0;i<n;i++) { for(j=0;j<n;j++) { int e; scanf("%d",&e); if(e==-1)M[i][j]=INFTY; else M[i][j]=e; } }...
2,128
memory_bytes
{'s_id': 's857429336', 'p_id': 'p02241', 'u_id': 'u374194629', 'date': '1580876066', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2128', 'code_size': '995'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n#define MAX 100\n#define INFTY 5000\n#define WHITE 0\n#define GRAY 1\n#define BLACK 2\n\nint prim(void);\n\nint...
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 should 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_574781
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> #include <math.h> int main() { int a, b,t; scanf("%d %d %d", &a, &b,&t); printf("%d",(t/a)*b); return 0; }
128
memory_bytes
{'s_id': 's826618374', 'p_id': 'p03059', 'u_id': 'u163680061', 'date': '1591009928', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '216'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 <ctype.h>\n#include <math.h>\n\nint main() {\n\n int a, b,...
CDSS_642134
CDSS
#include <stdio.h> int main() { int A, B; scanf("%d %d", &A, &B); int ADD = A+B; int SUB = A-B; int MLT = A*B; if (MLT >= ADD) { if (ADD >= SUB) printf("%d", MLT); else if (MLT >= SUB) printf("%d", MLT); else printf("%d", SUB); } else if (ADD >= SUB) { if (SUB >= ML...
128
memory_bytes
{'s_id': 's653719706', 'p_id': 'p03337', 'u_id': 'u601062465', 'date': '1528408213', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '613'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 int ADD = A+B;\n int SUB = A-B;\n int MLT = A*B;\n...
CDSS_609490
CDSS
#include<stdio.h> int main(void) { int no; scanf("%d",&no); if(no == 3 || no == 5 || no == 7){ printf("YES"); }else{ printf("NO"); } return 0; }
128
memory_bytes
{'s_id': 's127137725', 'p_id': 'p03210', 'u_id': 'u067763075', 'date': '1543807301', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '159'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n\tint no;\n\t\n\tscanf(\"%d\",&no);\n\t\n\tif(no == 3 || no == 5 || no == 7){\n\t\tprintf(\"...
CDSS_122619
CDSS
#include<stdio.h> int main(void){ int n[100]; int i,j,s,t,u,v,w,x; int sum=0; i=0; do{ scanf("%d",&n[i]); i++; }while(n[i-1]!=0); for(i=0;n[i]!=0;i++){ s=n[i]; t=n[i]/6+1; for(j=1;j<t;j++){ if(s%j==0) sum+=j; } if(n[i]%5==0){ x=n[i]/5; if(s%x==0) sum+=x; } if(n[i]%4==0){ w=n[i]/4; if(s%w==0) su...
584
memory_bytes
{'s_id': 's501954363', 'p_id': 'p01224', 'u_id': 'u083188241', 'date': '1436776711', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2570', 'memory': '584', 'code_size': '610'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\nint n[100];\nint i,j,s,t,u,v,w,x;\nint sum=0;\n\n\ni=0;\ndo{\nscanf(\"%d\",&n[i]);\ni++;\n}whi...
CDSS_685624
CDSS
#include <stdio.h> #define M 1000 #define X 100000 int main(void){ char S[X]; int N,l,r,i,j,k=0; scanf("%d",&N); if(N>1000||N<1){ printf("Wrong number.\n"); return 0; } for(i=0;i<X;i++){ S[i] = 'F'; } for(i=0;i<N;i++){ scanf("%d %d",&l,&r); if(l>...
256
memory_bytes
{'s_id': 's222445707', 'p_id': 'p03606', 'u_id': 'u289517479', 'date': '1507358607', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '704'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define M 1000\n#define X 100000\n\nint main(void){\n\n char S[X];\n int N,l,r,i,j,k=0;\n scanf(\"%d\",...
CDSS_447603
CDSS
#include<stdio.h> int main(){ int n; int Lucky = 0; scanf("%d", &n); for(int i=0;i<3;i++){ if(n%10==7) Lucky = 1; n= n/10; } if(Lucky==1){ printf("Yes"); }else{ printf("No"); } return 0; }
1,684
memory_bytes
{'s_id': 's092234001', 'p_id': 'p02711', 'u_id': 'u826251282', 'date': '1595270599', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1684', 'code_size': '235'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n;\n int Lucky = 0;\n scanf(\"%d\", &n);\n for(int i=0;i<3;i++){\n if(n%10==7)\n Lu...
CDSS_670175
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #include <stdlib.h> #include <stdbool.h> #define MOD 1000000007 #define INFTY 2147400000 #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 QS9...
128
memory_bytes
{'s_id': 's385599242', 'p_id': 'p03485', 'u_id': 'u926548116', 'date': '1513476078', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '7819'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 ...
CDSS_732404
CDSS
#include <stdio.h> #include <stdlib.h> int main(int argc, char * argv[]){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a+b==c || a+c==b || b+c==a) { printf("Yes\n"); }else{ printf("No\n"); } return EXIT_SUCCESS; }
128
memory_bytes
{'s_id': 's445425675', 'p_id': 'p03943', 'u_id': 'u890657861', 'date': '1478484345', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '259'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(int argc, char * argv[]){\n int a,b,c;\n scanf(\"%d %d %d\",&a,&b,&c);\n ...
CDSS_279685
CDSS
#include <stdio.h> int main(void){ int a,b,c; scanf("%d %d %d\n",&a,&b,&c); if(a<b && b<c){ puts("Yes"); }else{ puts("No"); } return 0; }
2,040
memory_bytes
{'s_id': 's393429537', 'p_id': 'p02392', 'u_id': 'u939505470', 'date': '1526346490', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '184'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int a,b,c;\n scanf(\"%d %d %d\\n\",&a,&b,&c);\n \n if(a<b && b<c){\n puts(\...
CDSS_534936
CDSS
A[999][1000],I[1000],u[999];i,j;d;F=2;main(N){for(scanf("%d",&N);i<N;++i)for(j=0;j<N-1;)scanf("%d",A[j++]+i);for(;F&2;)for(F=1,i=!++d;i<N;++i)u[i]<d&I[i]<N-1&&I[F&=2,j=A[I[i]][i]-1]<N-1&&u[j]<d&A[I[j]][j]==i+1&&++I[u[i]=u[j]=d,++I[i],F=2,j];printf("%d",F*d-1);}
4,096
memory_bytes
{'s_id': 's348458310', 'p_id': 'p02925', 'u_id': 'u657913472', 'date': '1567393569', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1987', 'memory': '4096', 'code_size': '261'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\nA[999][1000],I[1000],u[999];i,j;d;F=2;main(N){for(scanf(\"%d\",&N);i<N;++i)for(j=0;j<N-1;)scanf(\"%d\",A[j++]+i);for(;F&2;)for(F=1,i...
CDSS_694028
CDSS
#include <stdio.h> int main(void){ int n; scanf("%d", &n); if(n >= 64){ printf("64\n"); }else if(n >= 32){ printf("32\n"); }else if(n >= 16){ printf("16\n"); }else if(n >= 8){ printf("8\n"); }else if(n >= 4){ printf("4\n"); }else if(n >= 2){ printf("2\n"); }else{ printf("1\n"); } return 0; }
128
memory_bytes
{'s_id': 's849763559', 'p_id': 'p03644', 'u_id': 'u294159462', 'date': '1501423668', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '317'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n\tint n;\n\tscanf(\"%d\", &n);\n\tif(n >= 64){\n\t\tprintf(\"64\\n\");\n\t}else if(n >= 32){\n\...
CDSS_250817
CDSS
#include <stdio.h> int main() { int cm[2]; scanf("%d %d", &cm[0], &cm[1]); printf("%d %d\n", cm[0] * cm[1],cm[0]*2+cm[1]*2); return 0; }
596
memory_bytes
{'s_id': 's964170021', 'p_id': 'p02389', 'u_id': 'u144274422', 'date': '1438335536', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '140'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n\tint cm[2];\n\tscanf(\"%d %d\", &cm[0], &cm[1]);\n\tprintf(\"%d %d\\n\", cm[0] * cm[1],cm[0]*2+c...
CDSS_36100
CDSS
#include<stdio.h> int main(){ long m,n,a,b; while(scanf("%ld %ld",&m,&n)!=EOF){ a=m; b=n; while(m!=n){ if(m>n)m=m-n; else n=n-m; } printf("%ld %ld\n",n,(a/n)*b); } return 0; }
0
memory_bytes
{'s_id': 's828404000', 'p_id': 'p00005', 'u_id': 'u769144819', 'date': '1282645234', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '197'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tlong m,n,a,b;\n\twhile(scanf(\"%ld %ld\",&m,&n)!=EOF){\n\t\ta=m;\n\t\tb=n;\n\t\twhile(m!=n){\n\t\t...
CDSS_607273
CDSS
#include <stdio.h> int main(void) { int D; int asumisu; if (scanf("%d", &D) != 1) return 1; printf("Christmas"); for (asumisu = 25; asumisu > D; asumisu--) printf(" Eve"); putchar('\n'); return 0; }
128
memory_bytes
{'s_id': 's500638538', 'p_id': 'p03206', 'u_id': 'u646118499', 'date': '1580626083', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '207'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint D;\n\tint asumisu;\n\tif (scanf(\"%d\", &D) != 1) return 1;\n\tprintf(\"Christmas\");\...
CDSS_635308
CDSS
#include <stdio.h> int main() { int i, num=0; char s[5]; scanf("%s", s); for(i=0; i<4; i++) { if(s[i]=='+') num++; else num--; } printf("%d", num); return 0; }
128
memory_bytes
{'s_id': 's461381531', 'p_id': 'p03315', 'u_id': 'u195036695', 'date': '1529802392', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '164'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\nint i, num=0;\nchar s[5];\n\nscanf(\"%s\", s);\n\nfor(i=0; i<4; i++) {\nif(s[i]=='+') num++;\ne...
CDSS_628585
CDSS
#include <stdio.h> #include <stdlib.h> #include <inttypes.h> int inorinn(const void* x, const void* y) { int64_t a = *(const int64_t*)x, b = *(const int64_t*)y; return a < b ? -1 : a > b; } int32_t N; int64_t M; int64_t A[114514]; int64_t mizuhasu[114514]; int main(void) { int32_t i; int64_t mikakosi = 0; int3...
2,556
memory_bytes
{'s_id': 's593941326', 'p_id': 'p03287', 'u_id': 'u646118499', 'date': '1579763126', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '23', 'memory': '2556', 'code_size': '844'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <inttypes.h>\n\nint inorinn(const void* x, const void* y) {\n\tint64_t a = *(const...
CDSS_574161
CDSS
#include <stdio.h> int q[2][1010025] = {0}; int main(void) { int h, w, i, j, ans = 0, nh, nw; int f = 0, r = 0; int m[1005][1005] = {0}, t[1005][1005] = {0}; char s[1005]; scanf("%d %d", &h, &w); for (i = 0; i < h; i++) { scanf("%s", s); for (j = 0; j < w; j++) { if (s[j] == '.') { m[i + 1][j ...
17,384
memory_bytes
{'s_id': 's838802899', 'p_id': 'p03053', 'u_id': 'u451699824', 'date': '1596992040', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '43', 'memory': '17384', 'code_size': '860'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint q[2][1010025] = {0};\n\nint main(void)\n{\n\tint h, w, i, j, ans = 0, nh, nw;\n\tint f = 0, r = 0;\n\tint ...
CDSS_571453
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main() { char s[5]; int y; int m; int ym = 0; int mm = 0; scanf("%s\n", s); y = (int)strtol(s, NULL, 10) / 100; m = (int)strtol(s, NULL, 10) % 100; //printf("%d %d\n", y, m); if(1 <= y && y <= ...
128
memory_bytes
{'s_id': 's136320725', 'p_id': 'p03042', 'u_id': 'u180005779', 'date': '1558632660', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '641'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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[5];\n int y;\n int...