identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_546642
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define ll long long #define rep(i,l,r)for(ll i=(l);i<(r);i++) #define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k)) #define INF ((1LL<<62)-(1LL<<31)) #define max(p,q)((p)>(q)?(p):(q)) #define min(p,q)((p)<(q)?(p):(q)) #define bit(n,m)(((n)>>(m))&1)...
152,928
memory_bytes
{'s_id': 's131265573', 'p_id': 'p02964', 'u_id': 'u382163500', 'date': '1563760244', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '321', 'memory': '152928', 'code_size': '2141'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 ll long long\n#define rep(i,l,r)for(ll i=(l);...
CDSS_309510
CDSS
#include<stdio.h> int main() { int a,b; scanf("%d %d",&a,&b); printf("%d %d %lf\n",a/b,a%b,(double)a/(double)b); return 0; }
636
memory_bytes
{'s_id': 's784601519', 'p_id': 'p02399', 'u_id': 'u688242368', 'date': '1469802177', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '148'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n\n\n{\n\nint a,b;\n\n\nscanf(\"%d %d\",&a,&b);\n\n\nprintf(\"%d %d %lf\\n\",a/b,a%b,(double)a/(double...
CDSS_141588
CDSS
#include<stdio.h> #include<stdlib.h> #define INF 100000000 typedef struct state{ int pos,cost; } state; state A[2000001]; int N=0; int parent(int i){return i/2;} int left(int i){return i*2;} int right(int i){return i*2+1;} void exchange(state* a, state* b){ state tmp=*a; *a=*b; *b=tmp; } void minHeapify(i...
4,580
memory_bytes
{'s_id': 's138275410', 'p_id': 'p02243', 'u_id': 'u660889883', 'date': '1502375462', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '80', 'memory': '4580', 'code_size': '1714'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 100000000\n\ntypedef struct state{\n int pos,cost;\n} state;\n\nstate A[2000001]...
CDSS_707043
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> int main(void) { int i; int N, M; int a, b; int *roads; char buf[128], *ch; fgets(buf, sizeof(buf), stdin); ch = strtok(buf, " "); N = atoi(ch); ch = strtok(NULL, " "); M = atoi(ch); roads = (int *)calloc(N, sizeof(int)); for(i = 0; i < M; i += 1) ...
2,132
memory_bytes
{'s_id': 's192282962', 'p_id': 'p03720', 'u_id': 'u724301837', 'date': '1597020702', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '2132', 'code_size': '572'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n\nint main(void) {\n\tint i;\n\tint N, M;\n\tint a, b;\n\tint *roads;\n\tch...
CDSS_89270
CDSS
#include <stdio.h> int main(void){ char r[5],a[5]; int i,j,h,b; while(1){ scanf("%s %s",r,a); if(r[0]=='0'&&a[0]=='0')break; h=b=0; for(i=0;i<4;i++){ if(r[i]==a[i])h++; } for(i=0;i<4;i++){ for(j=0;j<4;j++){ if(r[i]==a[j]&&i!=j)b++; } } printf("%d %d\n",h,b); } ...
540
memory_bytes
{'s_id': 's627533738', 'p_id': 'p00226', 'u_id': 'u505651850', 'date': '1475946042', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '540', 'code_size': '333'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 r[5],a[5];\n int i,j,h,b;\n while(1){\n scanf(\"%s %s\",r,a);\n if(r[0]=='0'&&a[0]...
CDSS_131019
CDSS
#include <stdio.h> int dp[50]; int fib(int n) { if ( n == 0 || n == 1 ) return dp[n] = 1; if ( dp[n] != -1 ) return dp[n]; return dp[n] = fib(n - 1) + fib(n - 2); } int main() { int n, i; for ( i = 0; i < 50; i++ ) dp[i] = -1; scanf("%d", &n); printf("%d\n", fib(n)); return 0; }
2,052
memory_bytes
{'s_id': 's128285449', 'p_id': 'p02233', 'u_id': 'u341962401', 'date': '1543023741', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '302'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 dp[50];\n\nint fib(int n) {\n if ( n == 0 || n == 1 ) return dp[n] = 1;\n if ( dp[n] != -1 ) return dp[n];...
CDSS_644206
CDSS
#include<stdio.h> int main(){ int a,b,c,d; scanf("%d %d %d %d",&a,&b,&c,&d); int disAC,disAB,disBC; if(abs(a-c)<=d){ printf("Yes\n"); return 0; } if(abs(a-b)<=d && abs(b-c)<=d){ printf("Yes\n"); return 0; } printf("No\n"); return 0; }
128
memory_bytes
{'s_id': 's017566662', 'p_id': 'p03351', 'u_id': 'u076402393', 'date': '1527018374', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '256'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,b,c,d;\n\n\tscanf(\"%d %d %d %d\",&a,&b,&c,&d);\n\n\tint disAC,disAB,disBC;\n\n\tif(abs(a-c)<=...
CDSS_371591
CDSS
#include <stdio.h> int main(void){ int i,j,cnt; char str1[101]; char str2[101]; int p[2] = {}; scanf( "%d" , &cnt ); for( i = 0 ; i < cnt ; i ++ ){ scanf( "%s %s" , str1 , str2 ); //printf("%s %s\n" , str1 , str2 ); for( j = 0 ; ; j++ ){ if( str1[j] == '\...
2,088
memory_bytes
{'s_id': 's842873154', 'p_id': 'p02421', 'u_id': 'u316985469', 'date': '1578550801', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2088', '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>\nint main(void){\n int i,j,cnt;\n char str1[101];\n char str2[101];\n int p[2] = {};\n scanf( \"%d\"...
CDSS_110976
CDSS
#include <stdio.h> int main(){ int a, b; while(scanf("%d%d", &a, &b) != EOF) printf("%d\n", a + b); return 0; }
596
memory_bytes
{'s_id': 's953750516', 'p_id': 'p00586', 'u_id': 'u709185111', 'date': '1395263962', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '118'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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 while(scanf(\"%d%d\", &a, &b) != EOF) printf(\"%d\\n\", a + b);\n return 0;\n}\nPre...
CDSS_628844
CDSS
#include <stdio.h> int main() { int R; scanf("%d", &R); if (R < 1200) { printf("ABC"); } else if (R < 2800) { printf("ARC"); } else { printf("AGC"); } return 0; }
128
memory_bytes
{'s_id': 's120551419', 'p_id': 'p03288', 'u_id': 'u421730290', 'date': '1562704785', '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>\n\nint main() {\n\tint R;\n\n\tscanf(\"%d\", &R);\n\n\tif (R < 1200) {\n\t\tprintf(\"ABC\");\n\t}\n\telse if (R < 2...
CDSS_645846
CDSS
#include <stdio.h> #define MAX(x,y) ((x)>(y)?(x):(y)) #define MAX3(x,y,z) ((x)>(MAX(y,z)) ? (x):(MAX(y,z))) int main(){ int a, b, c, k, sum1=0, sum2=0; scanf("%d%d%d%d", &a, &b, &c, &k); sum1 = MAX3(a,b,c); sum2 = (a+b+c) - sum1; while(k>0){ sum1 *= 2; k--; } printf("%d", sum1+sum2); return 0; ...
1,736
memory_bytes
{'s_id': 's457692471', 'p_id': 'p03360', 'u_id': 'u858806530', 'date': '1595162005', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1736', 'code_size': '322'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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(x,y)\t((x)>(y)?(x):(y))\n#define MAX3(x,y,z)\t((x)>(MAX(y,z)) ? (x):(MAX(y,z)))\n\nint main(){\n int ...
CDSS_176333
CDSS
#include <stdio.h> int cnt=0,m=0; int G[100]; void insertionSort(int *A,int n,int g){ int i,j,v; for(i=g;i<n;i++){ v = A[i]; j = i - g; while(j>=0 && A[j] > v){ A[j+g] = A[j]; j = j - g; cnt++; } A[j+g] = v; } } void shellSort(int *A,int n){ int i,h=0; cnt = 0; whil...
5,760
memory_bytes
{'s_id': 's811839801', 'p_id': 'p02262', 'u_id': 'u622204662', 'date': '1549692506', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '250', 'memory': '5760', 'code_size': '798'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 cnt=0,m=0;\nint G[100];\n\nvoid insertionSort(int *A,int n,int g){\n int i,j,v;\n for(i=g;i<n;i++){\n v...
CDSS_124017
CDSS
A[20000];z(int*a,int*b){return*b-*a;} main(n,i,j){for(;scanf("%d",&n),n;puts(i>n?"No":"Yes")){ for(i=0;i<n*2;i++)scanf("%d",A+i); for(i=qsort(A,n,4,z);i<n;i=A[i]?n+1:i+1)for(j=0;j<n;j++)if(A[j+n])A[i]--,A[j+n]--; }exit(0);}
732
memory_bytes
{'s_id': 's048026194', 'p_id': 'p01325', 'u_id': 'u300645821', 'date': '1359249336', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '130', 'memory': '732', '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:\nA[20000];z(int*a,int*b){return*b-*a;}\nmain(n,i,j){for(;scanf(\"%d\",&n),n;puts(i>n?\"No\":\"Yes\")){\nfor(i=0;i<n*2;i++)scanf(\"%d\",...
CDSS_708148
CDSS
#include<stdio.h> int main(){ long long n,m,i,j,l[2010],a[2010],b[2010],c[2010],co[2010]={}; for(i=2;i<2000;i++)co[i]=-1e18; scanf("%lld %lld",&n,&m); for(i=0;i<m;i++)scanf("%lld %lld %lld",&a[i],&b[i],&c[i]); for(i=0;i<n;i++){ for(j=l[i]=0;j<m;j++){ if(co[a[j]]+c[j]>co[b[j]])co[b[j]]=co[a[j]]+c[j]; } } f...
256
memory_bytes
{'s_id': 's183566950', 'p_id': 'p03722', 'u_id': 'u121922047', 'date': '1518545690', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '256', 'code_size': '545'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tlong long n,m,i,j,l[2010],a[2010],b[2010],c[2010],co[2010]={};\n\tfor(i=2;i<2000;i++)co[i]=-1e18;\n\...
CDSS_66604
CDSS
#include <stdio.h> int main() { int i; double a, s; while (scanf(" %lf ", &a) != EOF) { s = a; for (i = 0; i < 9; i++) { if (i % 2 == 0) a *= 2.0; else a /= 3.0; s += a; } printf("%.6lf\n", s); } re...
656
memory_bytes
{'s_id': 's041514760', 'p_id': 'p00055', 'u_id': 'u395334793', 'date': '1488363799', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '656', 'code_size': '329'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main() {\n int i;\n double a, s;\n \n while (scanf(\" %lf \", &a) != EOF) {\n s = a;\n ...
CDSS_58871
CDSS
#include <stdio.h> #define MAX 101 int main(void) { int i, max, ary[MAX] = {}; for(max = 0; ~scanf("%d", &i); max < ++ary[i] && (max = ary[i])); for(i = 1; i < MAX; max - ary[i++] || printf("%d\n", ~-i)); return 0; }
596
memory_bytes
{'s_id': 's541453172', 'p_id': 'p00028', 'u_id': 'u927626415', 'date': '1450069735', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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>\n#define MAX 101\n\nint main(void) {\n int i, max, ary[MAX] = {};\n for(max = 0; ~scanf(\"%d\", &i); max < ++...
CDSS_371631
CDSS
#include<stdio.h> int dir(char[], char[]); int main(void){ int n,a,t=0,h=0; char T[108],H[108]; scanf("%d",&n); for(int i=0;i<n;i++){ scanf("%s %s",T,H); a=dir(T,H); if(a==0){ t+=3; }else if(a==1){ h+=3; }else{ t++; ...
2,052
memory_bytes
{'s_id': 's325525436', 'p_id': 'p02421', 'u_id': 'u347736487', 'date': '1564547904', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '657'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 dir(char[], char[]);\nint main(void){\n int n,a,t=0,h=0;\n char T[108],H[108];\n scanf(\"%d\",&n);\n ...
CDSS_485617
CDSS
// AtCoder165 C #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <math.h> #include <assert.h> #include <string.h> #include <memory.h> #include <malloc.h> #include <stdlib.h> // qsortで用いる比較用関数.*a<*bならaが先になる. int compare(const void* a, const void* b) { return *(int*)a - *(int*)b; } int main() { int ...
384
memory_bytes
{'s_id': 's487623099', 'p_id': 'p02767', 'u_id': 'u955519695', 'date': '1588809167', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '384', 'code_size': '692'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// AtCoder165 C\n\n#define _CRT_SECURE_NO_WARNINGS\n#include <stdio.h>\n#include <math.h>\n#include <assert.h>\n#include <string.h>\n#...
CDSS_394127
CDSS
#include <stdio.h> int main(void) { int d; scanf("%d", &d); long c[26]; for (int i = 0; i < 26; i++) { scanf("%ld", &c[i]); } long s[d][26]; for (int i = 0; i < d; i++) { for (int j = 0; j < 26; j++) { scanf("%ld", &s[i][j]); } } int t[d]; for (int i = 0; i < d; i++) { scanf(...
1,796
memory_bytes
{'s_id': 's307038405', 'p_id': 'p02620', 'u_id': 'u581816556', 'date': '1593396490', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1087', 'memory': '1796', 'code_size': '1115'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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;\n scanf(\"%d\", &d);\n long c[26];\n for (int i = 0; i < 26; i++) {\n scanf(\...
CDSS_603760
CDSS
#if 0 cat <<EOF >mistaken-paste #endif // thanks for @rsk0315_h4x #pragma GCC diagnostic ignored "-Wincompatible-pointer-types" #define _USE_MATH_DEFINES #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> #include <time.h> #define BIG 2000000007 #def...
9,088
memory_bytes
{'s_id': 's008290052', 'p_id': 'p03164', 'u_id': 'u238041222', 'date': '1546811700', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '9088', 'code_size': '7110'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#if 0\ncat <<EOF >mistaken-paste\n#endif\n// thanks for @rsk0315_h4x\n\n#pragma GCC diagnostic ignored \"-Wincompatible-pointer-types\...
CDSS_264616
CDSS
#include<stdio.h> int main(){ int S; scanf("%d",&S); int s = S % 60; int M = S / 60; int m = M % 60; int h = M / 60; printf("%d:%d:%d\n",h,m,s); return 0; }
2,048
memory_bytes
{'s_id': 's681918033', 'p_id': 'p02390', 'u_id': 'u333326383', 'date': '1558025696', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '165'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 S;\n scanf(\"%d\",&S);\n int s = S % 60;\n int M = S / 60;\n int m = M % 60;\n int h = M / 60;\n ...
CDSS_653843
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> #include <math.h> int main() { int n, m; scanf("%d", &n); char s[100][11], t[100][11]; int i, j, k; for (i=0; i<n; i++) { scanf("%s", s[i]); } scanf("%d", &m); for (i=0; i<m; i++) { s...
128
memory_bytes
{'s_id': 's701531394', 'p_id': 'p03408', 'u_id': 'u214304095', 'date': '1541201805', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '817'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 <stdbool.h>\n#include <math.h>\n\nint main()\n{\n int n, m;\...
CDSS_568324
CDSS
#include<stdio.h> int a,b; int main(void){ scanf("%d%d",&a,&b); if(a >= 13){ printf("%d",b); }else if(a >= 6&&a<= 12){ printf("%d",b/2); }else{ printf("0"); } }
128
memory_bytes
{'s_id': 's067426651', 'p_id': 'p03035', 'u_id': 'u960142224', 'date': '1558833244', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '204'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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;\nint main(void){\n scanf(\"%d%d\",&a,&b);\n if(a >= 13){\n printf(\"%d\",b);\n }else if(a ...
CDSS_52325
CDSS
#include<stdio.h> unsigned long long factorial(int n) { if (n==1) return 1; else return n*factorial(n-1); } int main() { int n; scanf("%d", &n); printf("%llu\n", factorial(n)); return 0; }
0
memory_bytes
{'s_id': 's379381620', 'p_id': 'p00019', 'u_id': 'u399107199', 'date': '1286741754', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '198'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nunsigned long long factorial(int n)\n{\n\tif (n==1)\n\t\treturn 1;\n\telse\n\t\treturn n*factorial(n-1);\n}\nint ma...
CDSS_470302
CDSS
#include <stdio.h> int main(void){ int k,n; int a[200000]; int i,d=0; scanf("%d %d", &k, &n); for(i = 0; i < n; i++){ scanf("%d", &a[i]); } for(i = 0; i < (n-1); i++){ if((a[i+1]-a[i]) > d){ d = (a[i+1]-a[i]); } } if((k-a[n-1]+a[0]) > d){ d = (k-a[n-1]+a[0]); } pri...
896
memory_bytes
{'s_id': 's970240525', 'p_id': 'p02725', 'u_id': 'u143329899', 'date': '1589828425', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '22', 'memory': '896', 'code_size': '354'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 k,n;\n int a[200000];\n int i,d=0;\n \n scanf(\"%d %d\", &k, &n);\n for(i = 0; ...
CDSS_103244
CDSS
#include <stdio.h> #include <stdlib.h> #define D_MAX 1000000000 #define N_MAX 100000 #define M_MAX 10000 #define min(x,y) (((x)<(y))?(x):(y)) int d; int n; int m; int ad[N_MAX+1]; int ak[M_MAX+1]; void MergeSort(int array[],int left,int right){ int awork[N_MAX+1]; int mid; int i; int j; int x; int y; ...
8,784
memory_bytes
{'s_id': 's423599387', 'p_id': 'p00462', 'u_id': 'u729140757', 'date': '1516808267', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '8784', 'code_size': '1505'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 D_MAX 1000000000\n#define N_MAX 100000\n#define M_MAX 10000\n#define min(x,y) (((x)...
CDSS_637605
CDSS
#include <stdio.h> int main(){ int a,b; scanf("%d%d",&a,&b); if(a<=8 && b<=8){ printf("Yay!"); }else{ printf(":("); } return 0; }
128
memory_bytes
{'s_id': 's673341492', 'p_id': 'p03323', 'u_id': 'u531531196', 'date': '1529683205', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '153'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 if(a<=8 && b<=8){\n printf(\"Yay!\");\n }else{\n p...
CDSS_543966
CDSS
#include<stdio.h> int main() { int a, b, c, d, k, found=0; scanf("%d %d", &a, &b); for(k=0; k<1000000000; k++) { c=a-k; if(c<0) c=c*(-1); d=b-k; if(d<0) d=d*(-1); if(c==d) { found=1; break; } }...
128
memory_bytes
{'s_id': 's576046144', 'p_id': 'p02957', 'u_id': 'u018679195', 'date': '1569108862', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1299', 'memory': '128', 'code_size': '405'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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, d, k, found=0;\n scanf(\"%d %d\", &a, &b);\n for(k=0; k<1000000000; k++)\n ...
CDSS_705458
CDSS
#include <stdio.h> int main(void) { char a[100][101]; int h,w,i,j; scanf("%d%d",&h,&w); for(i=0;i<h;i++)scanf("%s",a[i]); for(i=-1;i<h+1;i++){ for(j=-1;j<w+1;j++){ if(i==-1||i==h||j==-1||j==w)printf("#"); else printf("%c",a[i][j]); } puts(""); } return 0; }
128
memory_bytes
{'s_id': 's290924948', 'p_id': 'p03712', 'u_id': 'u102795616', 'date': '1533753974', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '277'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 a[100][101];\n\tint h,w,i,j;\n\tscanf(\"%d%d\",&h,&w);\n\tfor(i=0;i<h;i++)scanf(\"%s\"...
CDSS_200910
CDSS
#include<stdio.h> #define N 2000 int fanc1(int *, int, int, int,int); int fanc2(int *, int, int, int, int); int ruijou(int); int kaijou(int); int res(int, int); void solv1(int A[], int mi, int n, int a); void solv2(int A[], int mi, int n, int a); int j=0; int main(){ int n, q, a=0,i; int A[N],m[N],f; scanf("...
2,108
memory_bytes
{'s_id': 's830318016', 'p_id': 'p02271', 'u_id': 'u014449272', 'date': '1577092184', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '480', 'memory': '2108', 'code_size': '1430'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 2000\n\nint fanc1(int *, int, int, int,int);\nint fanc2(int *, int, int, int, int);\nint ruijou(int);\nin...
CDSS_150534
CDSS
#include<stdio.h> #include<math.h> int main(){ int a,b,g; int i; scanf("%d %d",&a,&b); if(a>b){ a=a%b; b=b%a; for(i=1;i<=b;i++){ if(a%i==0&&b%i==0){ g=i; } } } else if(a<b){ b=b%a; a=a%b; for(i=1;i<=a;i++){ if(a%i==0&&b%i==0){ g=i; } } } else if(a==b){ g=a; } printf...
592
memory_bytes
{'s_id': 's269980505', 'p_id': 'p02256', 'u_id': 'u402773007', 'date': '1417139611', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '230', 'memory': '592', 'code_size': '344'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tint a,b,g;\n\tint i;\n\tscanf(\"%d %d\",&a,&b);\n\tif(a>b){\n\t\ta=a%b;\n\t\tb=b...
CDSS_303134
CDSS
#include <stdio.h> int main(){ int x, y, z; while(1){ scanf("%d %d", &x, &y); if ( x == 0 && y == 0) break; if ( x < y ) printf("%d %d\n", x, y); else printf("%d %d\n", y, x); } return 0; }
2,036
memory_bytes
{'s_id': 's653648349', 'p_id': 'p02397', 'u_id': 'u371726268', 'date': '1529594524', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', '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>\nint main(){\n int x, y, z;\n while(1){\n scanf(\"%d %d\", &x, &y);\n if ( x == 0 && y == 0) break;\n if...
CDSS_38686
CDSS
#include<stdio.h> #include<string.h> #include<ctype.h> int main(void) { int x,y,z; int i,j,k; char a[100],b[100]; scanf("%s",a); x=strlen(a); for(i=0;i<=x;i++) { if(i==x) { b[i]=a[i]; } else { b[x-1-i]=a[i]; } } ...
0
memory_bytes
{'s_id': 's126058031', 'p_id': 'p00006', 'u_id': 'u904101743', 'date': '1341994911', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '353'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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<ctype.h>\nint main(void)\n{\n int x,y,z;\n int i,j,k;\n char a[100],b[100];\n...
CDSS_483350
CDSS
#include <stdio.h> int main(void) { int n, m; int i, j, k, l, o; int p, q, r; int count; int s[6], c[6]; scanf("%d%d", &n, &m); for (i = 0; i < m; i++) { scanf("%d%d", &s[i], &c[i]); } p = 10; q = 0; r = 0; count = 0; if (m != 0) { for (j ...
128
memory_bytes
{'s_id': 's350923208', 'p_id': 'p02761', 'u_id': 'u149854193', 'date': '1583122907', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '2636'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, m;\n int i, j, k, l, o;\n int p, q, r;\n int count;\n int s[6], c[6];\...
CDSS_189696
CDSS
#include<stdio.h> #define N 10000 int main(void){ int n, q, C=0, i, j; int S[N], T[N]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&S[i]); } scanf("%d",&q); for(j=0;j<q;j++){ scanf("%d",&T[j]); } for(j=0;j<q;j++){ for(i=0;i<n;i++){ if(S[i] == T[j]){ C++; break; } ...
2,144
memory_bytes
{'s_id': 's414759479', 'p_id': 'p02267', 'u_id': 'u582275142', 'date': '1529987336', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '365'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 10000\n\nint main(void){\n\n int n, q, C=0, i, j;\n int S[N], T[N];\n\n scanf(\"%d\",&n);\n\n for(i=0...
CDSS_321216
CDSS
#include <stdio.h> int main(void) { int n, a, b, i; int max = 0; int min = 0; long int sum = 0; scanf("%d", &n); for(i = 0; i < n; i++) { scanf("%d", &a); if(i == 0) { max = a; min = a; } if(a > max) max = a; if(a < min) min = a; sum = sum + a; } printf("%d %d %ld\n", min, max, sum); return 0; }
2,000
memory_bytes
{'s_id': 's027208539', 'p_id': 'p02402', 'u_id': 'u717768923', 'date': '1556099567', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2000', '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{\nint n, a, b, i;\nint max = 0;\nint min = 0;\nlong int sum = 0;\n\nscanf(\"%d\", &n);\n\nfor(i...
CDSS_131278
CDSS
#include<stdio.h> #define N 100 void matrixChainOrder(int *); int n,m[N][N]; int main(){ int i,r[N]; scanf("%d",&n); for(i=0 ; i<n ; i++){ scanf("%d%d",&r[i],&r[i+1]); } matrixChainOrder(r); return 0; } void matrixChainOrder(int *p){ int i,l,j,k,q; for(i=0 ; i<n+1 ; i++){ for(j=0 ; j<n+1 ; j+...
2,112
memory_bytes
{'s_id': 's634141489', 'p_id': 'p02234', 'u_id': 'u764082611', 'date': '1532065612', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '631'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 100\n\nvoid matrixChainOrder(int *);\n\nint n,m[N][N];\nint main(){\n int i,r[N];\n scanf(\"%d\",&n);\n...
CDSS_136086
CDSS
#include <stdio.h> #define MAX 100 int main(){ int M[MAX][MAX]; int i,j; int n,u,k,v; scanf("%d",&n); for(i=0;i<n;i++){ for(j=0;j<n;j++){ M[i][j]=0; } } for(i=0;i<n;i++){ scanf("%d %d",&u,&k); u--; for(j=0;j<k;j++){ scanf("%d",&v); v--; M[u][v]=1; } } ...
2,088
memory_bytes
{'s_id': 's920540721', 'p_id': 'p02237', 'u_id': 'u643676119', 'date': '1532581973', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2088', 'code_size': '456'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 100\n\nint main(){\n int M[MAX][MAX];\n int i,j;\n int n,u,k,v;\n scanf(\"%d\",&n);\n\n for(i=0;i...
CDSS_149736
CDSS
#include<stdio.h> void print_array(int *array, int num){ for(int i = 0; i < num; i++){ printf("%d", array[i]); if(i != num-1) printf(" "); } printf("\n"); } int main(void){ int i = 0, j = 0, temp, num; int array[100]; scanf("%d", &num); while(i < num && scanf("%d", &array[...
2,084
memory_bytes
{'s_id': 's136930578', 'p_id': 'p02255', 'u_id': 'u506604070', 'date': '1575608091', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2084', 'code_size': '606'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 print_array(int *array, int num){\n for(int i = 0; i < num; i++){\n printf(\"%d\", array[i]);\n ...
CDSS_216917
CDSS
#include <stdio.h> #define MAX 100005 #define NIL -1 typedef struct {int p, l, r;} Node; Node T[MAX]; int n, D[MAX]; void print(int u) { int i,c; printf("node %d: ",u); printf("parent = %d, ",T[u].p); printf("depth = %d, ",D[u]); if( T[u].p == NIL ) printf("root, "); else if( T[u].l == NIL ) printf("le...
6,408
memory_bytes
{'s_id': 's670829678', 'p_id': 'p02279', 'u_id': 'u238725755', 'date': '1574661464', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '6408', 'code_size': '1012'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 100005\n#define NIL -1\n\ntypedef struct {int p, l, r;} Node;\n\nNode T[MAX];\nint n, D[MAX];\n\nvoi...
CDSS_200438
CDSS
#include <stdio.h> int solve(int, int); int n,q,A[2000]; int main() { int i,mi; scanf("%d",&n); for(i=0; i<n; i++){ scanf("%d",&A[i]); } scanf("%d",&q); for(i=0; i<q; i++){ scanf("%d",&mi); if(solve(0, mi)==1) printf("yes\n"); else printf("no\n"); } ...
2,108
memory_bytes
{'s_id': 's364402673', 'p_id': 'p02271', 'u_id': 'u555605815', 'date': '1530371480', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '570', 'memory': '2108', 'code_size': '472'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 solve(int, int);\nint n,q,A[2000];\nint main()\n{\n int i,mi;\n\n scanf(\"%d\",&n);\n for(i=0; i<n; i++...
CDSS_566581
CDSS
#include <stdio.h> int main(void) { int A, P; do { scanf("%d %d", &A, &P); } while (A < 0 || P > 100); printf("%d\n", ((A * 3) + P) / 2); return 0; }
128
memory_bytes
{'s_id': 's671499507', 'p_id': 'p03029', 'u_id': 'u232019618', 'date': '1562953137', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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(void) {\n\n int A, P;\n\n do {\n scanf(\"%d %d\", &A, &P);\n } while (A < 0 || P > 100);\n\n pri...
CDSS_722898
CDSS
#include <stdio.h> #include <string.h> int main() { int x=0,N; scanf("%d",&N); char s[N+1]; scanf("%s",&s); int max=0; for(int i=0;i<N;i++){ if(s[i]=='I'){ x++; }else{ x--; } if(max<x){ max=x; } } printf("%d\n",max); return 0; }
1,704
memory_bytes
{'s_id': 's243176062', 'p_id': 'p03827', 'u_id': 'u018679195', 'date': '1596585585', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1704', '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 <string.h>\nint main()\n{\n\tint x=0,N;\n\tscanf(\"%d\",&N);\n\tchar s[N+1];\n\tscanf(\"%s\",&s);\n\tint ...
CDSS_253603
CDSS
#include<stdio.h> int main(){ int a,b,menseki,mawari; scanf("%d %d",&a,&b); menseki=a*b; mawari=a*2+b*2; printf("%d %d\n",menseki,mawari); return 0; }
596
memory_bytes
{'s_id': 's369300620', 'p_id': 'p02389', 'u_id': 'u440387426', 'date': '1480042092', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '156'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,b,menseki,mawari;\n\tscanf(\"%d %d\",&a,&b);\n\tmenseki=a*b;\n\tmawari=a*2+b*2;\n\tprintf(\"%d...
CDSS_29116
CDSS
#include<stdio.h> static int digits(int n) { int d = 1; if (n < 0) { n = -n; d++; } while (n /= 10) d++; return d; } int main() { int a, b; while (scanf("%d%d", &a, &b) != EOF) printf("%d\n", digits(a+b)); return 0; }
2,120
memory_bytes
{'s_id': 's489291170', 'p_id': 'p00002', 'u_id': 'u230061082', 'date': '1582582761', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2120', '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\nstatic int digits(int n)\n{\n int d = 1;\n \n if (n < 0) {\n n = -n;\n d++;\n }\n \n while (n /= 10)\...
CDSS_497950
CDSS
#include<stdio.h> int main() { int n,i,ans; ans=1; scanf("%d",&n); int min[n],p[n]; scanf("%d",&p[0]); min[0]=p[0]; for(i=1;i<n;++i) { scanf("%d",&p[i]); if(p[i]<min[i-1]) {min[i]=p[i]; ans++; } else min[i]=min[i-1]; } printf("%d",ans); return 0...
3,264
memory_bytes
{'s_id': 's213468030', 'p_id': 'p02791', 'u_id': 'u054782559', 'date': '1598187149', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '36', 'memory': '3264', 'code_size': '323'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 n,i,ans;\n ans=1;\n scanf(\"%d\",&n);\n \n int min[n],p[n];\n scanf(\"%d\",&p[0]);\n min[0...
CDSS_732145
CDSS
#include <stdio.h> int main(){ int a,b,c,s; scanf("%d%d%d",&a,&b,&c); s=(a+b+c)/2 + ((a+b+c)%2)*100; puts((s-a)*(s-b)*(s-c)?"No":"Yes"); }
128
memory_bytes
{'s_id': 's409575396', 'p_id': 'p03943', 'u_id': 'u244203620', 'date': '1537094891', '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>\nint main(){\n int a,b,c,s;\n scanf(\"%d%d%d\",&a,&b,&c);\n s=(a+b+c)/2 + ((a+b+c)%2)*100;\n puts((s-a)*(s-b)*(...
CDSS_347400
CDSS
//Finding Missing Cards #include<stdio.h> int main() { int i=1, j=1; int max = 0, num=0; int S[14]={0}; int H[14]={0}; int C[14]={0}; int D[14]={0}; // char str; char str[1]; scanf("%d ", &max); // printf("%d\n",max); // if(max>52) return 0; for(j=1; j<=max; j+...
2,040
memory_bytes
{'s_id': 's179669122', 'p_id': 'p02408', 'u_id': 'u316697096', 'date': '1568699768', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '1242'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//Finding Missing Cards\n\n#include<stdio.h>\n\nint main()\n{\n int i=1, j=1;\n int max = 0, num=0;\n int S[14]={0};\n int...
CDSS_369350
CDSS
#include <stdio.h> #include <string.h> int main(void) { char c1[10]; char c2[1000]; int c=0,a; scanf("%s",c1); //printf("%s",c1); while(1){ scanf("%s",c2); if(strcmp(c2,"END_OF_TEXT")==0){ break; } for(a=0;a<1000;a++){ if(c2[a]=='A'){ ...
548
memory_bytes
{'s_id': 's636894716', 'p_id': 'p02419', 'u_id': 'u728246856', 'date': '1503201873', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '1661'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 c1[10];\n char c2[1000];\n int c=0,a;\n \n scanf(...
CDSS_177133
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> int pop(); void push(int); int s2[100],top=0; int main(){ int x,a,b; char s[100]; while( scanf("%s", s) != EOF ){ if ( s[0] == '+' ){ a = pop(); b = pop(); x = a+b; s2[top]=x; top++; } else if ( s[0] == '-' ){ a...
548
memory_bytes
{'s_id': 's935568833', 'p_id': 'p02263', 'u_id': 'u867674243', 'date': '1461216563', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '647'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 pop();\nvoid push(int);\nint s2[100],top=0;\n\nint main(){\n int x,a...
CDSS_741787
CDSS
#include <stdio.h> int main(void) { int n; int i; int a; scanf("%d", &n); a = 0; for (i = 1; i <= n; i++){ a += i; } printf("%d\n", a); return (0); }
128
memory_bytes
{'s_id': 's431275948', 'p_id': 'p04029', 'u_id': 'u886789220', 'date': '1474578659', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '128', 'code_size': '169'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint n;\n\tint i;\n\tint a;\n\t\n\tscanf(\"%d\", &n);\n\t\n\ta = 0;\n\tfor (i = 1; i <= n; i...
CDSS_240820
CDSS
#include <stdio.h> int main(void) { int x; scanf("%d", &x); printf("%d\n", x * x * x); return 0; }
596
memory_bytes
{'s_id': 's202442971', 'p_id': 'p02388', 'u_id': 'u330582179', 'date': '1435235126', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '115'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int x;\n scanf(\"%d\", &x);\n printf(\"%d\\n\", x * x * x);\n return 0;\n}\nPred...
CDSS_531135
CDSS
#include <stdio.h> int main(void){ int n,i; scanf("%d",&n); int b[n-1]; for(i=0;i<n-1;i++) scanf("%d",&b[i]); int sum=b[0]; for(i=1;i<n-1;i++){ if(b[i-1]>b[i]) sum+=b[i]; else sum+=b[i-1]; } printf("%d",sum+b[n-2]); return 0; }
256
memory_bytes
{'s_id': 's884773142', 'p_id': 'p02917', 'u_id': 'u592248346', 'date': '1589077984', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '256', 'code_size': '279'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int n,i;\n scanf(\"%d\",&n);\n int b[n-1];\n for(i=0;i<n-1;i++) scanf(\"%d\",&b[i]);...
CDSS_383712
CDSS
#include<stdio.h> int main() { char S[4]; scanf("%s",S); int i,c=0; for(i=0;i<strlen(S);i++) { if(S[i]=='R') c++; if(S[i]=='S'&&c>0) break; } printf("%d",c); return 0; }
2,148
memory_bytes
{'s_id': 's690139600', 'p_id': 'p02582', 'u_id': 'u651597139', 'date': '1597519189', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '2148', 'code_size': '218'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 S[4];\n scanf(\"%s\",S);\n int i,c=0;\n for(i=0;i<strlen(S);i++)\n {\n if(...
CDSS_403437
CDSS
#include <stdio.h> #include <string.h> #include <stdbool.h> #include <math.h> int main(void) { int X, Y; scanf("%d %d", &X, &Y); int odA = Y - (2 * X); if( odA == 0 ) { printf("Yes\n"); return 0; } if( (odA < 0) || ((odA % 2) != 0) ) { printf("No\n"); return 0...
1,664
memory_bytes
{'s_id': 's645640207', 'p_id': 'p02640', 'u_id': 'u339658123', 'date': '1592183254', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1664', 'code_size': '441'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 <stdbool.h>\n#include <math.h>\n\nint main(void) {\n int X, Y;\n\n scanf(\"%d ...
CDSS_310819
CDSS
#include<stdio.h> int main (void){ int a,b; double f; scanf("%d",&a); scanf("%d",&b); f=1.0*a/b; printf("%d %d %f\n",a/b,a%b,f); return 0; }
636
memory_bytes
{'s_id': 's036656616', 'p_id': 'p02399', 'u_id': 'u523348427', 'date': '1501681801', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', '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 (void){\nint a,b;\ndouble f;\nscanf(\"%d\",&a);\nscanf(\"%d\",&b);\nf=1.0*a/b;\nprintf(\"%d %d %f\\n\",a/b...
CDSS_723802
CDSS
#include <stdio.h> int main(){ char v[20]; scanf("%s", v); v[5]=' '; v[13]=' '; printf("%s\n", v); return 0; }
128
memory_bytes
{'s_id': 's684258505', 'p_id': 'p03834', 'u_id': 'u018679195', 'date': '1572752987', '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>\n\nint main(){\n char v[20];\n scanf(\"%s\", v);\n\n v[5]=' ';\n v[13]=' ';\n\n printf(\"%s\\n\", v)...
CDSS_207627
CDSS
#include <stdio.h> #include <string.h> #define DEF_ELEM_MAX 2000001 typedef long long llong; int A[DEF_ELEM_MAX]; int B[DEF_ELEM_MAX]; int C[DEF_ELEM_MAX]; int N; ///////////////////////////////////////////////////////////////////////////////// // ///////////////////////////////////////////////////////////////////...
17,896
memory_bytes
{'s_id': 's057387236', 'p_id': 'p02275', 'u_id': 'u320509644', 'date': '1433231551', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '400', 'memory': '17896', 'code_size': '1262'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include <stdio.h>\n#include <string.h>\n\n#define DEF_ELEM_MAX 2000001\n\ntypedef long long llong;\n\nint A[DEF_ELEM_MAX];\nint B[D...
CDSS_386538
CDSS
#include <stdio.h> #include<math.h> int main(void) { int N,D,count=0,i; double x,y; scanf("%d %d",&N,&D); for(i=1;i<=N;i++){ scanf("%lf %lf",&x,&y); if(sqrt(x*x+y*y)<=D) count++; } printf("%d\n",count); return 0; }
2,216
memory_bytes
{'s_id': 's810449694', 'p_id': 'p02595', 'u_id': 'u049791295', 'date': '1596636719', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '68', 'memory': '2216', '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<math.h>\n\nint main(void)\n{\n\tint N,D,count=0,i;\n\tdouble x,y;\n\tscanf(\"%d %d\",&N,&D);\n \tfor(i=...
CDSS_534456
CDSS
main(long n){scanf("%ld",&n);printf("%ld",n--*n/2);}
1,724
memory_bytes
{'s_id': 's565928308', 'p_id': 'p02924', 'u_id': 'u944651767', 'date': '1600173525', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1724', 'code_size': '52'}
[ { "content": "Your task is to predict the 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(long n){scanf(\"%ld\",&n);printf(\"%ld\",n--*n/2);}\nPredict its memory footprint.", "role": "user" }, { "content": "...
CDSS_207502
CDSS
#include <stdio.h> #include <stdlib.h> #define K 10000 //A[i]最大値 int *countingSort(int*, int); //入力された配列、ソート後の配列、入力の要素数 main(){ int *arrA, *arrB; int n, i; scanf("%d", &n); arrA = (int *)malloc(sizeof(int)*n); for(i=0; i<n; i++) scanf("%d", arrA+i); arrB = countingSort(arrA, n); for(i=0; i<n-1; i++)...
16,268
memory_bytes
{'s_id': 's737486907', 'p_id': 'p02275', 'u_id': 'u290461361', 'date': '1432860139', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '390', 'memory': '16268', '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#include <stdlib.h>\n#define K 10000 //A[i]最大値\n\nint *countingSort(int*, int); //入力された配列、ソート後の配列、入力の要素数\n\nmain(...
CDSS_60370
CDSS
#include <stdio.h> int main(void) { int hen1, hen2, tai; int ct_c; int ct_h; ct_c = ct_h = 0; while (scanf("%d, %d, %d", &hen1, &hen2, &tai) != EOF){ if (tai * tai - (hen1 * hen1 + hen2 * hen2) == 0){ ct_c++; } else if (hen1 == hen2){ ct_h++; } } printf("%d\n%d\n", ct_c, ct_h); return (0); ...
596
memory_bytes
{'s_id': 's355094306', 'p_id': 'p00032', 'u_id': 'u318910474', 'date': '1442464143', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '321'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 hen1, hen2, tai;\n\tint ct_c;\n\tint ct_h;\n\t\n\tct_c = ct_h = 0;\n\twhile (scanf(\"%d...
CDSS_36284
CDSS
#include<stdio.h> int GCD(int, int); main(){ int a, b, gcd, lcm; while(scanf("%d %d", &a, &b) != EOF){ gcd = GCD(a, b); lcm = a * (b / gcd); printf("%d %d\n", gcd, lcm); } return 0; } int GCD(int a, int b){ int c, d; if(b > a){ c = a; a = b; b = c; } d = b; while(1){ ...
0
memory_bytes
{'s_id': 's973092158', 'p_id': 'p00005', 'u_id': 'u278606251', 'date': '1322022729', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '434'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, int);\n\nmain(){\n int a, b, gcd, lcm;\n\n while(scanf(\"%d %d\", &a, &b) != EOF){\n gcd = GCD(...
CDSS_658896
CDSS
#include <stdlib.h> #include<stdio.h> int desc(const void *a, const void *b) { return *(int *)b - *(int *)a; } int main(){ int N,SumA=0,SumB=0; scanf("%d",&N); int a[N]; for(int i=0;i<N;i++){ scanf("%d",&a[i]); } qsort(a, sizeof(a) / sizeof(*a), sizeof(*a), desc); for(int i=0;i<N;i++){ if(i%2...
128
memory_bytes
{'s_id': 's880524337', 'p_id': 'p03434', 'u_id': 'u347615103', 'date': '1519702395', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '399'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdlib.h>\n#include<stdio.h>\nint desc(const void *a, const void *b) {\n return *(int *)b - *(int *)a;\n}\n\nint main(){\n ...
CDSS_655962
CDSS
#include <stdio.h> int main(void) { int N; if (scanf("%d", &N) != 1) return 1; printf("%d\n", N / 3); return 0; }
128
memory_bytes
{'s_id': 's574273413', 'p_id': 'p03423', 'u_id': 'u646118499', 'date': '1578571678', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '119'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint N;\n\tif (scanf(\"%d\", &N) != 1) return 1;\n\tprintf(\"%d\\n\", N / 3);\n\treturn 0;\n}...
CDSS_347038
CDSS
#include <stdio.h> int main(void){ int i,j,n,m,cn; char c,s[5]={'S','H','C','D','\0'}; static int card[4][13]; scanf("%d\n",&n); for(i=0;i<n;i++){ scanf("%c %d\n",&c,&m); for(j=0;j<4;j++) if(s[j]==c) card[j][m-1]=1; } for(i=0;i<4;i++) for(j=0;j<13;j++) if(card[i][j]==0...
2,104
memory_bytes
{'s_id': 's202643065', 'p_id': 'p02408', 'u_id': 'u140759476', 'date': '1530581146', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', '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\nint main(void){\n int i,j,n,m,cn;\n char c,s[5]={'S','H','C','D','\\0'};\n static int card[4][13];\n scanf(\...
CDSS_627077
CDSS
#include<stdio.h> int main(void){ int n,k; scanf("%d %d",&n,&k); printf("%d",n%k!=0); return 0; }
128
memory_bytes
{'s_id': 's022860197', 'p_id': 'p03284', 'u_id': 'u521382680', 'date': '1555621010', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '111'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int n,k;\n scanf(\"%d %d\",&n,&k);\n printf(\"%d\",n%k!=0);\n return 0;\n}\n \n\nPredict i...
CDSS_122978
CDSS
#include<stdio.h> int main(){ int n, a, b, c, x, y[128]; int i, j; while(scanf("%d%d%d%d%d", &n, &a, &b, &c, &x), n){ for(i=0; i<n; i++){ scanf("%d", &y[i]); } j=0; for(i=0; i<10002; i++){ if(x==y[j]){ if(j==n-1){ break; }else{ j++; } } x=(a*x+b)%c; } if(...
600
memory_bytes
{'s_id': 's326387047', 'p_id': 'p01267', 'u_id': 'u449487277', 'date': '1503590266', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '600', 'code_size': '378'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int n, a, b, c, x, y[128];\n int i, j;\n\n while(scanf(\"%d%d%d%d%d\", &n, &a, &b, &c, &x), n){\...
CDSS_301801
CDSS
#include <stdio.h> int main() { int x, y, i, t; //??°??????????????? while (1){ scanf("%d%d",&x,&y); if(x==0 && y==0) break; if (x>=y) {printf("%d %d\n",y,x);} else {printf("%d %d\n",x,y);} } return 0; }
596
memory_bytes
{'s_id': 's091229260', 'p_id': 'p02397', 'u_id': 'u559660120', 'date': '1496208726', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '257'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int x, y, i, t;\n//??°???????????????\n while (1){\n scanf(\"%d%d\",&x,&y); \n if(x==0...
CDSS_535438
CDSS
#include<stdio.h> #include<stdlib.h> #define MOD 1000000007 typedef long long int ll; int main(void){ int n, *list; int p = 0, q = 0; ll k, ps = 0, qs = 0; scanf("%d %lld", &n, &k); list = malloc(sizeof(int) * n); for(int i = 0; i < n; i++){ scanf("%d", list+i); } //一つ目...
128
memory_bytes
{'s_id': 's520470617', 'p_id': 'p02928', 'u_id': 'u749089333', 'date': '1566726213', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '17', 'memory': '128', '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>\n#define MOD 1000000007\ntypedef long long int ll;\n\nint main(void){\n\n int n, *list;\n ...
CDSS_564609
CDSS
#include<stdio.h> int main() { int h, w; scanf("%d %d", &h, &w); int i, j; char s[2003][2003]; for (i = 0; i < h; i++) scanf("%s", s[i]); int h1[2003][2003], h2[2003][2003]; int w1[2003][2003], w2[2003][2003]; int hh[2003][2003], ww[2003][2003]; for (i = 0; i < h; i++) for (j = 0; j < w; j++) h1[i][j] =...
98,048
memory_bytes
{'s_id': 's890741877', 'p_id': 'p03014', 'u_id': 'u600300412', 'date': '1560130999', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '148', 'memory': '98048', 'code_size': '1749'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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, j;\n\tchar s[2003][2003];\n\tfor (i = 0; i < h; i...
CDSS_555383
CDSS
//ABC132C #include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> 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, j, pivot; i ...
512
memory_bytes
{'s_id': 's451142826', 'p_id': 'p02989', 'u_id': 'u733391043', 'date': '1565934809', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '18', 'memory': '512', 'code_size': '1251'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//ABC132C\n#include <stdio.h>\n#include <string.h>\n#include <math.h>\n#include <stdlib.h>\n\nvoid swap (int *x, int *y) {\n int temp...
CDSS_23652
CDSS
#include<stdio.h> int main(void){ int a[10000],A,i,j; for(i=0;i<10;i++){ scanf("%d",&a[i]); } for(i=0;i<10;i++){ for(j=0;j<10;j++){ if(i!=j){ if(a[i]>a[j]){ A=a[i]; a[i]=a[j]; a[j]=A; } } } } for(i=0;i<3;i++){ printf("%d\n",a[i]); } return 0; }
608
memory_bytes
{'s_id': 's550262301', 'p_id': 'p00001', 'u_id': 'u330937064', 'date': '1484811999', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '270'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n\n int a[10000],A,i,j;\n for(i=0;i<10;i++){\nscanf(\"%d\",&a[i]);\n \t}\n\n for(i=0;i<10;i++){\n ...
CDSS_563210
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...
128
memory_bytes
{'s_id': 's740546401', 'p_id': 'p03011', 'u_id': 'u301843562', 'date': '1560128998', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1617'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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_402378
CDSS
int main() { int a,i; for(i=0;i<5;i++){ scanf("%d", &a); if (!a)printf("%d", i + 1); } }
1,724
memory_bytes
{'s_id': 's324171703', 'p_id': 'p02639', 'u_id': 'u333114422', 'date': '1592182912', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1724', 'code_size': '92'}
[ { "content": "Your task is to predict the 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\tint a,i;\n\tfor(i=0;i<5;i++){ scanf(\"%d\", &a); if (!a)printf(\"%d\", i + 1); }\n\t\n}\nPredict its memory footprint....
CDSS_116408
CDSS
#include <stdio.h> void islandin (int island[2500][2],int i,int j,int island_count){ island[island_count][0] = i; island[island_count][1] = j; } int main(int argc, const char * argv[]) { int w,h,i=0,j=0,k=0,l=0,y; int table[52][52]={0}; int island[2500][2],island_count=0,island_count...
636
memory_bytes
{'s_id': 's184012983', 'p_id': 'p00741', 'u_id': 'u928088242', 'date': '1464945740', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '636', 'code_size': '2159'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 islandin (int island[2500][2],int i,int j,int island_count){\n island[island_count][0] = i;\n island[...
CDSS_90259
CDSS
#include<stdio.h> int main() { int n, y, i, j, b, r, t, num; double ans, max; while(1){ max = 0.0; scanf("%d", &n); if(n == 0) break; scanf("%d", &y); for(i=0; i<n; i++){ scanf("%d%d%d", &b, &r, &t); if(t == 1){ ans = (1 + y * (double)r / 100); } ...
600
memory_bytes
{'s_id': 's458329469', 'p_id': 'p00240', 'u_id': 'u694718044', 'date': '1498291841', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '522'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int n, y, i, j, b, r, t, num;\n double ans, max;\n\n while(1){\n\n max = 0.0;\n \n scan...
CDSS_447603
CDSS
#include<stdio.h> int main(){ int n; int Lucky = 0; scanf("%d", &n); for(int i=0;i<3;i++){ if(n%10==7) Lucky = 1; n= n/10; } if(Lucky==1){ printf("Yes"); }else{ printf("No"); } return 0; }
1,684
memory_bytes
{'s_id': 's092234001', 'p_id': 'p02711', 'u_id': 'u826251282', 'date': '1595270599', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1684', 'code_size': '235'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n;\n int Lucky = 0;\n scanf(\"%d\", &n);\n for(int i=0;i<3;i++){\n if(n%10==7)\n Luck...
CDSS_688497
CDSS
#include <stdio.h> int main() { int a,b,c,d,e; scanf("%d %d%d",&a,&b,&c); d=abs(a-b); e=abs(a-c); if(e>d) printf("A"); else printf("B"); return 0; }
128
memory_bytes
{'s_id': 's731942925', 'p_id': 'p03623', 'u_id': 'u353919145', 'date': '1509586042', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '170'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{ \n int a,b,c,d,e; \n scanf(\"%d %d%d\",&a,&b,&c);\n d=abs(a-b);\n e=abs(a-c);\n if(e>d)\n prin...
CDSS_172962
CDSS
#include<stdio.h> #define N 36 typedef struct{ char a; int b; }Tru; main(){ int i,j,n,e,min; Tru c[N],d[N],s,t; scanf("%d",&n); for(i=0;i<n;i++){ scanf(" %c%d",&c[i].a,&c[i].b); d[i]=c[i]; } for(i=0;i<n-1;i++){ for(j=n-1;j>i;j--){ if(c[j].b<c[j-1].b){ s=c[j]; c[j]=c[j-1]; c[j-1...
608
memory_bytes
{'s_id': 's607996440', 'p_id': 'p02261', 'u_id': 'u766995356', 'date': '1429260635', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '927'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 36\n\ntypedef struct{\n char a;\n int b;\n}Tru;\n\nmain(){\n\n int i,j,n,e,min;\n Tru c[N],d[N],s,t;\...
CDSS_715861
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #include <stdlib.h> #include <stdbool.h> #define MOD 1000000007 void input_array(int how_data,int *data); int get_random(int min, int max); int factorial(int n); int fibonacci(int n); int qsort_09(const int *sys1 , const int *sys2); int qsort_...
128
memory_bytes
{'s_id': 's993496289', 'p_id': 'p03778', 'u_id': 'u926548116', 'date': '1489885620', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1926'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <math.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#define MO...
CDSS_128147
CDSS
#include <stdio.h> int N, M; int d[128], v[128]; int hayamisaori[128]; int main(void) { int i; while (scanf("%d%d", &N, &M) == 2 && (N|M) != 0) { int hanazawakana = 0; for (i = 1; i <= M; i++) hayamisaori[i] = 0; for (i = 0; i < N; i++) { if (scanf("%d%d", &d[i], &v[i]) != 2) return 1; if (v[i] > hayam...
2,112
memory_bytes
{'s_id': 's970744065', 'p_id': 'p01923', 'u_id': 'u543521645', 'date': '1579533598', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '481'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint N, M;\nint d[128], v[128];\n\nint hayamisaori[128];\n\nint main(void) {\n\tint i;\n\twhile (scanf(\"%d%d\", ...
CDSS_498143
CDSS
#include<stdio.h> int main(void){ int n,i,j,a,p[200000],s=1; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&p[i]); } a=p[0]; for(i=1;i<n;i++){ if(a>=p[i]){ a=p[i]; s++; } } printf("%d",s); return 0; }
896
memory_bytes
{'s_id': 's469480792', 'p_id': 'p02791', 'u_id': 'u779509224', 'date': '1580594818', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '22', 'memory': '896', 'code_size': '245'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int n,i,j,a,p[200000],s=1;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\n scanf(\"%d\",&p[i]);\n...
CDSS_702659
CDSS
main(a,b){scanf("%d%d",&a,&b);a+b>9?puts("error"):printf("%d",a+b);}
128
memory_bytes
{'s_id': 's254839597', 'p_id': 'p03697', 'u_id': 'u875408597', 'date': '1548792735', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '68'}
[ { "content": "Your task is to predict the 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(a,b){scanf(\"%d%d\",&a,&b);a+b>9?puts(\"error\"):printf(\"%d\",a+b);}\nPredict its memory footprint.", "role": "user" }, ...
CDSS_183810
CDSS
#include<stdio.h> #include<string.h> int head=0,tail=0,n; typedef struct{ char pr[10]; int time; }pro; pro que[100001],test; void enqu(pro); pro dequ(void); int main(){ pro p; int i,a,b,q,sum=0; test.time=0; scanf("%d%d",&n,&q); for(i=0;i<n;i++){ scanf("%s%d",p.pr,&p.time); enqu(p); } while(1){ p=dequ(...
2,496
memory_bytes
{'s_id': 's304119510', 'p_id': 'p02264', 'u_id': 'u532484677', 'date': '1576135462', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2496', 'code_size': '712'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 head=0,tail=0,n;\ntypedef struct{\n\tchar pr[10];\n\tint time;\n}pro;\npro que[100001],te...
CDSS_115408
CDSS
#include <stdio.h> int main(void){ int i; int judge_number; int result_point; while(1){ int points[101]={0}; int max_point=0; int min_point=0; int max_index=0; int min_index=0; int sum=0; scanf("%d",&judge_number); if(judge_number==0){ break; } for(i=...
600
memory_bytes
{'s_id': 's988728296', 'p_id': 'p00728', 'u_id': 'u864732357', 'date': '1439953497', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '815'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\n int i;\n int judge_number;\n int result_point;\n\n while(1){\n \n int points[101]=...
CDSS_621002
CDSS
#include <stdio.h> #include <string.h> int main() { int n, i, j; int flg = 1; char w[100][100]; scanf("%d", &n); scanf("%s", w[0]); for (i = 1; i < n; i++) { scanf("%s", w[i]); if (w[i - 1][strlen(w[i - 1]) - 1] != w[i][0]) flg = 0; } for (i = 0; i < n; i++) { for (j = n - 1; j > i; j--) { if (strcm...
128
memory_bytes
{'s_id': 's666614521', 'p_id': 'p03261', 'u_id': 'u174068176', 'date': '1536458540', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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#include <string.h>\n\nint main() {\n\tint n, i, j;\n\tint flg = 1;\n\tchar w[100][100];\n\n\tscanf(\"%d\", &n);\n...
CDSS_178388
CDSS
#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<string.h> int top, S[1000]; void push(int x) { S[++top] = x; } int pop() { top--; return S[top+1]; } int main() { int a, b; top = 0; char s[100]; while (scanf("%s",s) != EOF) { if (s[0] == '+') {...
1,812
memory_bytes
{'s_id': 's241540087', 'p_id': 'p02263', 'u_id': 'u043039307', 'date': '1512092937', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1812', 'code_size': '726'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#define _CRT_SECURE_NO_WARNINGS\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n \nint top, S[1000];\n \nvoid push(int x...
CDSS_716893
CDSS
#include <stdio.h> int main(void) { int N; scanf("%d", &N); int a = N / 15; printf("%d", 800 * N - 200 * a); return 0; }
128
memory_bytes
{'s_id': 's727867766', 'p_id': 'p03795', 'u_id': 'u276980836', 'date': '1560875436', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '129'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint N;\n\tscanf(\"%d\", &N);\n\tint a = N / 15;\n\tprintf(\"%d\", 800 * N - 200 * a);\n\t\n...
CDSS_648611
CDSS
#include <stdio.h> int main(void){ int a,b,c,x,y; int money,selectA,selectB; scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); scanf("%d",&x); scanf("%d",&y); if(x>y){ if(b+a>2*c){ selectA=2*c*y+(x-y)*a; selectB=c*2*x; if(selectA>selectB){ printf("%d\n",selectB); }el...
128
memory_bytes
{'s_id': 's577985898', 'p_id': 'p03373', 'u_id': 'u610084897', 'date': '1524941653', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '742'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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,x,y;\n int money,selectA,selectB;\n\n scanf(\"%d\",&a);\n scanf(\"%d\",&b);\n s...
CDSS_343097
CDSS
#include<stdio.h> int main() { int n,i,x[100],j; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&x[i]); } for(j=n-1;j>=0;j--){ if(j!=0) printf("%d ",x[j]); else if(j==0) printf("%d\n",x[j]); } return 0; }
2,036
memory_bytes
{'s_id': 's198758340', 'p_id': 'p02407', 'u_id': 'u011621222', 'date': '1522228349', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '271'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int n,i,x[100],j;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\n scanf(\"%d\",&x[i]);\n ...
CDSS_324486
CDSS
#include <stdio.h> int main() { int i, n; long int a, min = 1000000, max = -1000000, sum = 0; scanf("%d", &n); for (i = 1; i <= n; i++) { scanf("%ld", &a); if (a < min) min = a; if (a > max) max = a; sum += a; } printf("%ld %ld %l...
600
memory_bytes
{'s_id': 's054479958', 'p_id': 'p02402', 'u_id': 'u514280952', 'date': '1481242959', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '357'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main()\n{\n int i, n;\n long int a, min = 1000000, max = -1000000, sum = 0;\n \n scanf(\"%d\", &n)...
CDSS_716828
CDSS
#include <stdio.h> int main(){ int n, x, y, r; scanf("%d", &n); x=n*800; y=200*(n/15); printf("%d\n", x-y); return 0; }
128
memory_bytes
{'s_id': 's032800425', 'p_id': 'p03795', 'u_id': 'u816631826', 'date': '1573642811', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '144'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int n, x, y, r;\n scanf(\"%d\", &n);\n x=n*800;\n y=200*(n/15);\n printf(\"%d\\n\", x...
CDSS_554455
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> int main(int argc, void **arg) { char s[5], str[3] = " "; int n[2] = { 0, 0 }; int i, j; scanf("%s", s); for (i = 0; i < 4; i++) { for (j = 0; j < 2; j++) { if( s[i] == str[j] ) { ...
128
memory_bytes
{'s_id': 's867491937', 'p_id': 'p02987', 'u_id': 'u266344698', 'date': '1561857162', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '748'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nint main(int argc, void **arg)\n{\n char s[5]...
CDSS_588494
CDSS
#include<stdio.h> #include<stdlib.h> #include<stdint.h> #include<inttypes.h> #include<string.h> typedef int32_t i32; typedef int64_t i64; typedef i64 flow_type; const flow_type flow_inf = (i64) 5000 * 1000000000; typedef struct flow_edge { int32_t vertex; int32_t next; flow_type capacity; } flow_edge; typede...
13,312
memory_bytes
{'s_id': 's848455169', 'p_id': 'p03092', 'u_id': 'u425248533', 'date': '1558114122', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1027', 'memory': '13312', 'code_size': '6061'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\ntypedef int32_t i32;\ntypedef i...
CDSS_19787
CDSS
#include <stdio.h> int main(void){ for(int i = 1; i <= 9; i++){ for(int j = 1; j <= 9; j++){ printf("%dx%d=%d\n", i, j, i*j); } } return 0; }
1,752
memory_bytes
{'s_id': 's574683859', 'p_id': 'p00000', 'u_id': 'u592154339', 'date': '1510918563', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1752', 'code_size': '162'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 for(int i = 1; i <= 9; i++){\n for(int j = 1; j <= 9; j++){\n printf(\"%dx%d=%d\\n\",...
CDSS_688229
CDSS
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #include <limits.h> #include <stdbool.h> #define rep(i, n) for(int i=0; i<(n); ++i) #define max 200001 //qsort(str, n, sizeof(int), up_comp); int up_comp(const void *a, const void *b){return *(int*)a - *(int*)b;} int down_comp(const void *a...
1,620
memory_bytes
{'s_id': 's523061976', 'p_id': 'p03623', 'u_id': 'u645174893', 'date': '1595481312', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1620', 'code_size': '850'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 <stdlib.h>\n#include <limits.h>\n#include <stdbool.h>\n\n#define ...
CDSS_153248
CDSS
#include<stdio.h> int main(){ int a,b,c=1,i; scanf("%d%d",&a,&b); while(c>0){ c=a%b; a=b; b=c; } printf("%d\n",a); return 0; }
2,064
memory_bytes
{'s_id': 's723827662', 'p_id': 'p02256', 'u_id': 'u958677701', 'date': '1529385168', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '157'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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,c=1,i;\n\n scanf(\"%d%d\",&a,&b);\n\n while(c>0){\n c=a%b;\n a=b;\n b=c;\n }\n...
CDSS_611089
CDSS
#include<stdio.h> int main() { int a,b,x; scanf("%d%d",&a,&b); if(a>=1&&b<=100&&(b%2==0)) { x=a+(b/2); printf("%d\n",x); } }
128
memory_bytes
{'s_id': 's623791737', 'p_id': 'p03219', 'u_id': 'u353919145', 'date': '1568004068', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', '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()\n{\nint a,b,x;\nscanf(\"%d%d\",&a,&b);\nif(a>=1&&b<=100&&(b%2==0))\n{\nx=a+(b/2);\nprintf(\"%d\\n\",x);\...
CDSS_361016
CDSS
#include <stdio.h> int nums1[105][105]; int nums2[105][105]; long long nums3[105][105]; int main() { #ifdef TEST freopen("input", "r", stdin); #endif int a, b, c; scanf("%d %d %d", &a, &b, &c); for (int i = 0; i < a; ++i) { for (int j = 0; j < b; ++j) { scanf("%d", &nums1[i][j]); ...
2,132
memory_bytes
{'s_id': 's533030365', 'p_id': 'p02414', 'u_id': 'u743340828', 'date': '1595426767', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2132', 'code_size': '862'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 nums1[105][105];\nint nums2[105][105];\nlong long nums3[105][105];\n\nint main() {\n#ifdef TEST\n freopen(\...