identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_533704
CDSS
#include<stdio.h> int main() { int A, B; scanf("%d %d", &A, &B); int sumT = 1; int count = 0; while (sumT < B) { sumT = sumT - 1 + A; count++; } // 出力 printf("%d\n", count); return 0; }
128
memory_bytes
{'s_id': 's407389310', 'p_id': 'p02922', 'u_id': 'u531344340', 'date': '1567365391', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '208'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n\tint A, B;\n\tscanf(\"%d %d\", &A, &B);\n\n\tint sumT = 1;\n\tint count = 0;\n\twhile (sumT < B)\...
CDSS_567127
CDSS
// AtCoder ABC128: B - Guidebook // 2019.9.8 bal4u #include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct { int i, p; char *s; } T; T t[105]; int cmp(const void *u, const void *v) { int t; if (t = strcmp(((T *)u)->s, ((T *)v)->s)) return t; return ((T *)v)->p - ((T *)u)->p; } char S[105][15];...
128
memory_bytes
{'s_id': 's791171335', 'p_id': 'p03030', 'u_id': 'u759237395', 'date': '1567974742', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '551'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// AtCoder ABC128: B - Guidebook\n// 2019.9.8 bal4u\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\ntypedef struct ...
CDSS_489316
CDSS
#include <string.h> #include <stdio.h> #include <stdlib.h> //smart phone coding >< int main(void){ int n; scanf("%d",&n); char str[n][11]; for(int i = 0;i < n;i++)scanf("%s",str[i]); qsort(str,n,11,strcmp); unsigned count_array[200000] = {}; for(int i = 0; i < n - 1;i++) if(!strcmp(str[i],str[i + 1])){ ...
4,884
memory_bytes
{'s_id': 's033892954', 'p_id': 'p02773', 'u_id': 'u491343140', 'date': '1581924412', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '101', 'memory': '4884', 'code_size': '619'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <string.h>\n#include <stdio.h>\n#include <stdlib.h>\n//smart phone coding ><\nint main(void){\n\tint n;\n\tscanf(\"%d\",&n);\...
CDSS_680687
CDSS
#include <stdbool.h> #include <stdio.h> #include <string.h> int main() { char s[51], t[51]; scanf("%s%s", s, t); int lenS = strlen(s); int lenT = strlen(t); bool isOK; bool isExsit = false; for (int i = lenS - lenT; i >= 0; i--) { isOK = true; for (int j = 0; j < lenT; j++) { if (s[i + j] != t[j] && s[i +...
128
memory_bytes
{'s_id': 's134067010', 'p_id': 'p03565', 'u_id': 'u030504180', 'date': '1586542627', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '635'}
[ { "content": "Your task is to predict the memory footprint (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[51], t[51];\n\tscanf(\"%s%s\", s, t);\n\tint len...
CDSS_371234
CDSS
#include<stdio.h> int main(void) { int n, i, j; int t = 0, h = 0; char at[100], ah[100]; scanf("%d", &n); for(i = 0; i < n; i++) { scanf("%s %s", at, ah); for(j = 0; at[j] != '\0'; j++) { if(at[j] > ah[j]) { t+=3; break; } else if(at[j] < ah[j]) { h+=3; break; } else if(a...
596
memory_bytes
{'s_id': 's140251624', 'p_id': 'p02421', 'u_id': 'u728246856', 'date': '1495368012', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '532'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void) {\n\tint n, i, j;\n\tint t = 0, h = 0;\n\tchar at[100], ah[100];\n\t\n\t\n\tscanf(\"%d\", &n);\n\t...
CDSS_386085
CDSS
#include <stdlib.h> int main(){ int N; scanf("%d",&N); if(N>29) printf("Yes"); else printf("No"); return 0; }
1,728
memory_bytes
{'s_id': 's874662474', 'p_id': 'p02594', 'u_id': 'u395734151', 'date': '1596416546', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1728', 'code_size': '120'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdlib.h>\nint main(){\n int N;\n scanf(\"%d\",&N);\n if(N>29) printf(\"Yes\");\n else printf(\"No\");\n return 0;\n}\n...
CDSS_124834
CDSS
#include <stdio.h> int main(void) { int n,m; while(scanf("%d%d",&n,&m)==2 && (n|m)!=0) { int i; int nowa; int mina,mintime; int tantou; mina=10000;mintime=10000; tantou=n-1; for(i=0;i<n;i++) { int sinsei; scanf("%d",&nowa); sinsei=mintime; if(mintime%nowa!=0)sinsei+=nowa-mintime%nowa; if...
600
memory_bytes
{'s_id': 's915779582', 'p_id': 'p01399', 'u_id': 'u543521645', 'date': '1372322489', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '716'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\twhile(scanf(\"%d%d\",&n,&m)==2 && (n|m)!=0) {\n\t\tint i;\n\t\tint nowa;\n\t\tin...
CDSS_702998
CDSS
#include<stdio.h> int main() { int A,B; scanf("%d%d",&A,&B); if(A+B >= 10) printf("error\n"); else printf("%d\n",A+B); return 0; }
128
memory_bytes
{'s_id': 's812710031', 'p_id': 'p03697', 'u_id': 'u032624523', 'date': '1496538513', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '166'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int A,B;\n scanf(\"%d%d\",&A,&B);\n if(A+B >= 10)\n printf(\"error\\n\");\n else\n...
CDSS_490132
CDSS
#include<stdio.h> #include<string.h> int main(void){ char s[10],t[10],u[10]; int a,b; scanf("%s %s",s,t); scanf("%d %d",&a,&b); scanf("%s",u); if(strcmp(s,u)==0){ printf("%d %d",a-1,b); } else{ printf("%d %d",a,b-1); } return 0; }
128
memory_bytes
{'s_id': 's156486102', 'p_id': 'p02777', 'u_id': 'u343635596', 'date': '1581283425', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '286'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main(void){\n char s[10],t[10],u[10];\n int a,b;\n scanf(\"%s %s\",s,t);\n scan...
CDSS_604378
CDSS
#include<stdio.h> int main() { int n,k; scanf("%d %d", &n, &k); int a[n]; int i, j; for( i=0; i<n; i++) { scanf("%d", &a[i] ); } int dp[k+1]; dp[0]=0; for( i=1; i<=k; i++) { int status=0; for( j=0; j<n; j++) { int p = i - a[j]; if( p>=0 && dp[p]==0) { status=1; break; } } dp[i]=s...
512
memory_bytes
{'s_id': 's810562314', 'p_id': 'p03170', 'u_id': 'u277807376', 'date': '1585698549', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '512', 'code_size': '406'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 n,k;\n\tscanf(\"%d %d\", &n, &k);\n\tint a[n];\n\tint i, j;\n\tfor( i=0; i<n; i++)\n\t{\n\t\tsca...
CDSS_30015
CDSS
#include <stdio.h> int main(){ int N=0, data[3] ,c,i; scanf("%d",&N); char *judge[N]; for (i=0; i<N; i++) { scanf("%d %d %d",&data[0],&data[1],&data[2]); if (data[0]<data[1]) { c=data[1]; data[1]=data[0]; data[0]=c; } if (data[0]<data[...
588
memory_bytes
{'s_id': 's935770286', 'p_id': 'p00003', 'u_id': 'u626996572', 'date': '1483693380', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '588', 'code_size': '646'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int N=0, data[3] ,c,i;\n scanf(\"%d\",&N);\n char *judge[N];\n for (i=0; i<N; i++) {\n...
CDSS_78967
CDSS
// AOJ 0120: Patisserie // 2017.9.28 bal4u@uu #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <math.h> #define EQ(a,b) (fabs(a-b)<= 1e-7) int r[13]; char buf[202], *p; double d[13][13]; // ???????????±???????????????????°´????????¢ double dp[13][4100]; // ?°´????????¢, ?...
1,992
memory_bytes
{'s_id': 's390103180', 'p_id': 'p00120', 'u_id': 'u847467233', 'date': '1506566167', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '1992', 'code_size': '1464'}
[ { "content": "Your task is to predict the memory 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 0120: Patisserie\n// 2017.9.28 bal4u@uu\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <ctype.h>\n#i...
CDSS_47702
CDSS
#include <stdio.h> int main(void) { int s, d, i; while (scanf("%d", &d) != EOF){ s = 0; i = 1; while (i * d < 600){ s += (i * d) * (i * d) * d; i++; } printf("%d\n", s); } return (0); }
592
memory_bytes
{'s_id': 's243913640', 'p_id': 'p00014', 'u_id': 'u334031393', 'date': '1405471047', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '213'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, d, i;\n\t\n\twhile (scanf(\"%d\", &d) != EOF){\n\t\ts = 0;\n\t\ti = 1;\n\t\twhile (i...
CDSS_667646
CDSS
#include<stdio.h> #define MAX 501 int main(void) { int n,c[MAX],s[MAX],f[MAX],i,j,ans=0,r; scanf("%d",&n); for(i=0;i<n-1;i++) { scanf("%d %d %d",&c[i],&s[i],&f[i]); } for(i=0;i<n-1;i++) { ans = 0; for(j=i;j<n-1;j++) { if(ans <= s[j]) { ans = s[j] + c[j]; } ...
128
memory_bytes
{'s_id': 's294569870', 'p_id': 'p03475', 'u_id': 'u610509294', 'date': '1522808838', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '517'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 501\n\nint main(void)\n{\n int n,c[MAX],s[MAX],f[MAX],i,j,ans=0,r;\n scanf(\"%d\",&n);\n for(i=0;i<n...
CDSS_350259
CDSS
#include <stdio.h> int main(int argc, char *argv[]) { int num, cnt = 0, n = 0; // char c, dummy; scanf("%d", &n); // scanf("%c", &dummy); int A[10][3], B[10][3], C[10][3], D[10][3]; for (int i = 0; i < 10; i++) { for (int j = 0; j < 3; j++) { A[i][j] = 0; B[i][j] = 0; C[i][j] = 0; D[i][j] = 0;...
2,100
memory_bytes
{'s_id': 's323273764', 'p_id': 'p02409', 'u_id': 'u161812697', 'date': '1557806699', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '1230'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(int argc, char *argv[])\n{\n\tint num, cnt = 0, n = 0;\n\t// char c, dummy;\n\n\tscanf(\"%d\", &n);\n\t...
CDSS_703020
CDSS
#include <stdio.h> int main(int argc, char *argv[]) { int m,n; scanf("%d%d",&n,&m); if(m+n>=10)printf("error"); else printf("%d",n+m); return 0; }
128
memory_bytes
{'s_id': 's908589087', 'p_id': 'p03697', 'u_id': 'u995405136', 'date': '1496538172', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '153'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(int argc, char *argv[])\n{ int m,n;\n\tscanf(\"%d%d\",&n,&m);\n\tif(m+n>=10)printf(\"error\");\n\telse ...
CDSS_223399
CDSS
#include <stdio.h> #include <stdlib.h> #define NIL NULL struct node{ struct node *p; struct node *r; struct node *l; int key; }; typedef struct node * binary; binary root; void insert(int k){ binary y=NIL; binary x=root; binary z; z=malloc(sizeof(struct node)); z->key=k; z->l=NIL; z->r=NIL; ...
19,364
memory_bytes
{'s_id': 's746180194', 'p_id': 'p02284', 'u_id': 'u610059172', 'date': '1498089710', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '370', 'memory': '19364', 'code_size': '1307'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 NIL NULL\n\nstruct node{\n struct node *p;\n struct node *r;\n struct node *l;\n ...
CDSS_389956
CDSS
int N; int f[10001]; int main() { scanf("%d",&N); for(int x=1;x<=100;x++)for(int y=1;y<=100;y++)for(int z=1;z<=100;z++) { int t=x*x+y*y+z*z+x*y+y*z+z*x; if(t<=N)f[t]++; } for(int n=1;n<=N;n++)printf("%d\n",f[n]); }
1,700
memory_bytes
{'s_id': 's844571363', 'p_id': 'p02608', 'u_id': 'u657913472', 'date': '1594942487', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '1700', '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:\nint N;\nint f[10001];\nint main()\n{\n\tscanf(\"%d\",&N);\n\tfor(int x=1;x<=100;x++)for(int y=1;y<=100;y++)for(int z=1;z<=100;z++)\n\t...
CDSS_70064
CDSS
#include <stdio.h> int main(void) { int h, m, s, rest; while (1){ scanf("%d%d%d", &h, &m, &s); if (h == -1 && m == -1 && s == -1){ break; } rest = 120 * 60 - (h * 3600 + m * 60 + s); printf("%02d:%02d:%02d\n", rest / 3600, rest % 3600 / 60, rest % 60); rest *= 3; printf("%02d:%02d:%...
612
memory_bytes
{'s_id': 's201788616', 'p_id': 'p00074', 'u_id': 'u334031393', 'date': '1409230687', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '390'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint h, m, s, rest;\n\t\n\twhile (1){\n\t\tscanf(\"%d%d%d\", &h, &m, &s);\n\t\t\n\t\tif (h =...
CDSS_566860
CDSS
#include<stdio.h> int main(void){ int a, p; int x; scanf("%d", &a); scanf("%d", &p); x = (3*a + p)/2; printf("%d\n", x); return 0; }
128
memory_bytes
{'s_id': 's382107542', 'p_id': 'p03029', 'u_id': 'u734579210', 'date': '1558919608', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '140'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n\tint a, p;\n\tint x;\n\tscanf(\"%d\", &a);\n\tscanf(\"%d\", &p);\n\tx = (3*a + p)/2;\n\tprintf(\"...
CDSS_159466
CDSS
#include<stdio.h> #include<math.h> int sosuuhannbetu(int); int main(){ int Ntw,Atw,a,i,count=0; scanf("%d",&Ntw); for(i=0;i<Ntw;i++){ scanf("%d",&Atw); a=sosuuhannbetu(Atw); if(a==1)count++; } printf("%d\n",count); return 0; } int sosuuhannbetu(int x){ if(x==2)retur...
2,144
memory_bytes
{'s_id': 's443493063', 'p_id': 'p02257', 'u_id': 'u448169046', 'date': '1578057548', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '455'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 sosuuhannbetu(int);\n\nint main(){\n int Ntw,Atw,a,i,count=0;\n scanf(\"%d\",&Ntw);\n ...
CDSS_124119
CDSS
#include <stdio.h> int main(void) { int num,floor[100][100][3],i,j,k,jump[2],count; while (1) { scanf("%d",&num); if (num==0) break; for (i=0; i<num; i++) { for (j=0; j<num; j++) { scanf("%d %d",&floor[j][i][0],&floor[j][i][1]); floor[j][i][2]=...
728
memory_bytes
{'s_id': 's641014899', 'p_id': 'p01334', 'u_id': 'u408260374', 'date': '1394064391', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '728', 'code_size': '1301'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 num,floor[100][100][3],i,j,k,jump[2],count;\n while (1) {\n scanf(\"%d\",&num)...
CDSS_684512
CDSS
#include <limits.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> // 内部定数 #define D_WATER_MAX 30 // 最大水種類数 #define D_SUGAR_MAX 1500 // 最大砂糖種類数 #define D_ON 1 // 汎用フラグ - ON #define D_OFF 0 // 汎用フラグ - OFF // 内部変数 static int si1W[D...
128
memory_bytes
{'s_id': 's405616181', 'p_id': 'p03599', 'u_id': 'u088333128', 'date': '1532633113', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '3472'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <limits.h>\n#include <math.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <time.h>\n\n// 内部定数\n#d...
CDSS_521358
CDSS
#include <stdio.h> #include <stdlib.h> int main () { int N; scanf("%d", &N); int *d = malloc((1+N) * sizeof(int)); for (int i = 1; i <= N; i++) { scanf("%d", &d[i]); } int ans = 0; for (int i = 1; i <= N - 1; i++) { for (int j = i + 1; j <= N; j++) { ans += (d[i]...
128
memory_bytes
{'s_id': 's601563506', 'p_id': 'p02886', 'u_id': 'u619677540', 'date': '1590878201', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '388'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main () {\n int N;\n scanf(\"%d\", &N);\n int *d = malloc((1+N) * sizeof(int))...
CDSS_711703
CDSS
#include <stdio.h> long long a[100010]={0}; long long used[100010]={0}; int main(void) { int n, i, ans = 0; scanf("%d", &n); for(i = 0; i < n; i++){ scanf("%lld", &a[i]); } for(i = 1; i < n; i++){ if(a[i] > a[i-1]){ while(a[i] >= a[i-1] && i < n){ used[i] = 1; used[i-1] = 1; i++; } ...
1,664
memory_bytes
{'s_id': 's770678293', 'p_id': 'p03745', 'u_id': 'u818983162', 'date': '1492309732', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '1664', 'code_size': '533'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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]={0};\nlong long used[100010]={0};\nint main(void)\n{\n int n, i, ans = 0;\n scanf(\"%d\", &n...
CDSS_547217
CDSS
#include <stdio.h> #include <stdint.h> #include <inttypes.h> #include <stdlib.h> typedef unsigned long long int uint64; typedef long long int int64; #define MIN(a,b) ((a)<(b)?(a):(b)) #define MAX(a,b) ((a)>(b)?(a):(b)) void get_N (int64 *n) { int cnt; cnt = scanf("%lld", n); return; } int main()...
128
memory_bytes
{'s_id': 's927870320', 'p_id': 'p02969', 'u_id': 'u917452040', 'date': '1563671252', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '412'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdint.h>\n#include <inttypes.h>\n#include <stdlib.h>\n\ntypedef unsigned long long int uint64;\ntypedef...
CDSS_626903
CDSS
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <string.h> #include <limits.h> #define min(x, y) (x < y ? x : y) #define ll long long int #define Lff long double int main() { int N , K ; scanf("%d %d",&N,&K); printf("%d",N%K != 0); return 0; }
128
memory_bytes
{'s_id': 's211112189', 'p_id': 'p03284', 'u_id': 'u959524814', 'date': '1590988912', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '273'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdlib.h>\n#include <stdio.h>\n#include <math.h>\n#include <string.h>\n#include <limits.h>\n#define min(x, y) (x < y ? x : y...
CDSS_199399
CDSS
#include <stdio.h> int solve(int,int); int A[2000],n; int main(){ int i,m; scanf("%d",&n); for(i=0;i<n;i++)scanf("%d",&A[i]); scanf("%d",&m); int M[m]; for(i=0;i<m;i++){ scanf("%d",&M[i]); if(solve(0,M[i]))printf("yes\n"); else printf("no\n"); } return 0; } int solve(int i,int m){ i...
580
memory_bytes
{'s_id': 's236306100', 'p_id': 'p02271', 'u_id': 'u753809902', 'date': '1463020290', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '650', 'memory': '580', 'code_size': '437'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 solve(int,int);\n\nint A[2000],n;\n\nint main(){\n int i,m;\n\n scanf(\"%d\",&n);\n for(i=0;i<n;i++)scanf...
CDSS_540448
CDSS
/* Coached by rainboy */ #include <stdio.h> #include <stdlib.h> #include <string.h> #define N 100000 int compare_c(const void *a, const void *b) { char ca = *(char *) a; char cb = *(char *) b; return ca - cb; } int compare_s(const void *a, const void *b) { char *s = *(char **) a; char *t = *(char **) b; retu...
4,860
memory_bytes
{'s_id': 's989818082', 'p_id': 'p02947', 'u_id': 'u000120715', 'date': '1565533033', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '78', 'memory': '4860', 'code_size': '772'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* Coached by rainboy */\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#define N 100000\n\nint compare_c(const void...
CDSS_717492
CDSS
#include <stdio.h> #include<math.h> int main() { long long int a=0,b=0,w=0,i,str1=0,str2=0,flag; scanf("%lld",&w); flag=1; for(i=1;i<=w;i++) { flag=(flag*i)%1000000007; } printf("%lld",flag); return 0; }
128
memory_bytes
{'s_id': 's988168637', 'p_id': 'p03796', 'u_id': 'u513506770', 'date': '1540436653', '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>\n#include<math.h>\nint main()\n{\nlong long int a=0,b=0,w=0,i,str1=0,str2=0,flag;\n\nscanf(\"%lld\",&w);\nflag=1;...
CDSS_581123
CDSS
#include<stdio.h> int main(){ int n,a,now = -1,count = 0; scanf("%d",&n); for(;n > 0;n--){ scanf("%d",&a); if(now <= a){count++;now = a;} } printf("%d\n",count); return 0; }
128
memory_bytes
{'s_id': 's584184551', 'p_id': 'p03072', 'u_id': 'u209927535', 'date': '1555182429', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '195'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int n,a,now = -1,count = 0;\n scanf(\"%d\",&n);\n for(;n > 0;n--){\n scanf(\"%d\",&a);\n i...
CDSS_557600
CDSS
#include <stdlib.h> #include <stdio.h> int main(void) { int N, L, allpie; scanf("%d %d", &N, &L); allpie = N*(N+1)/2+N*(L-1); if (1-L < 1) { printf("%d\n", allpie - L); } else if (1-L > N) { printf("%d\n", allpie - (L + N -1)); } else { printf("%d\n", allpie); } ...
128
memory_bytes
{'s_id': 's606506402', 'p_id': 'p02994', 'u_id': 'u263754119', 'date': '1561253911', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '335'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdlib.h>\n#include <stdio.h>\n\n\nint main(void) {\n int N, L, allpie;\n scanf(\"%d %d\", &N, &L);\n\n allpie = N*...
CDSS_584377
CDSS
#include <stdio.h> #include <stdlib.h>//random,NULL #include <string.h> #include <time.h> #include <unistd.h>//sleep() #include <math.h> #include <stdbool.h> #define rep(i,n) for(int i=0; i<((int)n); i++) #define REP(i,n) for(int i=0; i<=((int)n); i++) #define srep(i,a,n) for(int i=a; i<((int)n); i++) #define SREP(i,a...
128
memory_bytes
{'s_id': 's710465643', 'p_id': 'p03077', 'u_id': 'u885352715', 'date': '1554626508', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '987'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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>//random,NULL\n#include <string.h>\n#include <time.h>\n#include <unistd.h>//sleep()\n#include <...
CDSS_369384
CDSS
#include <stdio.h> #include <string.h> #include <ctype.h> int main(){ char W[11], T[1001]; int i, cnt=0; scanf("%s",W); while(1){ scanf("%s",T); if(strcmp(T,"END_OF_TEXT")==0) break; for(i=0; i<strlen(T);i++){ if(isupper(T[i])){ T[i] = tolower(T[i]); } } if(strcmp(W,T) == 0) { cnt++...
1,772
memory_bytes
{'s_id': 's110534044', 'p_id': 'p02419', 'u_id': 'u364852384', 'date': '1512020282', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1772', 'code_size': '365'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <ctype.h>\nint main(){\n\tchar W[11], T[1001];\n\tint i, cnt=0;\n\tscanf(\"%s\",W);\...
CDSS_141691
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <limits.h> #include <time.h> #define BUF_SIZE 6000000 #define GRAPH_SIZE 10000 #define COST_MAX 100000 struct list { struct list *next; int dst; int cost; }; struct list *create_graph(int num) { struct list *graph = malloc(sizeof(struct list...
17,552
memory_bytes
{'s_id': 's391324717', 'p_id': 'p02243', 'u_id': 'u933484853', 'date': '1573222392', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '17552', 'code_size': '3262'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <limits.h>\n#include <time.h>\n\n#define BUF_SIZE 6000000\n#def...
CDSS_103899
CDSS
#include <stdio.h> int main(void) { int m[1024],d[1024],l,t,n,i; while(scanf("%d %d",&l,&t) , l != 0){ n = 1; for(i = 1;i <= l;i++){ scanf("%d",&m[i]); } for(i = 1;i <= t;i++){ scanf("%d",&d[i]); } for(i = 1;i <= t;i++){ n+=d[i]; if(n >= l){ printf("%d\n",i); break; } else{ ...
608
memory_bytes
{'s_id': 's355152672', 'p_id': 'p00467', 'u_id': 'u444407884', 'date': '1464683176', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '406'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 m[1024],d[1024],l,t,n,i;\n\twhile(scanf(\"%d %d\",&l,&t) , l != 0){\n\t\tn = 1;\n\t\tfor...
CDSS_222195
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; void ins(int); void ino(Node); void pre(Node); int main(){ int k,i,x; char c[20]; scanf("%d",&k); for(i = 0 ; i < k ; i...
24,040
memory_bytes
{'s_id': 's821129583', 'p_id': 'p02283', 'u_id': 'u093889642', 'date': '1403752303', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '400', 'memory': '24040', 'code_size': '1179'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nstruct node{\n struct node *right;\n struct node *left;\n struct node *parent;\n int key;...
CDSS_148572
CDSS
#include<stdio.h> int main() { int a[1000], n, i, j, k, v; scanf("%d", &n); for(k = 0; k < n; k++) { scanf("%d",&a[k]); } for(k = 0; k < n-1; k++) { printf("%d ",a[k]); } printf("%d\n", a[n-1]); for(i = 1; i < n; i++) { v = a[i]; j = i - 1; while (j >= 0 && ...
2,136
memory_bytes
{'s_id': 's317117860', 'p_id': 'p02255', 'u_id': 'u520284725', 'date': '1529312554', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2136', 'code_size': '488'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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[1000], n, i, j, k, v;\n scanf(\"%d\", &n);\n for(k = 0; k < n; k++)\n {\n scanf(\"...
CDSS_334626
CDSS
#include <stdio.h> int main(void) { int H, W,i,j; while(scanf("%d %d",&H,&W) != EOF){ if(H == 0 && W == 0){ break; } for (i = 1; i <= H; i++) { for (j = 1; j <= W; j++) { if(i>1 && i<H && j>1 && j<W){ printf("."); } el...
1,984
memory_bytes
{'s_id': 's134794749', 'p_id': 'p02404', 'u_id': 'u833357551', 'date': '1528795626', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1984', 'code_size': '466'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h> \n\nint main(void) \n{ \n\n int H, W,i,j; \n while(scanf(\"%d %d\",&H,&W) != EOF){\n if(H == 0 && W == 0){\...
CDSS_732419
CDSS
#include <stdio.h> int main(void) { int a, b, c; scanf("%d %d %d", &a, &b, &c); if (a == b + c || b == a + c || c == a + b) printf("Yes\n"); else printf("No\n"); return 0; }
128
memory_bytes
{'s_id': 's812433256', 'p_id': 'p03943', 'u_id': 'u184659204', 'date': '1478484195', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '194'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n int a, b, c;\n scanf(\"%d %d %d\", &a, &b, &c);\n\n if (a == b + c || b == a + c || c == a...
CDSS_197871
CDSS
#include <stdio.h> #include <string.h> #define M 1046257 #define L 14 char H[M][L]; // 文字から数値に変換 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; return 0; } // 文字列から数値へ変換して key を生成する long long getKey(char str...
16,052
memory_bytes
{'s_id': 's432002688', 'p_id': 'p02269', 'u_id': 'u183183774', 'date': '1564103448', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '190', 'memory': '16052', 'code_size': '1493'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\n#define M 1046257\n#define L 14\n\nchar H[M][L];\n\n// 文字から数値に変換\nint getChar(char ch) {\n ...
CDSS_288133
CDSS
#include <stdio.h> void cmp(int *a, int *b) { int s; if (*a >*b) { s = *a; *a = *b; *b = s; } return; } int main(void) { int a, b, c; scanf("%d%d%d", &a, &b, &c); cmp(&a, &b); cmp(&b, &c); cmp(&a, &b); printf("%d %d %d\n", a, b, c); return 0; }
2,112
memory_bytes
{'s_id': 's906308687', 'p_id': 'p02393', 'u_id': 'u621641560', 'date': '1585018052', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '264'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 cmp(int *a, int *b) {\n\tint s;\n\tif (*a >*b) {\n\t\ts = *a;\n\t\t*a = *b;\n\t\t*b = s;\n\t}\n\treturn;\n}...
CDSS_117813
CDSS
#include <stdio.h> #include <stdlib.h> #define repl(i,a,b) for(i=(int)(a);i<(int)(b);i++) #define rep(i,n) repl(i,0,n) #define min(x,y) x<y?x:y #define minch(x,y) x=min(x,y) #define INF 999999999 int n,m,c,s,g; int d[22][111][111]; int cost[22][22222]; int dc[111][111]; int i,j,k,cmp,dd; int main(){ //cin.sync_wi...
3,364
memory_bytes
{'s_id': 's384463420', 'p_id': 'p00763', 'u_id': 'u629590130', 'date': '1477550478', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '140', 'memory': '3364', 'code_size': '1286'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 repl(i,a,b) for(i=(int)(a);i<(int)(b);i++)\n#define rep(i,n) repl(i,0,n)\n\n#define...
CDSS_518822
CDSS
#include <stdio.h> int main(void){ int n, k=1; scanf("%d", &n); for(int i=1; i<10; i++){ for(int j=1; j<10; j++){ if(i*j==n){ k=0; break; } } } if(k) printf("No\n"); else printf("Yes\n"); return 0; }
128
memory_bytes
{'s_id': 's175311112', 'p_id': 'p02880', 'u_id': 'u319612498', 'date': '1572992645', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '256'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int n, k=1;\n \n scanf(\"%d\", &n);\n for(int i=1; i<10; i++){\n for(int j=1; j<10; j++...
CDSS_271963
CDSS
#include <stdio.h> int main(void){ int a,b; scanf("%d",&a); scanf("%d",&b); if(a<b) puts("a < b"); else if(a>b) puts("a > b"); else puts("a == b"); return 0; }
1,756
memory_bytes
{'s_id': 's665466661', 'p_id': 'p02391', 'u_id': 'u450035278', 'date': '1512520668', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1756', 'code_size': '215'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(void){\n int a,b;\n scanf(\"%d\",&a);\n scanf(\"%d\",&b);\n if(a<b)\n puts(\"a < b\...
CDSS_315284
CDSS
#include <stdio.h> int main(int argc, const char * argv[]) { double x,y,r; scanf("%lf",&r); x=r*r*3.141592653589; y=2*r*3.141592653589; printf("%f %f\n",x,y); return 0; }
648
memory_bytes
{'s_id': 's189204740', 'p_id': 'p02400', 'u_id': 'u315014509', 'date': '1495175612', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '195'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 double x,y,r;\n scanf(\"%lf\",&r);\n x=r*r*3.141592653589;\...
CDSS_285005
CDSS
#include <stdio.h> main() { int a,b,c,x,y,z; scanf("%d%d%d",&a,&b,&c); if(a > b){ x = a; a = b; b = x; } if(b > c){ y = b; b = c; c = y; } if( a > b) { z = a; a = b; b = z; } printf("%d %d %d\n",a,b,c); return 0; }
596
memory_bytes
{'s_id': 's301823634', 'p_id': 'p02393', 'u_id': 'u180183800', 'date': '1492590288', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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>\nmain()\n{\n\tint a,b,c,x,y,z;\n\tscanf(\"%d%d%d\",&a,&b,&c);\n\n\tif(a > b){\n\t\tx = a;\n\t\ta = b;\n\t\tb = x;\n...
CDSS_622404
CDSS
#include <stdio.h> int main(int argc, char *argv[]) { int x[4], y[4]; scanf("%d%d%d%d",&x[0], &y[0], &x[1], &y[1]); x[2] = x[1] + y[0] - y[1]; y[2] = -x[0] + x[1] + y[1]; x[3] = x[0] + y[0] - y[1]; y[3] = x[1] - x[0] + y[0]; printf("%d %d %d %d", x[2], y[2], x[3], y[3]); return 0; }
128
memory_bytes
{'s_id': 's689632728', 'p_id': 'p03265', 'u_id': 'u801102476', 'date': '1554867344', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '310'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint\nmain(int argc, char *argv[])\n{\n int x[4], y[4];\n scanf(\"%d%d%d%d\",&x[0], &y[0], &x[1], &y[1]);\n \n...
CDSS_138293
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #if 1 #define gun() getchar_unlocked() #else #define gun() getchar() #endif int bb(){ int m = 0,c = gun(); do m = 10 * m + (c & 0xf), c = gun(); while(c>='0'); return m; } #define DF 0x10101010 #define N 100 int a[N],*b[N]; int c[N][2]; int s,e; in...
2,088
memory_bytes
{'s_id': 's699980750', 'p_id': 'p02239', 'u_id': 'u107642435', 'date': '1533784081', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2088', 'code_size': '930'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\n#if 1\n#define gun() getchar_unlocked()\n#else\n#define gun() getchar(...
CDSS_658461
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int compare_int(const void *a, const void *b) { return *(int*)b - *(int*)a; } int main(void){ char buf[1024] = { 0 }; int num[128] = { 0 }; char *tok = NULL; int N = 0; //入力読み込み fgets(buf, sizeof(buf), stdin); sscanf(buf...
1,700
memory_bytes
{'s_id': 's098201083', 'p_id': 'p03434', 'u_id': 'u132189199', 'date': '1594271733', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1700', 'code_size': '818'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n\nint compare_int(const void *a, const void *b)\n{\n ...
CDSS_387856
CDSS
#include<stdio.h> int main(void){ int i; scanf("%d",&i); if(400<=i&&i<600){ printf("8"); } if(600<=i&&i<800){ printf("7"); } if(800<=i&&i<1000){ printf("6"); } if(1000<=i&&i<1200){ printf("5"); } if(1200<=i&&i<1400){ printf("4"); } ...
1,660
memory_bytes
{'s_id': 's047421293', 'p_id': 'p02600', 'u_id': 'u379917971', 'date': '1596138923', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1660', 'code_size': '477'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int i;\n scanf(\"%d\",&i);\n if(400<=i&&i<600){\n printf(\"8\");\n }\n if(6...
CDSS_607895
CDSS
#include<stdio.h> #include<string.h> int main(){ int n; scanf("%d", &n); int price[n]; for(int i=0; i<n; i++){ scanf("%d", &price[i]); } int max=0, sum=0; for(int i=0; i<n; i++){ sum+=price[i]; if(max<price[i]) max=price[i]; } printf("%d", sum-max/2); return 0; }
128
memory_bytes
{'s_id': 's702363428', 'p_id': 'p03207', 'u_id': 'u441470484', 'date': '1566437179', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '284'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nint main(){\n\tint n;\n\tscanf(\"%d\", &n);\n\tint price[n];\n\tfor(int i=0; i<n; i++){\n\t\t...
CDSS_66895
CDSS
// Aizu Vol0 0056: Goldbach's Conjecture // 2017.7.30 #include <stdio.h> #include <stdlib.h> char *gets(char *); #define MAX 50000 #define SQRT 223 // sqrt(MAX) #define HALF 25000 int table[MAX + 5]; int combi[MAX+MAX]; int main() { int i, j, n; char buf[100]; for (i = 2; i <= SQRT; i++) { if (!table[i]...
1,016
memory_bytes
{'s_id': 's018197284', 'p_id': 'p00056', 'u_id': 'u847467233', 'date': '1501387751', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '180', 'memory': '1016', 'code_size': '778'}
[ { "content": "Your task is to predict the memory 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 0056: Goldbach's Conjecture\n// 2017.7.30\n\n#include <stdio.h>\n#include <stdlib.h>\n\nchar *gets(char *);\n\n#define MA...
CDSS_718980
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <limits.h> #define REP(i,n) for(i=0;i<n;i++) //prototype declaration int iin(); long long llin(); double din(); char cin(); void stin(char *s); void iout(int i); void llout(long long i); void dout(double i); void cout(char c); void ...
128
memory_bytes
{'s_id': 's510009772', 'p_id': 'p03803', 'u_id': 'u420082791', 'date': '1559538352', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '2369'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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#include <limits.h>\n\n#define REP(i,n) for(i=0;i<n;i...
CDSS_316683
CDSS
#include <stdio.h> #include <math.h> int main() { double r,m,s; scanf("%lf",&r); m=r*r*M_PI; s=2*r*M_PI; printf("%f %f\n",m,s); }
2,104
memory_bytes
{'s_id': 's671544283', 'p_id': 'p02400', 'u_id': 'u500257793', 'date': '1527758351', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '137'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\nint main()\n{\n double r,m,s;\n scanf(\"%lf\",&r);\n m=r*r*M_PI;\n s=2*r*M_PI;\n printf(\"%f %f...
CDSS_673528
CDSS
#include <stdio.h> int min(int x, int y) { return x < y ? x : y; } int main() { int a, b, n; scanf("%d%d%d", &n, &a, &b); printf("%d\n", min(a * n, b)); return 0; }
128
memory_bytes
{'s_id': 's003172587', 'p_id': 'p03501', 'u_id': 'u030504180', 'date': '1586468863', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '168'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint min(int x, int y) { return x < y ? x : y; }\nint main() {\n\tint a, b, n;\n\tscanf(\"%d%d%d\", &n, &a, &b);\n\...
CDSS_122150
CDSS
#include <stdio.h> #define P_MAX 100 int main(void) { int length[P_MAX + 1], n, m, d, p, sum; while(scanf("%d %d", &n, &m), n + m) { for(p = 0; p <= P_MAX; p++) length[p] = 0; while(n--) { scanf("%d %d", &d, &p); length[p] += d; } ...
596
memory_bytes
{'s_id': 's232333385', 'p_id': 'p01144', 'u_id': 'u655658530', 'date': '1428512178', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '596', 'code_size': '591'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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_MAX 100\n\nint main(void)\n{\n int length[P_MAX + 1], n, m, d, p, sum;\n\n while(scanf(\"%d %d\", ...
CDSS_575318
CDSS
#include<stdio.h> int main(){ int A, B, T; scanf("%d %d %d", &A, &B, &T); printf("%d", T/A*B); return 0; }
128
memory_bytes
{'s_id': 's957338478', 'p_id': 'p03059', 'u_id': 'u737756998', 'date': '1556417604', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '118'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\nint A, B, T;\n\n scanf(\"%d %d %d\", &A, &B, &T);\n printf(\"%d\", T/A*B);\n \n return 0;\n}\n...
CDSS_572316
CDSS
#include<stdio.h> int main(){ int n,k; scanf("%d%d",&n,&k); double ans=0; double kakuritu; int j; for(int i=1;i<=n;i++) { j=i; kakuritu=1; while(j<k) { j*=2; kakuritu*=0.5; } ans+=kakuritu; } ans/=n; pr...
128
memory_bytes
{'s_id': 's249260648', 'p_id': 'p03043', 'u_id': 'u775507068', 'date': '1558319735', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '341'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int n,k;\n scanf(\"%d%d\",&n,&k);\n\n double ans=0;\n double kakuritu;\n int j;\...
CDSS_319173
CDSS
#include<stdio.h> int main(void){ int a,b; char op; int answer; while(1){ scanf("%d %c %d",&a,&op,&b); if (op == '+'){ answer=a+b; } else if (op == '-'){ answer=a-b; } else if (op == '*'){ answer=a*b; } else if (op == '/'){ answer=a/b; } else i...
600
memory_bytes
{'s_id': 's561853940', 'p_id': 'p02401', 'u_id': 'u794357584', 'date': '1498032754', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '395'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 a,b;\n char op;\n int answer;\n while(1){\n scanf(\"%d %c %d\",&a,&op,&b);\n ...
CDSS_297993
CDSS
#include <stdio.h> int main(void){ int i, x[10000]; for (i = 1; i <= 10000; i++) { scanf("%d\n", &x[i]); if(x[i] == 0) break; printf("Case %d: %d\n", i, x[i]); } return 0; }
2,100
memory_bytes
{'s_id': 's660975603', 'p_id': 'p02396', 'u_id': 'u098862429', 'date': '1525077411', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '228'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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, x[10000];\n \n for (i = 1; i <= 10000; i++) {\n scanf(\"%d\\n\", &x[i]);\...
CDSS_61542
CDSS
#include <stdio.h> int main(void) { double x[4],y[4]; int yes; double katamuki,seppen; while(1) { if(scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf", &x[0],&y[0],&x[1],&y[1],&x[2],&y[2],&x[3],&y[3])==-1)break; yes=1; if(x[0]==x[2]) { if((x[1]-x[0])*(x[3]-x[0])>0)yes=0; } else if(y[0]==y[2]) { if((y[1]-y[0...
0
memory_bytes
{'s_id': 's006542109', 'p_id': 'p00035', 'u_id': 'u543521645', 'date': '1292307089', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '839'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tdouble x[4],y[4];\n\tint yes;\n\tdouble katamuki,seppen;\n\twhile(1) {\n\t\tif(scanf(\"%lf,%...
CDSS_207825
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); for ( i = 0; i <= VMAX; i++ ) C[i] = 0; for ( i = 0; i < n; i++ ){ scanf("%...
8,464
memory_bytes
{'s_id': 's988310221', 'p_id': 'p02275', 'u_id': 'u603507914', 'date': '1464229831', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '390', 'memory': '8464', 'code_size': '609'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 MAX 2000001\n#define VMAX 10000\n\nint main(){\n unsigned short *A, *B;\n\n int C[V...
CDSS_91630
CDSS
// Aizu Vol-2 0268: Kongo Type // 2017.8.17 #include <stdio.h> #include <stdlib.h> #include <string.h> char *gets(); int frac[7] = { 78125, 156250, 312500, 625000, 1250000, 2500000, 5000000 }; char buf[20], *p; int x2d(char c) { if (c <= '9') return c - '0'; return c - 'a' + 10; } int main(void) { int Q, i, d, f;...
556
memory_bytes
{'s_id': 's667825734', 'p_id': 'p00263', 'u_id': 'u847467233', 'date': '1502979279', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '556', 'code_size': '867'}
[ { "content": "Your task is to predict the memory 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 Vol-2 0268: Kongo Type\n// 2017.8.17\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nchar *gets();\n\nint f...
CDSS_630826
CDSS
#include<stdio.h> #include<string.h> int main(void) { char s[128],t[128]; scanf("%s %s",s,t); int len=(int)strlen(s); if(strcmp(s,t)==0){ puts("Yes"); return 0; } int count=len-1; while(count>0){ char c=s[len-1]; for(int i=len-1;i>0;i--){ s[i]=s[i-1]; } s[0]=c; if(strc...
256
memory_bytes
{'s_id': 's808670866', 'p_id': 'p03293', 'u_id': 'u566317458', 'date': '1591825988', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '256', 'code_size': '420'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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[128],t[128];\n scanf(\"%s %s\",s,t);\n int len=(int)strlen(s);\...
CDSS_686631
CDSS
#include <stdio.h> int main() { int a,b,c; scanf("%d %d",&a,&b); if(a>b){ printf("%d",a-b); }else{ printf("0"); } return 0; }
128
memory_bytes
{'s_id': 's762508159', 'p_id': 'p03609', 'u_id': 'u816631826', 'date': '1509586714', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '164'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int a,b,c;\n scanf(\"%d %d\",&a,&b);\n if(a>b){\n \tprintf(\"%d\",a-b);\n \t\n\t}el...
CDSS_553977
CDSS
#include<stdio.h> int main(){ char a[5]; int count=0; scanf("%s",a); for(int i=0;i<4;++i){ for(int j=i+1;j<4;++j){ if(a[i]==a[j]) count ++; } } if(count==2) printf("Yes"); else printf("No"); return 0; }
128
memory_bytes
{'s_id': 's117991281', 'p_id': 'p02987', 'u_id': 'u847957189', 'date': '1563319023', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main(){\n\tchar a[5];\n\tint count=0;\n\tscanf(\"%s\",a);\n\tfor(int i=0;i<4;++i){\n\t\tfor(int j=i+1;j<4;++j){...
CDSS_127521
CDSS
#include<stdio.h> #include<string.h> int main() { char C[50]; int i,j,f=0;gets(C);j=strlen(C); for(i=0;i<j&&C[i]!='A';i++); for(j=j-1;j>=0&&C[j]!='Z';j--); if(i>j)puts("-1"); else { for(;i<=j;i++) if((!f&&C[i]=='A')||(f&&C[i]=='Z')) putchar(C[i]),f=!f; puts(""); } return 0; }
524
memory_bytes
{'s_id': 's822121959', 'p_id': 'p01772', 'u_id': 'u363039534', 'date': '1443957776', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '297'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main()\n{\n\tchar C[50];\n\tint i,j,f=0;gets(C);j=strlen(C);\n\tfor(i=0;i<j&&C[i]!='A';i++)...
CDSS_187907
CDSS
#include <stdio.h> #define N 10000 #define Q 500 int main(){ int i, j; int s[N], t[Q]; int n, q; int count = 0; scanf("%d", &n); for(i = 0; i < n; i++){ scanf("%d", &s[i]); } scanf("%d", &q); for(i = 0; i < q; i++){ scanf("%d", &t[i]); } /*for(i = 0; i < n; i++){//S for(j = 0;...
640
memory_bytes
{'s_id': 's393547740', 'p_id': 'p02267', 'u_id': 'u391401525', 'date': '1462932782', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '566'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define N 10000\n#define Q 500\n\nint main(){\n\n int i, j;\n int s[N], t[Q];\n int n, q;\n int count = 0;\n...
CDSS_731582
CDSS
#include <stdio.h> char map[10][10]; int H,W; int main(void) { int i, j; int cnt = 0; scanf("%d %d\n", &H, &W); for(i = 0; i < H; i++) { scanf("%s", map[i]); for(j = 0; j < W; j++) { cnt += map[i][j]=='#'?1:0; } } if(cnt == H + W - 1) { printf("Possible\n"); } else { printf(...
128
memory_bytes
{'s_id': 's154639691', 'p_id': 'p03937', 'u_id': 'u803684095', 'date': '1582222191', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '345'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nchar map[10][10];\nint H,W;\nint main(void)\n{\n int i, j;\n int cnt = 0;\n scanf(\"%d %d\\n\", &H, &W);\n f...
CDSS_741037
CDSS
#include <stdio.h> int main(void){ int N, i, ans; ans = 0; scanf("%d", &N); for(i = 0; i <= N; i++){ ans = ans + i; } printf("%d", ans); }
1,692
memory_bytes
{'s_id': 's936988312', 'p_id': 'p04029', 'u_id': 'u818573308', 'date': '1592855042', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1692', '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>\nint main(void){\n int N, i, ans;\n \n ans = 0;\n \n scanf(\"%d\", &N);\n \n for(i = 0; i <= N...
CDSS_293746
CDSS
#include<stdio.h> int main() { int x,y; int w,h,r; scanf("%d %d %d %d %d",&w,&h,&x,&y,&r); if(x>=0+r&&x<=w-r&&y>=0+r&&y<=h-r) printf("Yes\n"); else printf("No\n"); return 0; }
2,056
memory_bytes
{'s_id': 's384562939', 'p_id': 'p02394', 'u_id': 'u664256757', 'date': '1551685816', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '218'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int x,y;\n int w,h,r;\n scanf(\"%d %d %d %d %d\",&w,&h,&x,&y,&r);\n if(x>=0+r&&x<=w-r...
CDSS_241006
CDSS
#include <stdio.h> int main(void){ int x; scanf("%d",&x); printf("%d\n",x*x*x); return 0; }
596
memory_bytes
{'s_id': 's498852088', 'p_id': 'p02388', 'u_id': 'u128957133', 'date': '1442202487', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '111'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int x;\n scanf(\"%d\",&x);\n printf(\"%d\\n\",x*x*x);\n \n return 0;\n}\nPredict i...
CDSS_386770
CDSS
#include <stdio.h> int main() { long long int d, x, y; int n, cnt = 0; scanf("%d %lld", &n, &d); d *= d; for (int i = 0; i < n; i++) { scanf("%lld %lld", &x, &y); if (x * x + y * y <= d) cnt++; } printf("%d", cnt); return 0; }
2,100
memory_bytes
{'s_id': 's298542220', 'p_id': 'p02595', 'u_id': 'u881032151', 'date': '1596419445', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '54', 'memory': '2100', 'code_size': '271'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n long long int d, x, y;\n int n, cnt = 0;\n \n scanf(\"%d %lld\", &n, &d);\n d *= d;\n \n ...
CDSS_608347
CDSS
#include <stdio.h> #include <stdlib.h> #define N 100000 #define H 1000000000 int compare(const void *a, const void *b) { int ia = *(int *) a; int ib = *(int *) b; return ia - ib; } int main() { static int hh[N]; int n, k, i, ans; scanf("%d%d", &n, &k); for (i = 0; i < n; i++) scanf("%d", &hh[i]); qsort(h...
892
memory_bytes
{'s_id': 's899567532', 'p_id': 'p03208', 'u_id': 'u000120715', 'date': '1569760765', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '25', 'memory': '892', 'code_size': '492'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 N 100000\n#define H 1000000000\n\nint compare(const void *a, const void *b) {\n\tin...
CDSS_562049
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #include <stdbool.h> #define LL long long #define INF 1<<31-1 #define MIN(x,y) ((x)<(y)?(x):(y)) #define MAX(x,y) ((x)<(y)?(y):(x)) #define FOR(i,a,n) for(i=a;i<n;i++) #define MOD 1000000007 #define NUM 100005 void swap(int* a,int* b){int tmp=...
128
memory_bytes
{'s_id': 's675972105', 'p_id': 'p03005', 'u_id': 'u596117821', 'date': '1560646998', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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#include <string.h>\n#include <stdlib.h>\n#include <math.h>\n#include <stdbool.h>\n#define LL long long\n#define I...
CDSS_377843
CDSS
#include<stdio.h> int main(void) { int d,t,s; scanf("%d%d%d",&d,&t,&s); printf((t*s>=d)?"Yes":"No"); return 0; }
1,680
memory_bytes
{'s_id': 's700776067', 'p_id': 'p02570', 'u_id': 'u671655117', 'date': '1599318827', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1680', 'code_size': '136'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 d,t,s;\n scanf(\"%d%d%d\",&d,&t,&s);\n printf((t*s>=d)?\"Yes\":\"No\");\n ...
CDSS_135266
CDSS
#include<stdio.h> #define N 100 main(){ int i,j,m[N][N],n,l,u,s; scanf("%d",&u); for(i=0;i<u;i++){ for(j=0;j<u;j++){ m[i][j]=0; } } for(i=0;i<u;i++){ scanf("%d %d",&n,&l); n--; for(j=0;j<l;j++){ scanf("%d",&s); s--; m[n][s]=1; } } for(i=0;i<u;i++){ ...
636
memory_bytes
{'s_id': 's701073719', 'p_id': 'p02237', 'u_id': 'u159204823', 'date': '1499835089', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '448'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 100\n \nmain(){\n int i,j,m[N][N],n,l,u,s;\n scanf(\"%d\",&u);\n for(i=0;i<u;i++){\n for(j=0;j<u;j...
CDSS_526066
CDSS
#include<stdio.h> int main(){ int n; scanf("%d", &n); int a[n]; for(int i=0; i<n; i++){ int x; scanf("%d", &x); x--; a[x] = i+1; } for(int i=0; i<n; i++){ printf("%d", a[i]); if(i<n-1){ printf(" "); } } return 0; }
1,152
memory_bytes
{'s_id': 's434532974', 'p_id': 'p02899', 'u_id': 'u071680334', 'date': '1569719431', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '1152', 'code_size': '316'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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;\n scanf(\"%d\", &n);\n int a[n];\n for(int i=0; i<n; i++){\n int x;\n ...
CDSS_416324
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> int main(void){ int k; char s[110]; scanf("%d%s",&k,s); int len; len=strlen(s); if(len<=k){ printf("%s\n",s); }else{ //s[len] = "..."; //s[len+1] = '\0';...
1,660
memory_bytes
{'s_id': 's662794236', 'p_id': 'p02676', 'u_id': 'u955973455', 'date': '1589764887', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1660', 'code_size': '481'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\nint main(void){\n\n int k;\n char s[110];\n scanf...
CDSS_236241
CDSS
#include <stdio.h> #include <math.h> //prototype int main(void); double SDcalc(int* _point, int _n); int main(void){ while(1){ int n; scanf("%d", &n); if(n == 0) break; int test_point[n+1]; for (int i = 0; i < n; i++) { scanf("%d", &test_point[i]); } double SD = SDcalc(test_point, ...
2,100
memory_bytes
{'s_id': 's282774304', 'p_id': 'p02381', 'u_id': 'u889404428', 'date': '1591408152', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '745'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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//prototype\nint main(void);\ndouble SDcalc(int* _point, int _n);\n\nint main(void){\n while(1...
CDSS_333996
CDSS
#include <stdio.h> int main(){ int H, W, iH, iW; char symbol; while(scanf("%d %d\n",&H,&W)==2){ if(H==0&&W==0) break; for(iH=0;iH<H;iH++){ for(iW=0;iW<W;iW++){ if(iH==0||iH==H-1||iW==0||iW==W-1) symbol='#'; else symbol='.'; printf("%c",symbol); ...
576
memory_bytes
{'s_id': 's376216535', 'p_id': 'p02404', 'u_id': 'u729056931', 'date': '1496756740', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '576', 'code_size': '393'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int H, W, iH, iW;\n char symbol;\n while(scanf(\"%d %d\\n\",&H,&W)==2){\n if(H==0&&W==0...
CDSS_417738
CDSS
#include <stdio.h> #include<math.h> int main(void) { int A,B,H,M; double c,Ha,Ma,answer,t; scanf("%d",&A); scanf("%d",&B); scanf("%d",&H); scanf("%d",&M); Ma=(double)M*360/60; Ha=(double)H*360/12+Ma/12; if(Ha>Ma)c=(double)(Ha-Ma)*3.14159265359/180; else c=(double)(Ma-Ha)*3.14159265359/180; t=cos(c)*A*B*2; ...
2,624
memory_bytes
{'s_id': 's463537696', 'p_id': 'p02677', 'u_id': 'u217054347', 'date': '1589766538', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '2624', 'code_size': '388'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include<math.h>\n\nint main(void)\n{\n\tint A,B,H,M;\n\tdouble c,Ha,Ma,answer,t;\n\tscanf(\"%d\",&A);\n\tscanf(\"...
CDSS_28358
CDSS
#include <stdio.h> int main() { int i,temp,count; long n,m; while(scanf("%d%d",&n,&m)!=EOF){ count=0; temp=n+m; while(temp>=1){ temp=temp/10; count++; } printf("%d\n",count); } return 0; }
600
memory_bytes
{'s_id': 's192543331', 'p_id': 'p00002', 'u_id': 'u321071186', 'date': '1362066467', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '213'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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,temp,count;\n\tlong n,m;\n\twhile(scanf(\"%d%d\",&n,&m)!=EOF){\n\t\tcount=0;\n\t\ttemp=...
CDSS_240300
CDSS
#include<stdio.h> int main(void){ int x; scanf("%d", &x); printf("%d\n", x * x * x); return 0; }
596
memory_bytes
{'s_id': 's290986792', 'p_id': 'p02388', 'u_id': 'u574287827', 'date': '1425272704', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '100'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n\tint x;\n\tscanf(\"%d\", &x);\n\tprintf(\"%d\\n\", x * x * x);\n\treturn 0;\n}\nPredict its memor...
CDSS_124411
CDSS
#include<stdio.h> #include<string.h> int main(){ int i; int pos=2; int cnt=0; char str[50]; char map[]="yuiophjklnm"; while (1) { scanf("%s",str); if(str[0]=='#'){ break; } i=0; pos=2; cnt=0; while (str[i]!='\0') { i...
544
memory_bytes
{'s_id': 's296648029', 'p_id': 'p01369', 'u_id': 'u974521560', 'date': '1372055181', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '544', 'code_size': '570'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 int i;\n int pos=2;\n int cnt=0;\n char str[50];\n char map[]=\"yu...
CDSS_228301
CDSS
#include<stdio.h> #define MAX 2000000 int H,A[MAX+1]; void maxHeapify(int i){ int l,r,big,max; l=2*i; r=2*i+1; if(l<=H && A[l]>A[i]) big=l; else big=i; if(r<=H && A[r]> A[big]) big=r; if(big!=i){ max = A[big]; A[big] = A[i]; A[i] = max; maxHeapify(...
3,648
memory_bytes
{'s_id': 's253056915', 'p_id': 'p02288', 'u_id': 'u365925766', 'date': '1555990953', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '3648', 'code_size': '551'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define MAX 2000000\nint H,A[MAX+1];\n\n\nvoid maxHeapify(int i){\n int l,r,big,max;\n l=2*i;\n r=2*i+1;\n...
CDSS_472849
CDSS
#include<stdio.h> #include<string.h> int main(){ char s[101]; int n, i, m; scanf("%s",s); n = 0; while (s[n]!= '\0'){ n++; } m=n; n=(n-1)/2; for(i=0; i<m; i++){ if(s[i]!=s[m-1-i]){ printf("No\n"); return 0; } } for(i=0; i<n; i++){ if(s[i]!=s[n-1-i]){ ...
128
memory_bytes
{'s_id': 's029876033', 'p_id': 'p02730', 'u_id': 'u770369399', 'date': '1584926585', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '408'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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(){\nchar s[101];\n int n, i, m;\n\nscanf(\"%s\",s);\n n = 0;\n while (s[n]!= '...
CDSS_212228
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define MAX 100000 int partition(int *A, int p, int r) { int x = A[r]; int i, j; int tmp; i = p - 1; for (j= p; j < r; j++) { if (A[j] <= x) { i += 1; tmp = A[i]; A...
2,244
memory_bytes
{'s_id': 's842297535', 'p_id': 'p02276', 'u_id': 'u787709210', 'date': '1563600426', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2244', 'code_size': '1010'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\n#define MAX 100000\n\nint partition(int *A, int p, ...
CDSS_18698
CDSS
#include<stdio.h> int main(){ int i,j; for(i=1;i<10;i++){ for(j=1;j<10;j++){ printf("%dx%d=%d\n",i,j,i*j); } } return(0); }
520
memory_bytes
{'s_id': 's339205960', 'p_id': 'p00000', 'u_id': 'u973975705', 'date': '1464338903', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '520', 'code_size': '145'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int i,j;\n for(i=1;i<10;i++){\n for(j=1;j<10;j++){\n printf(\"%dx%d=%d\\n\",i,j,i*j);\n ...
CDSS_363999
CDSS
#include<stdio.h> int main(void){ char str[1010]; int i,sum; scanf("%s",str); while(str[0]!='0'){ i=0; sum=0; while(str[i]){ sum+=str[i]-'0';i++; } printf("%d\n",sum); scanf("%s",str); } return 0; }
536
memory_bytes
{'s_id': 's046489450', 'p_id': 'p02416', 'u_id': 'u092139739', 'date': '1481784160', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '536', 'code_size': '218'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n\nint main(void){\n\n char str[1010];\n\nint i,sum;\n\n\nscanf(\"%s\",str);\n\n while(str[0]!='0'){\n\n i=0; sum=...
CDSS_367146
CDSS
#include <stdio.h> int main(void){ char s[201] = {}; char p[101] = {}; int i=0,j=0; int cs1 = 0, cp = 0,count=0,cs2 = 0; /*cs = s'count */ scanf("%s", s); scanf("%s", p); while(s[i++]) cs1++; i = 0; cs2 = cs1; while(p[i++]) cp++; i = 0; while(p[i]){ ...
524
memory_bytes
{'s_id': 's320061187', 'p_id': 'p02418', 'u_id': 'u963402991', 'date': '1439382090', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '670'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 s[201] = {};\n char p[101] = {};\n int i=0,j=0;\n int cs1 = 0, cp = 0,count=0...
CDSS_309620
CDSS
#include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); printf("%d %d %f\n", (a/b), (a%b), ((double)a/(double)b)); return 0; }
636
memory_bytes
{'s_id': 's756068580', 'p_id': 'p02399', 'u_id': 'u347010700', 'date': '1474108262', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '143'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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()\n{\n\tint a, b;\n\tscanf(\"%d %d\", &a, &b);\n\n\tprintf(\"%d %d %f\\n\", (a/b), (a%b), ((double)a/(...
CDSS_208912
CDSS
#include <stdio.h> void CountingSort(int *,int *,int); int C[2000000],max=0; int main(void){ int n,A[2000000],B[2000000],i; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&A[i]); if(max<A[i])max=A[i]; } CountingSort(A,B,n); for(i=0;i<n;i++){ printf("%d",B[i]); if(i!=n-1)printf(" "); } prin...
25,176
memory_bytes
{'s_id': 's194383209', 'p_id': 'p02275', 'u_id': 'u483179571', 'date': '1530547680', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '240', 'memory': '25176', 'code_size': '678'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nvoid CountingSort(int *,int *,int);\nint C[2000000],max=0;\nint main(void){\n int n,A[2000000],B[2000000],i;\n s...
CDSS_204813
CDSS
#include <stdio.h> #include <math.h> typedef struct { double x; double y; } Point; void kock(int, Point, Point); int main() { Point p1 = {0.0, 0.0}, p2 = {100.0, 0.0}; int n; scanf("%d", &n); printf("%f\t%f\n", p1.x, p1.y); kock(n, p1, p2); printf("%f\t%f\n", p2.x, p2.y); return 0; } void kock(...
636
memory_bytes
{'s_id': 's266700409', 'p_id': 'p02273', 'u_id': 'u226226055', 'date': '1463028048', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '817'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\ntypedef struct {\n double x;\n double y;\n} Point;\n\nvoid kock(int, Point, Point);\n\nint ...
CDSS_485457
CDSS
#include<stdio.h> #define ll long long int main(){ ll n, k, cnt = 0; scanf("%lld%lld",&n, &k); while(n > 0){ n /= k; cnt++; } printf("%lld", cnt); return 0; }
128
memory_bytes
{'s_id': 's788217741', 'p_id': 'p02766', 'u_id': 'u097182283', 'date': '1582423856', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '178'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define ll long long\nint main(){\n ll n, k, cnt = 0;\n scanf(\"%lld%lld\",&n, &k);\n while(n > 0){\n n /= k;...
CDSS_62509
CDSS
#include<stdio.h> #include<string.h> int main() { char s[257],t[257]; int i,j,k,n; for(scanf("%d\n",&n);n--;) { gets(s); for(i=1;i<=26;i+=2) for(j=0;j<=26;j++) { for(k=0,strcpy(t,s);s[k];k++) if(s[k]>='a'&&s[k]<='z') ...
600
memory_bytes
{'s_id': 's107471467', 'p_id': 'p00040', 'u_id': 'u297518626', 'date': '1437026850', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '498'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main()\n{\n char s[257],t[257];\n int i,j,k,n;\n for(scanf(\"%d\\n\",&n);n--;)\n ...
CDSS_547079
CDSS
#include <stdio.h> #include <stdlib.h> unsigned short task_A (unsigned short radius) { return (unsigned short)(3) * radius * radius; } int main (void) { // variables for main process unsigned short r; int rtvl_scanf; // STEP.01 // read out the given data rtvl_scanf = scanf("%d", &r); // STEP.02 ...
128
memory_bytes
{'s_id': 's440182189', 'p_id': 'p02969', 'u_id': 'u484703930', 'date': '1563716011', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '419'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nunsigned short task_A (unsigned short radius)\n{\n\treturn (unsigned short)(3) * radius * r...
CDSS_140054
CDSS
#include<stdio.h> #define N 100 #define MAX 2000 #define INFTY (1<<21) int A[N][N],n; int prim(); int main(){ int i,j,s; scanf("%d",&n); for(i=0; i<n;i++){ for(j=0;j<n;j++){ scanf("%d",&s); A[i][j] = (s == -1) ? INFTY : s; } } printf("%d\n",prim()); return 0; } int prim(){ int i,...
2,056
memory_bytes
{'s_id': 's769979383', 'p_id': 'p02241', 'u_id': 'u920960701', 'date': '1532928522', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '862'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 100\n#define MAX 2000\n#define INFTY (1<<21)\n\n\nint A[N][N],n;\n\nint prim();\n\nint main(){\n int i,j...
CDSS_735515
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> int main(void){ char s[20]; int count; int out=0; char ss[20]="CODEFESTIVAL2016"; scanf("%s",s); for(count=0;s[count]!='\0';count++){ if(s[count]!=ss[count]){out++;} } printf("%d",out); }
128
memory_bytes
{'s_id': 's924889139', 'p_id': 'p03970', 'u_id': 'u932514381', 'date': '1577765490', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '287'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\nint main(void){\n char s[20];\n int count;\n int out=0;\n ch...