identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_711944
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> int main() { int a,b,c; scanf("%d%d%d", &a,&b,&c); if((b-a) == (c-b)){ puts("YES"); }else{ puts("NO"); } return 0; }
128
memory_bytes
{'s_id': 's933390962', 'p_id': 'p03759', 'u_id': 'u163680061', 'date': '1590873712', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '229'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\nint main() {\n\n int a,b,c;\n scanf(\"%d%d%d\", &a,&b,&c);\n\n ...
CDSS_333308
CDSS
#include <stdio.h> int main(){ int h,w,i,j; while(1){ scanf("%d %d",&h,&w); if(h==0&&w==0) break; 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("."); } puts(""); } puts(""); } return 0; }
588
memory_bytes
{'s_id': 's343777321', 'p_id': 'p02404', 'u_id': 'u113556167', 'date': '1446622575', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '588', 'code_size': '291'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 h,w,i,j;\n \n while(1){\n \n\tscanf(\"%d %d\",&h,&w);\n if(h==0&&w==0) break;\n fo...
CDSS_50734
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> #define PI 3.14159265358979323 //int calc1(float a,float b,float c,float d,float e,float f,float *x,float *y); //void quick(int *,long long,long long); //int comp(char *a,char *b); int main(){ char a[100]; char b[100]; char c; int i,j,k,n; n=100; i=0; ...
524
memory_bytes
{'s_id': 's458760667', 'p_id': 'p00017', 'u_id': 'u846233849', 'date': '1381863826', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '1579'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#define PI 3.14159265358979323\n\n//int calc1(float a,float b,float c,floa...
CDSS_656297
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> int main(){ int N; scanf("%d", &N); printf("%d", N / 3); return 0; }
128
memory_bytes
{'s_id': 's672317574', 'p_id': 'p03423', 'u_id': 'u652071824', 'date': '1520215921', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '149'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n\nint main(){\n \n int N;\n scanf(\"%d\", &N);\n\n printf(\"%d...
CDSS_527924
CDSS
#include <stdio.h> #include <math.h> int main(void) { char s[10]; char a='S'; char b='C'; char c='R'; scanf("%s", s); if(s[0]==a){ printf("Cloudy"); } if(s[0]==b){ printf("Rainy"); } if(s[0]==c){ printf("Sunny"); } return 0; }
128
memory_bytes
{'s_id': 's786382313', 'p_id': 'p02909', 'u_id': 'u507989670', 'date': '1568596211', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '253'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(void)\n{\n\tchar s[10];\n\tchar a='S';\n\tchar b='C';\n\tchar c='R';\n\t\n\tscanf(\"...
CDSS_92478
CDSS
#include<stdio.h> int main(){ int n; int d,s,a,i; while(1){ scanf("%d",&n); if(!n)break; a=1; s=0; for(i=0;i<n;i++){ scanf("%d",&d); if(d>1)a=0; if(d)s++; } if(a)printf("NA\n"); else printf("%d\n",s+1); } return 0; }
612
memory_bytes
{'s_id': 's874458056', 'p_id': 'p00274', 'u_id': 'u731027244', 'date': '1417253236', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '80', 'memory': '612', 'code_size': '276'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 d,s,a,i;\n while(1){\n scanf(\"%d\",&n);\n if(!n)break;\n a=1;\n s=0;\n ...
CDSS_180523
CDSS
#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]=='+'){ push(pop()+pop()); }else if(s[0]==...
2,108
memory_bytes
{'s_id': 's900733065', 'p_id': 'p02263', 'u_id': 'u404291959', 'date': '1544433512', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '571'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 top,S[1000];\n\nvoid push(int x){\n S[++top]=x;\n}\n\nint pop(){\n...
CDSS_691632
CDSS
#include <stdio.h> int main(void) { int n, m; scanf("%d %d", &n, &m); printf("%d\n", (n - 1)*(m - 1)); return 0; }
128
memory_bytes
{'s_id': 's019934009', 'p_id': 'p03635', 'u_id': 'u203927510', 'date': '1506007271', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '122'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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, m;\n\n\tscanf(\"%d %d\", &n, &m);\n\n\tprintf(\"%d\\n\", (n - 1)*(m - 1));\n\n\tretur...
CDSS_567692
CDSS
#include <stdio.h> #include <stdlib.h> #define ll long long #define rep(i,l,r)for(ll i=(l);i<(r);i++) //block linked list #define Bsize 900 /*2sqrt(n)*/ typedef struct block{ int cnt; ll a[Bsize+1]; struct block*pre; struct block*nxt; }block; void Bpush(block*b,ll x){ //リストにxを追加する if((*b).nxt&&(*(*b).nxt).a[0]<x...
11,132
memory_bytes
{'s_id': 's071284138', 'p_id': 'p03033', 'u_id': 'u382163500', 'date': '1559228089', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '490', 'memory': '11132', 'code_size': '2259'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 ll long long\n#define rep(i,l,r)for(ll i=(l);i<(r);i++)\n\n//block linked list\n#defi...
CDSS_728418
CDSS
#include <stdbool.h> #include <stdio.h> #include <string.h> int main() { char s[100001], tmp; char dream[6] = "maerd"; char dreamer[8] = "remaerd"; char erase[6] = "esare"; char eraser[7] = "resare"; bool isDream, isDreamer, isErase, isEraser; scanf("%s", s); int len = strlen(s); for (int i = 0; i < len / 2; i...
256
memory_bytes
{'s_id': 's879707276', 'p_id': 'p03854', 'u_id': 'u030504180', 'date': '1586990271', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '1086'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdbool.h>\n#include <stdio.h>\n#include <string.h>\nint main() {\n\tchar s[100001], tmp;\n\tchar dream[6] = \"maerd\";\n\tc...
CDSS_148035
CDSS
#include<stdio.h> void trace(int A[],int N){ int i; for(i=0;i<N;i++){ if (i > 0) printf(" "); printf("%d",A[i]); } printf("\n"); } void insertionSort(int A[],int N){ int i,j,v; for(i=1;i<N;i++){ v = A[i]; j = i -1; while(j >= 0 && A[j] > v){ A[j+1] = A[j]; j--; } ...
2,124
memory_bytes
{'s_id': 's906337098', 'p_id': 'p02255', 'u_id': 'u035147291', 'date': '1529042122', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2124', 'code_size': '525'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 trace(int A[],int N){\n int i;\n for(i=0;i<N;i++){\n if (i > 0) printf(\" \");\n printf(\"%d\",A[i])...
CDSS_176226
CDSS
// Shell Sort #include <stdio.h> int cnt; int len; int g[101]; void shellSort(int a[], int n){ int i, j, h, x=1; len = cnt = 0; for(i=0; x<=n; i++){ g[i] = x; x = x*3+1; len++; } for(h=len-1; h>=0; h--){ for(i=g[h]; i<n; i++){ int key = a[i]; ...
5,616
memory_bytes
{'s_id': 's603018968', 'p_id': 'p02262', 'u_id': 'u361707670', 'date': '1588876629', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '280', 'memory': '5616', 'code_size': '872'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// Shell Sort\n#include <stdio.h>\n\nint cnt;\nint len;\nint g[101];\n\nvoid shellSort(int a[], int n){\n int i, j, h, x=1;\n le...
CDSS_212888
CDSS
#include<stdio.h> #define N 100000 #define INFTY 1000000000 struct Card{ char suit; int value; }; struct Card L[N], R[N]; void merge(struct Card *, int, int, int); void mergeSort(struct Card *, int , int); int partition(struct Card *, int, int); void quickSort(struct Card *, int, int); int main(){ ...
2,960
memory_bytes
{'s_id': 's602807038', 'p_id': 'p02277', 'u_id': 'u215276997', 'date': '1496284586', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '2960', 'code_size': '2139'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 100000\n#define INFTY 1000000000\n\nstruct Card{\n \n char suit;\n int value;\n \n};\n\nstruct Card L...
CDSS_69962
CDSS
h;main(x){for(;scanf("%d%d",&x,&h),x|h;)printf("%f\n",sqrt(x*x+4*h*h)*x+x*x);}
0
memory_bytes
{'s_id': 's003532077', 'p_id': 'p00073', 'u_id': 'u399107199', 'date': '1287584388', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '78'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nh;main(x){for(;scanf(\"%d%d\",&x,&h),x|h;)printf(\"%f\\n\",sqrt(x*x+4*h*h)*x+x*x);}\nPredict its memory footprint.", "role": "user...
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 must 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[20000...
CDSS_347471
CDSS
#include<stdio.h> int main(){ int n,i,j,s; int card[4][13]; char mark; //初期化 for(i = 0;i < 4;i++){ for(j = 0;j < 13;j++){ card[i][j] = 0; } } //枚数を入力 scanf("%d",&n); for(i = 0;i < n;i++){ //マークと...
2,104
memory_bytes
{'s_id': 's712307244', 'p_id': 'p02408', 'u_id': 'u152417176', 'date': '1548308293', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '1507'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,i,j,s;\n int card[4][13];\n char mark;\n\n //初期化\n for(i = 0...
CDSS_693483
CDSS
#include <stdio.h> int main(void) { int n; scanf("%d\n",&n); printf("ABC%d\n",n); return 0; }
128
memory_bytes
{'s_id': 's141278562', 'p_id': 'p03643', 'u_id': 'u513290715', 'date': '1501376559', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '97'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n\tint n;\n\tscanf(\"%d\\n\",&n);\n\tprintf(\"ABC%d\\n\",n);\n\treturn 0;\n}\nPredict its memory...
CDSS_218824
CDSS
#include <stdio.h> #define M 100000 #define N -1 struct Node{ int parent,left,right; }; struct Node T[M]; int D[M],H[M]; void setdepth(int u,int d){ if(u==N)return; D[u]=d; setdepth(T[u].left,d+1); setdepth(T[u].right,d+1); } int setheight(int u){ int h1=0,h2=0; if(T[u].left != N) h1=setheight(T[u].l...
2,112
memory_bytes
{'s_id': 's736452529', 'p_id': 'p02280', 'u_id': 'u536373814', 'date': '1578978166', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '1554'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 M 100000\n#define N -1\n\nstruct Node{\nint parent,left,right;\n};\nstruct Node T[M];\nint D[M],H[M];\n\nv...
CDSS_192393
CDSS
#include <stdio.h> #include <stdlib.h> int binarySearch(int key); int *S, n, k = 0; int main() { int *T; int q, i, tmp; scanf("%d", &n); S = (int *)malloc(n * sizeof(int)); for(i = 0; i < n; i++) scanf("%d", &S[i]); scanf("%d", &q); T = (int *)malloc(q * sizeof(int)); for(i = 0; i < q; i++) ...
1,188
memory_bytes
{'s_id': 's502855479', 'p_id': 'p02268', 'u_id': 'u333589327', 'date': '1493628580', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '1188', 'code_size': '986'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint binarySearch(int key);\n\nint *S, n, k = 0;\n\nint main()\n{\n int *T;\n int q, i, tm...
CDSS_571641
CDSS
#include<stdio.h> int main(){ int data; if(scanf("%d",&data)==1); int data1=data/100; int data2=data%100; if(data2<=12&&data2>0&&data1<=12&&data1>0){ printf("AMBIGUOUS\n"); } else if(data2<=12&&data2!=0){ printf("YYMM\n"); } else if(data1<=12&&data1!=0){ printf("MMYY\n"); } else{ printf("NA\n"); } ...
128
memory_bytes
{'s_id': 's980536383', 'p_id': 'p03042', 'u_id': 'u538296348', 'date': '1558317406', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '332'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 data;\n\tif(scanf(\"%d\",&data)==1);\n\tint data1=data/100;\n\tint data2=data%100;\n\tif(data2<=...
CDSS_297788
CDSS
#include<stdio.h> int main() { int input[10000]; int i=0,count=0; while(1) { scanf("%d",&input[i]); if(input[i]==0) break; i++; count++; } for(i=0;i<count;i++) printf("Case %d: %d\n",i+1,input[i]); return 0; }
2,040
memory_bytes
{'s_id': 's348231448', 'p_id': 'p02396', 'u_id': 'u069968421', 'date': '1518924842', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '234'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n\tint input[10000];\n\tint i=0,count=0;\n\t\n\twhile(1)\n\t{\n\t\tscanf(\"%d\",&input[i]);\n\t\tif...
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 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_201156
CDSS
#include<stdio.h> int n; int a[20]; int flg[10000000]; void dfs(int x,int sum){ if(x==n){ flg[sum]=1; return; } dfs(x+1,sum); dfs(x+1,sum+a[x]); } int main(){ int i; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a[i]); } dfs(0,0); int q,key; scanf("%d",&q); for(i=0;i<q;i++){ s...
2,040
memory_bytes
{'s_id': 's880316112', 'p_id': 'p02271', 'u_id': 'u391128920', 'date': '1570429910', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '440'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint n;\nint a[20];\nint flg[10000000];\n\nvoid dfs(int x,int sum){\n if(x==n){\n flg[sum]=1;\n return;\n ...
CDSS_286552
CDSS
#include <stdio.h> int main() { int a,b,c; scanf("%d", &a); scanf("%d", &b); scanf("%d", &c); if (a < b && a < c) { if (b < c) printf("%d %d %d\n", a, b, c); else printf("%d %d %d\n", a, c, b); } else if (b < a && b < c) { if (a < c) printf("%d %d %d\n", b, a, c); else ...
1,784
memory_bytes
{'s_id': 's260298253', 'p_id': 'p02393', 'u_id': 'u620516796', 'date': '1515792164', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1784', 'code_size': '484'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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;\n scanf(\"%d\", &a);\n scanf(\"%d\", &b);\n scanf(\"%d\", &c);\n\n if (a < b && a...
CDSS_472793
CDSS
#include <stdio.h> #include <string.h> int main(void) { int N, b, i; char S[105]; scanf("%s", S); N=strlen(S); b=1; for (i=0; i<(N-1)/2; i++) { // printf("(%d %d) ", i, (N-1)/2-i-1); continue; if (S[i]!=S[(N-1)/2-i-1]) { b=0; break; } } //...
128
memory_bytes
{'s_id': 's999194489', 'p_id': 'p02730', 'u_id': 'u279160680', 'date': '1584927324', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '767'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 int N, b, i;\n char S[105];\n scanf(\"%s\", S);\n N=strlen(S...
CDSS_375148
CDSS
#include <stdio.h> int main(){ int n; int ctr=0; scanf("%d",&n); for(int i=0;i<n;i++){ int a,b; scanf("%d %d",&a,&b); if (a == b){ ctr++; } else{ ctr = 0; } if(ctr==3){ printf("Yes\n"); return 0; } } printf("No"); return 0; }
1,728
memory_bytes
{'s_id': 's288217801', 'p_id': 'p02547', 'u_id': 'u936549104', 'date': '1600544416', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1728', 'code_size': '243'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\nint n;\nint ctr=0;\nscanf(\"%d\",&n);\nfor(int i=0;i<n;i++){\n\tint a,b;\n\tscanf(\"%d %d\",&a,&b);...
CDSS_615016
CDSS
#include <stdio.h> #include <stdlib.h> int main(void){ int N,T,i,j; int temp; int *a,*b; int ans=0,flag=0; //input scanf("%d%d",&N,&T); a = (int *)malloc(N * sizeof(int)); b = (int *)malloc(N * sizeof(int)); for(i=0;i<N;i++){ scanf("%d %d",&a[i],&b[i]); } //sort ...
128
memory_bytes
{'s_id': 's687705934', 'p_id': 'p03239', 'u_id': 'u593005350', 'date': '1540336512', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '879'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(void){\n int N,T,i,j;\n int temp;\n int *a,*b;\n int ans=0,flag=0;\n ...
CDSS_125949
CDSS
#include<stdio.h> #define p(a) putchar(a);break char S[3]; int main() { for(;~scanf("%2s",S);) { if(S[0]==10)break; if(S[0]=='0'&&S[1]=='U')printf("nn"); else { switch(S[0]-'0') { case 1:break; case 2:p('k'); case 3:p('s'); case 4:p('t'); case 5:p('n'); case 6:p('h'); case 7:p('m')...
540
memory_bytes
{'s_id': 's578107933', 'p_id': 'p01531', 'u_id': 'u363039534', 'date': '1430138214', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '540', 'code_size': '537'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 p(a) putchar(a);break\nchar S[3];\n\nint main()\n{\n\tfor(;~scanf(\"%2s\",S);)\n\t{\n\t\tif(S[0]==10)break;...
CDSS_347459
CDSS
#include <stdio.h> int main(void) { int A[10][100]={0,0,0,0,0}; int i,j,x,N; char che; scanf("%d",&N); for(i=0;i<=N;i++){ scanf("%c %d\n",&che,&x); //printf("%c %d",che,x); switch(che){ case'S': A[0][x] = 1; break; ...
2,112
memory_bytes
{'s_id': 's660994417', 'p_id': 'p02408', 'u_id': 'u112364226', 'date': '1552394706', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '1282'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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[10][100]={0,0,0,0,0};\n int i,j,x,N;\n char che;\n \n scanf(\"%d\",&N);\...
CDSS_329191
CDSS
#include<stdio.h> int main(){ int H,W,i,j; while(1){ scanf("%d %d",&H,&W); if(H==0&&W==0)break; for(i=0;i<H;i++){ for(j=0;j<W;j++){ printf("#"); } printf("\n"); } printf("\n"); } return 0; }
572
memory_bytes
{'s_id': 's175827142', 'p_id': 'p02403', 'u_id': 'u632803184', 'date': '1436773458', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '237'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 H,W,i,j;\n while(1){\n scanf(\"%d %d\",&H,&W);\n if(H==0&&W==0)break;\n for(i=0;i<H;i+...
CDSS_164302
CDSS
#include <stdio.h> #define MAX 200000 int max(int a,int b) { return a>b ? a: b;} int min(int a,int b) { return a<b ? a: b;} int main(void) { int R[MAX], i, n; scanf("%d",&n); for(i=0;i<n;i++) scanf("%d",&R[i]); int maxv = -2000000000; int minv = R[0]; for(int i=1; i<n; i++) { ...
2,624
memory_bytes
{'s_id': 's077060885', 'p_id': 'p02258', 'u_id': 'u849408428', 'date': '1587097526', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2624', 'code_size': '443'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 200000\n\nint max(int a,int b) { return a>b ? a: b;}\nint min(int a,int b) { return a<b ? a: b;}\n\n...
CDSS_169126
CDSS
#include <stdio.h> #include <stdlib.h> char buf[16]; void bubblesort(int *a, int n) { int i, j, nswap = 0; int flag = 1; do { flag = 0; for (j=n-1; j>=1; j--) { if (a[j] < a[j-1]) { int t = a[j]; a[j] = a[j-1]; a[j-1] = t; nswap ++; flag = 1; } } } while (flag); buf[15]=0; bu...
2,044
memory_bytes
{'s_id': 's722538680', 'p_id': 'p02259', 'u_id': 'u800534567', 'date': '1558691108', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '1103'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\nchar buf[16];\n\nvoid bubblesort(int *a, int n)\n{\n int i, j, nswap = 0;\n int flag = 1;...
CDSS_67774
CDSS
// Aizu Vol0 0059: Intersection of Rectangles // 2017.7.30 #include <stdio.h> #include <stdlib.h> #include <ctype.h> char *gets(char *); #define MAX 500 char buf[MAX + 5], *p; int GetInt(void) { int minus = 0, len = 0, n = 0; while (isspace(*p)) p++; if (*p == '-') p++, minus = 1; while (isdigit(*p)) n = 10 * ...
524
memory_bytes
{'s_id': 's429610687', 'p_id': 'p00059', 'u_id': 'u847467233', 'date': '1501457806', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '1776'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// Aizu Vol0 0059: Intersection of Rectangles\n// 2017.7.30\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <ctype.h>\n\nchar *ge...
CDSS_673907
CDSS
#include <stdio.h> int main() { int a,b,n; scanf("%d %d %d",&n,&a,&b); if (a*n<=b) { printf("%d\n",a*n); } else { printf("%d\n",b); } return 0; }
128
memory_bytes
{'s_id': 's493370569', 'p_id': 'p03501', 'u_id': 'u693691111', 'date': '1512352990', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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 a,b,n;\n scanf(\"%d %d %d\",&n,&a,&b);\n if (a*n<=b) {\n printf(\"%d\\n\",a*n);\n } else...
CDSS_592522
CDSS
#include<stdio.h> int main(void){ int i, count0, count1, ans, dst; char S[100000]; scanf("%s",S); count0 = count1 = ans = 0; dst = strlen(S); for(i = 0; i < dst; ++i){ if(S[i] == '0'){ count0++; } else { count1++; } } ans = (count0 >= count1) ? count1: count0; printf("%d...
256
memory_bytes
{'s_id': 's437166553', 'p_id': 'p03107', 'u_id': 'u513851782', 'date': '1558043002', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '349'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 i, count0, count1, ans, dst;\n char S[100000];\n scanf(\"%s\",S);\n\n count0 = count1...
CDSS_607840
CDSS
#include <stdio.h> int main(void){ int n,i,max=0,ans=0; scanf("%d",&n); int p[n+1]; for(i=0;i<n;i++){ scanf("%d",&p[i]); max=(p[i]>max?p[i]:max); ans+=p[i]; } ans-=(max/2); printf("%d",ans); return 0; }
128
memory_bytes
{'s_id': 's033522541', 'p_id': 'p03207', 'u_id': 'u013213797', 'date': '1584019243', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '231'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,max=0,ans=0;\n scanf(\"%d\",&n);\n int p[n+1];\n for(i=0;i<n;i++){\n scanf(\"%d\"...
CDSS_219141
CDSS
#include<stdio.h> #define MAX 10000 #define NIL -1 struct Node{ int p, l, r; }; struct Node T[MAX]; int n; int D[MAX], H[MAX]; int getDepth(int u){ int d = 0; while(1){ u = T[u].p; if ( u == NIL ) break; d++; } return d; } int getSibling(int u){ if ( T[u].p == NIL ) return NIL; if ( T[T[u]...
2,048
memory_bytes
{'s_id': 's465244726', 'p_id': 'p02280', 'u_id': 'u353728528', 'date': '1546578026', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '1554'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define MAX 10000\n#define NIL -1\n\nstruct Node{\n int p, l, r;\n};\n\nstruct Node T[MAX];\nint n;\nint D[MAX], H...
CDSS_658841
CDSS
#include<stdio.h> #include<stdlib.h> int main(void){ int N; int i,tokuten, a[100]; int alice, bob, tmp; if(scanf("%d", &N)==-1){ exit(1); } for(i=0; i<N; i++){ scanf("%d", &a[i]); } tokuten=0; for(i=0; i<N; i=i+2){ tmp = arrayMaxValueIndex(a,N); alice = a[tmp]; a[tmp] = 0...
128
memory_bytes
{'s_id': 's597809104', 'p_id': 'p03434', 'u_id': 'u075689098', 'date': '1526939023', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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\nint main(void){\n int N;\n int i,tokuten, a[100];\n int alice, bob, tmp;\n \n if(scanf(\...
CDSS_690858
CDSS
#include <stdio.h> int main(int argc, char *argv[]) { int n; unsigned long long t[100], t_max = 0; scanf("%d", &n); for(int i = 0; i < n; i++){ scanf("%llu", &t[i]); if(t_max < t[i]) t_max = t[i]; } unsigned long long ans = t_max; unsigned long long k; for(int i = 0; i < n; i++){ k = 1; ...
128
memory_bytes
{'s_id': 's294147749', 'p_id': 'p03633', 'u_id': 'u801102476', 'date': '1559708839', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '324', 'memory': '128', 'code_size': '410'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\nmain(int argc, char *argv[])\n{\n int n; unsigned long long t[100], t_max = 0;\n scanf(\"%d\", &n);\n fo...
CDSS_179632
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> int main(){ int x,y; char s[100]; int stack[100]; int num=0; while (scanf("%s", s) != EOF){ if (s[0] == '+'){ x = stack[--num]; y = stack[--num]; stack[num] = x + y; num++; } else if (s[0] == '-'){ x = stack[--num]; y = stack[--num]...
548
memory_bytes
{'s_id': 's409270597', 'p_id': 'p02263', 'u_id': 'u725029766', 'date': '1398255094', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '569'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n\nint main(){\n\tint x,y;\n\tchar s[100];\n\tint stack[100];\n\tint num=0;\...
CDSS_406469
CDSS
#include"stdio.h" void main(void){ int A,B; scanf("%d %d",&A,&B); printf("%d",A*B); }
1,728
memory_bytes
{'s_id': 's993668913', 'p_id': 'p02657', 'u_id': 'u517660694', 'date': '1594331550', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1728', 'code_size': '87'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 main(void){\nint A,B;\nscanf(\"%d %d\",&A,&B);\nprintf(\"%d\",A*B);\n}\n\nPredict its memory footprint.", ...
CDSS_697031
CDSS
#include <stdio.h> long long abs_a(long long n){ if (n>=0){ return n; } else { return -1*n; } } int main (void){ int N; scanf ("%d", &N); long long a[N]; long long sum = 0; long long min = 0; for (int i=0; i<N; i++){ scanf ("%lld", &a[i]); sum += a[i...
1,664
memory_bytes
{'s_id': 's088425436', 'p_id': 'p03661', 'u_id': 'u066542384', 'date': '1500171284', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '24', 'memory': '1664', 'code_size': '649'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nlong long abs_a(long long n){\n if (n>=0){\n return n;\n } else {\n return -1*n;\n }\n}\n...
CDSS_267060
CDSS
#include<stdio.h> int main(void) { int a, b; scanf("%d %d", &a, &b); if(a<b){ printf("a < b\n"); } if(a>b){ printf("a > b\n"); } if(a==b){ printf("a == b\n"); } return 0; }
580
memory_bytes
{'s_id': 's886218171', 'p_id': 'p02391', 'u_id': 'u845015409', 'date': '1457600773', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '189'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint a, b;\n\tscanf(\"%d %d\", &a, &b);\n\tif(a<b){\n\t\tprintf(\"a < b\\n\");\n\t}\n\tif(a>b){...
CDSS_259109
CDSS
#include<stdio.h> int main(){ int s; scanf("%d",&s); int h=s/3600,m; s-=h*3600; m=s/60; s-=m*60; printf("%d:%d:%d\n",h,m,s); return 0; }
2,024
memory_bytes
{'s_id': 's852082034', 'p_id': 'p02390', 'u_id': 'u547790704', 'date': '1556690124', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2024', '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>\n\nint main(){\n\t\n\tint s;\n\tscanf(\"%d\",&s);\n\tint h=s/3600,m;\n\t\n\ts-=h*3600;\n\tm=s/60; s-=m*60;\n\tprint...
CDSS_589076
CDSS
#include <stdio.h> int main(void){ int H, W, h, w, white; scanf("%d %d", &H, &W); scanf("%d %d", &h, &w); white = (H-h) * (W-w); printf("%d", white); return 0; }
128
memory_bytes
{'s_id': 's975428468', 'p_id': 'p03101', 'u_id': 'u962680761', 'date': '1556384264', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '191'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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 H, W, h, w, white;\n scanf(\"%d %d\", &H, &W);\n scanf(\"%d %d\", &h, &w);\n\n ...
CDSS_169328
CDSS
#include<stdio.h> int main(){ int N, i, j, A[100], temp, flag = 1, count = 0; scanf("%d", &N); for(i = 0; i < N; i++){ scanf("%d", &A[i]); } while(flag){ flag = 0; for(j = N-1; j >= 1 ; j--){ if(A[j] < A[j-1]){ temp = A[j-1]; A[j-1] = A[j]; A[j] = temp; flag = 1; count++; } ...
2,140
memory_bytes
{'s_id': 's355856378', 'p_id': 'p02259', 'u_id': 'u749282054', 'date': '1544070964', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '476'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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, i, j, A[100], temp, flag = 1, count = 0;\n\n scanf(\"%d\", &N);\n\n for(i = 0; i < N; i++...
CDSS_85257
CDSS
n,a,h[7]; main(){ for(;scanf("%d",&n),n;){ for(;n--;){ scanf("%d",&a); h[a>59?6:a/10]++; } for(;++n<7;h[n]=0) printf("%d\n",h[n]); } exit(0); }
408
memory_bytes
{'s_id': 's944389475', 'p_id': 'p00184', 'u_id': 'u399107199', 'date': '1290949895', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '140', 'memory': '408', 'code_size': '161'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nn,a,h[7];\nmain(){\n\tfor(;scanf(\"%d\",&n),n;){\n\t\tfor(;n--;){\n\t\t\tscanf(\"%d\",&a);\n\t\t\th[a>59?6:a/10]++;\n\t\t}\n\t\tfor(;+...
CDSS_71593
CDSS
#include <stdio.h> int main(void){ int y, m, d; while(scanf(" %d %d %d", &y, &m ,&d) != EOF){ char *ans; int year; int flag=0; if(y<1868 || (y==1868 && m<9) || (y==1868 && m==9 && d<=7) ) { ans = "pre-meiji"; flag=1; } else if(y<1912 || (y==1912 && m<7) || (y==1912 && m==7 && d<=29) ) { ...
608
memory_bytes
{'s_id': 's285651976', 'p_id': 'p00083', 'u_id': 'u979000952', 'date': '1408184447', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '758'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 y, m, d;\n\t\n\twhile(scanf(\" %d %d %d\", &y, &m ,&d) != EOF){\n\t\tchar *ans;\n\t\tint ...
CDSS_42458
CDSS
#include<stdio.h> int prime[1000000],sum[1000000]; int main(void){ const int MAX_V = 1000000; int i,j,n,ans; for(i=2;i<MAX_V;i++){ prime[i]=1; sum[i]=0; } for(i=2;i*i<MAX_V;i++){ if(prime[i]){ for(j=i*i;j<MAX_V;j+=i){ prime[j]=0; } } } while(scanf("%d",&n)!=EOF){ ans=0; for(i=0;i<=n;i++){...
8,408
memory_bytes
{'s_id': 's743966287', 'p_id': 'p00009', 'u_id': 'u143283041', 'date': '1449644232', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '8408', 'code_size': '380'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 prime[1000000],sum[1000000];\n\nint main(void){\n\tconst int MAX_V = 1000000;\n\tint i,j,n,ans;\n\tfor(i=2;i<...
CDSS_547351
CDSS
#include <stdio.h> main() { int N; int D; int n; scanf("%d",&N); scanf("%d",&D); if (N%(2*D+1)==0) { int a = N/(2*D+1); printf ("%d",a); } else { int m = N/(2*D+1)+1; printf("%d",m) ; } }
1,716
memory_bytes
{'s_id': 's820939115', 'p_id': 'p02970', 'u_id': 'u863370423', 'date': '1600396636', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1716', 'code_size': '214'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nmain()\n{\n\tint N;\n\tint D;\n\tint n;\n\t\n\tscanf(\"%d\",&N);\n\tscanf(\"%d\",&D);\n\t\n\tif (N%(2*D+1)==0)\n\t...
CDSS_655062
CDSS
c;main(a,b){for(scanf("%d%d",&a,&b);a<=b;a++)c+=a/10000==a%10&&a/1000%10==a/10%10;printf("%d",c);}
128
memory_bytes
{'s_id': 's347164860', 'p_id': 'p03416', 'u_id': 'u657913472', 'date': '1533291018', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '98'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nc;main(a,b){for(scanf(\"%d%d\",&a,&b);a<=b;a++)c+=a/10000==a%10&&a/1000%10==a/10%10;printf(\"%d\",c);}\nPredict its memory footprint."...
CDSS_593718
CDSS
#include<stdio.h> #include<string.h> int main(void){ int N; scanf("%d",&N); double sum = 0; double x; char u[4]; for(int i = 0 ; i < N ; i++){ scanf("%lf %s",&x , u); if(strcmp(u , "JPY") == 0){ sum += x; }else if(strcmp(u , "BTC") == 0){ sum += x * 380000.0; } } printf...
128
memory_bytes
{'s_id': 's816847897', 'p_id': 'p03110', 'u_id': 'u281840563', 'date': '1558559459', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '349'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 int N;\n scanf(\"%d\",&N);\n\n double sum = 0;\n double x;\n char u[...
CDSS_677744
CDSS
#include <stdio.h> int main(void) { int x,y,z; int n; scanf("%d%d%d",&x,&y,&z); n=x/(y+z); if(x-(y+z)*n<z)n--; printf("%d",n); return (0); }
128
memory_bytes
{'s_id': 's203760809', 'p_id': 'p03548', 'u_id': 'u699912843', 'date': '1510455451', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '155'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int x,y,z;\n int n;\n scanf(\"%d%d%d\",&x,&y,&z);\nn=x/(y+z);\nif(x-(y+z)*n<z)n--;\...
CDSS_219901
CDSS
#include<stdio.h> #define MAX 100000 #define NIL -1 struct Node { int p, l, r; }; struct Node T[MAX]; int n; void preParse(int u) { if (u == NIL) return; printf(" %d", u); preParse(T[u].l); preParse(T[u].r); } void inParse(int u) { if (u == NIL) return; inParse(T[u].l); printf(" %d", u); ...
2,040
memory_bytes
{'s_id': 's830947932', 'p_id': 'p02281', 'u_id': 'u936175119', 'date': '1518433108', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '1100'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define MAX 100000\n#define NIL -1\n\nstruct Node { int p, l, r; };\nstruct Node T[MAX];\nint n;\n\nvoid preParse(i...
CDSS_726465
CDSS
#include<stdio.h> int main(){ int a,b; char c; scanf("%d %c %d",&a,&c,&b); if(c=='+'){ printf("%d\n",a+b); }else{ printf("%d\n",a-b); } return 0; }
128
memory_bytes
{'s_id': 's767771030', 'p_id': 'p03844', 'u_id': 'u381746350', 'date': '1528465634', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '175'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int a,b;\n char c;\n scanf(\"%d %c %d\",&a,&c,&b);\n if(c=='+'){\n printf(\"%d\\n\",a+b); \n }e...
CDSS_355477
CDSS
#include <stdio.h> int main(int argc, const char * argv[]) { int n, x; int i, j, k; int sum; while (1) { scanf("%d %d", &n, &x); if (n == 0 && x == 0) { break; } sum = 0; for (...
600
memory_bytes
{'s_id': 's386433701', 'p_id': 'p02412', 'u_id': 'u315014509', 'date': '1499011558', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '669'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(int argc, const char * argv[]) {\n int n, x;\n int i, j, k;\n int sum;\n \n...
CDSS_162987
CDSS
#include<stdio.h> int main(void){ int i; int max = -2147483648; scanf("%d\n", &i); int min = 0; scanf("%d\n", &min); while((scanf("%d\n", &i)) != EOF){ if((i - min) > max) max = i - min; if(i < min) min = i; } printf("%d\n", max); return 0; }
1,852
memory_bytes
{'s_id': 's742630637', 'p_id': 'p02258', 'u_id': 'u955903958', 'date': '1511851989', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '1852', 'code_size': '296'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int i;\n int max = -2147483648;\n scanf(\"%d\\n\", &i);\n int min = 0;\n scanf(\...
CDSS_619928
CDSS
#include<stdio.h> #include<stdlib.h> #define POS(c,i) (((c)-'A')*n+(i)) void assign(int a,int b,int *vertex,int *next,int *start,int index){ vertex[index]=b; next[index]=start[a]; start[a]=index; return; } void run(void){ int n,m; scanf("%d%d",&n,&m); char *s=(char *)malloc(sizeof(char)*(n+1)); scanf...
7,040
memory_bytes
{'s_id': 's598833414', 'p_id': 'p03256', 'u_id': 'u425248533', 'date': '1537121176', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '68', 'memory': '7040', 'code_size': '1384'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 POS(c,i) (((c)-'A')*n+(i))\n\nvoid assign(int a,int b,int *vertex,int *next,int *star...
CDSS_523798
CDSS
#include <stdio.h> int main(void){ int n; scanf("%d",&n); printf("%lf",(double)(n/2+n%2)/n); }
128
memory_bytes
{'s_id': 's097474257', 'p_id': 'p02897', 'u_id': 'u592248346', 'date': '1590968097', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '107'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must 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(\"%lf\",(double)(n/2+n%2)/n);\n}\n\nPredict its mem...
CDSS_636368
CDSS
#include<stdio.h> #include<stdlib.h> int main(void) { int n, k; int a[100000],i,b; scanf("%d %d", &n,&k); //a = (int*)malloc(sizeof(n)); for (i = 0; i < n; i++) { scanf("%d", &a[i]); } b = (n - 1) / (k - 1); if (((n - 1) % (k - 1)) != 0)b++; printf("%d\n",b); //free(a); return 0; }
512
memory_bytes
{'s_id': 's779282627', 'p_id': 'p03317', 'u_id': 'u794921280', 'date': '1530667800', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '512', 'code_size': '295'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\nint main(void) {\n\tint n, k;\n\tint a[100000],i,b;\n\tscanf(\"%d %d\", &n,&k);\n\t//a = (int*)...
CDSS_257389
CDSS
#include<stdio.h> int main(void) { int a,b,c,d; scanf("%d %d",&a,&b); c=a*b; d=a+a+b+b; printf("%d %d\n",c,d); return 0; }
596
memory_bytes
{'s_id': 's865086767', 'p_id': 'p02389', 'u_id': 'u565812230', 'date': '1386037798', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '147'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int a,b,c,d;\n\n scanf(\"%d %d\",&a,&b);\n c=a*b;\n d=a+a+b+b;\n printf(\"%d %d\...
CDSS_290209
CDSS
#include <stdio.h> int main(void){ int w, h, x, y, r; int up, down, right, left; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); if((x < -100) || (x > 100)){ printf("Error:X is out of Range(%d)", x); }else if((y < -100) || (y > 100)){ printf("Error:Y is out of Range(%d)", y); }else if((w < 0) || (w > 100)...
584
memory_bytes
{'s_id': 's907817691', 'p_id': 'p02394', 'u_id': 'u076989009', 'date': '1462501312', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '699'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\t\n\tint w, h, x, y, r;\n\tint up, down, right, left;\n\t\n\tscanf(\"%d %d %d %d %d\", &w, &h,...
CDSS_320821
CDSS
#include <stdio.h> int main() { int a,b; char op; while(1){ scanf("%d %c %d",&a,&op,&b); if (op=='?') break; if (op=='+'){ printf("%d\n",a + b); } else if (op=='-'){ printf("%d\n",a - b); } else if (op=='*'){ printf("%d\n",a * b); ...
2,060
memory_bytes
{'s_id': 's443644024', 'p_id': 'p02401', 'u_id': 'u308060746', 'date': '1539488036', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2060', 'code_size': '414'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int a,b;\n char op;\n while(1){\n scanf(\"%d %c %d\",&a,&op,&b);\n if (op==...
CDSS_546734
CDSS
#include <stdio.h> int main() { int r; scanf("%d", &r); printf("%d", 3*r*r); return 0; }
128
memory_bytes
{'s_id': 's252596062', 'p_id': 'p02969', 'u_id': 'u034323841', 'date': '1585759794', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '99'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n\tint r;\n\t\n\tscanf(\"%d\", &r);\n\t\n\tprintf(\"%d\", 3*r*r);\n\t\n\treturn 0;\n}\nPredict its...
CDSS_594917
CDSS
#include<stdio.h> int main(void) { int A,B; scanf("%d %d", &A, &B); if(B % A == 0) { printf("%d\n", A + B); } else { printf("%d\n", B - A); } return 0; }
128
memory_bytes
{'s_id': 's495985229', 'p_id': 'p03125', 'u_id': 'u214118254', 'date': '1550370062', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '177'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void) {\n int A,B;\n\n scanf(\"%d %d\", &A, &B);\n if(B % A == 0) {\n printf(\"%d\\n\", A + B);\n ...
CDSS_53096
CDSS
#include<stdio.h> #include<string.h> int main(){ char s[10001]; int i; fgets(s,10001,stdin); for(i=0;i<strlen(s);i++){ printf("%c",toupper(s[i])); } return 0; }
524
memory_bytes
{'s_id': 's387905108', 'p_id': 'p00020', 'u_id': 'u731027244', 'date': '1416476417', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '176'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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 char s[10001];\n int i;\n fgets(s,10001,stdin);\n for(i=0;i<strlen(s);i++){\n...
CDSS_100980
CDSS
#include <stdio.h> int main(){ int coin,money,num; while(1){ scanf("%d",&num); if(num==0) break; money=1000-num; coin=money/500; money%=500; coin+=money/100; money%=100; coin+=money/50; money%=50; coin+=money/10; money%=10; coin+=money/5; money%=5; coin+=mo...
600
memory_bytes
{'s_id': 's962415453', 'p_id': 'p00444', 'u_id': 'u411540321', 'date': '1430129658', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '370'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int coin,money,num;\n\n while(1){\n scanf(\"%d\",&num);\n if(num==0) break;\n\n money=1...
CDSS_235726
CDSS
#include<stdio.h> #include<math.h> int main(void) { int i,n,s[1001]; double m,a; while(1) { scanf("%d",&n); if(n==0){break;} m=0.0;a=0.0; for(i=0;i<n;i++) { scanf("%d",&s[i]); m+=1.0*s[i]; } m/=n; for(i=0;i<n;i++) { a+=(s[i]-m)*(s[i]-m); } a/=n; a=sqrt(a); printf("%lf\n",a); } r...
636
memory_bytes
{'s_id': 's710070715', 'p_id': 'p02381', 'u_id': 'u120996091', 'date': '1440435936', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '330'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\nint main(void)\n{\n\tint i,n,s[1001];\n\tdouble m,a;\n\twhile(1)\n\t{\n\t\tscanf(\"%d\",&n);\n\t\...
CDSS_586738
CDSS
#include<stdio.h> int main(void){ char c[10]; int len = 0,max = 0,n; scanf("%s",c); for(int i = 0;c[i]!= '\0';i++){ if(c[i] == 'A'||c[i] == 'T'||c[i] == 'G'||c[i] == 'C'){ len = 1; n = i + 1; while(c[n]!= '\0'&&(c[n] == 'A'||c[n] == 'T'||c[n] == 'G'||c[n] == 'C'))len++,n++; } ...
128
memory_bytes
{'s_id': 's140952754', 'p_id': 'p03086', 'u_id': 'u623759422', 'date': '1582158392', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '373'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n char c[10];\n int len = 0,max = 0,n;\n scanf(\"%s\",c);\n for(int i = 0;c[i]!= '\\0';i++){\...
CDSS_635227
CDSS
#include <stdio.h> int main(void) { int s = 0; int i; char t[4]; scanf("%c%c%c%c", &t[0], &t[1], &t[2], &t[3]); for(i=0; i<4; i++) { if(t[i] == '+') s += 1; else if(t[i] == '-') s -= 1; } printf("%d", s); }
128
memory_bytes
{'s_id': 's557908277', 'p_id': 'p03315', 'u_id': 'u907997483', 'date': '1529804232', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '223'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint s = 0;\n\tint i;\n\tchar t[4];\n\n\tscanf(\"%c%c%c%c\", &t[0], &t[1], &t[2], &t[3]);\n\...
CDSS_408435
CDSS
#include <stdio.h> long long a [100010]; int main (){ int n; scanf("%d",&n); for(int i=0;i<n;i++) scanf("%lld",&a[i]); int zero =0; for(int i=0;i<n;i++)if(a[i]==0) zero ++; if(zero >0){ // a[i] contains 0 printf("0\n"); return 0; } long long prod =1; for(int i=0;i<n;i++){ if(a[i ] <=1000000000000000000/ prod ){ // This...
2,484
memory_bytes
{'s_id': 's893006860', 'p_id': 'p02658', 'u_id': 'u324866200', 'date': '1591841942', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '23', 'memory': '2484', 'code_size': '442'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nlong long a [100010];\nint main (){\nint n;\nscanf(\"%d\",&n);\nfor(int i=0;i<n;i++) scanf(\"%lld\",&a[i]);\nint z...
CDSS_496939
CDSS
#include <stdio.h> int main(void){ int M,N; scanf("%d",&M); scanf("%d",&N); if(M==N){ printf("Yes\n"); } else { printf("No\n"); } return 0; }
128
memory_bytes
{'s_id': 's770458408', 'p_id': 'p02789', 'u_id': 'u872837870', 'date': '1579611025', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '172'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int M,N;\n \n scanf(\"%d\",&M);\n scanf(\"%d\",&N);\n \n if(M==N){\n printf(\"Yes\\n\")...
CDSS_72584
CDSS
I[]={0x01059a25,0x109b0906,0x04069807,0x07059e99,0x0706089f,0x92029d9c,0x11059093,0x01009103}; unsigned char*C="ABCDEFGHIJKLMNOPQRSTUVWXYZ .,-'?",*strchr(),*L="68443586484588538455886888366866",*B=I; b,l; main(c){ for(;c=getchar(),c+1;) if(c-10) for(c=strchr(C,c)-C,b=b<<(L[c]-48)|B[c],l+=L[c]-48;l>4;putchar(C[b>>...
0
memory_bytes
{'s_id': 's089266323', 'p_id': 'p00088', 'u_id': 'u399107199', 'date': '1287812381', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '400'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nI[]={0x01059a25,0x109b0906,0x04069807,0x07059e99,0x0706089f,0x92029d9c,0x11059093,0x01009103};\nunsigned char*C=\"ABCDEFGHIJKLMNOPQRST...
CDSS_418289
CDSS
#include <stdio.h> typedef struct { int key, id; } data; void merge_sort(data x[], int n) { static data y[3001] = {}; if (n <= 1) return; merge_sort(&(x[0]), n/2); merge_sort(&(x[n/2]), (n+1)/2); int i, p, q; for (i = 0, p = 0, q = n/2; i < n; i++) { if (p >= n/2) y[i] = x[q++]; else if (q >= n) y[i] = x...
98,216
memory_bytes
{'s_id': 's056013914', 'p_id': 'p02680', 'u_id': 'u943800443', 'date': '1597442168', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '204', 'memory': '98216', 'code_size': '3949'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\ntypedef struct {\n\tint key, id;\n} data;\n\nvoid merge_sort(data x[], int n)\n{\n\tstatic data y[3001] = {};\n\...
CDSS_368210
CDSS
#include <stdio.h> int main() { char a; char ch[120]; char c[120]; char b[120]; int i,j,k,l,m,n,o; m = 0; n = 0; i=0; l=0; while(1) { scanf("%c",&a); if(a == '\n') { break; } ch[i] = a; i=i+1; } j=0; while(1) { scanf("%c",&a); if(a == '\n') { break; } c[j] = a; j +=1; } /*??????????????§??\??????*/ for(k...
2,148
memory_bytes
{'s_id': 's367480638', 'p_id': 'p02418', 'u_id': 'u460438982', 'date': '1565000082', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2148', 'code_size': '910'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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() {\nchar a;\nchar ch[120];\nchar c[120];\nchar b[120];\nint i,j,k,l,m,n,o;\nm = 0;\nn = 0;\ni=0;\nl=0...
CDSS_645542
CDSS
#include<stdio.h> int main(){ int a,b; scanf("%d %d",&a,&b); if(a<b||a==b) printf("%d",a); if(a>b) printf("%d",a-1); return 0; }
128
memory_bytes
{'s_id': 's595754229', 'p_id': 'p03359', 'u_id': 'u969248530', 'date': '1531428053', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '149'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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<b||a==b) printf(\"%d\",a);\n if(a>b) printf(\"%...
CDSS_573113
CDSS
#include <stdio.h> #include <stdlib.h> int main(){ int N, K; scanf("%d%d", &N, &K); printf("%d\n", N - K + 1); return 0; }
128
memory_bytes
{'s_id': 's194483885', 'p_id': 'p03047', 'u_id': 'u208608367', 'date': '1557623757', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '127'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(){\n\tint N, K;\n\tscanf(\"%d%d\", &N, &K);\n\tprintf(\"%d\\n\", N - K + 1);\n\tre...
CDSS_410831
CDSS
#include<stdio.h> #include<math.h> #include<string.h> int main() { long long a,s,sum; double b; scanf("%lld %lf",&a,&b); s=b*100+0.1; sum=(a*s)/100; printf("%lld\n",sum); return 0; }
1,748
memory_bytes
{'s_id': 's392583159', 'p_id': 'p02659', 'u_id': 'u816631826', 'date': '1597440761', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1748', 'code_size': '193'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n#include<string.h>\nint main()\n{\n\tlong long a,s,sum;\n\tdouble b;\n\tscanf(\"%lld %lf\",&a,&b)...
CDSS_148463
CDSS
#include <stdio.h> #include <stdlib.h> #define LIMIT 100 void printArray(int[],int); int main(int argc, char** argv) { int count; int error = 0; int checkScan = scanf("%d", &count); if(checkScan != 1) return (EXIT_FAILURE); const int arraySize = count; int array[arraySize]; ...
2,136
memory_bytes
{'s_id': 's332337751', 'p_id': 'p02255', 'u_id': 'u094902127', 'date': '1529231564', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2136', 'code_size': '1112'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 LIMIT 100\n\nvoid printArray(int[],int);\n\nint main(int argc, char** argv) {\n ...
CDSS_280564
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); }
2,116
memory_bytes
{'s_id': 's471608389', 'p_id': 'p02392', 'u_id': 'u634714715', 'date': '1582496023', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2116', 'code_size': '184'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n int a,b,c;\n\n scanf(\"%d %d %d\", &a, &b, &c);\n\n if (a < b && b < c) {\n printf(\"Ye...
CDSS_471389
CDSS
#include <stdio.h> int main(void){ int n,m,ans=0; scanf("%d%d",&n,&m); printf("%d\n",(n*(n-1)/2)+(m*(m-1)/2)); return 0; }
1,732
memory_bytes
{'s_id': 's851536750', 'p_id': 'p02729', 'u_id': 'u967484343', 'date': '1599180802', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', '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(void){\n int n,m,ans=0;\n scanf(\"%d%d\",&n,&m);\n printf(\"%d\\n\",(n*(n-1)/2)+(m*(m-1)/2));\...
CDSS_173693
CDSS
#include<stdio.h> typedef struct{ char m; int n; int o; } data; void BubbleSort(data*,int); void SelectionSort(data*,int); int main(){ data C[36],A[36]; int N,i; scanf("%d",&N); for(i=0;i<N;i++) { scanf(" %c%d",&C[i].m,&C[i].n); C[i].o=i; } for(i=0;i<N;i++){ A[i]=C[i]; } Bu...
612
memory_bytes
{'s_id': 's432066793', 'p_id': 'p02261', 'u_id': 'u869690860', 'date': '1501409539', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '1279'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\ntypedef struct{\n char m;\n int n;\n int o;\n} data;\n\nvoid BubbleSort(data*,int);\nvoid SelectionSort(data*,in...
CDSS_515608
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> int max(int a, int b){ if(a > b){ return a; }else{ return b; } } int main(){ int N; int i; char S[N]; char dammy; scanf("%d", &N); //printf("%d\n", N); scanf("%c", &dammy); for(i=0;...
128
memory_bytes
{'s_id': 's846479907', 'p_id': 'p02860', 'u_id': 'u652071824', 'date': '1573958260', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '780'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#include <time.h>\n\nint max(int a, int b){\n if(a > b){\n retur...
CDSS_317344
CDSS
#include <stdio.h> #include <math.h> int main(void) { double r; double area, length; scanf("%lf", &r); area = r * r * M_PI; length = 2 * r * M_PI; printf("%.6f %.6f\n", area, length); return 0; }
2,048
memory_bytes
{'s_id': 's468324966', 'p_id': 'p02400', 'u_id': 'u576602003', 'date': '1561972366', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '201'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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) {\ndouble r;\ndouble area, length;\n\nscanf(\"%lf\", &r);\n\narea = r * r * M_...
CDSS_397087
CDSS
#define w 200001 i;x;y;p;main(n,m,j,u){ long int k,a[w],A[w],b[w],B[w]; for(scanf("%d%d%ld",&n,&m,&k);x<n;x++)scanf("%ld",&a[x]),A[x+1]=A[x]+a[x]; for(;y<m;y++)scanf("%ld",&b[y]),B[y+1]=B[y]+b[y]; u=m; for(;i<=n;i++){ if(A[i]>k)break; for(j=u;j>=0;j--){ if(A[i]+B[j]<=k){ ...
7,964
memory_bytes
{'s_id': 's811616708', 'p_id': 'p02623', 'u_id': 'u944651767', 'date': '1599332804', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '56', 'memory': '7964', 'code_size': '407'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define w 200001\ni;x;y;p;main(n,m,j,u){\n long int k,a[w],A[w],b[w],B[w];\n for(scanf(\"%d%d%ld\",&n,&m,&k);x<n;x++)scanf(\"%ld\",&...
CDSS_368183
CDSS
#include<stdio.h> #include<string.h> int main(void) { char s[200], p[100], t[100]; scanf("%s %s", s, p); strcpy(t, s); int l = strlen(p); t[l] = '\0'; strcat(s, t); if(strstr(s, p)) printf("Yes\n"); else printf("No\n"); return 0; }
2,092
memory_bytes
{'s_id': 's496092250', 'p_id': 'p02418', 'u_id': 'u383095076', 'date': '1573299189', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2092', 'code_size': '284'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nint main(void)\n{\n char s[200], p[100], t[100];\n scanf(\"%s %s\", s, p);\n strcpy(...
CDSS_294370
CDSS
#include <stdio.h> int main(void) { int x[10000], i = 0, cnt; while(1){ scanf("%d", &x[i]); if(x[i] == 0){ break; }else{ i++; cnt++; } } for(i = 1; i <= cnt; i++){ printf("Case %d: %d\n",i, x[i - 1]); } return 0; }
640
memory_bytes
{'s_id': 's684434415', 'p_id': 'p02396', 'u_id': 'u574287827', 'date': '1425349432', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '240'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 x[10000], i = 0, cnt;\n\twhile(1){\n\t\tscanf(\"%d\", &x[i]);\n\t\tif(x[i] == 0){\n\t\t\...
CDSS_86328
CDSS
#include <stdio.h> int main(void){ int i,l,a,x,b,r,num; for(i = 0; i <1000; i++){ scanf("%d %d", &a, &b); if(a == 0 && b == 0) break; if(a < b){ x = b; b = a; a = x; } num = 0; for(l = 0; b != 0; l++){ r = a%b; a = b; b = r; num++; } printf(...
1,972
memory_bytes
{'s_id': 's967778828', 'p_id': 'p00197', 'u_id': 'u473115569', 'date': '1524484824', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1972', 'code_size': '359'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,l,a,x,b,r,num;\n for(i = 0; i <1000; i++){\n scanf(\"%d %d\", &a, &b);\n if(a ...
CDSS_70839
CDSS
#include<stdio.h> #include<string.h> int main(){ int i; char s[1000]; while(scanf("%s",s)!=EOF){ for(i=0;i<strlen(s);i++){ if(s[i]=='@'){ while(s[i+1]!='0'){ printf("%c",s[i+2]); s[i+1]--; } i=i+2; ...
524
memory_bytes
{'s_id': 's431598390', 'p_id': 'p00077', 'u_id': 'u871149799', 'date': '1365509379', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '417'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\t\n\tint i;\n\tchar s[1000];\n\t\n while(scanf(\"%s\",s)!=EOF){\n for...
CDSS_39320
CDSS
#include <stdio.h> #include <string.h> void reverse(char *); int main(void) { char str[21]; scanf("%s", str); reverse(str); puts(str); return 0; } void reverse(char *str) { int i, j; char ch; for (i = 0, j = strlen(str) - 1; i < j; i++, j--) { ch = str[i]; str[i] = s...
1,980
memory_bytes
{'s_id': 's936547888', 'p_id': 'p00006', 'u_id': 'u045963793', 'date': '1532332383', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1980', 'code_size': '356'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\nvoid reverse(char *);\n\nint main(void)\n{\n char str[21];\n\n scanf(\"%s\", str);\n ...
CDSS_616459
CDSS
#include<stdio.h> #include<string.h> #include<ctype.h> #include<math.h> int main(void){ int n; scanf("%d",&n); printf("%d\n",(10-n/100)*100 + (10-n%10) + (10-(n/10)%10)*10); return 0; }
128
memory_bytes
{'s_id': 's791943155', 'p_id': 'p03242', 'u_id': 'u607737438', 'date': '1538269873', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', '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>\n#include<string.h>\n#include<ctype.h>\n#include<math.h>\n\nint main(void){\n int n;\n scanf(\"%d\",&n);\n\n ...
CDSS_147314
CDSS
#include<stdio.h> /*配列の要素を順番に出力*/ void supertrace(int A[],int N){ int i; for(i=0;i<N;i++){ if(i>0)printf(" "); printf("%d",A[i]); } printf("\n"); } /*挿入ソート(0オリジン配列)*/ void insertionSort(int A[],int N){ int j,i,v; for(i=1;i<N;i++){ v=A[i]; j=i-1; while(j...
2,044
memory_bytes
{'s_id': 's526406889', 'p_id': 'p02255', 'u_id': 'u344125944', 'date': '1527826953', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '679'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include<stdio.h>\n\n/*配列の要素を順番に出力*/\nvoid supertrace(int A[],int N){\n int i;\n for(i=0;i<N;i++){\n if(i>0)printf(\" \...
CDSS_681629
CDSS
#include<stdio.h> int main() { int a, b, c; scanf("%d %d %d", &a, &b, &c); if(a==b) { printf("%d\n", c); } else if(a==c) { printf("%d\n", b); } else if(b==c) { printf("%d\n", a); } return 0; }
128
memory_bytes
{'s_id': 's802154359', 'p_id': 'p03573', 'u_id': 'u772310613', 'date': '1524646816', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '211'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint a, b, c;\n\tscanf(\"%d %d %d\", &a, &b, &c);\n\tif(a==b)\n\t{\n\t\tprintf(\"%d\\n\", c);\n\t}\...
CDSS_196530
CDSS
// AOJ ALDS1_4_C Dictionary // 2018.4.27 bal4u #include <stdio.h> // バッファを経ずstdinから数値を得る #define gc() getchar_unlocked() //#define gc() getchar() int in() { int n = 0, c = gc(); do n = 10*n + (c & 0xf), c = gc(); while (c >= '0'); return n; } char tr['T'+1]; char f[268435460]; int trans() { int c, k, w; w = k...
17,944
memory_bytes
{'s_id': 's754532311', 'p_id': 'p02269', 'u_id': 'u847467233', 'date': '1524804247', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '17944', 'code_size': '701'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// AOJ ALDS1_4_C Dictionary\n// 2018.4.27 bal4u\n\n#include <stdio.h>\n\n// バッファを経ずstdinから数値を得る\n#define gc() getchar_unlocked()\n//#d...
CDSS_298538
CDSS
#include<stdio.h> int main(){ int i = 0,j = 0; /*do{ scanf("%d",&i); printf("Case i:%d\n",i); } while(i != 0 );*/ while(1){ for(j = 1;j <=10000;j++){ scanf("%d", &i); if (i == 0) goto saigo; printf("Case %d: %d\n",j,i); } } saigo: return 0; } ...
2,064
memory_bytes
{'s_id': 's119869185', 'p_id': 'p02396', 'u_id': 'u679210025', 'date': '1528881745', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', '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(){\n\n int i = 0,j = 0;\n\n /*do{\n scanf(\"%d\",&i);\n\n printf(\"Case i:%d\\n\",i);\n }\n ...
CDSS_604523
CDSS
#include <stdio.h> #include <stdlib.h> #define int long long #define inf (int)(1e18) int min(int a, int b){ return a <= b ? a : b; } signed main(){ int N, i, j, k; scanf("%lld", &N); int *a = (int *)malloc(sizeof(int) * N); for(i = 0; i < N; i++){ scanf("%lld", &a[i]); } int *s = (int *)malloc(sizeof(int) * ...
1,408
memory_bytes
{'s_id': 's364287898', 'p_id': 'p03173', 'u_id': 'u208608367', 'date': '1548980473', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '24', 'memory': '1408', 'code_size': '918'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 int long long\n#define inf (int)(1e18)\n\nint min(int a, int b){\n\treturn a <= b ? a...
CDSS_489036
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> int f(const void *a,const void *b){ return strcmp((char*)a,(char*)b); } int main(){ int N; scanf("%d\n",&N); char S[200002][12]; for(int i=0;i<N;i++) scanf("%s\n",S[i]); qsort((void*)S,N,sizeof(S[0]),f); int max=1; int c=1; for(int i=0;i...
6,272
memory_bytes
{'s_id': 's652497731', 'p_id': 'p02773', 'u_id': 'u111785038', 'date': '1597397193', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '84', 'memory': '6272', 'code_size': '515'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 f(const void *a,const void *b){\n return strcmp((char*)a,(char*)b...
CDSS_395063
CDSS
#include <stdio.h> int main() { int a; scanf("%d",&a); printf("%d",a+a*a+a*a*a); }
2,140
memory_bytes
{'s_id': 's569256964', 'p_id': 'p02621', 'u_id': 'u651975168', 'date': '1593310204', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '2140', 'code_size': '84'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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;\nscanf(\"%d\",&a);\nprintf(\"%d\",a+a*a+a*a*a);\n}\n\nPredict its memory footprint.", "...
CDSS_334473
CDSS
#include <stdio.h> int main(void){ int h[10000],w[10000],hh=-1,ww=-1,i=0,j,k,l; while (!(hh==0 && ww==0)){ scanf("%d %d",&hh,&ww); h[i]=hh,w[i]=ww,i++; } for(j=0;j<i-1;j++){ for(l=0;l<h[j];l++){ for(k=0;k<w[j];k++){ if (k==0 || k==w[j]-1 || l==0 || l=...
2,024
memory_bytes
{'s_id': 's640931185', 'p_id': 'p02404', 'u_id': 'u136916346', 'date': '1526567317', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2024', 'code_size': '471'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 h[10000],w[10000],hh=-1,ww=-1,i=0,j,k,l;\n while (!(hh==0 && ww==0)){\n scanf...
CDSS_257933
CDSS
#include <stdio.h> int main(void) { int a; int b; scanf("%d %d", &a, &b); printf("%d %d\n", a * b, 2 * a + 2 * b); return (0); }
1,960
memory_bytes
{'s_id': 's155354684', 'p_id': 'p02389', 'u_id': 'u416000243', 'date': '1580659482', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1960', '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>\n\nint main(void)\n{\n int a;\n int b;\n \n scanf(\"%d %d\", &a, &b);\n printf(\"%d %d\\n\", a * b,...