identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_472946
CDSS
#include <stdio.h> #include <math.h> int main() { double l, ans; scanf("%lf", &l); ans = pow(l/3, 3.0); printf("%lf", ans); return(0); }
2,468
memory_bytes
{'s_id': 's845613189', 'p_id': 'p02731', 'u_id': 'u501325458', 'date': '1594872623', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '2468', 'code_size': '151'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main() {\n double l, ans;\n scanf(\"%lf\", &l);\n\n ans = pow(l/3, 3.0);\n \n printf...
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 must 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" }, { "content"...
CDSS_86934
CDSS
p[' '];t[' '];n,x,j;main(i){for(;i++<1e6;)for(x=i;x<1e6;p[x+=i]=1);for(;scanf("%d%d",&n,&x),n;memset(t,!printf(x<2?"NA\n":"%d\n",x),4e6)){for(;n--;)for(i=-scanf("%d",t);++i<x;)t[i+*t]|=t[i];for(;p[x]|!t[x];x--);}}
15,000
memory_bytes
{'s_id': 's819959709', 'p_id': 'p00202', 'u_id': 'u479246559', 'date': '1331263799', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2200', 'memory': '15000', '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:\np[' '];t[' '];n,x,j;main(i){for(;i++<1e6;)for(x=i;x<1e6;p[x+=i]=1);for(;scanf(\"%d%d\",&n,&x),n;memset(t,!printf(x<2?\"NA\\n\":\"%...
CDSS_413220
CDSS
#include <stdio.h> int main() { int a; int b; int c; int d; int k; scanf("%d",&a); scanf("%d", &b); scanf("%d", &c); scanf("%d", &d); scanf("%d", &k); printf("%d", c * 60 + d - k - a * 60 - b); printf("\n"); }
2,148
memory_bytes
{'s_id': 's910377689', 'p_id': 'p02663', 'u_id': 'u224085427', 'date': '1590886944', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '2148', '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#include <stdio.h>\n\nint main()\n{\n\n int a;\n int b;\n int c;\n int d;\n int k;\n\n scanf(\"%d\",&a);\n scanf(...
CDSS_370801
CDSS
#include<stdio.h> #include<string.h> int main(void){ int m,i,h,len; int count=0; char str[404],inc[203]; while(1){ scanf("%s",str); if(str[0]=='-'){ break; } scanf("%d",&m); for(i=0;i<m;i++){ scanf("%d",&h); count+=h; } ...
2,032
memory_bytes
{'s_id': 's583726999', 'p_id': 'p02420', 'u_id': 'u857791651', 'date': '1562288215', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2032', '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#include<string.h>\nint main(void){\n int m,i,h,len;\n int count=0;\n char str[404],inc[203];\n while(1...
CDSS_386894
CDSS
#include <stdio.h> int main(void) { int num = 0; long n,d,x,y; scanf("%ld %ld",&n,&d); for(int i=0; i<n; i++){ scanf("%ld %ld",&x,&y); if(x*x + y*y <= d*d) num++; } printf("%d\n",num); return 0; }
1,732
memory_bytes
{'s_id': 's396251180', 'p_id': 'p02595', 'u_id': 'u411478442', 'date': '1596417922', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '49', 'memory': '1732', 'code_size': '233'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n int num = 0;\n long n,d,x,y;\n \n scanf(\"%ld %ld\",&n,&d);\n for(int i=0; i<n; i++){\n ...
CDSS_178417
CDSS
#include <stdio.h> #include <stdlib.h> int main(){ char input[7]; int num[100]; int i = 0; while(scanf("%s", input) != EOF){ if(input[0] == '+') num[i-2] = num[i-2] + num[i-1]; else if(input[0] == '-') num[i-2] = num[i-2] - num[i-1]; else if(input[0] == '*') num[i-2] = num[i-2] * num[i-1]; ...
1,824
memory_bytes
{'s_id': 's185996961', 'p_id': 'p02263', 'u_id': 'u549356201', 'date': '1512291430', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1824', 'code_size': '433'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(){\n char input[7];\n int num[100];\n int i = 0;\n\n while(scanf(\"%s\", input...
CDSS_660433
CDSS
#include <stdio.h> int main() { int x,a,b; scanf("%d%d%d",&x,&a,&b); if(x==a) printf("0\n"); else printf("%d\n",(x-a)%b); return 0; }
128
memory_bytes
{'s_id': 's694887791', 'p_id': 'p03447', 'u_id': 'u811796052', 'date': '1517259838', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '174'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int x,a,b;\n scanf(\"%d%d%d\",&x,&a,&b);\n if(x==a) printf(\"0\\n\");\n ...
CDSS_270991
CDSS
#include <stdio.h> int main() { int a,b; scanf("%d",&a); scanf("%d",&b); if (a > b){ printf("a > b\n"); }else if (a < b){ printf("a < b\n"); }else { printf("a == b\n"); } return 0; }
580
memory_bytes
{'s_id': 's305956207', 'p_id': 'p02391', 'u_id': 'u043929238', 'date': '1497250444', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '186'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\nint a,b;\n\nscanf(\"%d\",&a);\nscanf(\"%d\",&b);\n\nif (a > b){\nprintf(\"a > b\\n\");\n\n}else if ...
CDSS_709274
CDSS
#include <stdio.h> #include <string.h> int main() { char A[20], B[20], C[20]; scanf("%s %s %s", A, B, C); int la = strlen(A), lb = strlen(B); if (A[la - 1] == B[0] && B[lb - 1] == C[0]) { printf("YES\n"); } else { printf("NO\n"); } return 0; }
128
memory_bytes
{'s_id': 's479404625', 'p_id': 'p03729', 'u_id': 'u203927510', 'date': '1495601183', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '262'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main()\n{\n\tchar A[20], B[20], C[20];\n\n\tscanf(\"%s %s %s\", A, B, C);\n\n\tint la =...
CDSS_105917
CDSS
#include <stdio.h> int a,b=2000,c; int main(void){ for(;c<3;++c)scanf("%d",&a),b=(a<b)?a:b; scanf("%d%d",&a,&c),a=(a<c)?a:c; printf("%d\n",a+b-50); return 0; }
592
memory_bytes
{'s_id': 's596285936', 'p_id': 'p00488', 'u_id': 'u612181412', 'date': '1447565711', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '164'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint a,b=2000,c;\n\nint main(void){\n\tfor(;c<3;++c)scanf(\"%d\",&a),b=(a<b)?a:b;\n\tscanf(\"%d%d\",&a,&c),a=(a<c)?...
CDSS_411224
CDSS
#define __STDC_WANT_IEC_60559_DFP_EXT__ #include <stdio.h> #include <stdint.h> #include <inttypes.h> #include <math.h> int main(int argc, char *argv[]) { int64_t a; _Decimal128 b; #if 0 scanf("%" SCNd64 " %DDf", &a, &b); #else // 現行のGCCは _DecimalNN の入出力に対応していないので手動で読み込む { int d1, d2; ...
1,864
memory_bytes
{'s_id': 's779711039', 'p_id': 'p02659', 'u_id': 'u947805421', 'date': '1591112779', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1864', 'code_size': '679'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define __STDC_WANT_IEC_60559_DFP_EXT__\n#include <stdio.h>\n#include <stdint.h>\n#include <inttypes.h>\n#include <math.h>\n\nint main...
CDSS_361721
CDSS
#include <stdio.h> #include <ctype.h> int main() { char ch; while(1){ scanf("%c",&ch); if(isupper(ch)){ ch = tolower(ch); }else{ ch = toupper(ch); } printf("%c",ch); if(ch == '\n'){ break; } } return 0; }
524
memory_bytes
{'s_id': 's979991728', 'p_id': 'p02415', 'u_id': 'u261444710', 'date': '1467874209', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '234'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <ctype.h>\n\nint main()\n{\n\tchar ch;\n\t\n\twhile(1){\n\t\tscanf(\"%c\",&ch);\n\t\tif(isupper(ch)){\n\t...
CDSS_243040
CDSS
#include <stdio.h> int main(void) { int x; scanf("%d", &x); if (x >= 1 && x <= 100) printf("%d\n", x*x*x); return 0; }
596
memory_bytes
{'s_id': 's444217600', 'p_id': 'p02388', 'u_id': 'u848303657', 'date': '1466314904', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '127'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int x;\n scanf(\"%d\", &x);\n if (x >= 1 && x <= 100) printf(\"%d\\n\", x*x*x);\n return...
CDSS_217873
CDSS
#include<stdio.h> #define MAX 10000 #define NIL -1 struct Node{ int p, l, r; }; struct Node A1[MAX]; int num; int A2[MAX], A3[MAX]; int getDepth(int m){ int d = 0; while(1){ m = A1[m].p; if ( m == NIL ) break; d++; } return d; } int getSibling(int m){ if ( A1[m].p == NIL ) return NIL; if (...
620
memory_bytes
{'s_id': 's040203446', 'p_id': 'p02280', 'u_id': 'u485551331', 'date': '1465999111', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '620', 'code_size': '1895'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define MAX 10000\n#define NIL -1\n\nstruct Node{\n int p, l, r;\n};\n\nstruct Node A1[MAX];\nint num;\nint A2[MAX...
CDSS_547586
CDSS
#include<stdio.h> int main(){ int N, D, enable; scanf("%d %d", &N, &D); enable = D * 2 + 1; for (int b = 1; b < N+1;b++){ if(N<=enable*b){ printf("%d", b); break; } } return 0; }
128
memory_bytes
{'s_id': 's701348923', 'p_id': 'p02970', 'u_id': 'u559994901', 'date': '1581997401', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '243'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int N, D, enable;\n scanf(\"%d %d\", &N, &D);\n enable = D * 2 + 1;\n for (int b = 1; b <...
CDSS_116951
CDSS
#include<stdio.h> int main() { int n,i,j,l,d,c; while(1){ c=0; scanf("%d",&n); if(n==0)break; if(n==1)printf("1\n"); else{ for(i=n+1;i<=n*2;i++){ d=0; for(j=2;j*j<=i;j++){ if(i%j==0){d++;break;} } if(d==0)c++; } printf("%d\n",c);} } return 0; }
612
memory_bytes
{'s_id': 's454808574', 'p_id': 'p00753', 'u_id': 'u962041986', 'date': '1465020083', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '620', 'memory': '612', 'code_size': '306'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n \nint main()\n{\n int n,i,j,l,d,c;\n while(1){ \n c=0;\n scanf(\"%d\",&n);\n if(n==0)break;\n if(n=...
CDSS_420036
CDSS
#include <stdio.h> int main() { long a,b,c,k; long sum=0; int f=0; scanf("%ld",&a); scanf("%ld",&b); scanf("%ld",&c); scanf("%ld",&k); if(a<k){ sum+=a; f=1; k=k-a; } else sum=k; if(f==1&&b<k){ f=2; k=k-b; } if(f==2) sum=sum-k; printf("%ld",sum); return 0; }
1,704
memory_bytes
{'s_id': 's400395560', 'p_id': 'p02682', 'u_id': 'u587922695', 'date': '1591231408', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1704', 'code_size': '301'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 long a,b,c,k;\n long sum=0;\n int f=0;\n scanf(\"%ld\",&a); scanf(\"%ld\",&b); scanf(\"%ld\",&...
CDSS_25694
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> int main() { int a, b, sum, i; while(scanf("%d%d", &a, &b)!=EOF) { i=0; sum=a+b; while(sum>0) { i=i+1; sum=sum/10; } printf("%d\n", i); } return 0; }
1,976
memory_bytes
{'s_id': 's894571153', 'p_id': 'p00002', 'u_id': 'u011621222', 'date': '1556288919', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1976', 'code_size': '239'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n\n\nint main()\n{\n\tint a, b, sum, i;\n\twhile(scanf(\"%d%d\", &a, &b)!=E...
CDSS_715616
CDSS
#include<stdio.h> #include<stdlib.h> int main(void){ int W,a,b,distance; scanf("%d %d %d",&W,&a,&b); if((a <= b && b <= (a+W)) || (b <= a && a <= (b+W))){ distance = 0; }else{ if(abs(b-(a+W)) < abs(a-(b+W))){ distance = abs(b-(a+W)); }else{ distance = ...
128
memory_bytes
{'s_id': 's159700386', 'p_id': 'p03778', 'u_id': 'u045767587', 'date': '1566607860', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '394'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint main(void){\n\n int W,a,b,distance;\n\n scanf(\"%d %d %d\",&W,&a,&b);\n\n if((a ...
CDSS_660338
CDSS
#include<stdio.h> int main(void) { int a,b,have; scanf("%d%d%d", &have,&a,&b); printf("%d", (have-a)%b); return 0; }
128
memory_bytes
{'s_id': 's282704685', 'p_id': 'p03447', 'u_id': 'u817824419', 'date': '1520815581', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '124'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int a,b,have;\n scanf(\"%d%d%d\", &have,&a,&b);\n printf(\"%d\", (have-a)%b);\n return 0;\n...
CDSS_350131
CDSS
#include <stdio.h> int main(){ int count[5][4][11]; int i, j, k; int n, b, f, r, v; for(i = 1; i <= 4; i++){ for(j = 1; j <= 3; j++){ for(k = 1; k <= 10; k++){ count[i][j][k] = 0; } } } scanf("%d",&n); for(i = 1; i <= n; i++){ ...
2,056
memory_bytes
{'s_id': 's017205426', 'p_id': 'p02409', 'u_id': 'u693167167', 'date': '1584939651', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '667'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 count[5][4][11];\n int i, j, k;\n int n, b, f, r, v;\n\n for(i = 1; i <= 4; i++){\n ...
CDSS_680340
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> int main(){ int N,K; scanf("%d %d",&N,&K); int A = 1; int B = 1; int num = 1; for(int i=0; i<N; i++){ A = num * 2; B = num + K; if(A > B){ num = B; } else{ num = A; } } printf("%d\n",num); return 0; }
128
memory_bytes
{'s_id': 's544883495', 'p_id': 'p03564', 'u_id': 'u174931884', 'date': '1583616452', '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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n\nint main(){\n\tint N,K;\n\tscanf(\"%d %d\",&N,&K);\n\tint A = 1;\n\tint B...
CDSS_496012
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdint.h> // uint64_t #define max(a,b) ((a) > (b) ? (a) : (b)) #define min(a,b) ((a) > (b) ? (b) : (a)) #define BUF_SIZE 20 // size: specify sizeof(str) int get_str(char *str, int size) { if(!fgets(str, size, stdin)) return -1; return 0; } ...
256
memory_bytes
{'s_id': 's737862386', 'p_id': 'p02787', 'u_id': 'u866370648', 'date': '1588189187', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '28', 'memory': '256', 'code_size': '1402'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <stdint.h> // uint64_t\n\n#define max(a,b) ((a) > (b) ? (a) : (...
CDSS_388191
CDSS
#include <stdio.h> int main(void){ int r,g,b, k; scanf("%d %d %d", &r, &g, &b); scanf("%d", &k); while(g<=r){ g = g*2; k = k-1; if(k<0){ printf("No\n"); break; } } if(k>=0){ while(b<=g){ b = b*2; k = k-1; ...
1,660
memory_bytes
{'s_id': 's920608675', 'p_id': 'p02601', 'u_id': 'u448566806', 'date': '1595729025', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1660', 'code_size': '491'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int r,g,b, k;\n scanf(\"%d %d %d\", &r, &g, &b);\n scanf(\"%d\", &k);\n while(g<=r...
CDSS_173014
CDSS
#include<stdio.h> #include<stdlib.h> #define N 36 typedef struct{ int suji; char moji; }card; main(){ int n, i, j, minj, hantei = 1; card a[N], d[N], b, c; scanf("%d", &n); if( N<n ) exit(1); for(i = 0;i < n;i++){ scanf(" %c%d", &a[i].moji, &a[i].suji); } for(i = 0;i < n;i++){ d[i] ...
608
memory_bytes
{'s_id': 's123912574', 'p_id': 'p02261', 'u_id': 'u908075228', 'date': '1429787562', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '1146'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 N 36\n \ntypedef struct{\n int suji;\n char moji;\n}card;\n \nmain(){\n int n, i, j,...
CDSS_401663
CDSS
#include <stdio.h> int main(void) { int a,b,c,d,e; scanf("%d%d%d%d%d", &a,&b,&c,&d,&e); if(a == 0){ printf("1\n"); }else if(b == 0){ printf("2\n"); }else if(c == 0){ printf("3\n"); }else if(d == 0){ printf("4\n"); }else{ printf("5\n"); } }
1,608
memory_bytes
{'s_id': 's229719497', 'p_id': 'p02639', 'u_id': 'u883554166', 'date': '1594780437', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1608', 'code_size': '313'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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,d,e;\n scanf(\"%d%d%d%d%d\", &a,&b,&c,&d,&e);\n\n if(a == 0){\n pri...
CDSS_443921
CDSS
#include<stdio.h> int n,m,a,i,r=0; int main(){ scanf("%d%d",&n,&m); for(i=0;i<m;i++){ scanf("%d",&a); r+=a; } if(n-r>=0)printf("%d",n-r); else puts("-1"); return 0; }
1,736
memory_bytes
{'s_id': 's152031057', 'p_id': 'p02706', 'u_id': 'u125212320', 'date': '1587345283', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1736', 'code_size': '206'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,m,a,i,r=0;\nint main(){\n scanf(\"%d%d\",&n,&m);\n for(i=0;i<m;i++){\n scanf(\"%d\",&a);\n ...
CDSS_578459
CDSS
#include <stdio.h> int main(){ int n; int siro=0,kuro=0,ans,i; char s[200002]=""; if(scanf("%d ",&n)!=1)return 1; if(scanf("%s",s)!=1)return 1; for(i=0;i<n;i++){ if(s[i]=='.'){ siro++; } } ans=n; for(i=0;i<n;i++){ if(s[i]=='.'){ siro--; } if(kuro+siro<ans)ans=kuro+siro; if(s[i]=='#'){ ...
384
memory_bytes
{'s_id': 's750426550', 'p_id': 'p03069', 'u_id': 'u902126369', 'date': '1555828093', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '384', 'code_size': '368'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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;\n\tint siro=0,kuro=0,ans,i;\n\tchar s[200002]=\"\";\n\tif(scanf(\"%d \",&n)!=1)return 1;\n...
CDSS_173292
CDSS
/* Sort I - Stable Sort */ #include <stdio.h> void swap( char* a, char* b ) { char tmp; tmp = *a; *a = *b; *b = tmp; } int main( void ) { int n, i, j; scanf( "%d\n", &n ); char bE[n], bA[n]; for ( i = 0; i < n; i++ ) scanf( " %c%c", &bE[i], &bA[i] ); char sE[n], sA[n]; for ( i = 0; i < n; i...
608
memory_bytes
{'s_id': 's802023824', 'p_id': 'p02261', 'u_id': 'u472907951', 'date': '1462965209', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '1256'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* Sort I - Stable Sort */\n\n#include <stdio.h>\n\nvoid swap( char* a, char* b )\n{\n char tmp;\n tmp = *a;\n *a = *b;\n *b = tmp...
CDSS_99807
CDSS
#include <stdio.h> int main(void) { char len[1001]; int i; scanf("%s", len); getchar(); i = 0; while (len[i] != '\0'){ if ('D' <= len[i] && len[i] <= 'Z'){ len[i] -= 3; } else { switch (len[i]){ case 'A': len[i] = 'X'; break; case 'B': len[i] = 'Y'; break; ca...
0
memory_bytes
{'s_id': 's057271097', 'p_id': 'p00435', 'u_id': 'u032763525', 'date': '1319957776', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '416'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tchar len[1001];\n\tint i;\n\t\n\tscanf(\"%s\", len);\n\tgetchar();\n\t\n\ti = 0;\n\twhile (...
CDSS_630438
CDSS
#include <stdio.h> int main(){ int A[3]; int i; scanf("%d %d %d",&A[0],&A[1],&A[2]); int max = A[0],min = A[0]; for(i = 0;i < 3; ++i){ if(max < A[i]) max = A[i]; if(min > A[i]) min = A[i]; } printf("%d\n",max - min); return 0; }
128
memory_bytes
{'s_id': 's870802674', 'p_id': 'p03292', 'u_id': 'u185464141', 'date': '1535244089', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '254'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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[3];\n int i;\n scanf(\"%d %d %d\",&A[0],&A[1],&A[2]);\n int max = A[0],min = A[0];\n fo...
CDSS_229478
CDSS
#include <stdio.h> #define MAX 2000000 int H,A[MAX+1]; void maxHeapify(int i){ int l,r,Lst,cd; l = 2*i; r = 2*i+1; if(l <= H && A[l] > A[i]){ Lst = l; }else Lst = i; if(r <= H && A[r] > A[Lst]){ Lst = r; } if(Lst != i){ cd = A[Lst]; A[Lst] = A[i]; A[i] = cd; maxHeapify(Lst...
3,680
memory_bytes
{'s_id': 's404811580', 'p_id': 'p02288', 'u_id': 'u087575580', 'date': '1579602166', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '3680', 'code_size': '519'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define MAX 2000000\n\nint H,A[MAX+1];\n\nvoid maxHeapify(int i){\n int l,r,Lst,cd;\n \n l = 2*i; r = 2*i+1;\n ...
CDSS_201646
CDSS
#include<stdio.h> #define datamax 500001 #define banpei 1000000001 int left[datamax/2 +1]; int right[datamax/2 + 1]; int cnt; void merge(int *,int,int,int,int); void mergeSort(int *,int,int,int); int main(){ int a[datamax],n,i; cnt = 0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a[i]); } mergeSort(...
5,644
memory_bytes
{'s_id': 's037608077', 'p_id': 'p02272', 'u_id': 'u916841654', 'date': '1545300067', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '5644', 'code_size': '1089'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 datamax 500001\n#define banpei 1000000001\nint left[datamax/2 +1];\nint right[datamax/2 + 1];\nint cnt;\nvo...
CDSS_223931
CDSS
#include <stdio.h> #include <stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL Node root; Node treeSearch(Node u, int k){ if(u == NIL || k == u->key) return u; if(k < u->key) return treeSearch(u->left, k); els...
20,488
memory_bytes
{'s_id': 's818271039', 'p_id': 'p02284', 'u_id': 'u868425387', 'date': '1578556818', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '290', 'memory': '20488', 'code_size': '1443'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nstruct node{\n struct node *right;\n struct node *left;\n struct node *parent;\n int ke...
CDSS_715925
CDSS
#include<stdio.h> int main() { int x; scanf("%d", &x); int ans; int p = 0; for (ans = 0; p < x; ans++) p += ans; ans--; printf("%d\n", ans); return 0; }
128
memory_bytes
{'s_id': 's959737890', 'p_id': 'p03779', 'u_id': 'u600300412', 'date': '1548561182', '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()\n{\n int x;\n scanf(\"%d\", &x);\n int ans;\n int p = 0;\n for (ans = 0; p < x; ans++)\n ...
CDSS_661694
CDSS
#include <stdio.h> #include <math.h> int main(){ int a,b,c; scanf("%d %d",&a,&b); c = a*b; if(c%2 == 0) puts("Even"); else puts("Odd"); return 0; }
2,084
memory_bytes
{'s_id': 's588116265', 'p_id': 'p03455', 'u_id': 'u543759722', 'date': '1592803198', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '2084', 'code_size': '177'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 a,b,c;\n scanf(\"%d %d\",&a,&b);\n\n c = a*b;\n\n if(c%2 == 0)\n p...
CDSS_731345
CDSS
#include<stdio.h> void run(void){ int n; scanf("%d",&n); int k=1; while(k*(k+1)/2<n) k++; while(n>0){ if(n>=k){ printf("%d\n",k); n-=k; } k--; } } int main(void){ run(); return 0; }
128
memory_bytes
{'s_id': 's842516616', 'p_id': 'p03920', 'u_id': 'u425248533', 'date': '1547594213', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '223'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nvoid run(void){\n int n;\n scanf(\"%d\",&n);\n int k=1;\n while(k*(k+1)/2<n) k++;\n while(n>0){\n if(n>=k...
CDSS_738276
CDSS
#include<stdio.h> #include<math.h> int main() { long long S, s, sum = 0; int len = 0, p, q; scanf("%lld", &S); for (int i = 0; i <= 10; i++) { if (S <= pow(10, i)) { len = i; break; } } #ifdef DEBUG printf("%d\n", len); #endif DEBUG for (int mask = 0; mask < pow(2, len - 1); mask++) { s = S; fo...
128
memory_bytes
{'s_id': 's257253984', 'p_id': 'p04001', 'u_id': 'u189521276', 'date': '1590463287', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '513'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tlong long S, s, sum = 0;\n\tint len = 0, p, q;\n\n\tscanf(\"%lld\", &S);\n\tfor...
CDSS_352152
CDSS
#include<stdio.h> int main(void){ int m,f,r,p; while(1){ scanf("%d %d %d",&m,&f,&r); if(m==-1&&f==-1&&r==-1) break; p=m+f; if(m==-1||f==-1||p<30) printf("F\n"); else if(p>=80) printf("A\n"); else if(p>=65) printf("B\n"); else if(p>=50||r>=50) printf("C\n"); else printf("D\n"); } return 0; }
584
memory_bytes
{'s_id': 's007073179', 'p_id': 'p02411', 'u_id': 'u113556167', 'date': '1447002783', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '315'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 m,f,r,p;\n\n\twhile(1){\n\t\tscanf(\"%d %d %d\",&m,&f,&r);\n\t\tif(m==-1&&f==-1&&r==-1) brea...
CDSS_433259
CDSS
/** author : ©LoneWolfDON Git : MahinHossainMunna **/ /* */ #include <stdio.h> int main() { int A,B,C,D; scanf("%d%d%d%d",&A,&B,&C,&D); for (int i = 0;;i++) { if(i%2 == 0) C -= B; else A -= D; if(A <= 0) { printf("No\n");...
1,660
memory_bytes
{'s_id': 's241810577', 'p_id': 'p02700', 'u_id': 'u313192099', 'date': '1592113883', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1660', 'code_size': '460'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/**\n\nauthor :\t ©LoneWolfDON\nGit : MahinHossainMunna\n\n**/\n/*\n\n*/\n#include <stdio.h>\n\nint main()\n{\n int A,B,C,D...
CDSS_57421
CDSS
#include<stdio.h> int main(){ int a[4],b[4],j,k,m,n; while(scanf("%d%d%d%d%d%d%d%d",&a[0],&a[1],&a[2],&a[3],&b[0],&b[1],&b[2],&b[3])!=EOF){ m=0; n=0; for(j=0;j<4;j++) for(k=0;k<4;k++){ if(j==k&&a[j]==b[k]) m++; if(j!=k&&a[j]==b[k]) n++; } printf("%d %d\n",m,n); } return 0; }
0
memory_bytes
{'s_id': 's222856457', 'p_id': 'p00025', 'u_id': 'u372785464', 'date': '1277740052', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '275'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\nint a[4],b[4],j,k,m,n;\nwhile(scanf(\"%d%d%d%d%d%d%d%d\",&a[0],&a[1],&a[2],&a[3],&b[0],&b[1],&b[2],&b[...
CDSS_568491
CDSS
#include<stdio.h> #include<stdlib.h> #include<stdint.h> #include<inttypes.h> #include<string.h> #include<math.h> typedef int32_t i32; typedef int64_t i64; #define MAX(a,b) ((a) > (b) ? (a) : (b)) #define MIN(a,b) ((a) < (b) ? (a) : (b)) #define ABS(a) ((a) > (0) ? (a) : -(a)) void run (void) { i32 a, b; scanf ("...
128
memory_bytes
{'s_id': 's933584147', 'p_id': 'p03035', 'u_id': 'u425248533', 'date': '1558832548', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '536'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<stdint.h>\n#include<inttypes.h>\n#include<string.h>\n#include<math.h>\n\ntypedef int32...
CDSS_358692
CDSS
#include <stdio.h> int main() { int table[100+1][100+1]; int r, c; int sum; int i, j; scanf("%d %d", &r, &c); for(i = 0; i < r; i++) { sum = 0; for(j = 0; j < c; j++) { scanf("%d", &table[i][j]); sum += table[i][j]; } table[i][j] = sum; ...
2,096
memory_bytes
{'s_id': 's187238359', 'p_id': 'p02413', 'u_id': 'u513898080', 'date': '1587136367', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2096', 'code_size': '642'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 table[100+1][100+1];\n int r, c;\n int sum;\n int i, j;\n scanf(\"%d %d\", &r...
CDSS_511127
CDSS
#include <stdio.h> int main(){ int m1, m2, d1, d2; scanf("%d %d %d %d", &m1, &d1, &m2, &d2); if(d2 == 1) puts("1"); else puts("0"); return 0; }
1,644
memory_bytes
{'s_id': 's546851389', 'p_id': 'p02841', 'u_id': 'u906918812', 'date': '1599099239', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1644', 'code_size': '168'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 m1, m2, d1, d2;\n\n scanf(\"%d %d %d %d\", &m1, &d1, &m2, &d2);\n\n if(d2 == 1) puts(...
CDSS_558780
CDSS
#include<stdio.h> int main(void) { int a,x; scanf("%d%d",&x,&a); if(x>=a) puts("10"); else puts("0"); return 0; }
1,636
memory_bytes
{'s_id': 's127961864', 'p_id': 'p02999', 'u_id': 'u246721088', 'date': '1597239260', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1636', 'code_size': '128'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint a,x;\n\tscanf(\"%d%d\",&x,&a);\n\t\n\tif(x>=a)\n\tputs(\"10\");\n\t\n\telse\n\tputs(\"0\")...
CDSS_493758
CDSS
#include<stdio.h> int h,a; int main(){ scanf("%d%d",&h,&a); printf("%d",h%a==0?h/a:h/a+1); return 0; }
128
memory_bytes
{'s_id': 's792046556', 'p_id': 'p02783', 'u_id': 'u125212320', 'date': '1580068969', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '114'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 h,a;\nint main(){\n scanf(\"%d%d\",&h,&a);\n printf(\"%d\",h%a==0?h/a:h/a+1);\n return 0;\n}\nPredict ...
CDSS_317210
CDSS
#include<stdio.h> #define PI 3.14159265358979323846 int main(void){ double ans_a,ans_c,r; scanf("%lf",&r); ans_a=r*r*PI; ans_c=2*r*PI; printf("%.6f %.6f\n",ans_a,ans_c); return 0; }
2,064
memory_bytes
{'s_id': 's699153619', 'p_id': 'p02400', 'u_id': 'u661435580', 'date': '1584585318', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '207'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define PI 3.14159265358979323846\nint main(void){\n double ans_a,ans_c,r;\n scanf(\"%lf\",&r);\n ans_a=r...
CDSS_724293
CDSS
#include<stdio.h> int main(){ int k, s; scanf("%d%d", &k, &s); int x, y, z, count = 0; for(x = 0; x <= k; x++){ for(y = 0; y <= k; y++){ z = s-x-y; if(k >= z && z >= 0){ count++; } } } printf("%d\n", count); }
1,700
memory_bytes
{'s_id': 's096279249', 'p_id': 'p03835', 'u_id': 'u108378185', 'date': '1593297136', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '1700', 'code_size': '310'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int k, s;\n scanf(\"%d%d\", &k, &s);\n int x, y, z, count = 0;\n for(x = 0; x <= k; x++...
CDSS_48205
CDSS
#include<stdio.h> int main(){ int i,n=0,d; while(scanf("%d",&d)!=EOF){ for(i=d;i<600;i+=d)n+=i*i*d; printf("%d\n",n); n=0; } return 0; }
596
memory_bytes
{'s_id': 's220673408', 'p_id': 'p00014', 'u_id': 'u983285463', 'date': '1357720655', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '174'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int i,n=0,d;\n while(scanf(\"%d\",&d)!=EOF){\n for(i=d;i<600;i+=d)n+=i*i*d;\n p...
CDSS_681574
CDSS
#include <stdio.h> int main() { int a,b,c; scanf("%d%d%d",&a,&b,&c); if(a==b) printf("%d\n",c); if(a==c) printf("%d\n",b); if(b==c) printf("%d\n",a); return 0; }
128
memory_bytes
{'s_id': 's250611392', 'p_id': 'p03573', 'u_id': 'u883325972', 'date': '1550039226', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '175'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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) printf(\"%d\\n\",c);\n if(a==c) printf(\...
CDSS_451259
CDSS
#include<stdio.h> int main(){ int N, a,b,c; scanf("%d", &N); c = N%10; b = (N%100 - c)/10; a = (N - b - c)/100; if(a == 7 || b == 7 || c == 7){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
2,088
memory_bytes
{'s_id': 's477845909', 'p_id': 'p02711', 'u_id': 'u246139109', 'date': '1586739995', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '2088', 'code_size': '211'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tint N, a,b,c;\n\tscanf(\"%d\", &N);\n\tc = N%10;\n\tb = (N%100 - c)/10;\n\ta = (N - b - c)/100;\n\...
CDSS_277125
CDSS
#include <stdio.h> int main(int argc, char *argv[]) { int a = 0, b = 0, c = 0; fscanf(stdin, "%d %d %d", &a, &b, &c); if(a < b && b < c) { fprintf(stdout, "Yes\n"); }else { fprintf(stdout, "No\n"); } return 0; }
580
memory_bytes
{'s_id': 's293671384', 'p_id': 'p02392', 'u_id': 'u043652611', 'date': '1473747241', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '258'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n\nint main(int argc, char *argv[]) {\n\n int a = 0, b = 0, c = 0;\n\n fscanf(stdin, \"%d %d %d\", &a, &b, ...
CDSS_580220
CDSS
#include <stdio.h> int main(){ int A,B; int ans = 0; scanf("%d %d",&A,&B); if(A < B){ ans += B; B --; }else{ ans += A; A --; } if(A < B){ ans += B; B --; }else{ ans += A; A --; } printf("%d",ans); return 0; }
128
memory_bytes
{'s_id': 's746420577', 'p_id': 'p03071', 'u_id': 'u530130651', 'date': '1555182251', '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>\n\nint main(){\n int A,B;\n int ans = 0;\n scanf(\"%d %d\",&A,&B);\n\n if(A < B){\n ans += B;\n B --;\n ...
CDSS_131442
CDSS
#include <stdio.h> #include <stdlib.h> #include <limits.h> int n; void calculate(int **M, int **cost, int width); int main(int argc, char *argv[]) { int i, j; int **M; int **cost; scanf("%d", &n); M = (int **)malloc(sizeof(int *) * (n + 1)); for (i = 1; i <= n; i++) M[i] = (int *)malloc(sizeof(int) * 2)...
640
memory_bytes
{'s_id': 's459238013', 'p_id': 'p02234', 'u_id': 'u656314902', 'date': '1423678312', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '1297'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 <limits.h>\n\nint n;\n\nvoid calculate(int **M, int **cost, int width);\n\nint main(...
CDSS_40334
CDSS
#include <stdio.h> int main(void) { int i, n; int debt = 100000; float interest_rate = 0.05; while ( scanf("%d", &n) != EOF ) { for (i=1; i<=n; i++) { //借金 * (1 + 利率) debt = (float)debt; //floatに型変換 debt *= 1 + interest_rate; //切り上げ計算 debt = (int)debt; //intへ型変換 if(debt % 1000 != 0)...
592
memory_bytes
{'s_id': 's448502922', 'p_id': 'p00007', 'u_id': 'u769754759', 'date': '1354195385', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '461'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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;\n\tint debt = 100000;\n\tfloat interest_rate = 0.05;\n\t\n\twhile ( scanf(\"%d\",...
CDSS_719911
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<stdbool.h> #include<math.h> #include<limits.h> #define BIG 1000007 int min(int a,int b){ if(a<b) return a; else return b; } int main(){ int N,Ma,Mb; scanf("%d %d %d",&N,&Ma,&Mb); int a[42],b[42],c[42]; for(int i=0;i<N;i++) ...
28,248
memory_bytes
{'s_id': 's726850030', 'p_id': 'p03806', 'u_id': 'u270825463', 'date': '1592875023', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '41', 'memory': '28248', 'code_size': '951'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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#define BIG 1000...
CDSS_255576
CDSS
#include <stdio.h> int main(){ int a, b; scanf("%d %d", &a, &b); printf("%d %d\n", a * b, 2 * (a + b)); return 0; }
1,752
memory_bytes
{'s_id': 's650394194', 'p_id': 'p02389', 'u_id': 'u635283890', 'date': '1511159293', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1752', 'code_size': '131'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int a, b;\n scanf(\"%d %d\", &a, &b);\n printf(\"%d %d\\n\", a * b, 2 * (a + b));\n retu...
CDSS_696105
CDSS
#include <stdio.h> int main(void) { int n, k; int l[50]; int i, j; int length = 0; int *max; memset(l, 0, sizeof(l)); scanf("%d %d", &n, &k); for(i=0; i < n; i++) { scanf("%d", &l[i]); } for(j = 0; j < k; j++) { max = &l[0]; for(i = 1; i < n; i++) { if(*max < l[i]) { max = &l[i]; } } ...
128
memory_bytes
{'s_id': 's332018970', 'p_id': 'p03658', 'u_id': 'u915452813', 'date': '1500781992', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '390'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint n, k;\n\tint l[50];\n\tint i, j;\n\tint length = 0;\n\tint *max;\n\t\n\tmemset(l, 0, si...
CDSS_503662
CDSS
#include <stdio.h> int main() { char s[101]; /* 英小文字からなる文字列s */ char t[101]; /* 英小文字からなる文字列t */ scanf("%s %s", &s, &t); printf("%s%s\n", t, s); return (0); }
128
memory_bytes
{'s_id': 's317010600', 'p_id': 'p02817', 'u_id': 'u975311189', 'date': '1581542316', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '209'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n\tchar s[101];\t/* 英小文字からなる文字列s */\n\tchar t[101];\t/* 英小文字からなる文字列t */\n\n\tscanf(\"%s %s\", &s, ...
CDSS_340598
CDSS
#include<stdio.h> void call2(long int n){ long int i, x; for(i=1;i<=n;i++){ x = i; if(i % 3 == 0){ printf(" %ld", i); }else { while(x != 0){ if(x % 10 == 3) {printf(" %ld", i); break;} x /= 10; } } } prin...
2,112
memory_bytes
{'s_id': 's959271009', 'p_id': 'p02406', 'u_id': 'u436776849', 'date': '1592842195', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '431'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nvoid call2(long int n){\n long int i, x;\n for(i=1;i<=n;i++){\n x = i;\n if(i % 3 == 0){\n ...
CDSS_375094
CDSS
#include <stdio.h> #include <stdbool.h> int main(){ int N; if(scanf("%d", &N)==1); if(N<3 || N>100){ return -1; } int D1[128], D2[128]; for(int i=0; i<N; i++){ scanf("%d %d", &D1[i], &D2[i]); } bool hantei=false; for(int i=0; i<N; i++){ if( (D1[i]==D2[i]...
1,656
memory_bytes
{'s_id': 's736638292', 'p_id': 'p02547', 'u_id': 'u319615454', 'date': '1600545474', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1656', 'code_size': '543'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 int N;\n if(scanf(\"%d\", &N)==1);\n if(N<3 || N>100){\n ret...
CDSS_149698
CDSS
#include <stdio.h> void insertionSort(int*, int); int main(){ int i,j,k,N,A[100],v; scanf("%d",&N); for(i=0;i<N;i++) scanf("%d",&A[i]); insertionSort(A, N); return 0; } void insertionSort(int *A, int N){ int i,j,k,v; for(i=0;i<N-1;i++) printf("%d ",A[i]); printf("%d\n",A[N-1]); ...
2,032
memory_bytes
{'s_id': 's531416891', 'p_id': 'p02255', 'u_id': 'u016847995', 'date': '1575872531', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2032', 'code_size': '532'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nvoid insertionSort(int*, int);\n\nint main(){\n\n int i,j,k,N,A[100],v;\n\n scanf(\"%d\",&N);\n for(i=0;i<N;i...
CDSS_180953
CDSS
#include<stdio.h> typedef struct{ char name[10]; int time; } CUSTOMER; int main(){ CUSTOMER queue[200000]; int i, n, m, q, t = 0; scanf("%d%d",&n, &q); for(i = 0; i < n; i++) scanf("%s%d",queue[i].name, &queue[i].time); i = 0; while(1){ m = n; if(queue[i].time > q){ t += q; qu...
3,564
memory_bytes
{'s_id': 's121007572', 'p_id': 'p02264', 'u_id': 'u666303341', 'date': '1430391494', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '3564', '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\ntypedef struct{\n char name[10];\n int time;\n} CUSTOMER;\n\nint main(){\n CUSTOMER queue[200000];\n int i, n...
CDSS_454320
CDSS
#include<stdio.h> int main() { long long int n,s=0,i=1; scanf("%lld",&n); while(i<=n) { if(i%3!=0&&i%5!=0&&i%15!=0) { s=s+i; } i++; } printf("%lld\n",s); return 0; }
1,712
memory_bytes
{'s_id': 's098327301', 'p_id': 'p02712', 'u_id': 'u018679195', 'date': '1600489292', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1712', 'code_size': '238'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 long long int n,s=0,i=1;\n scanf(\"%lld\",&n);\n while(i<=n)\n {\n if(i%3!=0&&i%...
CDSS_234345
CDSS
#include<stdio.h> #include<math.h> int main(){ double x1,y1,x2,y2; scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2); printf("%lf\n",sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))); return 0; }
2,064
memory_bytes
{'s_id': 's116482642', 'p_id': 'p02379', 'u_id': 'u436907557', 'date': '1588625256', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', '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>\n#include<math.h>\nint main(){\n double x1,y1,x2,y2;\n scanf(\"%lf %lf %lf %lf\",&x1,&y1,&x2,&y2);\n printf...
CDSS_303877
CDSS
#include<stdio.h> int main(){ int x,y,esc,i; scanf("%d %d",&x,&y); for(i=0;;i++){ if(x==0&&y==0){ break; }else if(x>y){ esc=x; x=y; y=esc; } printf("%d %d\n",x,y); scanf("%d %d",&x,&y); } return 0; }
2,060
memory_bytes
{'s_id': 's183184987', 'p_id': 'p02397', 'u_id': 'u722951842', 'date': '1538539185', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2060', 'code_size': '254'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int x,y,esc,i;\n scanf(\"%d %d\",&x,&y);\n for(i=0;;i++){\n if(x==0&&y==0){\n break;\n ...
CDSS_119819
CDSS
#define R(x)if(r>x)r=x; main(r,D,a,b,c,d,e,A,B,C){for(;scanf("%d%d%d%d%d%d%d%d",&a,&b,&c,&d,&e,&A,&B,&C)>7;printf("%d\n",r)){ if(C>=d){ r=a*A+b*B+e*C; }else{ r=a*A+b*B+c*C; R(a*A+b*B+e*d) if(B+C>=d){R(a*A+b*(B+C-d)+e*d)} else if(A+B+C>=d){R(a*(A+B+C-d)+e*d)} else{R(e*d)} } }exit(0);}
600
memory_bytes
{'s_id': 's761394540', 'p_id': 'p00999', 'u_id': 'u300645821', 'date': '1364994840', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '299'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define R(x)if(r>x)r=x;\nmain(r,D,a,b,c,d,e,A,B,C){for(;scanf(\"%d%d%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&A,&B,&C)>7;printf(\"%d\\n\",r)){\n\...
CDSS_372753
CDSS
#include <stdio.h> int main(void){ /* push(d, x): dが0の場合、Aの先頭に整数xを挿入する。dが1の場合、末尾にxを挿入する。 randomAccess(p): Aの要素apの値を出力する。 pop(d): dが0の場合、Aの先頭の要素を削除する。dが1の場合、末尾の要素を削除する。 */ int a[800000]; int N,i,j,mode,sub,val,cnt,s; cnt = 0; s = 400000; scanf( "%d" , &N ); fo...
3,432
memory_bytes
{'s_id': 's441958470', 'p_id': 'p02432', 'u_id': 'u316985469', 'date': '1580974778', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '70', 'memory': '3432', 'code_size': '1237'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 push(d, x): dが0の場合、Aの先頭に整数xを挿入する。dが1の場合、末尾にxを挿入する。\n randomAccess(p): Aの要素apの値を出力す...
CDSS_139021
CDSS
#include<stdio.h> int MAX = 501,FUGE=10000; int SIZE=(1<<30); int main(){ int n, i, j, num, sum, A[MAX][MAX], x, y, min, d[MAX], p[MAX], s[MAX]; scanf("%d", &n); for ( i = 0; i< n; i++ ){ for ( j = 0; j < n; j++ ){ scanf("%d", &num); A[i][j] = num; if(num ==-1) A[i][j] = FUGE; } ...
804
memory_bytes
{'s_id': 's120968335', 'p_id': 'p02241', 'u_id': 'u485551331', 'date': '1468463544', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '804', 'code_size': '919'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 MAX = 501,FUGE=10000;\nint SIZE=(1<<30);\n\nint main(){\n\n int n, i, j, num, sum, A[MAX][MAX], x, y, min, d...
CDSS_700603
CDSS
#include<stdio.h> int main() { int a,b,c,num; scanf("%d%d%d",&a,&b,&c); num=(a*100)+(b*10)+c; if(num%4==0) printf("YES\n"); else printf("NO\n"); return 0; }
1,620
memory_bytes
{'s_id': 's937191680', 'p_id': 'p03693', 'u_id': 'u816631826', 'date': '1597656037', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1620', 'code_size': '181'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int a,b,c,num;\n scanf(\"%d%d%d\",&a,&b,&c);\n num=(a*100)+(b*10)+c;\n if(num%4==0)\n\t...
CDSS_679371
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...
1,788
memory_bytes
{'s_id': 's625907302', 'p_id': 'p03557', 'u_id': 'u543284218', 'date': '1514620856', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '87', 'memory': '1788', 'code_size': '1641'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n\nint descending_compare(const void *a, const void *b...
CDSS_258479
CDSS
#include<stdio.h> int main(void) { int a,b,x,y; scanf("%d",&a); scanf("%d",&b); x=a*b; y=(2*a)+(2*b); printf("%d %d\n",x,y); return 0; }
2,060
memory_bytes
{'s_id': 's311140136', 'p_id': 'p02389', 'u_id': 'u368984933', 'date': '1539565917', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2060', 'code_size': '146'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint a,b,x,y;\n\tscanf(\"%d\",&a);\n\tscanf(\"%d\",&b);\n\t\n\tx=a*b;\n\ty=(2*a)+(2*b);\n\tprin...
CDSS_204905
CDSS
#define _USE_MATH_DEFINES #include<stdio.h> #include<math.h> void koch(int n, double d, double x, double y, int w) { double r; double x1, y1; if(n == 0){ r = w*M_PI/180.0; x1 = x + d * cos(r); y1 = y + d * sin(r); printf("%.8lf %.8lf\n", x1, y1); return; } ...
644
memory_bytes
{'s_id': 's069705201', 'p_id': 'p02273', 'u_id': 'u656863641', 'date': '1470093434', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '644', 'code_size': '885'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _USE_MATH_DEFINES\n#include<stdio.h>\n#include<math.h>\n \nvoid koch(int n, double d, double x, double y, int w)\n{\n doubl...
CDSS_727436
CDSS
#include<stdio.h> int main() { char ch; scanf("%c", &ch); if(ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u') printf("vowel"); else printf("consonant"); }
1,640
memory_bytes
{'s_id': 's062775402', 'p_id': 'p03852', 'u_id': 'u018679195', 'date': '1597908502', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '1640', 'code_size': '185'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n char ch;\n scanf(\"%c\", &ch);\n if(ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ...
CDSS_641190
CDSS
#include<stdio.h> int main(){ int n,s=0; for(scanf("%d",&n);n;n/=10)s+=n%10; if(s==1)s=10; printf("%d\n",s); return 0; }
128
memory_bytes
{'s_id': 's035931381', 'p_id': 'p03331', 'u_id': 'u121922047', 'date': '1528074214', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '131'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n,s=0;\n for(scanf(\"%d\",&n);n;n/=10)s+=n%10;\n if(s==1)s=10;\n printf(\"%d\\n\",s);\n retu...
CDSS_390660
CDSS
#include <stdio.h> #define DIM 16 const long long Mod = 1000000007; long long div_mod(long long x, long long y, long long z) { if (x % y == 0) return x / y; else return (div_mod((1 + x / y) * y - x, (z % y), y) * z + x) / y; } int solve_mod(long long A[][DIM], long long b[], long long x[]) { int i, j, k, tmp; f...
1,716
memory_bytes
{'s_id': 's046195498', 'p_id': 'p02611', 'u_id': 'u943800443', 'date': '1599366876', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '1716', 'code_size': '2106'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 DIM 16\n\nconst long long Mod = 1000000007;\n\nlong long div_mod(long long x, long long y, long long z)\...
CDSS_27707
CDSS
b;main(a){while(scanf("%d%d",&a,&b)>0){a+=b;b=0;while(a>0)a/=10,b++;printf("%d\n",b);}exit(0);}
0
memory_bytes
{'s_id': 's570631127', 'p_id': 'p00002', 'u_id': 'u752673456', 'date': '1284605163', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '95'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nb;main(a){while(scanf(\"%d%d\",&a,&b)>0){a+=b;b=0;while(a>0)a/=10,b++;printf(\"%d\\n\",b);}exit(0);}\nPredict its memory footprint.", ...
CDSS_554400
CDSS
#include<stdio.h> #include<stdlib.h> int main() { char s[5]; char a,b; int flag=0; scanf("%s",s); if(s[0]==s[1]&&s[2]==s[3]&&s[0]!=s[2])flag=1; if(s[0]==s[2]&&s[1]==s[3]&&s[0]!=s[1])flag=1; if(s[0]==s[3]&&s[1]==s[2]&&s[0]!=s[1])flag=1; if(flag)printf("Yes"); else printf("No"); }
256
memory_bytes
{'s_id': 's469864084', 'p_id': 'p02987', 'u_id': 'u791173062', 'date': '1561857555', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '256', 'code_size': '319'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint main()\n{\n char s[5];\n char a,b;\n int flag=0;\n scanf(\"%s\",s);\n if(s...
CDSS_693975
CDSS
#include <stdio.h> #include <math.h> int main(void){ int N; int ans; int i; scanf("%d", &N); for (i = 0; i <= N; i++){ if (pow(2, i) <= N) ans = pow(2, i); } printf("%d\n", ans); return 0; }
256
memory_bytes
{'s_id': 's359337870', 'p_id': 'p03644', 'u_id': 'u286120733', 'date': '1504503729', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '206'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tint N;\n\tint ans;\n\tint i;\n\tscanf(\"%d\", &N);\n\tfor (i = 0; i <= N; ...
CDSS_684941
CDSS
#include <stdio.h> int main(){ int a; scanf("%d",&a); int b,c; b=a/10; c=a%10; if(b==9||c==9) puts("Yes"); else puts("No"); return 0; }
128
memory_bytes
{'s_id': 's253867408', 'p_id': 'p03605', 'u_id': 'u473296729', 'date': '1541128416', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '140'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\nint a;\nscanf(\"%d\",&a);\nint b,c;\nb=a/10;\nc=a%10;\n\nif(b==9||c==9) puts(\"Yes\");\nelse puts(\"N...
CDSS_685384
CDSS
#include <stdio.h> int main(void){ char n[2]; scanf("%s",n); if(n[0] == '9' || n[1] == '9'){ printf("Yes"); }else{ printf("No"); } return 0; }
128
memory_bytes
{'s_id': 's095682530', 'p_id': 'p03605', 'u_id': 'u719031067', 'date': '1505005342', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '152'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n\tchar n[2];\n\tscanf(\"%s\",n);\n\tif(n[0] == '9' || n[1] == '9'){\n\t\tprintf(\"Yes\");\n\t}els...
CDSS_583472
CDSS
#include<stdio.h> int aaa(int s){ return s%10; } int main(){ int a[5]; int k,idx,min=10; for(int i=0;i<5;i++){ scanf("%d",&a[i]); int x=aaa(a[i]); //x:1のくらいの数 if(x!=0&&x<=min){min=x; idx=i; } } //printf("%d\n",min); int sum=0; for(int i=0;i<5;i++){ if(i==idx)sum+=a[...
128
memory_bytes
{'s_id': 's441629389', 'p_id': 'p03076', 'u_id': 'u073336549', 'date': '1589352391', '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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint aaa(int s){\n return s%10;\n}\nint main(){\nint a[5];\n int k,idx,min=10;\n for(int i=0;i<5;i++){\n\tscanf(\...
CDSS_685678
CDSS
#include<stdio.h> #include<stdlib.h> int main(){ int a,i,count=0; int bbb,ccc; scanf("%d",&a); for(i=1;i<=a;i++){ scanf("%d",&bbb); scanf("%d",&ccc); count=ccc-bbb+1+count; } printf("%d\n",count); return 0; }
128
memory_bytes
{'s_id': 's787192853', 'p_id': 'p03606', 'u_id': 'u357201433', 'date': '1505007775', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '239'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint main(){\n int a,i,count=0;\n int bbb,ccc;\n\n scanf(\"%d\",&a);\n \n for(i=1;i<=a;i+...
CDSS_726192
CDSS
#include<stdio.h> int main() { int A,B; char op; scanf("%d %c %d",&A,&op,&B); if(op=='+') { printf("%d",A+B); } else { printf("%d",A-B); } return 0; }
128
memory_bytes
{'s_id': 's363330217', 'p_id': 'p03844', 'u_id': 'u568382716', 'date': '1563805324', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '206'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int A,B;\n char op;\n scanf(\"%d %c %d\",&A,&op,&B);\n if(op=='+')\n {\n prin...
CDSS_261617
CDSS
#include<stdio.h> int main(){ int i,h,m; scanf("%d\n",&i); h = i/3600; i = i%3600; m = i/60; i = i%60; printf("%d:%d:%d\n",h,m,i); return 0; }
596
memory_bytes
{'s_id': 's498428871', 'p_id': 'p02390', 'u_id': 'u162728576', 'date': '1490002154', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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>\nint main(){\n int i,h,m;\n scanf(\"%d\\n\",&i);\n h = i/3600;\n i = i%3600;\n m = i/60;\n i = i%60;\n printf...
CDSS_416598
CDSS
#include <stdio.h> #include <math.h> #define PI 3.1415926535897946264338327950288419716939937510L int main(void) { int A, B, H, M; long double theta, ans; scanf("%d %d %d %d", &A, &B, &H, &M); theta = 2 * PI * ((long double)H / 12.0L + ((long double)M / 60.0L) / 12.0L - (long double)M / 60.0L); an...
2,560
memory_bytes
{'s_id': 's107380650', 'p_id': 'p02677', 'u_id': 'u959986248', 'date': '1595745184', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '2560', 'code_size': '448'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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#define PI 3.1415926535897946264338327950288419716939937510L\n\nint main(void)\n{\n int A,...
CDSS_705417
CDSS
#include<stdio.h> int main() { int h,w; scanf("%d %d",&h,&w); int i; char a[102][102]; for(i=0;i<h;i++) scanf("%s",a[i]); for(i=0;i<w+2;i++) printf("#"); printf("\n"); for(i=0;i<h;i++) printf("#%s#\n",a[i]); for(i=0;i<w+2;i++) printf("#"); printf("\n"); return 0; }
128
memory_bytes
{'s_id': 's241383987', 'p_id': 'p03712', 'u_id': 'u600300412', 'date': '1542848798', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '288'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 h,w;\n\tscanf(\"%d %d\",&h,&w);\n\tint i;\n\tchar a[102][102];\n\tfor(i=0;i<h;i++)\n\t scanf(...
CDSS_616528
CDSS
#include<stdio.h> #include<string.h> #include<math.h> int main() { int n, ans; scanf("%d", &n); ans = n / 111; if (n % 111 != 0) { ans++; } printf("%d", ans * 111); }
1,676
memory_bytes
{'s_id': 's123281529', 'p_id': 'p03243', 'u_id': 'u782708184', 'date': '1596592031', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1676', 'code_size': '178'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n#include<math.h>\n\nint main() {\n\tint n, ans;\n\n\tscanf(\"%d\", &n);\n\n\tans = n / 111;\n\n...
CDSS_631264
CDSS
#include <stdio.h> #include <string.h> int main(){ char a[101],b[101],c[201]; int i,j=0,count=0; scanf("%s\n%s",&a,&b); for(i=0;i<strlen(a);i++){ c[i]=a[i]; } for(i=0;i<strlen(a);i++){ c[i+strlen(a)]=a[i]; } if(strstr(c,b)!=NULL)printf("Yes\n"); else printf("No\n"); return 0; }
128
memory_bytes
{'s_id': 's296915883', 'p_id': 'p03293', 'u_id': 'u384161668', 'date': '1532227046', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '297'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\n\nint main(){\n\tchar a[101],b[101],c[201];\n\tint i,j=0,count=0;\n\tscanf(\"%s\\n%s\",&a,&...
CDSS_523857
CDSS
#include<stdio.h> int main() { int N; double a,x; scanf("%d", &N); if(N%2==0){ a=N/2; x=a/N; printf("%lf\n", x); } else{ a=(N+1)/2; x=a/N; printf("%0.10lf\n", x); } return 0; }
128
memory_bytes
{'s_id': 's671626704', 'p_id': 'p02897', 'u_id': 'u863370423', 'date': '1586919797', '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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int N;\n double a,x;\n scanf(\"%d\", &N);\n if(N%2==0){\n a=N/2;\n x=a/...
CDSS_416815
CDSS
/* ex4_2 Acro */ #include <stdio.h> #include <math.h> #include <stdlib.h> int main(){ int length_h,length_m,hour,minute; long double ans,theta; scanf("%d %d %d %d",&length_h,&length_m,&hour,&minute); /* 角度を求める */ theta = 2*M_PI * ((minute/(long double)60) - (hour/(long double)12 + minute/(long...
2,556
memory_bytes
{'s_id': 's575360705', 'p_id': 'p02677', 'u_id': 'u356959833', 'date': '1590676456', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '2556', 'code_size': '546'}
[ { "content": "Your task is to predict the memory 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_2\n Acro */\n\n#include <stdio.h> \n#include <math.h>\n#include <stdlib.h>\nint main(){\n int length_h,length_m,hour,minu...
CDSS_229498
CDSS
#include <stdio.h> #define MAX 500000 int A[MAX],H; void maxHeapify(int); int main() { int i; scanf("%d",&H); for(i=1;i<=H;i++) { scanf("%d",&A[i]); } for(i=H/2;i>=1;i--) { maxHeapify(i); } for(i=1;i<=H;i++) { printf(" %d",A[i]); } printf("\n"); return 0; } voi...
3,664
memory_bytes
{'s_id': 's305371688', 'p_id': 'p02288', 'u_id': 'u027850672', 'date': '1579583406', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '50', 'memory': '3664', 'code_size': '1527'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define MAX 500000\n\nint A[MAX],H;\nvoid maxHeapify(int);\n\nint main()\n{\n int i;\n scanf(\"%d\",&H);\n for(...
CDSS_214073
CDSS
#include <stdio.h> #define MAX 1000 #define VMAX 10001 int n,a[MAX],s; int b[MAX],t[VMAX]; int min(int a,int b){ if(a<b)return a; else return b; } int partition(int* a,int p,int r){ int i,j,x,t; x=a[r]; i=p-1; for(j=p;j<r;j++){ if(a[j]<=x){ i++; t=a[i]; ...
2,108
memory_bytes
{'s_id': 's882160874', 'p_id': 'p02278', 'u_id': 'u102033351', 'date': '1577002008', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '1324'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define MAX 1000\n#define VMAX 10001\n\nint n,a[MAX],s;\nint b[MAX],t[VMAX];\n\nint min(int a,int b){\n if(a<...
CDSS_50473
CDSS
c[];main(char*p){for(;~scanf("%[^\n] ",p=c);puts())for(;(*p++=*p>90?*p%26+97:*p)||!strstr(p=c,"th"););}
0
memory_bytes
{'s_id': 's041969081', 'p_id': 'p00017', 'u_id': 'u999854911', 'date': '1316981511', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '103'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nc[];main(char*p){for(;~scanf(\"%[^\\n] \",p=c);puts())for(;(*p++=*p>90?*p%26+97:*p)||!strstr(p=c,\"th\"););}\nPredict its memory footp...
CDSS_179564
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> int pop(void); void push(int); int main(){ int x, y, top, n[101]; char s[100]; top = 0; while(scanf("%s", s) != EOF){ if(s[0] == '+'){ x = n[top-1]; y = n[top]; top--; n[top] = x+y; } else if(s[0] == '-'){ x = n[top...
0
memory_bytes
{'s_id': 's323621533', 'p_id': 'p02263', 'u_id': 'u256202566', 'date': '1336650778', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '574'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\nint pop(void);\nvoid push(int);\n\nint main(){\n int x, y, top, n[101];\n ...
CDSS_231813
CDSS
#include<stdio.h> int main(){ int n,m,dp[50001],a[21],i,j; scanf("%d %d\n",&n,&m); for(i=0;i<m;i++){ scanf("%d",&a[i]); } for(i=1;i<=n;i++){ dp[i]=50001; } for(i=0;i<m;i++){ for(j=a[i];j<=n;j++){ if(dp[j-a[i]]+1<dp[j]){ dp[j]=dp[j-a[i]]+1; } } } printf("%d\n",dp[n]); return 0; }
2,108
memory_bytes
{'s_id': 's580395333', 'p_id': 'p02314', 'u_id': 'u222399748', 'date': '1545372394', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '280'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\nint n,m,dp[50001],a[21],i,j;\nscanf(\"%d %d\\n\",&n,&m);\nfor(i=0;i<m;i++){\nscanf(\"%d\",&a[i]);\n}\n...
CDSS_725328
CDSS
#include <stdio.h> #include <stdlib.h> #define INF 114514810 struct iset_t { int data; struct iset_t* next[2]; }; struct iset_t* generateSet(int data, struct iset_t* next1, struct iset_t* next2) { struct iset_t* generated = malloc(sizeof(struct iset_t)); generated->data = data; generated->next[0] = next1; gene...
3,456
memory_bytes
{'s_id': 's035067498', 'p_id': 'p03837', 'u_id': 'u646118499', 'date': '1575443976', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '3456', 'code_size': '1751'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\n#define INF 114514810\n\nstruct iset_t {\n\tint data;\n\tstruct iset_t* next[2];\n};\n\nstr...
CDSS_638703
CDSS
#include<stdio.h> int main(void) { int d = 0; int n = 0; int k; long long int ans = 1; scanf("%d %d", &d, &n); if (n == 100) { n = 101; } for (k = 0; k < d; k++) { ans *= 100; } ans *= n; printf("%lld\n", ans); return 0; }
128
memory_bytes
{'s_id': 's148429976', 'p_id': 'p03324', 'u_id': 'u701803294', 'date': '1529362893', '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#include<stdio.h>\n\nint main(void) {\n\n int d = 0;\n int n = 0;\n int k;\n long long int ans = 1;\n\n scanf(\"%d %d\", &d, &n);...
CDSS_212492
CDSS
#include<stdio.h> typedef struct{ int num,id; char mark; } card; void swap(card *a,card* b){ card t=*a;*a=*b,*b=t; } int partition(card *A,int p,int r){ int x=A[r].num,i=p-1,j; for(j=p;j<r;j++){ if(A[j].num<=x){ i=i+1; swap(&A[i],&A[j]); } } swap(&A[i+1],&A[r]); return i+1; } voi...
1,780
memory_bytes
{'s_id': 's816547622', 'p_id': 'p02277', 'u_id': 'u047988051', 'date': '1432855677', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '1780', 'code_size': '885'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 num,id;\n char mark;\n} card;\n\nvoid swap(card *a,card* b){\n card t=*a;*a=*b,*b=t;\n}\...