identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_42029
CDSS
#include <stdio.h> char sieve[1000001]; int main() { int i, j, n, t; sieve[0] = sieve[1] = 1; for (i = 2; i * i <= 1000000; i++) { for (j = i * 2; j <= 1000000; j += i) { sieve[j] = 1; } } while (scanf("%d", &n) != EOF) { t = 0; for (i = 1; i <= n; i++) { if (sieve[i] == 0) t++; ...
1,572
memory_bytes
{'s_id': 's269264590', 'p_id': 'p00009', 'u_id': 'u490032117', 'date': '1408132840', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '1572', '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\nchar sieve[1000001];\n\nint main()\n{\n int i, j, n, t;\n sieve[0] = sieve[1] = 1;\n for (i = 2; i * i <= 100...
CDSS_43925
CDSS
j,a[' '],s;main(i){for(;++i<998;)if(!a[i])for(j=i*i;a[j]=j<1e6;j+=i);for(i=1;++i<1e6||~scanf(s="%d\n",&j)&&printf(s,a[j]);a[i]=s+=!a[i]);}
0
memory_bytes
{'s_id': 's845842711', 'p_id': 'p00009', 'u_id': 'u479246559', 'date': '1327134705', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '0', '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:\nj,a[' '],s;main(i){for(;++i<998;)if(!a[i])for(j=i*i;a[j]=j<1e6;j+=i);for(i=1;++i<1e6||~scanf(s=\"%d\\n\",&j)&&printf(s,a[j]);a[i]=s+...
CDSS_314148
CDSS
#include<stdio.h> int main(void) { double r,a,c; scanf("%lf",&r); a=r*r*3.141592653589; c=2*3.141592653589*r; printf("%f %f\n",a,c); return 0; }
648
memory_bytes
{'s_id': 's810034968', 'p_id': 'p02400', 'u_id': 'u187709684', 'date': '1466574105', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '144'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\ndouble r,a,c;\nscanf(\"%lf\",&r);\na=r*r*3.141592653589;\nc=2*3.141592653589*r;\nprintf(\"%f %f\...
CDSS_398214
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #define ll long long //gcdやり直す void swap (int *x, int *y) { int temp; temp = *x; *x = *y; *y = temp; } /*** * pivotを決め、 * 全データをpivotを境目に振り分け、 * pivotの添え字を返す ***/ int partition (int array[], int left, int right) { int i,...
79,856
memory_bytes
{'s_id': 's263779342', 'p_id': 'p02624', 'u_id': 'u835924161', 'date': '1593329496', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1334', 'memory': '79856', 'code_size': '2311'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#include <string.h>\n\n\n#define ll long long\n\n\n//gcdやり直す\n\nvoid swap ...
CDSS_645991
CDSS
#include <stdio.h> #include <math.h> int Max(int a, int b, int c, int k){ if(a>=b && a>=c){ return a*pow(2,k) + b + c; } if(b>=a && b>=c){ return b*pow(2,k) + a + c; } if(c>=b && c>=a){ return c*pow(2,k) + a + b; } } int main(){ int a, b, c; int k; scanf("%d %d %d", &a, &b, &c); scanf("%d", &k); pri...
384
memory_bytes
{'s_id': 's087147998', 'p_id': 'p03360', 'u_id': 'u863370423', 'date': '1569339499', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '384', 'code_size': '348'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 Max(int a, int b, int c, int k){\n\tif(a>=b && a>=c){\n\t\treturn a*pow(2,k) + b + c;\n\t...
CDSS_169268
CDSS
#include<stdio.h> int main() { int N,A[100]; int i,j,flag=1,cnt=0; int a; scanf("%d",&N); for(i=0;i<N;i++){ scanf("%d",&A[i]); } while(flag){ flag = 0; for(j=N-1;j>=1;j--){ if(A[j] < A[j-1]){ a = A[j]; A[j] = A[j-1]; A[j-1] = a; flag = 1; cnt++; } else continue; }...
2,064
memory_bytes
{'s_id': 's311779939', 'p_id': 'p02259', 'u_id': 'u262227492', 'date': '1544148649', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '451'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,A[100];\n int i,j,flag=1,cnt=0;\n int a;\n\n scanf(\"%d\",&N);\n for(i=0;i<N;i++){\n ...
CDSS_356845
CDSS
#include <stdio.h> int main(void) { int r,c,i,j; static int s[101][101]; scanf("%d%d",&r,&c); for(i=0;i<=r;i++){ for(j=0;j<c;j++){ scanf("%d",&s[i][j]); printf("%d ",s[i][j]); s[i][c]+=s[i][j]; s[r][j]+=s[i][j]; } printf("...
2,048
memory_bytes
{'s_id': 's881724542', 'p_id': 'p02413', 'u_id': 'u673591984', 'date': '1531536636', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '373'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 r,c,i,j;\n static int s[101][101];\n \n scanf(\"%d%d\",&r,&c);\n \n for(...
CDSS_573054
CDSS
#include<stdio.h> int main(){ int n,k; scanf("%d%d",&n,&k); printf("%d\n",n-(k-1)); return 0; }
128
memory_bytes
{'s_id': 's657150641', 'p_id': 'p03047', 'u_id': 'u659187034', 'date': '1557624015', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '105'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int n,k;\n scanf(\"%d%d\",&n,&k);\n printf(\"%d\\n\",n-(k-1));\n return 0;\n}\n\nPredict its me...
CDSS_84742
CDSS
#include <stdio.h> /** Application main entry point. */ int main ( int argc, char * argv[ ] ) { int i; for ( ; ; ) { int n; scanf ( "%d", &n ); if ( n == -1 ) break ; for ( i = 4; n / i; i *= 4 ); while ( i /= 4 ) { printf ( "%d", ( n / i ) % 4 ); } puts ( "" ...
0
memory_bytes
{'s_id': 's387451641', 'p_id': 'p00175', 'u_id': 'u009961299', 'date': '1324315381', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '345'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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/** Application main entry point. */\nint main (\n int argc,\n char * argv[ ]\n )\n{\n int i;\n\n for ...
CDSS_521978
CDSS
#include <stdio.h> int main(void) { int N; char S[100001]; int num; int i; char tmp; int count; int flag; num = scanf("%d\n", &N); if (num != 1) return (0); for (i=1; i<=N; i++) { num = scanf("%c", &S[i]); ...
256
memory_bytes
{'s_id': 's693108239', 'p_id': 'p02887', 'u_id': 'u378188810', 'date': '1585192477', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '256', 'code_size': '846'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 N;\n char S[100001];\n int num;\n int i;\n char ...
CDSS_567332
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int compare_int(const void *a, const void *b) { // return *(int*)a - *(int*)b; return *(long long*)a - *(long long*)b; } // qsort(A, b, sizeof(int), compare_int); int main() { int a ,b, c, d, e, X, Y; // long long b, c, d, e, X, Y...
896
memory_bytes
{'s_id': 's950477802', 'p_id': 'p03030', 'u_id': 'u301843562', 'date': '1558921195', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '896', 'code_size': '2192'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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>\nint compare_int(const void *a, const void *b)\n{\n// ...
CDSS_24293
CDSS
#include<stdio.h> int main(void) { int i,j,tmp; int mt[10]; for(i=0;i<10;i++){ scanf("%d ",&mt[i]); } for(i=9;i>=0;i--){ for(j=0;j<i;j++){ if(mt[j]<mt[j+1]){ tmp = mt[j]; mt[j] = mt[j+1]; mt[j+1] = tmp; } } } printf("%d\n%d\n%d\n",mt[0],mt[1],mt[2]); return 0; }
0
memory_bytes
{'s_id': 's962040031', 'p_id': 'p00001', 'u_id': 'u914140574', 'date': '1277882756', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '311'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n\n int i,j,tmp;\n int mt[10];\n\n for(i=0;i<10;i++){\n scanf(\"%d \",&mt[i]);\n }\n\n ...
CDSS_185005
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> typedef struct tagNode{ int x; struct tagNode* prev; struct tagNode* next; }node; node* head; node* tail; node* makenode(int x){ node* new_node; new_node=(node*)malloc(sizeof(node)); new_node->x=x; new_node->prev=NULL; new_node->next=NULL; ret...
31,788
memory_bytes
{'s_id': 's715177699', 'p_id': 'p02265', 'u_id': 'u012544139', 'date': '1493558579', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '420', 'memory': '31788', 'code_size': '1543'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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>\ntypedef struct tagNode{\n int x;\n struct tagNode* prev;\n struct tag...
CDSS_738427
CDSS
#include <stdio.h> typedef long long ll; ll min(ll x, ll y) { return x < y ? x : y; } int main() { ll a, b, c; scanf("%lld%lld%lld", &a, &b, &c); if (a % 2 == 0 || b % 2 == 0 || c % 2 == 0) { printf("0\n"); } else { printf("%lld\n", min(a * b, min(b * c, c * a))); } return 0; }
256
memory_bytes
{'s_id': 's014868964', 'p_id': 'p04005', 'u_id': 'u030504180', 'date': '1587865637', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '289'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\ntypedef long long ll;\nll min(ll x, ll y) {\n\treturn x < y ? x : y;\n}\nint main() {\n\tll a, b, c;\n\tscanf(\"%l...
CDSS_210543
CDSS
#include<stdio.h> #define MAX 100000 int A[MAX],n; int partition(int,int); int main(){ int i,q; scanf("%d",&n); for(i=0;i<n;i++) scanf("%d",&A[i]); q=partition(0,n-1); for(i=0;i<n;i++){ if(i>0) printf(" "); if(i==q) printf("["); printf("%d",A[i]); if(i==q) printf("]"); } printf("\n")...
2,088
memory_bytes
{'s_id': 's075620994', 'p_id': 'p02276', 'u_id': 'u653448590', 'date': '1545367718', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2088', 'code_size': '557'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define MAX 100000\n\nint A[MAX],n;\n\nint partition(int,int);\n\nint main(){\n int i,q;\n\n scanf(\"%d\",&n);\n ...
CDSS_662038
CDSS
#include <stdio.h> int main() { int a, b; scanf( "%d %d", &a, &b ); if( !( (a * b) % 2 )) printf( "Even\n" ); else printf( "Odd\n" ); return 0; }
128
memory_bytes
{'s_id': 's546394816', 'p_id': 'p03455', 'u_id': 'u793061180', 'date': '1579121193', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', '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;\n scanf( \"%d %d\", &a, &b );\n if( !( (a * b) % 2 ))\n printf( \"Even\\...
CDSS_110350
CDSS
#include<stdio.h> int main(){ int n, a[105], pos[105], flags[2025] = {0}, k, c, i; scanf("%d", &n); for(i=1;i<=n;i++){ scanf("%d", &a[i]); pos[i] = a[i]; flags[pos[i]] = 1; } scanf("%d", &k); while(k--){ scanf("%d", &c); if(flags[pos[c]+1] == 0 && pos[c]<...
2,104
memory_bytes
{'s_id': 's308116649', 'p_id': 'p00576', 'u_id': 'u436776849', 'date': '1593624161', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '503'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n, a[105], pos[105], flags[2025] = {0}, k, c, i;\n\n scanf(\"%d\", &n);\n for(i=1;i<=n;i...
CDSS_677032
CDSS
#include <stdio.h> #include <string.h> int main(void) { char x[2],y[2]; scanf("%s%s",x,y); if (strcmp(x,y)==0) printf("=\n"); else if (strcmp(x,y)>0) printf(">\n"); else printf("<\n"); return 0; }
128
memory_bytes
{'s_id': 's875437134', 'p_id': 'p03547', 'u_id': 'u162003826', 'date': '1531490809', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '296'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void)\n{\n char x[2],y[2];\n\n scanf(\"%s%s\",x,y);\n\n if (s...
CDSS_197862
CDSS
#include <stdio.h> #include <string.h> #define MAX 2000005 int d[MAX]; char s[15], inst[15]; int getC(char a) { if(a=='A') return 1; if(a=='C') return 2; if(a=='G') return 3; return 4; } int getPos(){ int count=0, pos=1, i; for(i=0; i<strlen(s); i++){ count += pos*(getC(s[i])); /...
7,136
memory_bytes
{'s_id': 's219090020', 'p_id': 'p02269', 'u_id': 'u162489819', 'date': '1565100525', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '140', 'memory': '7136', 'code_size': '859'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#define MAX 2000005\n\nint d[MAX];\nchar s[15], inst[15];\n\nint getC(char a) {\n if(a=='A')...
CDSS_547799
CDSS
#include <stdio.h> int main(int argc, char * argv[]) { int n ,d, ans, i; scanf("%d%d", &n, &d); ans = 0; for(i = 0;i < n;){ i += 2*d + 1; ans++; } printf("%d\n", ans); return 0; }
128
memory_bytes
{'s_id': 's978120331', 'p_id': 'p02970', 'u_id': 'u590825849', 'date': '1563823741', '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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(int argc, char * argv[]) {\n int n ,d, ans, i;\n scanf(\"%d%d\", &n, &d);\n ans = 0;\n for(...
CDSS_473431
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> int main() { int l; double v; scanf("%d", &l); v = pow(l/3.0, 3); printf("%.12f\n", v); return 0; }
128
memory_bytes
{'s_id': 's948742105', 'p_id': 'p02731', 'u_id': 'u136775014', 'date': '1584927328', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '188'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <math.h>\n\nint main() {\n\tint l;\n\tdouble v;\n\n\tscanf(\"%d...
CDSS_521599
CDSS
#include<stdio.h> int main(){ int a=0,c=0; int b[10000]; scanf("%d",&a); for(int i=0;i<a;i++) { scanf("%d",&b[i]); } for(int j=0;j<a;j++) { for(int i=j;i<a-1;i++) { c+=b[j]*b[i+1]; } } printf("%d",c); return 0; }
128
memory_bytes
{'s_id': 's745774239', 'p_id': 'p02886', 'u_id': 'u816631826', 'date': '1572307996', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '244'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tint a=0,c=0;\n\tint b[10000];\n\tscanf(\"%d\",&a);\n\t\n\tfor(int i=0;i<a;i++)\n\t{\n\t\tscanf(\"%d\...
CDSS_618964
CDSS
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <inttypes.h> #include <ctype.h> #include <stdint.h> #include <limits.h> #include <string.h> #include <wchar.h> #include <math.h> #define N_MAX (100) #define P_MAX (100) #define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1) #define MIN(a, b) ((a) < (b) ? (a...
512
memory_bytes
{'s_id': 's088688411', 'p_id': 'p03252', 'u_id': 'u615782628', 'date': '1570424605', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '512', 'code_size': '10883'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdbool.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <inttypes.h>\n#include <ctype.h>\n#include <stdint.h>\n#includ...
CDSS_599111
CDSS
#include <stdio.h> int main() { int n, a, b; int x, y, z; scanf("%d%d%d", &n, &a, &b); x = (a < b) ? a : b; y = (a + b - n < 0) ? 0 : a + b - n; printf("%d %d\n", x, y); }
128
memory_bytes
{'s_id': 's000083089', 'p_id': 'p03139', 'u_id': 'u967106822', 'date': '1548641780', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '196'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int n, a, b;\n int x, y, z;\n scanf(\"%d%d%d\", &n, &a, &b);\n x = (a < b) ? a : b;\...
CDSS_734043
CDSS
#include <stdio.h> int main(void){ int a, b, c; scanf("%d %d %d", &a, &b, &c); if ((a == b)&&(b == c)){ printf("1\n"); }else if((a != b)&&(b != c)&&(c != a)){ printf("3\n"); }else{ printf("2\n"); } return 0; }
128
memory_bytes
{'s_id': 's386130132', 'p_id': 'p03962', 'u_id': 'u302586765', 'date': '1586313224', '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\nint main(void){\n int a, b, c;\n scanf(\"%d %d %d\", &a, &b, &c);\n if ((a == b)&&(b == c)){\n p...
CDSS_597060
CDSS
#include<stdio.h> int main(void) { int T,X; double ans; scanf("%d %d",&T,&X); ans = (double)T / (double)X ; printf("%f\n",ans); return 0; }
128
memory_bytes
{'s_id': 's740183499', 'p_id': 'p03135', 'u_id': 'u782089816', 'date': '1577762959', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '155'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n int T,X;\n double ans;\n\n scanf(\"%d %d\",&T,&X);\n ans = (double)T / (double)X ;\n pri...
CDSS_502663
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> #define FOR(n) for(int i=0;i<n;i++) #define FORJ(n) for(int j=0;j<n;j++) #define PRN(n) printf("%d\n",n) #define PRF(n) printf("%lf\n",n) #define PRL(n) printf("%lld\n",n) #define PRS(s) printf("%s\n",s) #define PRC(c) printf("%c",c) #define INF 1...
128
memory_bytes
{'s_id': 's522330420', 'p_id': 'p02812', 'u_id': 'u008829811', 'date': '1578785836', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1486'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n#include<math.h>\n#define FOR(n) for(int i=0;i<n;i++)\n#define FORJ(n) for(...
CDSS_607730
CDSS
#include <stdio.h> int main(void) { int D,i; scanf("%d",&D); printf("Christmas"); for(i=0;i<abs(D-25);i++){ printf(" Eve"); } printf("\n"); return 0; }
128
memory_bytes
{'s_id': 's361609666', 'p_id': 'p03206', 'u_id': 'u809433990', 'date': '1544321630', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '161'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 D,i;\n\tscanf(\"%d\",&D);\n\tprintf(\"Christmas\");\n\tfor(i=0;i<abs(D-25);i++){\n\t\tp...
CDSS_585204
CDSS
#include <stdio.h> int main(void) { int n,i,cntR=0,cntB=0; char s[100]; scanf("%d",&n); scanf("%s",s); i=0; while(s[i] != '\0'){ //printf("%c\n",s[i]); if(s[i] == 'R'){ cntR++; }else if(s[i] == 'B'){ cntB++; } i++; } if(cntR > cntB){ printf("Yes\n"); }else{ printf("No\n"); } retur...
128
memory_bytes
{'s_id': 's161024749', 'p_id': 'p03080', 'u_id': 'u573564324', 'date': '1554196136', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '327'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,i,cntR=0,cntB=0;\n\tchar s[100];\n\t\n\tscanf(\"%d\",&n);\n\tscanf(\"%s\",s);\n\t\n\t...
CDSS_660526
CDSS
#include <stdio.h> int main(){ int a,b,c,x; scanf("%d%d%d%d",&a,&b,&c,&x); int ans = 0; int i,j,k; for(i=0;i<=a;++i){ for(j=0;j<=b;++j){ for(k=0;k<=c;++k){ int sum = 500*i+100*j+50*k; if(sum == x) ++ans; } } } printf("%d\n",ans); return 0; }
1,700
memory_bytes
{'s_id': 's308780425', 'p_id': 'p03448', 'u_id': 'u276588887', 'date': '1597625569', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1700', '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 int a,b,c,x;\n scanf(\"%d%d%d%d\",&a,&b,&c,&x);\n \n int ans = 0;\n int i,j,k;\n \n for(i=0;i...
CDSS_517089
CDSS
#include<stdio.h> int main() { int a,b; scanf("%d %d",&a,&b); if(a>=1 && a<=9 && b>=1 && b<=9) { printf("%d",a*b); } else printf("-1"); return 0; }
1,732
memory_bytes
{'s_id': 's251539189', 'p_id': 'p02879', 'u_id': 'u018679195', 'date': '1600313529', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1732', 'code_size': '184'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\n scanf(\"%d %d\",&a,&b);\n\n if(a>=1 && a<=9 && b>=1 && b<=9)\n {\n ...
CDSS_525391
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> int n, k, c, t; int main(void){ scanf("%d%d", &n, &k); for (int i = 0; i < n; ++i){ scanf("%d", &t); if (t >= k) ++c; } printf("%d", c); return 0*printf("\n"); }
128
memory_bytes
{'s_id': 's262350655', 'p_id': 'p02898', 'u_id': 'u357740560', 'date': '1569719451', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', '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#include <stdlib.h>\n#include <string.h>\n#include <ctype.h>\n\nint n, k, c, t;\nint main(void){\n scanf(\"%d%d\"...
CDSS_685635
CDSS
#include <stdio.h> #include <string.h> #include <math.h> #include <memory.h> #include <stdlib.h> int main(void) { int i,n,l,r,sum=0; scanf("%d",&n); for(i=1;i<=n;i++){ scanf("%d %d",&l,&r); sum+=r-l+1; } printf("%d\n",sum); return 0; }
128
memory_bytes
{'s_id': 's429659142', 'p_id': 'p03606', 'u_id': 'u630250284', 'date': '1506383767', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '255'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <math.h>\n#include <memory.h>\n#include <stdlib.h>\n\n\nint main(void)\n{\t\n\tint i...
CDSS_734343
CDSS
#include<stdio.h> int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); if(a!=b&&b!=c&&c!=a)printf("3"); if((a==b&&b!=c)||(a==c&&a!=b)||(a!=b&&b==c))printf("2"); if(a==b&&b==c)printf("1"); return 0; }
128
memory_bytes
{'s_id': 's291397148', 'p_id': 'p03962', 'u_id': 'u667294123', 'date': '1543959172', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '205'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,c;\n scanf(\"%d%d%d\",&a,&b,&c);\nif(a!=b&&b!=c&&c!=a)printf(\"3\");\n if((a==b&&b!=c)||(a...
CDSS_218559
CDSS
#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #define MAX 100005 #define NIL -1 /* p: parent l: left-child r: right sibling */ struct Node{ int p, l, r; }; struct Node T[MAX]; // Tree int depth(int u){ int d = 0; if (T[u].p == -1){ return 0; } return 1 + depth(T[u].p); } int height(int u){ int l = 0, r = 0; ...
600
memory_bytes
{'s_id': 's193320566', 'p_id': 'p02280', 'u_id': 'u725029766', 'date': '1402148679', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '1182'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n#include<stdio.h>\n#define MAX 100005\n#define NIL -1\n\n/*\np: parent\nl: left-child\nr: right sibli...
CDSS_153831
CDSS
#include <stdio.h> int func(int,int); int main(){ int x,y; scanf("%d %d",&x,&y); printf("%d\n",func(x,y)); return 0; } int func (int a,int b){ int r; r=a%b; if(r==0)return b; return func(b,r); }
2,140
memory_bytes
{'s_id': 's764926655', 'p_id': 'p02256', 'u_id': 'u992150099', 'date': '1575610404', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '214'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 func(int,int);\n\nint main(){\n int x,y;\n scanf(\"%d %d\",&x,&y);\n printf(\"%d\\n\",func(x,y));\n retu...
CDSS_642471
CDSS
#include <stdio.h> int main() { int NUM[100]; int BOOLEANS[100]; for(int i = 0; i < 100; i++) { NUM[i] = 0; BOOLEANS[i] = 0; } int N = 0; scanf("%d", &N); char S[100]; scanf("%s", S); for(int i = 0; i < N; i++) { if(BOOLEANS[i] == 0) { BOOLEANS[i] = 1; int tem = 0; for(int j = i + 1; j < ...
128
memory_bytes
{'s_id': 's601957632', 'p_id': 'p03338', 'u_id': 'u485409442', 'date': '1554752780', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '644'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n\tint NUM[100];\n\tint BOOLEANS[100];\n\tfor(int i = 0; i < 100; i++)\n\t{\n\t\tNUM[i] = 0;\n\t\t...
CDSS_564356
CDSS
#include<stdio.h> #include<stdlib.h> #include<stdint.h> #include<inttypes.h> typedef int32_t i32; #define ALLOC(size,type) ((type*)calloc((size),sizeof(type))) void run (void) { i32 n, m; scanf ("%" SCNi32 "%" SCNi32, &n, &m); i32 *a = ALLOC (n, i32); for (i32 i = 0; i < m; ++i) { i32 b; scanf ("%" S...
896
memory_bytes
{'s_id': 's362321434', 'p_id': 'p03013', 'u_id': 'u425248533', 'date': '1560129376', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '896', 'code_size': '681'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<stdint.h>\n#include<inttypes.h>\n\ntypedef int32_t i32;\n\n#define ALLOC(size,type) ((...
CDSS_513881
CDSS
#include<stdio.h> int main() { int h, w, k; scanf("%d %d %d", &h, &w, &k); int i, j; char s[302][302]; for (i = 0; i < h; i++) scanf("%s", s[i]); int ans[302][302]; for (i = 0; i < h; i++) for (j = 0; j < w; j++) ans[i][j] = 0; for (i = 0; i < h; i++) { for (j = 0; j < w; j++) { if (s[i][j] == '#...
1,152
memory_bytes
{'s_id': 's681032624', 'p_id': 'p02855', 'u_id': 'u600300412', 'date': '1574561950', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '1152', 'code_size': '955'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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, k;\n\tscanf(\"%d %d %d\", &h, &w, &k);\n\tint i, j;\n\tchar s[302][302];\n\tfor (i = 0; ...
CDSS_224975
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 treeMinimum(Node); Node treeMaximum(Node); Node treeSearch(Node,int); Node treeSuccessor(Node); void treeDelete(Node); void in...
20,536
memory_bytes
{'s_id': 's399523081', 'p_id': 'p02285', 'u_id': 'u829676664', 'date': '1580658350', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '300', 'memory': '20536', 'code_size': '2697'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 key;...
CDSS_226371
CDSS
#include<stdio.h> #define H 250 int parent(int); int left(int); int right(int); int main(){ int i,n,heaps[H+1]; int lk,rk; scanf("%d",&n); for(i=1;i<=n;i++){ scanf("%d",&heaps[i]); } for(i=1;i<=n;i++){ printf("node %d: key = %d, ",i,heaps[i]); if(i>1){ printf("parent key = %d, ",heaps...
600
memory_bytes
{'s_id': 's792975321', 'p_id': 'p02287', 'u_id': 'u395636550', 'date': '1466650048', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '649'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 H 250\n\nint parent(int);\nint left(int);\nint right(int);\n\nint main(){\n int i,n,heaps[H+1];\n int lk,...
CDSS_140097
CDSS
#include<stdio.h> #define INFTY 1000000 #define WHITE 0 #define GRAY 1 #define BLACK 2 int prim(); int n,M[100][100]; int main(void){ int i,j,e; scanf("%d",&n); for(i=0;i<n;i++){ for(j=0;j<n;j++){ scanf("%d",&e); M[i][j]=(e==-1) ? INFTY :e; } } printf("%d\n",prim()); return 0; } int pr...
2,088
memory_bytes
{'s_id': 's629658143', 'p_id': 'p02241', 'u_id': 'u563967927', 'date': '1532595287', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2088', 'code_size': '905'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 INFTY 1000000\n#define WHITE 0\n#define GRAY 1\n#define BLACK 2\nint prim();\nint n,M[100][100];\nint main(...
CDSS_525401
CDSS
#include<stdio.h> int main(){ int n,k,i,h[100001],cnt=0; scanf("%d%d",&n,&k); for(i=1;i<=n;i++){ scanf("%d",&h[i]); if(h[i]>=k)cnt++; } printf("%d",cnt); return 0; }
512
memory_bytes
{'s_id': 's115895263', 'p_id': 'p02898', 'u_id': 'u097182283', 'date': '1569719362', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '512', 'code_size': '188'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int n,k,i,h[100001],cnt=0;\n scanf(\"%d%d\",&n,&k);\n for(i=1;i<=n;i++){\n scanf(\"%d\",&h[i]...
CDSS_473052
CDSS
#include<stdio.h> int main(){ double L; scanf("%lf",&L); printf("%lf",L*L*L/3/3/3); return 0; }
128
memory_bytes
{'s_id': 's745159333', 'p_id': 'p02731', 'u_id': 'u926492618', 'date': '1586737397', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '102'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tdouble L;\n\tscanf(\"%lf\",&L);\n\tprintf(\"%lf\",L*L*L/3/3/3);\n\n\treturn 0;\n\n}\nPredict its m...
CDSS_634163
CDSS
#include<stdio.h> #include<stdlib.h> int compare_int(const void *a, const void *b) { return *(int*)a - *(int*)b; } int main() { int n; scanf("%d/n",&n); int a[n],i; long long int ans=0,median; for(i=0;i<n;i++){ scanf("%d",&a[i]); a[i] += -i; } qsort(a,n,sizeof(int),compare_int); median = a[n/2]; for(i=0;...
1,788
memory_bytes
{'s_id': 's494943361', 'p_id': 'p03309', 'u_id': 'u543173665', 'date': '1535139903', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '51', 'memory': '1788', '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>\nint compare_int(const void *a, const void *b)\n{\n\treturn *(int*)a - *(int*)b;\n}\n\nint main(...
CDSS_394200
CDSS
#include <stdio.h> int main() { int a; scanf("%d", &a); printf("%d\n", a * (1 + a + a * a)); fflush(stdout); return 0; }
1,712
memory_bytes
{'s_id': 's673987994', 'p_id': 'p02621', 'u_id': 'u943800443', 'date': '1598201449', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1712', 'code_size': '126'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n\tint a;\n\tscanf(\"%d\", &a);\n\tprintf(\"%d\\n\", a * (1 + a + a * a));\n\tfflush(stdout);\n\tr...
CDSS_484749
CDSS
int pwo(int x,int y) { int i,a; a = x; if(y == 0) { return 1; } for(i = 1 ; i < y ; i++) { x = x*a; } return x; } #include<stdio.h> int main(void) { long int n,x,b; int k,i,j,a[100]; scanf("%ld %d",&n,&k); i = 1; while(n >= pwo(k,i)) { ...
1,712
memory_bytes
{'s_id': 's207604178', 'p_id': 'p02766', 'u_id': 'u111785038', 'date': '1597345169', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1712', 'code_size': '422'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nint pwo(int x,int y)\n{\n int i,a;\n a = x;\n if(y == 0)\n {\n return 1;\n }\n for(i = 1 ; i < y ; i++)\n ...
CDSS_216980
CDSS
#include<stdio.h> #define MAX 100005 #define NIL -1 struct Node_struct{int p, l, r;}; /*p: 親(parent), l: 一番左の子(left child), r:右の兄弟(right sibling)*/ typedef struct Node_struct Node; Node T[MAX]; int D[MAX]; void print(int u){ int i, c; printf("node %d: parent = %d, depth = %d, ", u, T[u].p, D[u]); if(T[u].p == NIL)...
6,484
memory_bytes
{'s_id': 's923221859', 'p_id': 'p02279', 'u_id': 'u743319825', 'date': '1547126780', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '6484', 'code_size': '1518'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 100005\n#define NIL -1\nstruct Node_struct{int p, l, r;}; /*p: 親(parent), l: 一番左の子(left child), r:右の兄弟(...
CDSS_630839
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> int main(void){ char S[100],T[100]; scanf("%s", S); scanf("%s", T); int len = strlen(S); char top; int j=0,flag=0; for(int i=0; i<len; i++){ j = 0; flag = 0; while(j<len && flag==0){ if(S[(j+i)%len]!=T[j]){ flag++;...
128
memory_bytes
{'s_id': 's796354639', 'p_id': 'p03293', 'u_id': 'u821060893', 'date': '1589255755', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '445'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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(void){\n \n char S[100],T[100];\n \n scanf(\"%s\", S);\n sca...
CDSS_642673
CDSS
#include <stdio.h> int main(int argc, char const *argv[]) { int N; int first, last; char S[100]; int isExist, isFirst; int cut_array[99] = {0}; int max = 0; scanf("%d\n", &N); scanf("%s", S); for (char i = 'a'; i <= 'z'; i++) { isFirst = 1; isExist = 0; first = 0; last = 0; for (...
128
memory_bytes
{'s_id': 's312833915', 'p_id': 'p03338', 'u_id': 'u778347695', 'date': '1527385196', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '876'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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(int argc, char const *argv[]) {\n int N;\n int first, last;\n char S[100];\n int isExist, isFirst;\...
CDSS_238977
CDSS
#include <stdio.h> #include <math.h> #include <stdlib.h> #include <string.h> int i, k; int a[7], b[7]; int t; char str[100]; void input() { //さいころに数字を割り当てる for (i = 1; i <= 6; i++){ scanf("%d", &a[i]); } for (i = 1; i <= 6; i++){ scanf("%d", &b[i]); } } void divide() { if (b[...
2,100
memory_bytes
{'s_id': 's316817787', 'p_id': 'p02385', 'u_id': 'u520329149', 'date': '1587534989', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '3301'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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#include <stdlib.h>\n#include <string.h>\n\nint i, k;\nint a[7], b[7];\nint t;\nchar str[100];\...
CDSS_533487
CDSS
#include <stdio.h> int main(void) { int A, B; scanf("%d %d", &A, &B); int ans = 0; for (int i = 0; i < 10000000; i++) { int a; if (i == 0) { a = 1; } else { a = 0; } if (a + (A * i) - (i - 1) >= B) { ans = i; break...
128
memory_bytes
{'s_id': 's600889107', 'p_id': 'p02922', 'u_id': 'u111374324', 'date': '1567367464', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '381'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n int A, B;\n scanf(\"%d %d\", &A, &B);\n\n int ans = 0;\n for (int i = 0; i < 1000...
CDSS_658485
CDSS
#include <stdio.h> int main() { int a[102], N, i, j, cop, Alice = 0 , Bob = 0; scanf("%d", &N); for (i = 0; i < N; i++) { scanf("%d", &a[i]); } for (i = 0; i < N; i++) { for (j = i + 1; j < N; j++) { if (a[i] < a[j]) { cop = a[i]; a[i] = a[j]; a[j] = cop; } } } for (i = 0; i < N; i++) { ...
1,732
memory_bytes
{'s_id': 's895700871', 'p_id': 'p03434', 'u_id': 'u421796053', 'date': '1593223835', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1732', 'code_size': '422'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n\tint a[102], N, i, j, cop, Alice = 0 , Bob = 0;\n\tscanf(\"%d\", &N);\n\tfor (i = 0; i < N; i++) {...
CDSS_717072
CDSS
#include<stdio.h> int main(void) { int N; int answer; scanf("%d", &N); answer = N * 800 - (N / 15) * 200; printf("%d\n", answer); return 0; }
128
memory_bytes
{'s_id': 's239636101', 'p_id': 'p03795', 'u_id': 'u200729311', 'date': '1492392511', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '154'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int N;\n int answer;\n scanf(\"%d\", &N);\n answer = N * 800 - (N / 15) * 200;\n printf(\"...
CDSS_91039
CDSS
a[];main(){gets(a);puts(15&*a&15&*a>>16|15&a[1]?"Open":"Close");exit(0);}
524
memory_bytes
{'s_id': 's007788483', 'p_id': 'p00252', 'u_id': 'u399045574', 'date': '1381313610', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '73'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\na[];main(){gets(a);puts(15&*a&15&*a>>16|15&a[1]?\"Open\":\"Close\");exit(0);}\nPredict its memory footprint.", "role": "user" },...
CDSS_735514
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> int fun(char *); int fun(char *s) { char t[17]="CODEFESTIVAL2016"; int i,ans=0; int n=strlen(s); for(i=0;i<n;i++) { if(t[i]!=s[i]) { ans++; } } return ans; } int main() { char a[17]; scanf("%s...
128
memory_bytes
{'s_id': 's980250098', 'p_id': 'p03970', 'u_id': 'u426964396', 'date': '1580966384', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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#include<stdlib.h>\n#include<string.h>\nint fun(char *);\nint fun(char *s)\n{\n char t[17]=\"CODEFESTIVAL2016\";...
CDSS_738855
CDSS
#include<stdio.h> #include<stdlib.h> typedef long long ll; int max(int a, int b){ if(a > b) return a; else return b; } int min(int a, int b){ if(a < b) return a; else return b; } int sort(const void *a ,const void *b){ return *(int*)a - *(int*)b; } int main(){ int n,k,x,y; scanf("%d%d%d%d",&n,&k,&x,&...
128
memory_bytes
{'s_id': 's661504511', 'p_id': 'p04011', 'u_id': 'u759675243', 'date': '1592175311', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '462'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\ntypedef long long ll;\n\nint max(int a, int b){\n if(a > b) return a;\n else return b;\n}\n...
CDSS_130635
CDSS
#include<stdio.h> #include<stdlib.h> int fibonacci(int); int main(){ int n; int output; scanf("%d",&n); printf("%d\n",fibonacci(n+1)); return 0; } int fibonacci(int n){ int *F=(int*)malloc(n*sizeof(int)); int output; F[0]=1; F[1]=1; for(int i=2;i<n;i++){ F[i]=F[i-1]+F[i-2]; } output=...
2,076
memory_bytes
{'s_id': 's548621373', 'p_id': 'p02233', 'u_id': 'u358840911', 'date': '1579844997', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2076', 'code_size': '360'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 fibonacci(int);\n\nint main(){\n int n;\n int output;\n\n scanf(\"%d\",&n);\n\n print...
CDSS_414980
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int n,a; scanf("%d",&n); a=n%10; if(a==2||a==4||a==5||a==7||a==9) printf("hon"); if(a==0||a==1||a==6||a==8) printf("pon"); if(a==3) printf("bon"); }
1,732
memory_bytes
{'s_id': 's042013919', 'p_id': 'p02675', 'u_id': 'u089542102', 'date': '1589765032', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1732', 'code_size': '249'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main()\n{\n int n,a;\n scanf(\"%d\",&n);\n a=n%10;\n if(a==2||a==4||a==5||a...
CDSS_609131
CDSS
#include<stdio.h> main() { int x; scanf("%d",&x); if(x==3 || x==5 || x==7) { printf("YES"); } else { printf("NO"); } return 0; }
128
memory_bytes
{'s_id': 's408613952', 'p_id': 'p03210', 'u_id': 'u816631826', 'date': '1559656969', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nmain()\n{\n int x;\n scanf(\"%d\",&x);\n if(x==3 || x==5 || x==7)\n {\n printf(\"YES\");\n }\...
CDSS_327971
CDSS
int main() { int n, a, max = -1000000, min = 1000000; long sum = 0; scanf("%d\n", &n); for (int i = 0; i < n; i++) { scanf("%d", &a); if (a > max) max = a; if (a < min) min = a; sum += a; } printf("%d %d %ld\n", min, max, sum); }
2,112
memory_bytes
{'s_id': 's635241007', 'p_id': 'p02402', 'u_id': 'u309656351', 'date': '1593014985', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', '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:\nint main() {\n int n, a, max = -1000000, min = 1000000;\n long sum = 0;\n scanf(\"%d\\n\", &n);\n for (int i = 0; i < n; i++) {\n ...
CDSS_134977
CDSS
#include<stdio.h> #define N 100 int G[N][N]; int main(){ int i,j,n,k,v,e,t; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d%d",&v,&e); for(j=0;j<e;j++){ scanf("%d",&t); G[i][t-1]=1; } } for(i=0;i<n;i++){ for(j=0;j<n;j++){ printf("%d",G[i][j]); if(j<n-1){ ...
636
memory_bytes
{'s_id': 's350350738', 'p_id': 'p02237', 'u_id': 'u193103112', 'date': '1482717758', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '383'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n \n#define N 100\n \nint G[N][N];\n \n \nint main(){\n int i,j,n,k,v,e,t;\n scanf(\"%d\",&n);\n for(i=0;i<n;...
CDSS_373045
CDSS
#include <stdio.h> #include <stdlib.h> #define ll_int long long int ll_int *WORK; void Rotate(ll_int *box, int n, int b, int m, int e) { int i; for(i = 0; i < e - b; i++) box[b + ((i + (e - m)) % (e - b))] = WORK[b + i]; } void Print_box(ll_int *box, int n) { int i; for(i = 0; i < n; i++){ printf("%lld...
2,112
memory_bytes
{'s_id': 's103037307', 'p_id': 'p02444', 'u_id': 'u203905696', 'date': '1580356675', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '805'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\n#define\tll_int\tlong long int\n\n\nll_int *WORK;\n\nvoid Rotate(ll_int *box, int n, int ...
CDSS_598328
CDSS
#include <stdio.h> int main(void){ int n,array[15]={}; scanf("%d",&n); for(int i=0;i<n;i++) scanf("%d",&array[i]); int max=0,max_i=0; for(int i=0;i<n;i++){ if(array[i]>max){ max=array[i]; max_i=i; } } int sum=0; for(int i=0;i<n;i++){ if(i=...
128
memory_bytes
{'s_id': 's709363455', 'p_id': 'p03136', 'u_id': 'u062744736', 'date': '1549245957', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '440'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int n,array[15]={};\n scanf(\"%d\",&n);\n for(int i=0;i<n;i++) scanf(\"%d\",&array[i]...
CDSS_75001
CDSS
#include <stdio.h> int main(void){ int i,x,n,q,a,v,aaa=0,vvv=0,f[1000000],vv[9000]; scanf("%d %d",&n,&q); for(i=n;i>0;i--)f[i-1]=0; for(i=0;i<5000;i++)vv[i]=0; for(;q>0;q--){ scanf("%d %d",&a,&v); x=f[a-1]; if(vv[x]==a){ for(i=a;f[i]!=x&&i<n;i++); if(i==n)vv[x]=0; else vv[x]=i+1; } f[a-1]+=v; ...
4,528
memory_bytes
{'s_id': 's998027654', 'p_id': 'p00099', 'u_id': 'u263489624', 'date': '1364863748', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '4528', '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>\nint main(void){\n\tint i,x,n,q,a,v,aaa=0,vvv=0,f[1000000],vv[9000];\n\tscanf(\"%d %d\",&n,&q);\n\tfor(i=n;i>0;i--)...
CDSS_622212
CDSS
/* ex 7_1 AtCoder Beginner Contest 108 B nk777 */ // ↑y // →x #include <stdio.h> // 頂点を返す構造体point typedef struct point{ int x_elem; int y_elem; }point; // ある頂点についてx軸、y軸について移動させた頂点を返す関数 // 求めたい点の2個前の点point_2before, 1個前の点point_1before point shift_point(point point_2before, point point_1before){ // 求めたい頂点...
1,708
memory_bytes
{'s_id': 's664812524', 'p_id': 'p03265', 'u_id': 'u335163800', 'date': '1594659145', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '1708', 'code_size': '1457'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* ex 7_1 AtCoder Beginner Contest 108 B\n nk777 */\n\n// ↑y\n// →x\n\n#include <stdio.h>\n// 頂点を返す構造体point\ntypedef struct point{\n...
CDSS_614815
CDSS
#include <stdio.h> #include <math.h> int main(void) { int N,T,i; int a = 1e6; int c[100],t[100]; scanf("%d %d",&N,&T); for(i=0;i<N;i++) { scanf("%d %d",&c[i],&t[i]); } for(i=0;i<N;i++) { if(t[i]<=T && c[i]<a ) { a=c[i]; } } if(a >= 1e6) { printf("TLE")...
128
memory_bytes
{'s_id': 's382050123', 'p_id': 'p03239', 'u_id': 'u774877139', 'date': '1563089568', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '379'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(void)\n{\n int N,T,i;\n int a = 1e6;\n int c[100],t[100];\n \n scanf(\"%d ...
CDSS_153027
CDSS
#include <stdio.h> int main(){ int x,y,gcd; scanf("%d%d",&x,&y); if(x>=y){ gcd=x%y; while(gcd!=0){ x=y; y=gcd; gcd=x%y; } printf("%d\n",y); } else{ gcd=y%x; while(gcd!=0){ y=x; x=gcd; gcd=y%x; } printf("%d\n",x); } }
2,124
memory_bytes
{'s_id': 's164176873', 'p_id': 'p02256', 'u_id': 'u563967927', 'date': '1529310124', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2124', 'code_size': '318'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,gcd;\n\n scanf(\"%d%d\",&x,&y);\n\n if(x>=y){\n gcd=x%y;\n while(gcd!=0){\n x=...
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 must 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=0;...
CDSS_130399
CDSS
#include<stdio.h> void fibo(int A[],int start,int last){ while(start<=last){ if(start==0||start==1){A[start]=1;start++;} else{A[start]=A[start-1]+A[start-2];start++;} } return; } int main(){ int n,x,i; int A[100]; scanf("%d",&n); fibo(A,0,n); printf("%d\n",A[n]); return 0; }
1,796
memory_bytes
{'s_id': 's959172276', 'p_id': 'p02233', 'u_id': 'u723915999', 'date': '1515918806', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1796', 'code_size': '287'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 fibo(int A[],int start,int last){\n\nwhile(start<=last){\n if(start==0||start==1){A[start]=1;start++;}\n els...
CDSS_525717
CDSS
#include <stdio.h> int main() { int N, a[100001], i, b[100001]; scanf("%d", &N); for (i = 1; i <= N; i++) { scanf("%d", &a[i]); } for (i = 1; i <= N; i++) { b[a[i]] = i; } for (i = 1; i <= N; i++) { printf("%d", b[i]); if (i != N) { ...
1,536
memory_bytes
{'s_id': 's856017248', 'p_id': 'p02899', 'u_id': 'u955634721', 'date': '1571169905', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '1536', 'code_size': '370'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int N, a[100001], i, b[100001];\n scanf(\"%d\", &N);\n for (i = 1; i <= N; i++)\n {\...
CDSS_718510
CDSS
#include <stdio.h> int main() { long long m,n,max; scanf("%lld%lld",&n,&m); if(n*2<=m) { m-=n*2; max=n+m/4; } else max=m/2; printf("%lld\n",max); return 0; }
128
memory_bytes
{'s_id': 's228701404', 'p_id': 'p03799', 'u_id': 'u018679195', 'date': '1544133469', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '172'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\tlong long m,n,max;\n\tscanf(\"%lld%lld\",&n,&m);\n\tif(n*2<=m)\n\t{\n\tm-=n*2;\n\tmax=n+m/4;\n ...
CDSS_372600
CDSS
#include "stdio.h" int main(int argc, char const *argv[]) { int n,i,j,k,count; int a,b; char input[1001]; char tmp[1001]; char output[1001]; char cmd[100]; char cmd1[] = "print"; char cmd2[] = "reverse"; char cmd3[] = "replace"; scanf("%s",input); scanf("%d",&n); for(i=0;i<n;i++){ scanf("%s",cmd); i...
584
memory_bytes
{'s_id': 's458000114', 'p_id': 'p02422', 'u_id': 'u822200871', 'date': '1434882916', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '810'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include \"stdio.h\"\nint main(int argc, char const *argv[])\n{\n\tint n,i,j,k,count;\n\tint a,b;\n\tchar input[1001];\n\tchar tmp[100...
CDSS_120137
CDSS
#define f(X) for(c=0;c<X;c+=v[p++]);if(c-X)goto L; n,v[50],s,p,c,a[9];main(){for(;n=atoi(gets(a));){for(s=0;s<n;v[++s]=strlen(gets(a)));s=0;L:p=++s;f(5)f(7)f(5)f(7)f(7)printf("%d\n",s);}}
524
memory_bytes
{'s_id': 's860186189', 'p_id': 'p01086', 'u_id': 'u714639016', 'date': '1467369483', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '187'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define f(X) for(c=0;c<X;c+=v[p++]);if(c-X)goto L;\nn,v[50],s,p,c,a[9];main(){for(;n=atoi(gets(a));){for(s=0;s<n;v[++s]=strlen(gets(a)...
CDSS_395409
CDSS
#include <stdio.h> #include <string.h> int main() { char S[200001], T[200001]; int i,count=0; scanf("%s", S); scanf("%s", T); for (i = 0; i < strlen(S); i++) { if (S[i] != T[i]) { count = count + 1; } } printf("%d", count); return 0; }
2,096
memory_bytes
{'s_id': 's179308152', 'p_id': 'p02622', 'u_id': 'u885844436', 'date': '1600834396', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '2096', 'code_size': '253'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main() {\n\tchar S[200001], T[200001];\n\tint i,count=0;\n\tscanf(\"%s\", S);\n\tscanf(...
CDSS_577124
CDSS
#include <stdio.h> #include <stdlib.h> int main(void) { long long int n,i,ans=0,minus=0,min,minnum; scanf("%lld", &n); long long int a[n]; for(i=0; i<n; i++) scanf("%lld", &a[i]); for(i=0; i<n; i++) if(a[i]<0) minus++; if(minus%2==0) { for(i=0; i<n; i++) ans+=llabs(a[i]); pri...
896
memory_bytes
{'s_id': 's428649665', 'p_id': 'p03062', 'u_id': 'u014442925', 'date': '1556417612', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '14', 'memory': '896', 'code_size': '768'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\nint main(void)\n{\n long long int n,i,ans=0,minus=0,min,minnum;\n scanf(\"%lld\", &n);\...
CDSS_141373
CDSS
#include <stdio.h> #include <stdlib.h> #define INIT_CAP 10 #define INF 1000000000 typedef struct { int to, w; } Edge; typedef struct { Edge *elem; int cap, size; } VecEdge; typedef struct { int num, d; } PNumDis; VecEdge adj[10000]; PNumDis heap[500000]; int hsize; int d[10000]; void init(int n) { while (n--...
5,688
memory_bytes
{'s_id': 's304176595', 'p_id': 'p02243', 'u_id': 'u340315059', 'date': '1434503032', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '90', 'memory': '5688', 'code_size': '1874'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 INIT_CAP 10\n#define INF 1000000000\n\ntypedef struct {\n\tint to, w;\n} Edge;\n\nt...
CDSS_581255
CDSS
/* Coached by Dukkha */ #include <stdio.h> #include <string.h> #define N 100000 int main() { static char s[N + 1]; static int kk[2]; int n, i, r; scanf("%s", s); n = strlen(s); for (r = 0; r < 2; r++) for (i = 0; i < n; i++) if ((i % 2 == r) != (s[i] == '0')) kk[r]++; printf("%d\n", kk[0] < kk[1] ? k...
256
memory_bytes
{'s_id': 's959466086', 'p_id': 'p03073', 'u_id': 'u000120715', 'date': '1570171568', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '348'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* Coached by Dukkha */\n#include <stdio.h>\n#include <string.h>\n\n#define N 100000\n\nint main() {\n\tstatic char s[N + 1];\n\tstati...
CDSS_497139
CDSS
#include <stdio.h> int main() { int n, m; scanf("%d%d", &n, &m); if(n==m) printf("Yes\n"); else printf("No\n"); return 0; }
128
memory_bytes
{'s_id': 's156249547', 'p_id': 'p02789', 'u_id': 'u466503296', 'date': '1579463892', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '139'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n\tint n, m;\n\tscanf(\"%d%d\", &n, &m);\n\tif(n==m)\n\t printf(\"Yes\\n\");\n\telse \n\t prin...
CDSS_97693
CDSS
a=-1,A=65,d; char *N="GKSOCNWLDFVTBRXHAJUPEMQI", *E="PHLTIDOXQAGWECSUMBKVJFNR", *R="BCDAFGHEJKLINOPMRSTQVWXU", s[9]; main(c) { for(;c-48&&scanf("%s",s);a+=d/4+1) { (c=*s)<A?~a&&printf("%d\n",a),a=d=0:0; d=c==78?d=N[d]-A: c==69?d=E[d]-A:d; if(c==82)d=R[d]-A; if(c==83)d=N[N[N[d]-A]-A]-A; if(c==87)d=E[E[E[d]-A]-A]-A; if(c...
0
memory_bytes
{'s_id': 's694015447', 'p_id': 'p00425', 'u_id': 'u749355444', 'date': '1292866164', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '347'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\na=-1,A=65,d;\nchar\n*N=\"GKSOCNWLDFVTBRXHAJUPEMQI\",\n*E=\"PHLTIDOXQAGWECSUMBKVJFNR\",\n*R=\"BCDAFGHEJKLINOPMRSTQVWXU\",\ns[9];\nmain(...
CDSS_545037
CDSS
#include <stdio.h> int main() { int n, a[100], b[100], i, t=0; scanf("%d", &n); for(i=1; i<=n; i++) { scanf("%d", &a[i]); if(a[i] != i) t++; } if(t < 3) printf("YES\n"); else printf("NO\n"); return 0; }
128
memory_bytes
{'s_id': 's648842709', 'p_id': 'p02958', 'u_id': 'u863370423', 'date': '1566644104', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '282'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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, a[100], b[100], i, t=0;\n scanf(\"%d\", &n);\n\n for(i=1; i<=n; i++)\n {\n ...
CDSS_575589
CDSS
#include<stdio.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': 's097510014', 'p_id': 'p03059', 'u_id': 'u342005896', 'date': '1556413397', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '116'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n\nint main(){\n\tint a, b, t;\n\tscanf(\"%d%d%d\", &a, &b,&t);\n\tprintf(\"%d\", (t / a)*b);\n\t\n\treturn 0;\n\n...
CDSS_400006
CDSS
#include <stdio.h> int main (void) { int n,i,k,p[1001],a[1001],sum=0; scanf("%d %d",&n,&k); for(i=0;i<n;i++) { scanf("%d",&p[i]); } a[0]=p[0]; for(i=1;i<n;i++) { int j=i; a[j]=p[j]; while(a[j]<a[j-1]&&j>0) { int t=a[j]; a[j...
1,740
memory_bytes
{'s_id': 's830980904', 'p_id': 'p02628', 'u_id': 'u436528803', 'date': '1592788366', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1740', 'code_size': '477'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 n,i,k,p[1001],a[1001],sum=0;\n scanf(\"%d %d\",&n,&k);\n for(i=0;i<n;i++)\n ...
CDSS_639403
CDSS
#include <stdio.h> int main(){ int n = 0; scanf("%d\n",&n); int a[n]; int i = 0; for(i=0;i<n;i++){ scanf("%d",&a[i]); } i = 0; int num = 0; while(i<n){ if(a[i]%2==0){ a[i] = a[i] / 2; num++; }else{ i++; } } printf("%d\n",num); return 0; }
256
memory_bytes
{'s_id': 's515828103', 'p_id': 'p03325', 'u_id': 'u858642242', 'date': '1529200429', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '256', 'code_size': '298'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int n = 0;\n scanf(\"%d\\n\",&n);\n int a[n];\n int i = 0;\n for(i=0;i<n;i++){\n scanf(\"%...
CDSS_582202
CDSS
#include <stdio.h> #include <stdlib.h> int *check(char *str, int len, int *cnt) { int i, j = 0; int *list = (int*)malloc(len * sizeof(int)); list[j] = 0; ++j; for(i = 1; i < len; ++i) { if(str[i-1] != str[i]) { list[j] = i; ++j; } } list[j] = i; ++j; *cnt = j; return list; } vo...
640
memory_bytes
{'s_id': 's977622157', 'p_id': 'p03074', 'u_id': 'u816645498', 'date': '1555192872', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '640', 'code_size': '1178'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 *check(char *str, int len, int *cnt) {\n int i, j = 0;\n int *list = (int*)malloc...
CDSS_347509
CDSS
#include <stdio.h> int main() { int cards[4][13]; int i,j,n,num; char ch; scanf("%d",&n); for(i=0;i<4;i++){ for(j=0;j<13;j++){ cards[i][j]=0; } } for(i=0;i<n;i++){ scanf(" %c %d",&ch,&num); if(ch=='S'){ cards[0][num-1]=num; } if(ch=='H'){ cards[1][num-1]=num; } if(ch=='C'){ ...
2,028
memory_bytes
{'s_id': 's223535992', 'p_id': 'p02408', 'u_id': 'u002469255', 'date': '1533778347', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2028', 'code_size': '615'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 cards[4][13];\n\tint i,j,n,num;\n\tchar ch;\t\n\n scanf(\"%d\",&n);\n\n\tfor(i=0;i<4;i...
CDSS_130136
CDSS
#include<stdio.h> #include<stdlib.h> int F[45]; int fibonacci(int); int main(){ int n; int f; scanf("%d", &n); if(n < 0 || 44 < n) exit(0); f = fibonacci(n); printf("%d\n", f); return 0; } int fibonacci(int n){ if(n == 0 || n == 1) return F[n] = 1; if(F[n] != NULL) return F[n]; re...
596
memory_bytes
{'s_id': 's564721053', 'p_id': 'p02233', 'u_id': 'u494996660', 'date': '1499223324', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '370'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint F[45];\nint fibonacci(int);\n\nint main(){\n int n;\n int f;\n\n scanf(\"%d\", &n);\n ...
CDSS_477870
CDSS
#include<stdio.h> int main(void){ char S[3]; scanf("%s",S); if(S[0] == S[1]){ if(S[1] == S[2]){ printf("No"); return 0; } } printf("Yes"); return 0; }
1,712
memory_bytes
{'s_id': 's647024031', 'p_id': 'p02753', 'u_id': 'u929687758', 'date': '1600198812', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1712', 'code_size': '182'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n char S[3];\n scanf(\"%s\",S);\n if(S[0] == S[1]){\n if(S[1] == S[2]){\n printf(\"No\")...
CDSS_517218
CDSS
#include<stdio.h> int main(void) { int A,B; scanf("%d %d",&A,&B); if(10 > A&&10 > B)printf("%d",A * B); else printf("-1"); return 0; }
128
memory_bytes
{'s_id': 's397220356', 'p_id': 'p02879', 'u_id': 'u887263002', 'date': '1588038343', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\n\nint main(void)\n{\n int A,B;\n scanf(\"%d %d\",&A,&B);\n if(10 > A&&10 > B)printf(\"%d\",A * B);\n else print...
CDSS_665937
CDSS
#include<stdio.h> #include<stdint.h> #include<inttypes.h> typedef int32_t i32; void run (void) { i32 n, sum; scanf ("%" SCNi32 "%" SCNi32, &n, &sum); for (i32 x = 0, sx = 0; x <= n; ++x, sx += 10000) { for (i32 y = 0, sy = sx; y <= n - x; ++y, sy += 5000) { for (i32 z = 0, sz = sy; z <= n - x - y; ++z...
128
memory_bytes
{'s_id': 's255631652', 'p_id': 'p03471', 'u_id': 'u425248533', 'date': '1563665103', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '881', 'memory': '128', 'code_size': '558'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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<stdint.h>\n#include<inttypes.h>\n\ntypedef int32_t i32;\n\nvoid run (void) {\n i32 n, sum;\n scanf (\"%\...
CDSS_349005
CDSS
#include <stdio.h> int main() { int n,b,f,r,v; int i,j,k; int x[4][3][10] = {0}; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d %d %d %d",&b,&f,&r,&v); x[b-1][f-1][r-1] += v; } for(i=0;i<4;i++){ for(j=0;j<3;j++){ for(k=0;k<10;k++){ ...
612
memory_bytes
{'s_id': 's319617469', 'p_id': 'p02409', 'u_id': 'u007599122', 'date': '1496133344', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '496'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n\n#include <stdio.h>\n \nint main()\n{\n int n,b,f,r,v;\n int i,j,k;\n int x[4][3][10] = {0};\n \n scanf(\"%d\",&n);...
CDSS_412723
CDSS
#include <stdio.h> long long int checks[1000000]; int main() { long long int N, res = 0; scanf("%lld", &N); int pos = 0; long long int x = 1, sum = 0; while (pos < 1000000) { sum += x; x++; checks[pos++] = sum; } for (long long int i = 2; i * i <= N; i++) { ...
9,548
memory_bytes
{'s_id': 's890804369', 'p_id': 'p02660', 'u_id': 'u996672406', 'date': '1590978202', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '9548', 'code_size': '676'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nlong long int checks[1000000];\n\nint main() {\n long long int N, res = 0;\n scanf(\"%lld\", &N);\n\n i...
CDSS_589447
CDSS
#include <stdio.h> int main(){ int H,W,h,w; scanf("%d %d",&H,&W); scanf("%d %d",&h,&w); printf("%d", (H-h)*(W-w)); return 0; }
128
memory_bytes
{'s_id': 's234998974', 'p_id': 'p03101', 'u_id': 'u487914635', 'date': '1552161796', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '151'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int H,W,h,w;\n scanf(\"%d %d\",&H,&W);\n scanf(\"%d %d\",&h,&w);\n printf(\"%d\", (H-h...
CDSS_71284
CDSS
#include <stdio.h> #include <math.h> double func_y(double x,int q); double func_z(double x); double newton(double x,int q); int main(void) { int q; double x; for (;;) { scanf("%d", &q); if (q == -1) break; x = q / 2.0; printf("%.6lf\n",newton(x, q)); } return 0; } double func_y(double x,int q) { retur...
2,044
memory_bytes
{'s_id': 's800958556', 'p_id': 'p00080', 'u_id': 'u234360241', 'date': '1526274097', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '534'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\ndouble func_y(double x,int q);\ndouble func_z(double x);\ndouble newton(double x,int q);\n\ni...
CDSS_326137
CDSS
#include <stdio.h> #include <stdlib.h> int main(void) { int n,i,a,min,max; long sum; scanf("%d %d",&n,&min); max=min; sum=min; for(i=1;i<n;i++){ scanf("%d",&a); if(min>a){ min=a; } if(max<a){ max=a; } sum+=a; } printf("%d %d %ld\n",min,max,sum); return 0; }
600
memory_bytes
{'s_id': 's574383258', 'p_id': 'p02402', 'u_id': 'u653442293', 'date': '1503765999', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '287'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(void) {\n\tint n,i,a,min,max;\n\tlong sum;\n\n\tscanf(\"%d %d\",&n,&min);\n\tmax=m...
CDSS_458530
CDSS
#include <stdio.h> int gcd(int p,int q){while(q){int t=p%q;p=q;q=t;}return p;} int main(){ int k; scanf("%d",&k); int ans=0; for(int a=1;a<=k;a++)for(int b=1;b<=k;b++)for(int c=1;c<=k;c++){ ans+=gcd(a,gcd(b,c)); } printf("%d",ans); }
1,732
memory_bytes
{'s_id': 's488720221', 'p_id': 'p02713', 'u_id': 'u382163500', 'date': '1592492225', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '326', 'memory': '1732', 'code_size': '243'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint gcd(int p,int q){while(q){int t=p%q;p=q;q=t;}return p;}\n\nint main(){\n\tint k;\n\tscanf(\"%d\",&k);\n\tint...
CDSS_211390
CDSS
#include <stdio.h> #define N 1000001 int Partition(int, int ); int A[N]; int main(void){ int i,n,y; scanf("%d",&n); for(i=1;i<=n;i++){ scanf("%d",&A[i]); } y=Partition(1,(n)); for(i=1;i<n;i++){ if (i==y){ printf("[%d] ",A[i]); } else printf("%d ",A[i]); } printf("%d\n",A[n]);...
988
memory_bytes
{'s_id': 's696458118', 'p_id': 'p02276', 'u_id': 'u258796943', 'date': '1496329062', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '988', 'code_size': '589'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define N 1000001\n \nint Partition(int, int );\nint A[N];\n \nint main(void){\nint i,n,y;\n \n scanf(\"%d\",&n);...
CDSS_730338
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #define ll long long #define rep(i,n) for(ll i=0;i<(n);i++) #define max(p,q) ((p)>(q)?(p):(q)) #define min(p,q) ((p)<(q)?(p):(q)) #define chmax(a,b) ((a)=(a)>(b)?(a):(b)) #define chmin(a,b) ((a)=(a)<(b)?(a):(b)) #define abs(p) ((p)>=(0)?(p):(-...
128
memory_bytes
{'s_id': 's422563138', 'p_id': 'p03862', 'u_id': 'u924527074', 'date': '1570137731', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '128', 'code_size': '943'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#include <string.h>\n#define ll long long\n#define rep(i,n) for(ll i=0;i<(...
CDSS_597479
CDSS
#include <stdio.h> int main() { float t, x; scanf("%f%f", &t, &x); printf("%.9f\n", t / x); return 0; }
128
memory_bytes
{'s_id': 's654807955', 'p_id': 'p03135', 'u_id': 'u848359007', 'date': '1549246469', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '110'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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() {\n\tfloat t, x;\n\tscanf(\"%f%f\", &t, &x);\n\tprintf(\"%.9f\\n\", t / x);\n\n\treturn 0;\n}\nPred...
CDSS_116029
CDSS
#include <stdio.h> #include <stdlib.h> int comp(const void *c1, const void *c2){ int tmp1 = *(int *)c1; int tmp2 = *(int *)c2; if( tmp1 < tmp2 ) return -1; if( tmp1 == tmp2 ) return 0; if( tmp1 > tmp2 ) return 1; } void solve(n, m){ int d1[n], d2[m], t1 = 0, t2 = 0, differ; int i, j; for(i = 0; ...
616
memory_bytes
{'s_id': 's573698430', 'p_id': 'p00734', 'u_id': 'u214781794', 'date': '1410446543', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '616', 'code_size': '1063'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint comp(const void *c1, const void *c2){\n int tmp1 = *(int *)c1;\n int tmp2 = *(int *)c...