identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_77510
CDSS
#include<stdio.h> int main(){ int i,j,k,p,r,d[52]={0}; for(i=0;i*2<=50;i++){ for(j=0;i*2+j*3<=50;j++){ for(k=0;i*2+j*3+k*5<=50;k++){ p=380*i+550*j+850*k; p-=380*(i/5)+330*(j/4)+306*(k/3); r=i*2+j*3+k*5; if(d[r]==0||d[r]>p)d[r]=p; } } } while(scanf("%d",&r),r)printf("%d\n",d[r/100]); re...
600
memory_bytes
{'s_id': 's453883906', 'p_id': 'p00106', 'u_id': 'u731027244', 'date': '1430292620', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '329'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int i,j,k,p,r,d[52]={0};\n for(i=0;i*2<=50;i++){\n for(j=0;i*2+j*3<=50;j++){\n for(k=0;i*...
CDSS_276658
CDSS
#include <stdio.h> int main(void) { int a, b, c; scanf("%d %d %d", &a, &b ,&c); if(a < b && b < c) printf("Yes\n"); else printf("No\n"); return 0; }
580
memory_bytes
{'s_id': 's617674130', 'p_id': 'p02392', 'u_id': 'u962330056', 'date': '1464429666', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '164'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void) {\n int a, b, c;\n\n scanf(\"%d %d %d\", &a, &b ,&c);\n if(a < b && b < c)\n printf(\"Yes\\n\...
CDSS_311086
CDSS
#include<stdio.h> int main(){ int a, b, d, r; double f; scanf("%d %d", &a, &b); d = a / b; r = a % b; f = (double)a / (double)b; printf("%d %d %f", d, r, f); return 0; }
1,812
memory_bytes
{'s_id': 's248607287', 'p_id': 'p02399', 'u_id': 'u179338582', 'date': '1511754409', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1812', 'code_size': '178'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tint a, b, d, r;\n\tdouble f;\n\tscanf(\"%d %d\", &a, &b);\n\td = a / b;\n\tr = a % b;\n\tf = (do...
CDSS_574848
CDSS
#include<stdio.h> int main() { double a,b,n,t=0,t1=0,i; scanf("%lf%lf%lf",&a,&b,&n); t=a; t1=b; if(a>n) { printf("0\n"); } else { for(i=a;i<=n+0.5;i=i+t) { if((i+t)>n+0.5) { break; } b=b+t1; ...
128
memory_bytes
{'s_id': 's155288756', 'p_id': 'p03059', 'u_id': 'u353919145', 'date': '1581395170', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '375'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n double a,b,n,t=0,t1=0,i;\n scanf(\"%lf%lf%lf\",&a,&b,&n);\n t=a;\n t1=b;\n if(a>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 should 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_230921
CDSS
#include<stdio.h> int A[2000100]; int size = 0; void insert(int x) { int i; for (i = ++size; i / 2 > 0; i /= 2) { if (x > A[i / 2]) A[i] = A[i / 2]; else break; } A[i] = x; } int delete() { int parent, child; int x = A[size--], max = A[1]; for (parent = 1; parent * 2 <= size; parent = child) { c...
5,616
memory_bytes
{'s_id': 's670622279', 'p_id': 'p02289', 'u_id': 'u673825722', 'date': '1571501598', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '280', 'memory': '5616', 'code_size': '697'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint A[2000100];\nint size = 0;\n\nvoid insert(int x)\n{\n\tint i;\n\tfor (i = ++size; i / 2 > 0; i /= 2)\n\t{\n...
CDSS_486005
CDSS
#include<stdio.h> int main(void){ int n,sum=0,ave1,ave2,st1=0,st2=0; scanf("%d",&n); int a[n]; for(int i=0;i<n;++i){ scanf("%d",&a[i]); } for(int k=0;k<n;++k){ sum += a[k]; } ave1 = sum/n; ave2 = ave1 + 1; for(int j=0;j<n;++j){ st1 += (a[j]-ave1)*(a[j]-av...
128
memory_bytes
{'s_id': 's224165537', 'p_id': 'p02767', 'u_id': 'u043363214', 'date': '1582425804', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '506'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int n,sum=0,ave1,ave2,st1=0,st2=0;\n scanf(\"%d\",&n);\n int a[n];\n for(int i=0;...
CDSS_56300
CDSS
#include <stdio.h> #include <math.h> #include <string.h> typedef struct{ double a,b; }circles; int main(void){ int i,n; circles x,y,r; double num; char str[100]; fgets(str,sizeof(str),stdin); sscanf(str,"%d",&n); for(i=0;i<n;i++){ fgets(str,sizeof(str),stdin); sscanf(str,"%lf %lf %lf %lf %lf %lf",&x.a,&y...
628
memory_bytes
{'s_id': 's275290545', 'p_id': 'p00023', 'u_id': 'u588551436', 'date': '1478135191', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '628', 'code_size': '560'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n#include <string.h>\n\ntypedef struct{\n\tdouble a,b;\n}circles;\n\nint main(void){\n\tint i,...
CDSS_618929
CDSS
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #include<stdbool.h> typedef long long ll; typedef long double ld; #define rep(i,l,r)for(ll i=(l);i<(r);i++) #define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k)) #define rrep(i,l,r)for(ll i=(l);i>=(r);i--) #define INF (1LL<<60) #define MOD1 1000000007 #...
512
memory_bytes
{'s_id': 's307355820', 'p_id': 'p03252', 'u_id': 'u004279520', 'date': '1585503316', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '512', 'code_size': '1536'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n#include<string.h>\n#include<stdbool.h>\ntypedef long long ll;\ntypedef lon...
CDSS_362049
CDSS
#include <stdio.h> int main(void) { char str; int i=0; for(i=0;i<1200;i++){ scanf("%c",&str); if(str >= 'A' && str <= 'Z'){ str = str + 32; } else if (str >= 'a' && str <= 'z'){ str = str - 32; } if(str == '\n' || str == '\0'){ break; } printf("%c",str); } printf("\n");...
524
memory_bytes
{'s_id': 's195376419', 'p_id': 'p02415', 'u_id': 'u247033742', 'date': '1494996684', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '334'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tchar str;\n\tint i=0;\n\t\n\t\n\tfor(i=0;i<1200;i++){\n\t\tscanf(\"%c\",&str);\n\t\t\n\t\t...
CDSS_362868
CDSS
#include <stdio.h> int main() { char ch; for(;;) { scanf("%c", &ch); if('a' <= ch && ch <= 'z') { printf("%c",ch-32); } if('A' <= ch && ch <= 'Z') { printf("%c",ch+32); } if ('A'>ch||ch>'z') printf("%c",ch); if ( ch == '\n' ) { break; } } return 0; }
2,116
memory_bytes
{'s_id': 's406229826', 'p_id': 'p02415', 'u_id': 'u141850768', 'date': '1568614185', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2116', 'code_size': '307'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n\tchar ch;\n\nfor(;;)\n{\n scanf(\"%c\", &ch);\n \n \n if('a' <= ch && ch <= 'z')\n...
CDSS_647565
CDSS
#include<stdio.h> int main(void) { char str[4]; scanf("%s",str); int i,add=0; for(i=0;i<3;++i) if(str[i]=='o') ++add; printf("%d\n",700+100*add); return 0; }
128
memory_bytes
{'s_id': 's408940044', 'p_id': 'p03369', 'u_id': 'u823380722', 'date': '1524508199', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\nchar str[4];\nscanf(\"%s\",str);\n\nint i,add=0;\nfor(i=0;i<3;++i)\n\tif(str[i]=='o') ++add;\n...
CDSS_191229
CDSS
#include<stdio.h> int linearSearch(int A[],int i,int key); int main(){ int i,n,o,A[10001],key,sum=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&A[i]); } scanf("%d",&o); for(i=0;i<o;i++){ scanf("%d",&key); if(linearSearch(A,n,key)!=-1){ sum++; } } printf("%d\n",sum); return 0; ...
2,104
memory_bytes
{'s_id': 's073317097', 'p_id': 'p02267', 'u_id': 'u864567579', 'date': '1544677224', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '468'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint linearSearch(int A[],int i,int key);\nint main(){\n int i,n,o,A[10001],key,sum=0;\n scanf(\"%d\",&n);\n fo...
CDSS_116374
CDSS
#include <stdio.h> int w, h; int X[50][50]; void A( int i, int j ){ X[i][j] = 0; int k,i1,j1; int x[8]={0,0,-1,1,1,1,-1,-1}; int y[8]={-1,1,0,0,1,-1,-1,1}; for( k = 0 ; k < 8 ; k++ ){ i1 = i + x[k]; j1 = j + y[k]; if( j1 < w && i1< h && j1 > -1 && i1 > -1 ){ if( X[i1][j1] == 1 ){ A( i1, j1 ); } ...
824
memory_bytes
{'s_id': 's875070097', 'p_id': 'p00741', 'u_id': 'u326110023', 'date': '1432484559', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '824', 'code_size': '697'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\tint w, h;\n\tint X[50][50];\nvoid A( int i, int j ){\n\tX[i][j] = 0;\n\tint k,i1,j1;\n\tint x[8]={0,0,-1,1,1,1...
CDSS_186124
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct _Node { int key; struct _Node *next, *prev; } Node; Node *nil; Node* listSearch(int key) { Node *cur = nil->next; while(cur != nil && cur->key != key) { cur = cur->next; } return cur; } void init(void) { nil = (Node *)malloc...
32,956
memory_bytes
{'s_id': 's528730068', 'p_id': 'p02265', 'u_id': 'u541712232', 'date': '1594906267', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '210', 'memory': '32956', 'code_size': '1410'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\ntypedef struct _Node {\n int key;\n struct _Node *next, *prev;\n} ...
CDSS_351506
CDSS
#include<stdio.h> int main(void) { int n, m; fflush(stdout); scanf("%d %d", &n, &m); int arr1[100][100]; int arr2[100]; int res[100]; fflush(stdout); for(int i = 0; i < n; i++){ for(int j = 0; j < m; j++){ scanf("%d", &arr1[i][j]); } } for(int i = 0; i < m; i++){ scanf("%d", &arr2[i]); } for(i...
2,112
memory_bytes
{'s_id': 's991285958', 'p_id': 'p02410', 'u_id': 'u508736183', 'date': '1586837025', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '501'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n\tint n, m;\n\tfflush(stdout);\n\tscanf(\"%d %d\", &n, &m);\n\n\tint arr1[100][100];\n\tint ...
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 should 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_690593
CDSS
#include<stdio.h> int main(void) { int a,b,c,d,i,s; scanf("%d%d%d%d",&a,&b,&c,&d); if(c>=b||d<=a) printf("0\n"); else { if(c>=a&&d>b) printf("%d\n",b-c); if(c>=a&&d<=b) printf("%d\n",d-c); if(c<a&&d<=b) printf("%d\n",d-a); if(d>b&&c<a) printf("%d\n",b-a); } return 0; }
128
memory_bytes
{'s_id': 's472652964', 'p_id': 'p03632', 'u_id': 'u353919145', 'date': '1508794869', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '293'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint a,b,c,d,i,s;\n\tscanf(\"%d%d%d%d\",&a,&b,&c,&d);\n\tif(c>=b||d<=a)\n\tprintf(\"0\\n\");\...
CDSS_431172
CDSS
#include<stdio.h> int main(void){ int s,w; scanf("%d %d",&s,&w); if(s <= w){ printf("unsafe\n"); }else if(s > w){ printf("safe\n"); } return 0; }
1,664
memory_bytes
{'s_id': 's162320835', 'p_id': 'p02699', 'u_id': 'u973159433', 'date': '1587949693', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1664', 'code_size': '155'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\nint s,w;\n\nscanf(\"%d %d\",&s,&w);\n\nif(s <= w){\n printf(\"unsafe\\n\");\n}else if(s > w...
CDSS_553540
CDSS
#include<stdio.h> int main() { char s[4]; scanf("%s",s); if(s[0]==s[1]&&s[0]==s[2]&&s[0]==s[3]){ printf("No\n"); } else if(s[0]==s[1]&&s[2]==s[3]||s[0]==s[2]&&s[1]==s[3]||s[0]==s[3]&&s[1]==s[2]){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }
1,632
memory_bytes
{'s_id': 's822710828', 'p_id': 'p02987', 'u_id': 'u785727223', 'date': '1597870607', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1632', 'code_size': '265'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tchar s[4];\n\tscanf(\"%s\",s);\n\tif(s[0]==s[1]&&s[0]==s[2]&&s[0]==s[3]){\n\t\tprintf(\"No\\n\")...
CDSS_52758
CDSS
#include<stdio.h> int main(){ int n,i; double ans=1.0; scanf("%d",&n); for(i=n;i>1;i--) ans*=i; printf("%.0lf\n",ans); return 0; }
632
memory_bytes
{'s_id': 's514311045', 'p_id': 'p00019', 'u_id': 'u078042885', 'date': '1368365398', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '632', 'code_size': '136'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tint n,i;\n\tdouble ans=1.0;\n\tscanf(\"%d\",&n);\n\tfor(i=n;i>1;i--) ans*=i;\n\tprintf(\"%.0lf\\n\...
CDSS_535155
CDSS
/* a */ #include<stdio.h> #include<math.h> int main(void) { int m,d,i,j,a,b,f; scanf("%d %d",&m,&d); a=0; for(i=1;i<10;i++){ if(d>=10*i){ a++; }} b=d-10*a; /* printf("%d\t%d\n",a,b);*/ for(i=2;i<a;i++){ for(j=2;j<=9;j++){ if(i*j<=m){ f++; }}} if(b>1){ for(j=2;j<...
128
memory_bytes
{'s_id': 's938775779', 'p_id': 'p02927', 'u_id': 'u986190948', 'date': '1567110478', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '399'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n/* a */\n#include<stdio.h>\n#include<math.h>\nint main(void)\n{\n int m,d,i,j,a,b,f;\n scanf(\"%d %d\",&m,&d);\n a=0;\n for(...
CDSS_239695
CDSS
#include <stdio.h> int main(void){ int n; scanf("%d",&n); printf("%d\n",n*n*n); return 0; }
2,104
memory_bytes
{'s_id': 's743429479', 'p_id': 'p02388', 'u_id': 'u778920139', 'date': '1531706267', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '108'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int n;\n scanf(\"%d\",&n);\n printf(\"%d\\n\",n*n*n);\n return 0;\n}\n\nPredict it...
CDSS_414440
CDSS
#include <stdio.h> #include <string.h> int main() { int n; scanf("%d",&n); int a=n%10; if(a==3) printf("bon\n"); else if(a==0||a==1||a==6||a==8) printf("pon\n"); else printf("hon\n"); }
1,644
memory_bytes
{'s_id': 's996596028', 'p_id': 'p02675', 'u_id': 'u599597776', 'date': '1590284228', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1644', 'code_size': '208'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main()\n{\n int n;\n scanf(\"%d\",&n);\n int a=n%10;\n if(a==3) printf(\"bon...
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 should 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_459520
CDSS
#include<stdio.h> #include<stdlib.h> #include<math.h> long long int gcd(int a, int b, int c) { int temp; if(a>b) { temp=a; a=b; b=temp; } while(b%a!=0) { temp=a; a=b%a; b=temp; } if(a>c) { temp=a; a=c; c=temp; ...
1,728
memory_bytes
{'s_id': 's438550611', 'p_id': 'p02713', 'u_id': 'u368566261', 'date': '1586741308', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '171', 'memory': '1728', 'code_size': '713'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n\nlong long int gcd(int a, int b, int c)\n{\n int temp;\n if(a>b)\n ...
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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int a, b, c;\n scanf(\"%d %d %d\", &a, &b, &c);\n if ((a == b)&&(b == c)){\n ...
CDSS_257925
CDSS
#include<stdio.h> int main() { int x, y; scanf("%d %d\n",&x, &y); int area, perimeter; area=x*y; perimeter=2*(x+y); printf("%d %d\n",area, perimeter); return 0; }
2,088
memory_bytes
{'s_id': 's514984460', 'p_id': 'p02389', 'u_id': 'u420569062', 'date': '1580968977', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2088', 'code_size': '196'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int x, y;\n scanf(\"%d %d\\n\",&x, &y);\n\n int area, perimeter;\n area=x*y;\n p...
CDSS_739410
CDSS
#include <stdio.h> int main() { int n, k, x, y, ans; scanf("%d %d %d %d", &n, &k, &x, &y); if (n > k) { ans = k * x + (n - k) * y; } else ans = n * x; printf("%d\n", ans); return 0; }
128
memory_bytes
{'s_id': 's516001669', 'p_id': 'p04011', 'u_id': 'u672956630', 'date': '1503958988', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '224'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main() {\n int n, k, x, y, ans;\n scanf(\"%d %d %d %d\", &n, &k, &x, &y);\n if (n > k) {\n a...
CDSS_106342
CDSS
#include <stdio.h> #include <string.h> int main(void) { int n; int a, b, c; int cal[100]; int i, j; int tmp; int max_cal; int sum_cal; scanf("%d%d%d%d", &n, &a, &b, &c); for (i = 0; i < n; i++){ scanf("%d", &cal[i]); } for (i = 0; i < n; i++){ for (j = 0; j < n - 1; j++){ if (cal[j] < cal[j + 1...
596
memory_bytes
{'s_id': 's175662142', 'p_id': 'p00490', 'u_id': 'u648926140', 'date': '1412208323', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '612'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void)\n{\n\tint n;\n\tint a, b, c;\n\tint cal[100];\n\tint i, j;\n\tint tmp;\n\t...
CDSS_212379
CDSS
#include <stdio.h> #define N 100000 typedef struct{ char type; int data; }A; int flag=0; int prtition(A *,int,int); void my_q_sort(A *,int,int); int main(){ int n,i,j,now; A ain[N],aout[N]; //int check[1000000000]={0}; //char check_c[1000000000][4]={0}; scanf("%d\n",&n); for(i=0; i<n; i++){ s...
3,304
memory_bytes
{'s_id': 's630939109', 'p_id': 'p02277', 'u_id': 'u445491299', 'date': '1545371051', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '3304', 'code_size': '1582'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define N 100000\n\ntypedef struct{\n char type;\n int data;\n}A;\n\nint flag=0;\n\nint prtition(A *,int,int...
CDSS_54999
CDSS
#include <stdio.h> /* 2ツ点ツづーツ津環づゥツ陳シツ静シツづ個傾ツつォツづーツ仰づ淞づゥ */ void calc_slope(double x1, double y1, double x2, double y2, double* a, double* b) { *a = (y2 - y1) / (x2 - x1); *b = y1 - ((*a) * x1); return; } int main(void) { int n, i; double x[4], y[4], a[2], b[2]; scanf("%d", &n); for(i = 0; i < n; i++) ...
0
memory_bytes
{'s_id': 's738309337', 'p_id': 'p00021', 'u_id': 'u615518824', 'date': '1332162156', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '695'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n/* 2ツ点ツづーツ津環づゥツ陳シツ静シツづ個傾ツつォツづーツ仰づ淞づゥ */\nvoid calc_slope(double x1, double y1, double x2, double y2, double* a...
CDSS_180152
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> void push(int); int pop(void); int head,st[1000]; int main(){ int a,b; head=0; char s[100]; while(scanf("%s",s)!=EOF){ if(s[0]=='+'){ a=pop(); b=pop(); push(a+b); //printf("%d\n",st[head]); }else if(s[0]=='-'){ a=...
2,044
memory_bytes
{'s_id': 's087392732', 'p_id': 'p02263', 'u_id': 'u134340217', 'date': '1576136378', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '695'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\nvoid push(int);\nint pop(void);\nint head,st[1000];\n\nint main(){\n int...
CDSS_496299
CDSS
#include <stdio.h> int main(){ int a; int b; scanf ("%d %d",&a,&b); if (a==b){ printf ("Yes\n"); } else { printf ("No\n"); } return 0; }
1,616
memory_bytes
{'s_id': 's996393465', 'p_id': 'p02789', 'u_id': 'u018679195', 'date': '1600206091', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1616', 'code_size': '198'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int a;\n int b;\n scanf (\"%d %d\",&a,&b);\n \n if (a==b){\n print...
CDSS_437610
CDSS
#include<stdio.h> int main(void) { float a,b,c; scanf("%f",&a); b=2*a*3.1415; printf("%f",b); return 0; }
1,680
memory_bytes
{'s_id': 's902414668', 'p_id': 'p02705', 'u_id': 'u249494515', 'date': '1593638599', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1680', 'code_size': '110'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tfloat a,b,c;\n\tscanf(\"%f\",&a);\n\tb=2*a*3.1415;\n\tprintf(\"%f\",b);\n\treturn 0;\n}\nPre...
CDSS_180176
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> void push(int); int pop(); int top,s[1000]; int main(){ int x,y; char a[100]; top=0; while(scanf("%s",a)!=EOF){ if(a[0]=='+'){ x=pop(); y=pop(); push(x+y); } else if(a[0]=='-'){ y=pop(); x=pop(); push(x-y...
2,104
memory_bytes
{'s_id': 's911010302', 'p_id': 'p02263', 'u_id': 'u737300138', 'date': '1576134060', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '569'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n\nvoid push(int);\nint pop();\n\nint top,s[1000];\n\nint main(){\n int x...
CDSS_556641
CDSS
#include <stdio.h> int main(void){ char s1, s2, s3, s4; scanf("%c%c%c%c", &s1, &s2, &s3, &s4); if (s1 == s2 || s2 == s3 || s3 == s4) printf("Bad"); else printf("Good"); return 0; }
128
memory_bytes
{'s_id': 's127929489', 'p_id': 'p02993', 'u_id': 'u315153318', 'date': '1561577761', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '186'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n\tchar s1, s2, s3, s4;\n\tscanf(\"%c%c%c%c\", &s1, &s2, &s3, &s4);\n\tif (s1 == s2 || s2 == s3 ...
CDSS_368139
CDSS
#include <stdio.h> #include <string.h> int main() { char s[101]; char ss[201]; char p[101]; scanf("%s", s); scanf("%s", p); strcpy(ss, s); strcat(ss, s); if (strstr(ss, p) != NULL) puts("Yes"); else puts("No"); return 0; }
2,100
memory_bytes
{'s_id': 's776945886', 'p_id': 'p02418', 'u_id': 'u877181703', 'date': '1587273128', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '284'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint main()\n{\n char s[101];\n char ss[201];\n char p[101];\n\n scanf(\"%s\", s...
CDSS_223863
CDSS
#include <stdio.h> #include <stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL Node root; Node treeSearch(Node u, int k){ while(u!=NIL && k!=u->key){ if(k < u->key){u=u->left; } else u = u->right; } re...
20,540
memory_bytes
{'s_id': 's748374537', 'p_id': 'p02284', 'u_id': 'u453977932', 'date': '1579131904', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '270', 'memory': '20540', 'code_size': '1428'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nstruct node{\n struct node *right;\n struct node *left;\n struct node *parent;\n int ...
CDSS_535318
CDSS
/* * main.c * * Created on: 2019/07/21 * Author: family */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main() { int M = 0, D = 0; int i = 0, j = 0, ans = 0; scanf("%d %d", &M, &D); for (i = 2; i <= M; i++) { for (j = 20; j <= D; j++) { if ((j%10) < 2) { con...
128
memory_bytes
{'s_id': 's357457203', 'p_id': 'p02927', 'u_id': 'u898925304', 'date': '1566695395', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '453'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n/*\n * main.c\n *\n * Created on: 2019/07/21\n * Author: family\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <str...
CDSS_723647
CDSS
#include<stdio.h> int main(){ char s[20],t[20]; scanf("%s",s); for(int i=0;i<20;i++){ if(i==5||i==13){ t[i]=' '; }else{ t[i]=s[i]; } } printf("%s\n",t); return 0; }
1,660
memory_bytes
{'s_id': 's354787832', 'p_id': 'p03834', 'u_id': 'u061882112', 'date': '1598837604', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1660', 'code_size': '237'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n char s[20],t[20];\n scanf(\"%s\",s);\n for(int i=0;i<20;i++){\n if(i==5||i==13){\...
CDSS_509056
CDSS
#include <stdio.h> int main (){ int A1,A2,A3,total; scanf ("%d %d %d",&A1,&A2,&A3); total = A1 + A2 + A3; if (total>= 22 ){ printf ("bust\n"); } else { printf ("win\n"); } return 0; }
2,048
memory_bytes
{'s_id': 's370785740', 'p_id': 'p02835', 'u_id': 'u089230684', 'date': '1600192862', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '2048', 'code_size': '199'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main (){\n\tint A1,A2,A3,total;\n\tscanf (\"%d %d %d\",&A1,&A2,&A3);\n\ttotal = A1 + A2 + A3;\n\tif (total>=...
CDSS_568823
CDSS
#include<stdio.h> double gram(int r, int d, int x1, int size){ int x2; if(size <= 10){ x2 = (r * x1) - d; printf("%d\n",x2); size++; gram(r,d,x2,size); } } int main(void){ int r, d, x1; int size; size = 1; scanf("%d%d%d",&r, &d, &x1); gram(r,d,x1,size); }
128
memory_bytes
{'s_id': 's037109164', 'p_id': 'p03036', 'u_id': 'u437165681', 'date': '1558837636', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '303'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\ndouble gram(int r, int d, int x1, int size){\n int x2;\n \n if(size <= 10){\n x2 = (r * x1) - d;\n pri...
CDSS_130815
CDSS
#include <stdio.h> int main(void){ int a,b,c,n,i; scanf("%d",&n); a=1;b=1; if(n==0||n==1){ printf("1\n"); return 0; } for(i=2;i<=n;i++){ c = a+b; a = b; b = c; } printf("%d\n",b); return 0; }
2,100
memory_bytes
{'s_id': 's379715961', 'p_id': 'p02233', 'u_id': 'u999656669', 'date': '1570174630', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '269'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int a,b,c,n,i;\n scanf(\"%d\",&n);\n a=1;b=1;\n if(n==0||n==1){\n printf(...
CDSS_468503
CDSS
#include <stdio.h> int main(){ char S[6]; scanf("%s",S); if(S[2]==S[3] && S[4]==S[5]){ printf("Yes"); }else{ printf("No"); } return 0; }
128
memory_bytes
{'s_id': 's315420420', 'p_id': 'p02723', 'u_id': 'u075356666', 'date': '1585847103', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '156'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n char S[6];\n scanf(\"%s\",S);\n if(S[2]==S[3] && S[4]==S[5]){\n printf(\"Yes\");\n }else{\n...
CDSS_386070
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++) int main(void){ int x; scanf("%d",&x); if(x>29) printf("Yes"); else printf("No"); return 0; }
1,728
memory_bytes
{'s_id': 's078684454', 'p_id': 'p02594', 'u_id': 'u909319348', 'date': '1596416571', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1728', 'code_size': '245'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#define ll long long\n#define rep(i,l,r)for(ll i=(l...
CDSS_542255
CDSS
#include<stdio.h> int main(void) { int n; int na; int i; i = 1; int ans; scanf("%d", &n); na = n; while (na >= 10) { na = na / 10; i++; } switch (i) { case 1:ans = n; break; case 2:ans = 9; break; case 3:ans = n - 90; break; case 4:ans = 909; break; case 5:ans = n - 9090; break; case...
128
memory_bytes
{'s_id': 's132045438', 'p_id': 'p02952', 'u_id': 'u411165165', 'date': '1564968852', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void) {\n\tint n;\n\tint na;\n\tint i;\n\ti = 1;\n\tint ans;\n\n\t\n\tscanf(\"%d\", &n);\n\tna = n;\n\n\...
CDSS_71102
CDSS
#include <stdio.h> #include <math.h> double area3(double x1, double y1, double x2, double y2, double x3, double y3) { double a, b, c, z; a = sqrt((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2)); b = sqrt((x1-x3)*(x1-x3) + (y1-y3)*(y1-y3)); c = sqrt((x2-x3)*(x2-x3) + (y2-y3)*(y2-y3)); z = (a+b+c)/2.0; ret...
2,024
memory_bytes
{'s_id': 's563296517', 'p_id': 'p00079', 'u_id': 'u158979022', 'date': '1526879066', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2024', 'code_size': '655'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n \ndouble area3(double x1, double y1, double x2, double y2, double x3, double y3)\n{\n dou...
CDSS_370756
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> int main (){ char card[201]; char cardcpy1[201],cardcpy2[201]; int m,h,i,j,substr,wordcount,lenght; while(1){ scanf("%s",card); if(card[0] =='-')break; scanf("%d",&m); for(i = 0,lenght = strlen(card);i < m;i++){ ...
2,028
memory_bytes
{'s_id': 's542400645', 'p_id': 'p02420', 'u_id': 'u333326383', 'date': '1573361287', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2028', 'code_size': '1230'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\nint main (){\n char card[201];\n char cardcpy1[201],cardcpy2[201...
CDSS_277125
CDSS
#include <stdio.h> int main(int argc, char *argv[]) { int a = 0, b = 0, c = 0; fscanf(stdin, "%d %d %d", &a, &b, &c); if(a < b && b < c) { fprintf(stdout, "Yes\n"); }else { fprintf(stdout, "No\n"); } return 0; }
580
memory_bytes
{'s_id': 's293671384', 'p_id': 'p02392', 'u_id': 'u043652611', 'date': '1473747241', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '258'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n\nint main(int argc, char *argv[]) {\n\n int a = 0, b = 0, c = 0;\n\n fscanf(stdin, \"%d %d %d\", &a, &b...
CDSS_199820
CDSS
#include<stdio.h> int n,S[50]; int combi(int,int); int main() { int num,key,i; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%d",&S[i]); } scanf("%d",&num); for(i=0;i<num;i++) { scanf("%d",&key); if(combi(0,key)) printf("yes\n"); else printf("no\n"); } return 0; } int c...
580
memory_bytes
{'s_id': 's667612340', 'p_id': 'p02271', 'u_id': 'u163386631', 'date': '1495075388', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '660', 'memory': '580', 'code_size': '456'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint n,S[50];\nint combi(int,int);\n\nint main()\n{\n int num,key,i;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++)\n ...
CDSS_677393
CDSS
#include<stdio.h> int main(){ int x,y,z; scanf("%d%d%d",&x,&y,&z); x-=z; printf("%d\n",x/(y+z)); return 0; }
128
memory_bytes
{'s_id': 's629097167', 'p_id': 'p03548', 'u_id': 'u917851778', 'date': '1592360728', '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 should 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 scanf(\"%d%d%d\",&x,&y,&z);\n x-=z;\n printf(\"%d\\n\",x/(y+z));\n return 0;\n}\n...
CDSS_633666
CDSS
#include<stdio.h> int main(){ int n; scanf("%d",&n); int vetor[n]; for(int i = 0; i<n ; ++i){ scanf("%d",&vetor[i]); } int maior = vetor[0]; int menor = vetor[0]; for(int i = 0; i<n; ++i){ if(vetor[i]>maior){ maior = vetor[i]; } if(vetor[i]<menor){ menor = vetor[i]; } } printf...
128
memory_bytes
{'s_id': 's554261009', 'p_id': 'p03308', 'u_id': 'u109867600', 'date': '1571292408', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '358'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\n\tint n;\n\t\n\tscanf(\"%d\",&n);\n\t\n\tint vetor[n];\n\t\n\tfor(int i = 0; i<n ; ++i){\n\t\tsc...
CDSS_174428
CDSS
#include <stdio.h> #include <stdlib.h> main(){ int i,j; int C[37][2]; int Bub[37][2]; int Sel[37][2]; int N; int tmpi; char tmpc; char str[3]; int mini,isStable; scanf("%d",&N); for(i=1; i<=N;i++){ scanf("%s",str); C[i][0] = Bub[i][0] = Sel[i][0] = atoi(&str[1]); C[i][1] = Bub[i][1...
0
memory_bytes
{'s_id': 's886247864', 'p_id': 'p02261', 'u_id': 'u680906409', 'date': '1334738343', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '1993'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nmain(){\n\n int i,j;\n int C[37][2];\n int Bub[37][2];\n int Sel[37][2];\n int N;\n ...
CDSS_528120
CDSS
#include <stdio.h> int main(void){ char s[101]; scanf("%s", s); int flag = 1; for (int i = 0; i < 101; i++) { if (s[i] < 'A' || s[i] > 'Z') { break; } if (i%2 == 0) { if (s[i] != 'R' && s[i] != 'U' && s[i] != 'D') { flag = 0; break; } } else { if (s[i] ...
128
memory_bytes
{'s_id': 's271381097', 'p_id': 'p02910', 'u_id': 'u581816556', 'date': '1586710430', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '501'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\n char s[101];\n scanf(\"%s\", s);\n\n int flag = 1;\n for (int i = 0; i < 101; i++) {\n...
CDSS_610107
CDSS
#include <stdio.h> #include <string.h> int main() { char s[11]; scanf("%s",s); int len = strlen(s); int num,dif,min = 999; for(int count = 0;count < len - 2;count++) { num = (s[count] - '0') * 100 + (s[count+1] - '0') * 10 + (s[count+2] - '0'); if(num < 753) dif = 753 - num; ...
128
memory_bytes
{'s_id': 's679108205', 'p_id': 'p03211', 'u_id': 'u326645237', 'date': '1543804895', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '420'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint main() {\n char s[11];\n scanf(\"%s\",s);\n int len = strlen(s);\n int num,...
CDSS_74463
CDSS
#include<stdio.h> int main(){ int idx; int n,i; int max=-1; int temp1,temp2; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d %d",&temp1,&temp2); if(temp2 > max){ idx=temp1; max=temp2; } else if(temp2 == max && temp1<idx){ idx=temp1; } } printf("%d %d\n",idx,max); return 0; }
2,104
memory_bytes
{'s_id': 's479469228', 'p_id': 'p00095', 'u_id': 'u723915999', 'date': '1522252158', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '303'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int idx;\n int n,i;\n int max=-1;\n int temp1,temp2;\n\n scanf(\"%d\",&n);\n\n for(i=0;i<n;i++){\...
CDSS_528751
CDSS
#include<stdio.h> int main() { long long int N,K,Q,i; scanf("%lld%lld%lld", &N, &K, &Q); long long int A[Q],B[N]; for(i=0;i<N;i++){ B[i]=0; } for(i=0;i<Q;i++){ scanf("%lld", &A[i]); B[A[i]-1]++; } for(i=0;i<N;i++){ if(B[i]>Q-K){ printf("Yes\n"...
2,048
memory_bytes
{'s_id': 's235976058', 'p_id': 'p02911', 'u_id': 'u353919145', 'date': '1587265390', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '14', 'memory': '2048', 'code_size': '410'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n long long int N,K,Q,i;\n scanf(\"%lld%lld%lld\", &N, &K, &Q);\n long long int A[Q],B[N...
CDSS_605656
CDSS
#include <stdio.h> int main() { int n; int ans = 0; scanf("%d", &n); while (n) { if (n % 10 == 2) { ans = ans + 1; } n = n / 10; } printf("%d\n", ans); return 0; }
256
memory_bytes
{'s_id': 's805430398', 'p_id': 'p03192', 'u_id': 'u683588090', 'date': '1551850592', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '186'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n\tint n;\n\tint ans = 0;\n\n\tscanf(\"%d\", &n);\n\n\twhile (n) {\n\t\tif (n % 10 == 2) {\n\t\t...
CDSS_522763
CDSS
int main(){ int n,l[2000],a=0,b=0; scanf("%d",&n); for(int i=0;i<n;i++){ scanf("%d",&l[i]); } for(int i=0;i<n-1;i++){ for(int j=i+1;j<n;j++){ if(l[i]>l[j]){ a=l[i]; l[i]=l[j]; l[j]=a; } } } for(int i=0;i<n-2;i++){ for(int j=i+1;j<n-1;j++){ int k=j+1...
256
memory_bytes
{'s_id': 's320758763', 'p_id': 'p02888', 'u_id': 'u803214415', 'date': '1571537238', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '909', 'memory': '256', 'code_size': '432'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\nint main(){\n int n,l[2000],a=0,b=0;\n scanf(\"%d\",&n);\n for(int i=0;i<n;i++){\n scanf(\"%d\",&l[i]);\n }\n for(int i=0;i<...
CDSS_605706
CDSS
#include<stdio.h> int main(void) { int n; int c=0; scanf("%d", &n); while(n){ if(n%10==2){ c++; } n/=10; } printf("%d\n", c); return 0; }
128
memory_bytes
{'s_id': 's888236930', 'p_id': 'p03192', 'u_id': 'u579508806', 'date': '1545537463', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void) {\nint n;\nint c=0;\nscanf(\"%d\", &n);\nwhile(n){\nif(n%10==2){\nc++;\n}\nn/=10;\n}\nprintf(\"%...
CDSS_207181
CDSS
#include <stdio.h> #include <stdlib.h> #define MAX 2000001 #define VMAX 10000 int main(){ unsigned short *A, *B; int C[VMAX+1]; int n, i, j; scanf("%d", &n); A = malloc(sizeof(short)*n+1); B = malloc(sizeof(short)*n+1); /* your code */ for(i=0; i<=VMAX; i++) C[i]=0; for(i=0; i<n; i++){ ...
9,548
memory_bytes
{'s_id': 's547093933', 'p_id': 'p02275', 'u_id': 'u331817668', 'date': '1545783383', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '230', 'memory': '9548', 'code_size': '569'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#define MAX 2000001\n#define VMAX 10000\n\nint main(){\n unsigned short *A, *B;\n int C[V...
CDSS_31457
CDSS
#include<stdio.h> int main() { int a,b,c,n,i; scanf("%d",&n); for(i=1;i<=n;i++) { scanf("%d%d%d",&a,&b,&c); if(a*a==b*b+c*c||b*b==a*a+c*c||c*c==b*b+a*a) printf("YES\n"); else printf("NO\n"); } return 0; }
576
memory_bytes
{'s_id': 's762486917', 'p_id': 'p00003', 'u_id': 'u011621222', 'date': '1400684153', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '576', 'code_size': '222'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint a,b,c,n,i;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d%d%d\",&a,&b,&c);\n...
CDSS_288528
CDSS
#include <stdio.h> int main(void) { int num[3]; int i, j; int temp; scanf("%d %d %d", &num[0], &num[1], &num[2]); for (i = 0; i < 3; i++) { for (j = 2; j > i; j--) { if(num[j - 1] > num[j]) { temp = num[j]; num[j] = num[j - 1]; num[j - 1] = temp; } } } prin...
2,124
memory_bytes
{'s_id': 's095593217', 'p_id': 'p02393', 'u_id': 'u873514942', 'date': '1539132970', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2124', 'code_size': '378'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\n int num[3];\n int i, j;\n int temp;\n\n scanf(\"%d %d %d\", &num[0], &num[1], &num[2]...
CDSS_704330
CDSS
#include <stdio.h> int main(){ long n, a, b; scanf("%ld %ld %ld", &n, &a, &b); long ans = 0; if(n <= 2 || a > b){ if((n==1&&a==b) || (n==2&&a<=b)) ans = 1; printf("%ld\n", ans); return 0; } ans = (b - a) * (n - 2) + 1; printf("%ld\n", ans); return 0; }
1,708
memory_bytes
{'s_id': 's583338751', 'p_id': 'p03705', 'u_id': 'u792720861', 'date': '1593907656', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1708', 'code_size': '285'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n long n, a, b; scanf(\"%ld %ld %ld\", &n, &a, &b);\n long ans = 0;\n if(n <= 2 || a > b){\n ...
CDSS_255238
CDSS
#include "stdio.h" int main(void){ int a,b; scanf("%d",&a); scanf("%d",&b); printf("%d %d\n",a*b,(a*2)+(b*2)); return 0; }
596
memory_bytes
{'s_id': 's424101496', 'p_id': 'p02389', 'u_id': 'u418940511', 'date': '1503541399', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '123'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include \"stdio.h\"\n\nint main(void){\nint a,b;\nscanf(\"%d\",&a);\nscanf(\"%d\",&b);\nprintf(\"%d %d\\n\",a*b,(a*2)+(b*2));\nretu...
CDSS_569552
CDSS
#include <stdio.h> int main(void){ int a,b,N,M,i,j,count,amax,bmin; amax = 0; bmin = 1000000; i = j = count = 0; int okbox[100002]; for (i = 0; i < 100002; i++){ okbox[i] = 0; } scanf("%d %d",&N,&M); for(i = 0; i < M ; i++){ scanf("%d %d",&a,&b); if (a >...
128
memory_bytes
{'s_id': 's197312757', 'p_id': 'p03037', 'u_id': 'u776632505', 'date': '1558836075', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '18', 'memory': '128', 'code_size': '532'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int a,b,N,M,i,j,count,amax,bmin;\n amax = 0;\n bmin = 1000000;\n i = j = count = 0...
CDSS_332882
CDSS
#include<stdio.h> int main(){ int h,w,i,j; while(scanf("%d %d",&h,&w),h!=0 && w!=0){ for(i=0;i<h;i++){ for(j=0;j<w;j++){ if(i==0 || i==h-1 || j==0 || j==w-1) printf("#"); else printf("."); } printf("\n"); } printf("\n"); } return 0; }
1,924
memory_bytes
{'s_id': 's383068547', 'p_id': 'p02404', 'u_id': 'u964212895', 'date': '1556180559', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1924', 'code_size': '267'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tint h,w,i,j;\n\twhile(scanf(\"%d %d\",&h,&w),h!=0 && w!=0){\n\t\tfor(i=0;i<h;i++){\n\t\t\tfor(j=...
CDSS_642351
CDSS
#include<stdio.h> #include <math.h> int main(void){ int A,B; scanf("%d %d",&A,&B); int C,D; C = fmax(A+B,A-B); D = fmax(C,A*B); printf("%d",D); return 0; }
128
memory_bytes
{'s_id': 's351306303', 'p_id': 'p03337', 'u_id': 'u085356325', 'date': '1527383209', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '171'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include <math.h>\n\nint main(void){\n int A,B;\n scanf(\"%d %d\",&A,&B);\n int C,D;\n C = fmax(A+B,A-B);\n ...
CDSS_73789
CDSS
a,f,z;main(b){for(;~scanf("%d%d",&a,&b),a;f?f=0:puts("NA"))for(z++&&puts("");a<=b;++a)a%4||(a%400&&!(a%100))||printf("%d\n",f=a);}
0
memory_bytes
{'s_id': 's686673054', 'p_id': 'p00093', 'u_id': 'u479246559', 'date': '1321700315', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '130'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\na,f,z;main(b){for(;~scanf(\"%d%d\",&a,&b),a;f?f=0:puts(\"NA\"))for(z++&&puts(\"\");a<=b;++a)a%4||(a%400&&!(a%100))||printf(\"%d\\n\"...
CDSS_623222
CDSS
#include<stdio.h> int main(void) { int n,i,a; scanf("%d%d",&n,&i); if(1>n>100) return 1; else if(1>i>n) return 1; a=n-i+1; printf("%d\n",a); return 0; }
128
memory_bytes
{'s_id': 's540982993', 'p_id': 'p03272', 'u_id': 'u658441673', 'date': '1564767520', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '210'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int n,i,a;\n scanf(\"%d%d\",&n,&i);\n if(1>n>100) return 1;\n els...
CDSS_617949
CDSS
#include <stdio.h> int cmpfunc (const void * a, const void * b) { return ( *(int*)a - *(int*)b ); } int main() { int a[4], ans=0, max, max2, max3; scanf("%d %d %d", &a[0], &a[1], &a[2]); qsort (a, 3, sizeof(int), cmpfunc); max = a[2]; max2= a[1]; max3= a[0]; ans = (max * 10) + max2 + m...
128
memory_bytes
{'s_id': 's394059015', 'p_id': 'p03250', 'u_id': 'u816631826', 'date': '1559756774', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '364'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint cmpfunc (const void * a, const void * b)\n{\n return ( *(int*)a - *(int*)b );\n}\n\nint main()\n{\n i...
CDSS_726770
CDSS
#include <stdio.h> int main() { int n, t[100], m, p, x, sum = 0; scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%d", &t[i]); sum += t[i]; } scanf("%d", &m); for (int i = 0; i < m; i++) { scanf("%d%d", &p, &x); printf("%d\n", sum - t[p - 1] + x); } return 0; }
128
memory_bytes
{'s_id': 's310431476', 'p_id': 'p03845', 'u_id': 'u030504180', 'date': '1586988485', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main() {\n\tint n, t[100], m, p, x, sum = 0;\n\tscanf(\"%d\", &n);\n\tfor (int i = 0; i < n; i++) {\n\t\tsca...
CDSS_601051
CDSS
#include <stdio.h> int main(void){ int a, b, c, d; int p = 0; scanf("%d %d %d %d",&a,&b,&c,&d); p = a*1000+b*100+c*10+d; if(p==1479||p==1497||p==1749||p==1794||p==1947||p==1974){ printf("YES"); }else if(p==4179||p==4197||p==4719||p==4791||p==4917||p==4971){ printf("YES"); }else if(p==7149...
128
memory_bytes
{'s_id': 's216144875', 'p_id': 'p03149', 'u_id': 'u751806526', 'date': '1547410805', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '527'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(void){\n\tint a, b, c, d;\n\tint p = 0;\n\tscanf(\"%d %d %d %d\",&a,&b,&c,&d);\n p = a*1000+b*10...
CDSS_197792
CDSS
#include<stdio.h> #include<string.h> #define M 1046527 #define NIL (-1) #define L 14 char H[M][L]; /* Hash Table */ int getChar(char ch){ if ( ch == 'A') return 1; else if ( ch == 'C') return 2; else if ( ch == 'G') return 3; else if ( ch == 'T') return 4; else return 0; } /* convert a string into an inte...
16,044
memory_bytes
{'s_id': 's887171956', 'p_id': 'p02269', 'u_id': 'u586920078', 'date': '1575614614', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '180', 'memory': '16044', 'code_size': '1439'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\n#define M 1046527\n#define NIL (-1)\n#define L 14\n\nchar H[M][L]; /* Hash Table */\n\nint ...
CDSS_351433
CDSS
#include <stdio.h> int main(void){ int n,m,i,j,total; scanf("%d %d\n",&n,&m); int a[n][m]; int b[m]; for (i = 0;i<n;i++){ for (j = 0;j<m-1;j++){ scanf("%d",&a[i][j]); } scanf("%d\n",&a[i][j]); } for (i = 0;i<m;i++){ scanf("%d\n",&b[i]); } for (i = 0;i<n;i++){ total = 0; for ...
2,048
memory_bytes
{'s_id': 's744371023', 'p_id': 'p02410', 'u_id': 'u636823961', 'date': '1597059832', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '424'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n\nint n,m,i,j,total;\nscanf(\"%d %d\\n\",&n,&m);\nint a[n][m];\nint b[m];\n\nfor (i = 0;i<n;i++...
CDSS_320674
CDSS
int main(){ int a,b,ans[100],n=0; char c; while(1){ scanf("%d %c %d",&a,&c,&b); if(c=='?'){ break; }else{ switch(c){ case '+': ans[n]=a+b; break; case '-': ans[n]=a-b; ...
2,064
memory_bytes
{'s_id': 's512488855', 'p_id': 'p02401', 'u_id': 'u019521103', 'date': '1568883952', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '682'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\nint main(){\n int a,b,ans[100],n=0;\n char c;\n while(1){\n scanf(\"%d %c %d\",&a,&c,&b);\n if(c=='?'){\n ...
CDSS_565811
CDSS
#include <stdio.h> int main(void) { int n; scanf("%d%d", &n); printf("%d\n", 180 * (n - 2)); return 0; }
128
memory_bytes
{'s_id': 's416529183', 'p_id': 'p03023', 'u_id': 'u785790611', 'date': '1559437406', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '123'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int n;\n scanf(\"%d%d\", &n);\n\n printf(\"%d\\n\", 180 * (n - 2));\n\n return...
CDSS_676771
CDSS
#include <stdio.h> int main(void){ char x,y; scanf("%c %c", &x, &y); if (x < y) { printf("<\n"); } else if (y < x) { printf(">\n"); } else { printf("=\n"); } return 0; }
128
memory_bytes
{'s_id': 's074116445', 'p_id': 'p03547', 'u_id': 'u581816556', 'date': '1587180536', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '187'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\n char x,y;\n\tscanf(\"%c %c\", &x, &y);\n\tif (x < y) {\n\t\tprintf(\"<\\n\");\n\t} else i...
CDSS_644673
CDSS
#include<stdio.h> int main() { long long int n, s[1001] = {},m,count=0; scanf("%lld",&n); if(n==999){printf("961");return 0;} for (int i = n; i >= 1; i--) { m = i; for (int k = 2; k <= 1000; k++) { s[k]=0; } for (int j = 2; j <= 1000; j++) { for (int k = 1; k <= 10; k++) { if (...
128
memory_bytes
{'s_id': 's695067893', 'p_id': 'p03352', 'u_id': 'u018872912', 'date': '1546226771', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '128', 'code_size': '533'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main() {\n\tlong long int n, s[1001] = {},m,count=0;\n \tscanf(\"%lld\",&n);\n if(n==999){printf(\"961\");r...
CDSS_682809
CDSS
#include <stdio.h> int main(void){ char s[7] = { '\0' }; scanf("%6s", s); int n = 0; for(int i = 0; i < 6; i++) if(s[i] == '1') n++; printf("%d\n", n); return 0; }
128
memory_bytes
{'s_id': 's057306571', 'p_id': 'p03587', 'u_id': 'u183866833', 'date': '1549209574', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '176'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n char s[7] = { '\\0' };\n scanf(\"%6s\", s);\n int n = 0;\n for(int i = 0; i < 6; i++) if...
CDSS_139950
CDSS
#include<stdio.h> #define INFINITY (1<<21) #define MAX 100 #define WHITE 0 #define GRAY 1 #define BLACK 2 int n,M[MAX][MAX]/*へんの重みを保存した隣接行列*/; int prim(){ int i,u,minv,v,sum=0; int d[MAX]/*Tに属する頂点とV-Tに属する頂点を繋ぐへんの中で最小の重みを記録*/,p[MAX]/*それぞれの親を記録*/,color[MAX]; for(i=0;i<n;i++){/*dをinfinity pを−1colorを白に初期化*/ d[i...
2,044
memory_bytes
{'s_id': 's698811518', 'p_id': 'p02241', 'u_id': 'u434168096', 'date': '1548424455', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '1293'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define INFINITY (1<<21)\n#define MAX 100\n#define WHITE 0\n#define GRAY 1\n#define BLACK 2\n\nint n,M[MAX][MAX]/...
CDSS_530624
CDSS
#include<stdio.h> int main() { int N,A[60],B[60],C[60],i,sum=0; scanf("%d", &N); for(i=0;i<N;i++){ scanf("%d", &A[i]); } for(i=0;i<N;i++){ scanf("%d", &B[i]); } for(i=0;i<N-1;i++){ scanf("%d", &C[i]); } for(i=0,sum=0;i<N;i++){ if((A[i]-A[i-1])==1&&A[i...
128
memory_bytes
{'s_id': 's584128574', 'p_id': 'p02916', 'u_id': 'u018679195', 'date': '1587163879', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '479'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int N,A[60],B[60],C[60],i,sum=0;\n scanf(\"%d\", &N);\n for(i=0;i<N;i++){\n sca...
CDSS_621877
CDSS
#include<stdio.h> int main(void){ int K; scanf("%d",&K); int n = 0; for(int i = 1; i <= K; i = i+2){ for(int j = 2; j <= K; j = j+2){ // printf("(%d, %d)",i,j); n++; } // printf("\n"); } printf("%d\n",n); return 0; }
128
memory_bytes
{'s_id': 's670689874', 'p_id': 'p03264', 'u_id': 'u423656246', 'date': '1542743876', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '292'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int K;\n scanf(\"%d\",&K);\n int n = 0;\n for(int i = 1; i <= K; i = i+2){\n ...
CDSS_566458
CDSS
int main(void){ int a, p; scanf("%d %d", &a, &p); int total_parts, ans; total_parts = 3 * a + p; ans = total_parts / 2; printf("%d", ans); return 0; }
128
memory_bytes
{'s_id': 's741349849', 'p_id': 'p03029', 'u_id': 'u536685012', 'date': '1577076942', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '176'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\nint main(void){\n int a, p;\n scanf(\"%d %d\", &a, &p);\n \n int total_parts, ans;\n \n total_parts = 3 * a + p;\n ans = tota...
CDSS_69143
CDSS
#include <stdio.h> #define SIZE 12 short map[SIZE][SIZE]; void parse(int i, int j) { map[i][j]=0; if(i+1<SIZE && map[i+1][j]) parse(i+1, j); if(j+1<SIZE && map[i][j+1]) parse(i, j+1); if(i-1>=0 && map[i-1][j]) parse(i-1, j); if(j-1>=0 && map[i][j-1]) parse(i, j-1); } main() { int ...
0
memory_bytes
{'s_id': 's180278474', 'p_id': 'p00067', 'u_id': 'u655658530', 'date': '1342690378', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '600'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define SIZE 12\n\nshort map[SIZE][SIZE];\n\nvoid parse(int i, int j)\n{\n map[i][j]=0;\n \n if(i+1<...
CDSS_477469
CDSS
#include <stdio.h> int main(void) { int A, B, M; scanf("%d %d %d", &A, &B, &M); int a[A+1];int b[B+1]; int x, y, c, m; int mina = 200003;int minb = 200003; int minm, i; for (i = 1; i <= A; i++) { scanf("%d", &a[i]); if (mina > a[i]) mina = a[i]; } for (i = 1; i <= ...
896
memory_bytes
{'s_id': 's388118503', 'p_id': 'p02748', 'u_id': 'u392029857', 'date': '1587871397', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '45', 'memory': '896', 'code_size': '601'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n int A, B, M;\n scanf(\"%d %d %d\", &A, &B, &M);\n\n int a[A+1];int b[B+1];\n in...
CDSS_287419
CDSS
#include <stdio.h> int main(void) { int a,b,c; scanf("%d%d%d",&a,&b,&c); if(a<=b&&b<=c) printf("%d %d %d\n",a,b,c); else if(a>=b&&b>=c) printf("%d %d %d\n",c,b,a); else if(a>=b&&a<=c) printf("%d %d %d\n",b,a,c); else if(a<=b&&b>=c&&a>=c) printf("%d %d %d\n",c,a,b); else if(a<=b&&b>=c&&a<=c) printf("%d %d %d\n",a,c,b);...
2,104
memory_bytes
{'s_id': 's054612807', 'p_id': 'p02393', 'u_id': 'u569462250', 'date': '1527583013', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '387'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\nint a,b,c;\nscanf(\"%d%d%d\",&a,&b,&c);\nif(a<=b&&b<=c)\nprintf(\"%d %d %d\\n\",a,b,c);\nels...
CDSS_382558
CDSS
#include <stdio.h> int main() { long long int n, max, sum; scanf("%lld",&n); long long int A[200001]; for (int i=0;i<n;i++) { scanf("%lld",A+i); } max = 1; sum = 0; for (int i=0;i<n;i++) { if (A[i] > max) max = A[i]; sum += (max - A[i]); } printf("%lld\n"...
3,268
memory_bytes
{'s_id': 's780969965', 'p_id': 'p02578', 'u_id': 'u947076382', 'date': '1598126623', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '3268', 'code_size': '342'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n long long int n, max, sum;\n scanf(\"%lld\",&n);\n long long int A[200001];\n for (...
CDSS_101942
CDSS
#include<stdio.h> int graph[101][101],n,c,d; void warshall_floyd(){ int i,j; for(i=1;i<=n;i++) for(j=1;j<=n;j++) graph[i][j]=graph[j][i]=min(graph[i][j],graph[i][c]+graph[c][d]+graph[d][j]); } int min(int x,int y){ return x<y?x:y; } int main(){ int k,i,j,x,e,a,b; while(scanf("%d %d",&n,&k),n,k){...
0
memory_bytes
{'s_id': 's932567887', 'p_id': 'p00449', 'u_id': 'u047988051', 'date': '1322377000', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '0', 'code_size': '672'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint graph[101][101],n,c,d;\n\nvoid warshall_floyd(){\n int i,j;\n for(i=1;i<=n;i++)\n for(j=1;j<=n;j++)\n ...
CDSS_28842
CDSS
#include<stdio.h> int main() { int i,num[3],flag,keta; while(scanf("%d %d",&num[0],&num[1])!= EOF) { keta = 0; flag = 1; num[2] = num[0] + num[1]; while(flag) { num[2] = num[2] / 10; keta++; if(num[2] == 0) flag = 0; } printf("%d\n",keta); } return 0; }
600
memory_bytes
{'s_id': 's023052420', 'p_id': 'p00002', 'u_id': 'u819442759', 'date': '1386753282', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '309'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\t\n\tint i,num[3],flag,keta;\n\t\n\twhile(scanf(\"%d %d\",&num[0],&num[1])!= EOF)\n\t{\n\t\tketa ...
CDSS_299125
CDSS
#include<stdio.h> int main(void){ int n, i=1; while(1){ scanf("%d", &n); if(n) printf("Case %d: %d\n", i++, n); else break; } return 0; }
2,064
memory_bytes
{'s_id': 's431657195', 'p_id': 'p02396', 'u_id': 'u726971073', 'date': '1582719583', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '219'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int n, i=1;\n while(1){\n scanf(\"%d\", &n);\n if...
CDSS_445867
CDSS
#include <stdio.h> #include <float.h> int main() { int i; long int n, a; long int sum = 0; long int num[200000] = {}; scanf("%ld", &n); for(i=1; i<n; i++) { scanf("%ld", &a); num[a-1]++; }; for(i=0; i<n; i++) { printf("%ld\n", num[i]); } return ...
3,296
memory_bytes
{'s_id': 's121984951', 'p_id': 'p02707', 'u_id': 'u368997407', 'date': '1587346601', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '41', 'memory': '3296', 'code_size': '326'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <float.h>\n\nint main()\n{\n int i;\n long int n, a;\n long int sum = 0;\n long int num[200...
CDSS_293670
CDSS
#include<stdio.h> main(){ int w, h; int x, y, r; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); if(((x - r) >= 0 && (x + r) <= w) && ((y - r) >= 0 && (y + r) <= h)){ printf("Yes\n"); } else{ printf("No\n"); } }
2,052
memory_bytes
{'s_id': 's276917153', 'p_id': 'p02394', 'u_id': 'u744477533', 'date': '1559883020', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '224'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nmain(){\n\tint w, h;\n\tint x, y, r;\n\n\tscanf(\"%d %d %d %d %d\", &w, &h, &x, &y, &r);\n\n\tif(((x - r) >= 0 ...
CDSS_425807
CDSS
#include <stdio.h> #include <string.h> #include <stdbool.h> int main() { int k, a, b; scanf("%d %d %d", &k, &a, &b); bool ok = 0; for (int i = a; i <= b; i++) if (i % k == 0) ok = 1; if (ok) printf("OK\n"); else printf("NG\n"); }
1,660
memory_bytes
{'s_id': 's724652835', 'p_id': 'p02693', 'u_id': 'u717915211', 'date': '1594844910', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1660', 'code_size': '262'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdbool.h>\n\nint main() {\n int k, a, b;\n scanf(\"%d %d %d\", &k, &a, &b)...
CDSS_463034
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> int main() { int x, y, z, t; scanf("%d %d %d", &x, &y, &z); t = x; x = z; z = y; y = t; printf("%d %d %d\n", x, y, z); return 0; }
128
memory_bytes
{'s_id': 's676437414', 'p_id': 'p02717', 'u_id': 'u594396548', 'date': '1587270572', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '275'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <math.h>\n \nint main()\n{\n int x, y, z, t;\n \n ...
CDSS_605540
CDSS
#include<stdio.h> int main() { long long a,b,c,ans; scanf("%lld %lld %lld",&a,&b,&c); if((a+b)>=c)ans=b+c; else ans=(a+b)*2+1-a; printf("%lld",ans); }
128
memory_bytes
{'s_id': 's847845144', 'p_id': 'p03186', 'u_id': 'u791173062', 'date': '1546135637', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '157'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n\tlong long a,b,c,ans;\n\tscanf(\"%lld %lld %lld\",&a,&b,&c);\n\tif((a+b)>=c)ans=b+c;\n\telse an...
CDSS_243213
CDSS
#include<stdio.h> #include<math.h> int main() { int x; scanf("%d" , &x); x = x*x*x; printf("%d\n", x); return 0 ; }
596
memory_bytes
{'s_id': 's581379232', 'p_id': 'p02388', 'u_id': 'u009374362', 'date': '1468063238', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '129'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\nint main()\n{\n\tint x;\n\t\n\tscanf(\"%d\" , &x);\n\t\n\tx = x*x*x;\n\t\t\n\tprintf(\"%d\\n\",...
CDSS_522399
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)...
128
memory_bytes
{'s_id': 's490065022', 'p_id': 'p02887', 'u_id': 'u382163500', 'date': '1571533392', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '128', 'code_size': '907'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#define ll long long\n#define rep(i,l,r)for(ll i=(l...
CDSS_91001
CDSS
#include <stdio.h> int main(void) { int b1, b2, b3; scanf("%d %d %d", &b1, &b2, &b3); if (b1 == 1 && b2 == 0 && b3 == 0 || b1 == 0 && b2 == 1 && b3 == 0 || b1 == 0 && b2 == 0 && b3 == 0) printf("Close\n"); else printf("Open\n"); return 0; }
2,144
memory_bytes
{'s_id': 's475952191', 'p_id': 'p00252', 'u_id': 'u853655072', 'date': '1529423301', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '252'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void) \n{\n\tint b1, b2, b3;\n\tscanf(\"%d %d %d\", &b1, &b2, &b3);\n\tif (b1 == 1 && b2 == 0 && b3 == ...