identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_525290
CDSS
#include <stdio.h> #define Fori(g) for(int i=0;i<g;i++) #define Forj(g) for(int j=0;j<g;j++) #define min(a,b) return (a<b)?a:b #define max(a,b) return (a<b)?b:a #define gcd(a,b) return (!b)?a:gcd(b,a%b) int main(){ int n,k,count=0; scanf("%d%d",&n,&k); int h[n]; Fori(n)scanf("%d",&h[i]); Fori(n)if(h[i]>=k)count+...
512
memory_bytes
{'s_id': 's840105037', 'p_id': 'p02898', 'u_id': 'u325411666', 'date': '1569721278', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '512', '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>\n#define Fori(g) for(int i=0;i<g;i++)\n#define\tForj(g) for(int j=0;j<g;j++)\n#define min(a,b) return (a<b)?a:b\n#d...
CDSS_659007
CDSS
#include<stdio.h> int main(){ int i,j; int c[3][3]; for(i=0;i<3;i++){ for(j=0;j<3;j++){ scanf("%d",&c[j][i]); } } int flag=0; int a[3]; int b[3]; a[0]=0; b[0]=c[0][0]-a[0]; b[1]=c[0][1]-a[0]; b[2]=c[0][2]-a[0]; a[1]=c[1][0]-b[0]; a[2]=c[2][0]-b[0]; for(i=0;i<3;i++){ for(j=0...
128
memory_bytes
{'s_id': 's117412103', 'p_id': 'p03435', 'u_id': 'u052185335', 'date': '1586655855', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '482'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 int c[3][3];\n for(i=0;i<3;i++){\n for(j=0;j<3;j++){\n scanf(\"%d\",&c[j][i]);\...
CDSS_398968
CDSS
#include<stdio.h> int main(void){ int a; char bbc; scanf("%c",&bbc); if((bbc>='A')&&(bbc<='Z')){ puts("A"); } else if((bbc>='a')&&(bbc<='z')){ puts("a"); } return 0; }
1,580
memory_bytes
{'s_id': 's765431086', 'p_id': 'p02627', 'u_id': 'u905071668', 'date': '1592792263', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1580', 'code_size': '170'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\nint a;\nchar bbc;\nscanf(\"%c\",&bbc);\n\nif((bbc>='A')&&(bbc<='Z')){\nputs(\"A\");\n }\nelse if(...
CDSS_205330
CDSS
#include <stdio.h> #include <math.h> typedef struct { double x; double y; } XY; int koch (XY ,XY ,int ); int main() { int n; XY a1,a2; scanf("%d",&n); a1.x=0; a1.y=0; a2.x=100; a2.y=0; printf("%f %f\n",a1.x,a1.y); koch(a1,a2,n); return 0; } int koch(XY a1,XY a2,int n) { XY b,c,d,leng; if (n...
636
memory_bytes
{'s_id': 's813390598', 'p_id': 'p02273', 'u_id': 'u764706845', 'date': '1400491539', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '720'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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>\ntypedef struct\n{\n double x;\n double y;\n} XY;\nint koch (XY ,XY ,int );\nint main()\n{\n ...
CDSS_18170
CDSS
#include<stdio.h> int main(void) { int i, j; for (i = 1; i <= 9; i ++) { for (j = 1; j <= 9; j ++) { printf("%dx%d=%d\n", i, j, i * j); } } return 0; }
520
memory_bytes
{'s_id': 's793454592', 'p_id': 'p00000', 'u_id': 'u537646413', 'date': '1443769003', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '520', 'code_size': '173'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void) {\n int i, j;\n for (i = 1; i <= 9; i ++) {\n for (j = 1; j <= 9; j ++) {\n printf(\"%dx%d...
CDSS_723158
CDSS
#include<stdio.h> #include<math.h> int main() { int n,i,x,temp; x=0; temp=0; scanf("%d ",&n); char ar[n+1]; for(i=0;i<n;i++) scanf("%c",&ar[i]); for(i=0;i<n;i++) { if(ar[i]=='I'){ x++; } if(ar[i]=='D'){ x--; } if(x>temp){ temp=x...
128
memory_bytes
{'s_id': 's539883998', 'p_id': 'p03827', 'u_id': 'u353919145', 'date': '1507012014', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '389'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 int n,i,x,temp;\n x=0;\n temp=0;\n scanf(\"%d \",&n);\n char ar[n+1];\...
CDSS_258432
CDSS
#include <stdio.h> int main(){ int a,b; scanf("%d %d",&a,&b); printf("%d %d\n",a*b,(2*a)+(2*b)); return 0; }
1,916
memory_bytes
{'s_id': 's805739631', 'p_id': 'p02389', 'u_id': 'u909219919', 'date': '1542195200', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1916', 'code_size': '114'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\tint a,b;\n\tscanf(\"%d %d\",&a,&b);\n\tprintf(\"%d %d\\n\",a*b,(2*a)+(2*b));\n\treturn 0;\n}\n\nP...
CDSS_291501
CDSS
#include <stdio.h> int main(int argc, const char * argv[]) { // insert code here... int W, H, x, y, r; scanf("%d %d %d %d %d",&W, &H, &x, &y, &r); if((x-r >= 0)&&(y-r >= 0)&&(x+r <= W)&&(y+r <= H)){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
584
memory_bytes
{'s_id': 's788305472', 'p_id': 'p02394', 'u_id': 'u418214336', 'date': '1494298464', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', '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\nint main(int argc, const char * argv[]) {\n // insert code here...\n int W, H, x, y, r;\n scanf(\"%d %d...
CDSS_223309
CDSS
# define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> typedef struct node { int key; struct node *p_left; struct node *p_right; struct node *p_parent; }NODE; void insert(int value); /* ?????\ */ void inorder(NODE *p_node); /* ??????????????? */ void preorder(NODE *p_node); /* ??????????????? */ in...
19,364
memory_bytes
{'s_id': 's476233986', 'p_id': 'p02284', 'u_id': 'u902398454', 'date': '1468391637', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '360', 'memory': '19364', 'code_size': '4101'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n# define _CRT_SECURE_NO_WARNINGS\n#include<stdio.h>\n#include<stdlib.h>\n\ntypedef struct node {\n\tint key;\n\tstruct node *p_left;\n...
CDSS_110289
CDSS
#include<stdio.h> int main(){ int A,B,C,day; int M,N,O; scanf("%d%d%d",&A,&B,&C); M=C/(7*A+B),N=C%(7*A+B); O=N/A; if (N/A>6) O=7; else if(N/A*A!=N) O=N/A+1; printf("%d\n",7*M+O); return 0; }
2,112
memory_bytes
{'s_id': 's848554222', 'p_id': 'p00575', 'u_id': 'u692749123', 'date': '1586933149', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', '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\nint main(){\n\tint A,B,C,day;\n\tint M,N,O;\n\tscanf(\"%d%d%d\",&A,&B,&C);\n\tM=C/(7*A+B),N=C%(7*A+B);\n\tO=N/A;\...
CDSS_712567
CDSS
#include<stdio.h> int main() { char O[51]; char E[51]; char P[101] = {'\0'}; int i, j; scanf("%s%s", O, E); j = 0; for(i = 0; O[i]; i++){ P[j++] = O[i]; P[j++] = E[i]; } printf("%s\n", P); return 0; }
128
memory_bytes
{'s_id': 's911837299', 'p_id': 'p03760', 'u_id': 'u288147331', 'date': '1569290410', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '261'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n char O[51];\n char E[51];\n char P[101] = {'\\0'};\n int i, j;\n\n scanf(\"%s%s\",...
CDSS_442708
CDSS
#include<stdio.h> int main(void){ int n,m; int a[m]; int i,sum,play; scanf("%d %d",&n,&m); i = 0; sum = 0; while(i<m){ scanf("%d",&a[i]); sum += a[i]; i++; } if(sum>n){ printf("-1"); } else{ play = n - sum; printf("%d",play); } return 0; }
1,748
memory_bytes
{'s_id': 's345337921', 'p_id': 'p02706', 'u_id': 'u087761072', 'date': '1589636596', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1748', 'code_size': '299'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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;\n int a[m];\n int i,sum,play;\n \n scanf(\"%d %d\",&n,&m);\n i = 0;\n sum = 0;\...
CDSS_267735
CDSS
#include <stdio.h> int main(void) { int a, b; scanf("%d %d",&a,&b); if(a < b){ printf("a < b\n"); } else if(a > b){ printf("a > b\n"); } if(a == b){ printf("a == b\n"); } return 0; }
580
memory_bytes
{'s_id': 's884212306', 'p_id': 'p02391', 'u_id': 'u514280952', 'date': '1461294370', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '206'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\t\n\tscanf(\"%d %d\",&a,&b);\n\t\n\tif(a < b){\n\t\tprintf(\"a < b\\n\");\n\t}\n\...
CDSS_142302
CDSS
#include <stdio.h> int ban[8][8]; void queen(int,int,int*,int*,int*,int*); int main(){ int i,j,n,key1,key2,row[8],col[8],dpos[15],dneg[15]; scanf("%d",&n); for(i=0;i<8;i++){ for(j=0;j<8;j++){ ban[i][j]=0; } row[i]=col[i]=dpos[2*i]=dpos[2*i+1]=dneg[2*i]=dneg[2*i+1]=0; } for(i=0;i<n;i+...
2,104
memory_bytes
{'s_id': 's143648678', 'p_id': 'p02244', 'u_id': 'u113515527', 'date': '1548822354', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '1118'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 ban[8][8];\n\nvoid queen(int,int,int*,int*,int*,int*);\n\nint main(){\n int i,j,n,key1,key2,row[8],col[8],d...
CDSS_25155
CDSS
#include <stdio.h> int main(void) { int tall[10]; int max[3]; int i = 0; while (i<10) { scanf("%d",&tall[i]); //printf("%d\n",tall[i]); if (max[0] < tall[i]) { max[2] = max[1]; max[1] = max[0]; max[0] = tall[i]; } else if...
600
memory_bytes
{'s_id': 's387419975', 'p_id': 'p00001', 'u_id': 'u613884163', 'date': '1372516213', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '604'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 tall[10];\n int max[3];\n int i = 0;\n \n while (i<10) {\n scanf(\...
CDSS_85216
CDSS
#include <stdio.h> int main(void) { int n, a, count[7], i; while (1) { scanf("%d", &n); if (n == 0) break; for (i = 0; i < 7; i++) count[i] = 0; while (n--) { scanf("%d", &a); if (a < 10) count[0]++; else if (a < 20) count[1]++; else if (a < 30) count[2]++; else...
600
memory_bytes
{'s_id': 's549746260', 'p_id': 'p00184', 'u_id': 'u214404619', 'date': '1476182857', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '120', 'memory': '600', 'code_size': '509'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, a, count[7], i;\n\n while (1) {\n scanf(\"%d\", &n);\n if (n == 0) break;\n ...
CDSS_64820
CDSS
#include <stdio.h> int main(void){ double x; while(scanf("%lf",&x)==1){ if(x<=48)printf("light fly\n"); else if(x<=51)printf("fly\n"); else if(x<=54)printf("bantam\n"); else if(x<=57)printf("feather\n"); else if(x<=60)printf("light\n"); else if(x<=64)printf("...
2,048
memory_bytes
{'s_id': 's399139076', 'p_id': 'p00048', 'u_id': 'u108990746', 'date': '1527566907', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '578'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 double x;\n \n while(scanf(\"%lf\",&x)==1){\n if(x<=48)printf(\"light fly\\n\");...
CDSS_67275
CDSS
#include<stdio.h> int main() { int n, ans; while(scanf("%d",&n )!= EOF){ ans = (n * n + n)/2 + 1; printf("%d\n" ,ans); } return 0; }
596
memory_bytes
{'s_id': 's463436527', 'p_id': 'p00057', 'u_id': 'u681694396', 'date': '1497074933', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '154'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int n, ans;\n\n while(scanf(\"%d\",&n )!= EOF){\n\n ans = (n * n + n)/2 + 1;\n\n printf(\"%d\...
CDSS_84425
CDSS
// AOJ 0172: Doctor's Research Rooms // 2018.1.24 bal4u@uu #include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct { char rm; int light; } Q; Q q[491520]; int top, end; Q *used[15][32768]; int rm[15][15], s_rm[15]; int sw[15][15], s_sw[15]; char *msg[7] = {0, "You can go home in %d steps.\n", "You...
5,932
memory_bytes
{'s_id': 's978400172', 'p_id': 'p00172', 'u_id': 'u847467233', 'date': '1516796314', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '5932', 'code_size': '2472'}
[ { "content": "Your task is to predict the memory 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 0172: Doctor's Research Rooms\n// 2018.1.24 bal4u@uu\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\ntypedef...
CDSS_140116
CDSS
#include<stdio.h> #define MAX 100 static const int I=(1<<21); static const int W=0; static const int G=1; static const int B=2; int n, Q[MAX][MAX]; int prim(){ int u,minv,i,v; int d[MAX],p[MAX],color[MAX]; for(i=0;i<n;i++){ d[i]=I; p[i]=-1; color[i]=W; } d[0]=0; while(1){ minv=I; ...
2,044
memory_bytes
{'s_id': 's901160970', 'p_id': 'p02241', 'u_id': 'u035147291', 'date': '1532410579', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '917'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 100\nstatic const int I=(1<<21);\nstatic const int W=0;\nstatic const int G=1;\nstatic const int B=2;...
CDSS_684097
CDSS
#include <stdio.h> int main(void) { int n,a; scanf("%d",&n); scanf("%d",&a); printf("%d\n",(n*n)-a); return(0); }
128
memory_bytes
{'s_id': 's091221772', 'p_id': 'p03597', 'u_id': 'u846686917', 'date': '1505612751', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '128'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint n,a;\n\t\n\tscanf(\"%d\",&n);\n\t\n\tscanf(\"%d\",&a);\n\t\n\tprintf(\"%d\\n\",(n*n)-a)...
CDSS_552687
CDSS
#include<stdio.h> int main(){ int l, r; int min = 2018, tmp, tmp1; int i, j; scanf("%d %d",&l ,&r); for(i=l;i<r;i++){ for(j=i+1;j<=r;j++){ tmp = ((i%2019)*(j%2019))%2019; if(tmp < min){ min = tmp; if(min == 0){ printf("%d\n",min); return 0; } ...
128
memory_bytes
{'s_id': 's392711257', 'p_id': 'p02983', 'u_id': 'u651109406', 'date': '1562554121', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '371'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 l, r;\n int min = 2018, tmp, tmp1;\n int i, j;\n\n scanf(\"%d %d\",&l ,&r);\n\n for(i=l;i<...
CDSS_609462
CDSS
#include <stdio.h> int main(void){ int n; scanf("%d",&n); if(n==3 || n==5 || n==7){ printf("YES\n"); }else{ printf("NO\n"); } return 0; }
128
memory_bytes
{'s_id': 's689173568', 'p_id': 'p03210', 'u_id': 'u875408597', 'date': '1543869151', '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>\nint main(void){\n int n;\n scanf(\"%d\",&n);\n if(n==3 || n==5 || n==7){\n printf(\"YES\\n\");\n ...
CDSS_191538
CDSS
#include <stdio.h> int s[100000]; int t[50000]; int n = 0; int search(int); int main(){ int i, q, 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<q;i++) if(search(t[i])) count++...
2,280
memory_bytes
{'s_id': 's627523427', 'p_id': 'p02268', 'u_id': 'u237270455', 'date': '1545365537', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2280', 'code_size': '607'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 s[100000];\nint t[50000];\nint n = 0;\nint search(int);\n\nint main(){\n int i, q, count = 0;\n scanf(...
CDSS_507114
CDSS
#include<stdio.h> int main() { int a,b,c; scanf("%d",&a); scanf("%d",&b); if(a==1&&b==2||a==2&&b==1) { c=3; printf("%d\n",c); } else if(a==2&&b==3||a==3&&b==2) { c=1; printf("%d\n",c); } else if(a==3&&b==1||a==1&&b==3) { c=2; pr...
128
memory_bytes
{'s_id': 's075294686', 'p_id': 'p02829', 'u_id': 'u542066314', 'date': '1577067272', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '358'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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\",&a);\n scanf(\"%d\",&b);\n if(a==1&&b==2||a==2&&b==1)\n {\...
CDSS_537580
CDSS
#include<stdio.h> int main() { int i,j; scanf("%d",&i); int ara[i]; for(int k=0;k<i;k++){ scanf("%d",&ara[k]); } int rafin; for(int k=0;k<i;k++){ for(j=0;j<i-k-1;j++) if(ara[j]>ara[j+1]){ rafin=ara[j]; ara[j]=ara[j+1]; ara[j+1]...
128
memory_bytes
{'s_id': 's131191191', 'p_id': 'p02935', 'u_id': 'u849466093', 'date': '1566182201', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '507'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 i,j;\n scanf(\"%d\",&i);\n int ara[i];\n for(int k=0;k<i;k++){\n scanf(\"%d...
CDSS_50165
CDSS
#include <stdio.h> #include <string.h> int main(void) { char s[90]; int i; while (fgets(s, 90, stdin) != NULL){ while (1){ if (strstr(s, "the") != NULL || strstr(s, "this") != NULL || strstr(s, "that") != NULL){ break; } for (i = 0; s[i] != '\0'; i++){ if ('a' <= s[i] && s[i] <= 'y'){ s...
524
memory_bytes
{'s_id': 's997070897', 'p_id': 'p00017', 'u_id': 'u192770095', 'date': '1460640433', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '430'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tchar s[90];\n\tint i;\n\t\n\twhile (fgets(s, 90, stdin) != NULL){\n\t\...
CDSS_104764
CDSS
#include <stdio.h> int main(void) { int a,b,i; a=0; for(i=1;i<5;i++){ scanf("%d",&b); a+=b; } printf("%d\n%d\n",a/60,a%60); return 0; }
1,844
memory_bytes
{'s_id': 's085497874', 'p_id': 'p00477', 'u_id': 'u204605037', 'date': '1504513210', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1844', '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\tint a,b,i;\n\ta=0;\n\tfor(i=1;i<5;i++){\n\t\tscanf(\"%d\",&b);\n\t\ta+=b;\n\t}\n\tprintf(\"%...
CDSS_149542
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 j,i,v; for(i=1;i<N;i++) { v=A[i]; j=i-1; while(j>=0 && A[j]>v...
2,100
memory_bytes
{'s_id': 's184190550', 'p_id': 'p02255', 'u_id': 'u026601330', 'date': '1588935691', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '617'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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) {\n printf(\" \");\n ...
CDSS_259022
CDSS
#include<stdio.h> int main(void){ int a,b,c,d; scanf("%d",&a); b = a / 3600 ; c = ( a % 3600)/60 ; d = (a % 3600) % 60; printf("%d:%d:%d\n",b,c,d); return 0 ; }
2,076
memory_bytes
{'s_id': 's618174254', 'p_id': 'p02390', 'u_id': 'u266663425', 'date': '1556005649', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2076', '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(void){\nint a,b,c,d;\nscanf(\"%d\",&a);\n\nb = a / 3600 ;\nc = ( a % 3600)/60 ;\nd = (a % 3600) % 60;\n\np...
CDSS_642520
CDSS
#include<stdio.h> #include<stdlib.h> int main(void){ int n,max =0,ans =0; scanf("%d",&n); char s[n]; int flag_a[26]; int flag_b[26]; scanf("%s",&s); int i,j; for(i=0;i<n;i++){ //flagの初期化 for(j=0;j<26;j++){ flag_a[j]=0; flag_b[j]=0; } //0からiまでにa-zがあるかどうか判別する for(j=0;j<i;j++){ if( s[j] =='a')fl...
128
memory_bytes
{'s_id': 's429943039', 'p_id': 'p03338', 'u_id': 'u366115355', 'date': '1532178020', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '2285'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint main(void){\n\tint n,max =0,ans =0;\n\tscanf(\"%d\",&n);\n\tchar s[n];\n\tint flag_a[26];...
CDSS_345632
CDSS
#include<stdio.h> int main(void){ int a[4][13],b[4][13],i,j,n,y,z; char x,d; scanf("%d",&n); for(i=0;i<4;++i){ for(j=0;j<13;++j)a[i][j]=0; } for(i=0;i<n;++i){ scanf("%*c%c %d",&x,&y); if(x=='S')z=0; else if(x=='H')z=1; else if(x=='C')z=2; else if(x=='D')z=3; a[z][y-1]=1; } for(i=0;i<4;++i){ for(...
596
memory_bytes
{'s_id': 's168459663', 'p_id': 'p02408', 'u_id': 'u732613014', 'date': '1489074373', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '554'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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[4][13],b[4][13],i,j,n,y,z;\n\tchar x,d;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<4;++i){\n\t\tfor...
CDSS_380938
CDSS
#include <stdio.h> #include <math.h> int main(){ int n, x, t; long ans; scanf("%d %d %d", &n, &x, &t); ans = ceil((double)n / x) * t; printf("%ld", ans); return 0; }
1,684
memory_bytes
{'s_id': 's633575046', 'p_id': 'p02576', 'u_id': 'u219803424', 'date': '1598123194', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1684', 'code_size': '190'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 int n, x, t;\n long ans;\n scanf(\"%d %d %d\", &n, &x, &t);\n ans = c...
CDSS_345753
CDSS
#include <stdio.h> #include <math.h> int main(int argc, const char * argv[]) { int Cards[4][13],i,j,n,number; char suit; for (i = 0; i < 4; i++) { for (j =0 ; j < 13; j++) { Cards[i][j] = 1; } } scanf("%d",&n); for (i = 0; i < n*2; i++) { ...
596
memory_bytes
{'s_id': 's004509768', 'p_id': 'p02408', 'u_id': 'u928088242', 'date': '1494405709', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '1192'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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(int argc, const char * argv[]) {\n \n \n int Cards[4][13],i,j,n,number;\n ...
CDSS_501640
CDSS
#include <stdio.h> int main(){ int K,X; scanf ("%d%d",&K,&X); if (500*K<X){ printf ("No"); } else { printf ("Yes"); } }
2,140
memory_bytes
{'s_id': 's174181054', 'p_id': 'p02811', 'u_id': 'u816631826', 'date': '1600197164', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '2140', 'code_size': '129'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n\tint K,X;\n\tscanf (\"%d%d\",&K,&X);\n\tif (500*K<X){\n\t\tprintf (\"No\");\n\t}\n\telse {\n\t\tprin...
CDSS_720289
CDSS
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { int i, j; int n; long long int na; int data[100001]; int dif[100001]; // long int times[100001]; long long int sum = 0; int times; int tme[100001]; long long int one; int sum2 = 0; int flag = 0; scan...
896
memory_bytes
{'s_id': 's102363144', 'p_id': 'p03808', 'u_id': 'u736339585', 'date': '1486276608', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '15', 'memory': '896', 'code_size': '1169'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <math.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n \nint main() {\n int i, j;\n int n;\n long long i...
CDSS_420877
CDSS
#include <stdio.h> #include <stdlib.h> int main(){ long int A,B,C,K,sum; scanf("%ld %ld %ld %ld",&A,&B,&C,&K); if(A>K) sum=K; else if(A+B>K) sum=A; else sum=A*2+B-K; printf("%ld",sum); return 0; }
1,732
memory_bytes
{'s_id': 's586133220', 'p_id': 'p02682', 'u_id': 'u395734151', 'date': '1589159593', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1732', 'code_size': '210'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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(){\n long int A,B,C,K,sum;\n scanf(\"%ld %ld %ld %ld\",&A,&B,&C,&K);\n if(A>K) su...
CDSS_414719
CDSS
#include<stdio.h> int main(void){ int n,n_ichinokurai; char buf[10]; char yomikata[3][4] = {("hon"),("bon"),("pon")}; fgets(buf, sizeof(buf), stdin); sscanf(buf, "%d\n", &n); n_ichinokurai = n % 10; if(n_ichinokurai==3){ printf("%s\n",yomikata[1]); } else if(n_ichinokurai==0 || n_ichinokurai...
1,616
memory_bytes
{'s_id': 's620290235', 'p_id': 'p02675', 'u_id': 'u136028496', 'date': '1589854592', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1616', 'code_size': '547'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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,n_ichinokurai;\n char buf[10];\n char yomikata[3][4] = {(\"hon\"),(\"bon\"),(\"pon\")}...
CDSS_266814
CDSS
#include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); printf("a "); if (a > b) { printf(">"); } else if (a == b) { printf("=="); } else { printf("<"); } printf(" b\n"); return 0; }
596
memory_bytes
{'s_id': 's420839924', 'p_id': 'p02391', 'u_id': 'u991182150', 'date': '1445566390', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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\nint main() {\n int a, b;\n\n scanf(\"%d %d\", &a, &b);\n\n printf(\"a \");\n if (a > b) {\n p...
CDSS_97598
CDSS
#include<stdio.h> int main(void) { int n,i,s1,s2,s3,w,sum; char x[6]; while(1){ scanf("%d",&n); if(n==0) break; s1=1; s2=2; s3=3; sum=s1; for(i=0;i<n;i++){ scanf("%s",x); if(x[0]=='N'){ w=s2; s2=7-s1; s1=w; } if(x[0]=='E'){ w=s1; s1=7-s3; s3=w; } if(x[0]=='S'){ w=s1; s1=7-s2; ...
1,744
memory_bytes
{'s_id': 's578381355', 'p_id': 'p00425', 'u_id': 'u376086644', 'date': '1510043851', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1744', 'code_size': '584'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,i,s1,s2,s3,w,sum;\n\tchar x[6];\n\twhile(1){\n\t\tscanf(\"%d\",&n);\n\t\tif(n==0) break;...
CDSS_128542
CDSS
#include<stdio.h> int P[100010]={0}; int d[100010]={0}; int e=0; void Marge(int p,int c){ P[c]=p; if(d[p]==d[c])P[c]=p; } int Find(int a,int b){ int r,n; for(r=a;P[r]-r;r=P[r]); for(;P[a]-a;){ n=P[a]; P[a]=r; a=n; } for(r=b;P[r]-r;r=P[r]); for(;P[b]-b;){ n=P[b]; P[b]=r; b=n; } ...
3,752
memory_bytes
{'s_id': 's735702489', 'p_id': 'p02078', 'u_id': 'u731027244', 'date': '1573033577', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '3752', 'code_size': '841'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 P[100010]={0};\nint d[100010]={0};\nint e=0;\nvoid Marge(int p,int c){\n P[c]=p;\n if(d[p]==d[c])P[c]=p;\n}\n...
CDSS_505450
CDSS
#include <stdio.h> #include <stdlib.h> #include <strings.h> void solver(int x) { int primes[100004]; int i, j; bzero(primes, sizeof(primes)); for (i=2; i<100004; i++) { if (primes[i]==1) continue; for (j=i+i; j<100004; j+=i){ primes[j] = 1; } } f...
512
memory_bytes
{'s_id': 's381023872', 'p_id': 'p02819', 'u_id': 'u913347928', 'date': '1578180961', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '512', '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 <stdlib.h>\n#include <strings.h>\n\nvoid\nsolver(int x)\n{\n int primes[100004];\n int i, j;\n\n ...
CDSS_562665
CDSS
#include<stdio.h> #include<stdlib.h> int cmp(const void*a,const void*b){ return *(int*)a-*(int*)b;} int main(){ int a[3]; int i; for(i=0;i<3;i++) scanf("%d",&a[i]); qsort(a,3,sizeof(int),cmp); printf("%d\n",a[0]+a[1]); return 0;}
128
memory_bytes
{'s_id': 's225079324', 'p_id': 'p03011', 'u_id': 'u188486233', 'date': '1569430948', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '248'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 cmp(const void*a,const void*b){\n return *(int*)a-*(int*)b;}\nint main(){\n int a[3];\n ...
CDSS_493206
CDSS
#include<stdio.h> int main() { int A,H,x,y; scanf("%d%d",&H,&A); if(H%A==0) { x=H/A; printf("%d",x); } else { y=(H/A)+1; printf("%d",y); } return 0; }
128
memory_bytes
{'s_id': 's584831405', 'p_id': 'p02783', 'u_id': 'u816631826', 'date': '1581371615', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '242'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,H,x,y;\n scanf(\"%d%d\",&H,&A);\n if(H%A==0)\n {\n x=H/A;\n printf(...
CDSS_70073
CDSS
#include <stdio.h> int main(void) { int h,m,s,hh,mm,ss,tsec,tsec3; while(scanf("%d%d%d",&h,&m,&s) , h != -1){ tsec = h * 3600 + m * 60 + s; tsec = 7200 - tsec; tsec3 = tsec * 3; hh = tsec / 3600; tsec = tsec - hh * 3600; mm = tsec / 60; tsec = tsec - mm * 60; ss = tsec; printf("%02d:%02d:...
612
memory_bytes
{'s_id': 's134885227', 'p_id': 'p00074', 'u_id': 'u444407884', 'date': '1439186585', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '510'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 h,m,s,hh,mm,ss,tsec,tsec3;\n\t\twhile(scanf(\"%d%d%d\",&h,&m,&s) , h != -1){\n\t\t\ttsec...
CDSS_640736
CDSS
#include <stdio.h> #include <limits.h> #define min(X, Y) ((X) < (Y) ? (X) : (Y)) int dp[100005]; int coin[100]; const int inf = INT_MAX / 2; int main() { int n; scanf("%d", &n); int coin_num = 0; coin[0] = 9; while (coin[coin_num] < n) { coin_num++; coin[coin_num] = coin[coin_num - 1] * 9; } coin_num++...
512
memory_bytes
{'s_id': 's454941596', 'p_id': 'p03329', 'u_id': 'u683588090', 'date': '1554071198', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '512', 'code_size': '702'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 <limits.h>\n\n#define min(X, Y) ((X) < (Y) ? (X) : (Y))\n\nint dp[100005];\nint coin[100];\nconst int inf...
CDSS_17723
CDSS
#include <stdio.h> int main(){ int i, j; for(i = 1; i <= 9; i++){ for(j = 1; j <= 9; j++){ printf("%dx%d=%d\n", i, j, i * j); } } return 0; }
520
memory_bytes
{'s_id': 's962830320', 'p_id': 'p00000', 'u_id': 'u145643522', 'date': '1421246510', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '520', '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>\n\nint main(){\n int i, j;\n\tfor(i = 1; i <= 9; i++){\n\t\tfor(j = 1; j <= 9; j++){\n\t\t\tprintf(\"%dx...
CDSS_171916
CDSS
#include <stdio.h> #define N 200000 void swap(int *x, int *y) { int t; t=*x; *x=*y; *y=t; } int main() { int i,j,k,n,a[N]; scanf("%d",&n); for(i=0;i<n;i++) scanf("%d",&a[i]); int min; for(i=0;i<=n-1;i++) { min=i; for(j=i;j<=n-1;j++) { if(a[j]<a[min]) min=j; } swap(&a[i...
2,048
memory_bytes
{'s_id': 's182030387', 'p_id': 'p02260', 'u_id': 'u531633312', 'date': '1596082213', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '464'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 200000\n\nvoid swap(int *x, int *y)\n{\n\tint t;\n\tt=*x;\n\t*x=*y;\n\t*y=t;\n } \n \n int main()\n {\n ...
CDSS_526070
CDSS
#include<stdio.h> #include<stdlib.h> int n, i; int a[100000][2]; int compare_int(const void *a, const void *b){ return *(int*)a - *(int*)b; } int main(void){ scanf("%d", &n); for(i=0; i<n; i++){ scanf("%d", &a[i][0]); a[i][1]=i; } qsort(a, n, sizeof(int)*2, compare_int); for(i=0; i<n; i++){ printf("%d "...
1,788
memory_bytes
{'s_id': 's546355408', 'p_id': 'p02899', 'u_id': 'u292252214', 'date': '1569719335', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '32', 'memory': '1788', 'code_size': '354'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\nint n, i;\nint a[100000][2];\nint compare_int(const void *a, const void *b){\n return *(int*...
CDSS_164985
CDSS
#include<stdio.h> main(){ int N, A[100], i, flag, a, x=0; scanf("%d", &N); for(i = 0; i < N; i++){ scanf("%d", &A[i]); } flag = 1; while(flag){ flag = 0; for(i = N-1; 0 < i; i--){ if(A[i] < A[i-1]){ a = A[i]; A[i] = A[i-1]; A[i-1] = a; flag = 1; x++; } } } for(i = 0; i <...
600
memory_bytes
{'s_id': 's381389894', 'p_id': 'p02259', 'u_id': 'u299354772', 'date': '1429230784', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '451'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nmain(){\n int N, A[100], i, flag, a, x=0;\n scanf(\"%d\", &N);\n for(i = 0; i < N; i++){\n scanf(\"%d\", &A[i...
CDSS_614073
CDSS
#include<stdio.h> int main() { int n,a,b; scanf("%d",&n); if(n==1) { printf("Hello World\n"); } if(n==2) { scanf("%d\n%d",&a,&b); printf("%d",a+b); } return 0; }
128
memory_bytes
{'s_id': 's533827203', 'p_id': 'p03238', 'u_id': 'u816631826', 'date': '1576035655', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '222'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int n,a,b;\n scanf(\"%d\",&n);\n if(n==1)\n {\n printf(\"Hello World\\n\");\n ...
CDSS_740435
CDSS
#include <stdio.h> char s[1010]; int a[4]; int main(){ scanf("%s",s); for(int i=0;s[i];i++){ if(s[i]=='N')a[0]|=1; if(s[i]=='S')a[1]|=1; if(s[i]=='E')a[2]|=1; if(s[i]=='W')a[3]|=1; } puts((a[0]^a[1])||(a[2]^a[3])?"No":"Yes"); }
128
memory_bytes
{'s_id': 's542446565', 'p_id': 'p04019', 'u_id': 'u382163500', 'date': '1566789985', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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\nchar s[1010];\nint a[4];\nint main(){\n\tscanf(\"%s\",s);\n\tfor(int i=0;s[i];i++){\n\t\tif(s[i]=='N')a[0]|=1;\n...
CDSS_707201
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #define _CRT_SECURE_NO_WARNINGS #define TLong long long int main(int argc, char const *argv[]){ int n,m,*a,*b; int cnt[57] = { 0 }; scanf("%d%d",&n,&m); a = (int *)malloc(sizeof(int) * m); b = (int *)malloc(sizeof(int)...
128
memory_bytes
{'s_id': 's482124707', 'p_id': 'p03720', 'u_id': 'u185464141', 'date': '1554041209', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '536'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 <time.h>\n\n#define _CRT_SECURE_NO_WARNINGS\...
CDSS_671896
CDSS
#include <stdio.h> int main(){ char a[3]; printf("%d", ((scanf("%s", a), a[0]+a[1]+a[2]-3*'0'))); }
256
memory_bytes
{'s_id': 's165014385', 'p_id': 'p03493', 'u_id': 'u194206730', 'date': '1544044491', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '101'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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[3];\n\tprintf(\"%d\", ((scanf(\"%s\", a), a[0]+a[1]+a[2]-3*'0')));\n}\nPredict its memory fo...
CDSS_375522
CDSS
#include <stdio.h> int main() { int i, j, k, N, ans = 0; scanf("%d", &N); for (i = 1; i <= N; i++) { for (j = 1; N - i * j >= 1; j++) ans++; } printf("%lld\n", ans); fflush(stdout); return 0; }
1,732
memory_bytes
{'s_id': 's625843426', 'p_id': 'p02548', 'u_id': 'u943800443', 'date': '1600542426', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '1732', 'code_size': '203'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 i, j, k, N, ans = 0;\n\tscanf(\"%d\", &N);\n\tfor (i = 1; i <= N; i++) {\n\t\tfor (j = 1; N...
CDSS_576491
CDSS
#include<stdio.h> #include<stdlib.h> #include<stdint.h> #include<inttypes.h> typedef struct segment_tree_void { void *array; int32_t size; size_t val_size; void (*func) (void *, const void *, const void *); } segment_tree; static inline void segment_tree_memcpy (void *dst, const void *src, size_t size) { ui...
1,536
memory_bytes
{'s_id': 's014539792', 'p_id': 'p03061', 'u_id': 'u425248533', 'date': '1556482227', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '74', 'memory': '1536', 'code_size': '3246'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<stdint.h>\n#include<inttypes.h>\n\ntypedef struct segment_tree_void {\n void *array;\...
CDSS_729136
CDSS
#include <stdio.h> int main() { char str[200]; char ans[200]; int i, j; i = j = 0; scanf("%[^\n\r]", str); ans[j++] = str[0]; for (i = 1; str[i - 1] != ' '; i++) { } ans[1] = str[i]; printf("A%cC\n", ans[1]); return 0; }
128
memory_bytes
{'s_id': 's479678777', 'p_id': 'p03860', 'u_id': 'u679951803', 'date': '1558294006', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', '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>\nint main() {\n char str[200];\n char ans[200];\n int i, j;\n i = j = 0;\n scanf(\"%[^\\n\\r]\", str...
CDSS_519591
CDSS
main(){ long long n, i=1, min=10000000000013; scanf("%lld",&n); for(;i*i<=n;i++) if(n%i==0){ min = (min<i+(n/i)?min:i+(n/i)); } printf("%lld",min-2); }
128
memory_bytes
{'s_id': 's257486664', 'p_id': 'p02881', 'u_id': 'u356069145', 'date': '1573442313', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '128', 'code_size': '174'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nmain(){\n long long n, i=1, min=10000000000013;\n scanf(\"%lld\",&n);\n for(;i*i<=n;i++)\n if(n%i==0){\n min = (min<i+(n/i)...
CDSS_133462
CDSS
#include <stdio.h> #include <string.h> #define MAX 1005 int calcstr(char x[],char y[]); int main() { int i,n; char x[MAX],y[MAX]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%s%s",x,y); printf("%d\n",calcstr(x,y)); } return 0; } int calcstr(char x[],char y[]) { int i,j,xlen,ylen,max=0,cal[MAX][...
4,544
memory_bytes
{'s_id': 's983877905', 'p_id': 'p02235', 'u_id': 'u359023956', 'date': '1502188586', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '4544', 'code_size': '691'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#define MAX 1005\nint calcstr(char x[],char y[]);\n\nint main()\n{\n int i,n;\n char x[MAX]...
CDSS_655788
CDSS
#include<stdio.h> int main() { long long int n, k; scanf("%lld %lld", &n, &k); long long int ans = 0; long long int b; for (b = k + 1; b <= n; b++) { ans += n / b * (b - k); if (n % b >= k) ans += (n % b) - k + 1; } if (k == 0) ans -= n - k; printf("%lld\n", ans); return 0; }
128
memory_bytes
{'s_id': 's416791013', 'p_id': 'p03420', 'u_id': 'u600300412', 'date': '1564768809', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', '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>\nint main()\n{\n\tlong long int n, k;\n\tscanf(\"%lld %lld\", &n, &k);\n\tlong long int ans = 0;\n\tlong long int b;...
CDSS_21007
CDSS
#include <stdio.h> #include <math.h> int main(void){ 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; }
524
memory_bytes
{'s_id': 's540475411', 'p_id': 'p00000', 'u_id': 'u245286435', 'date': '1351018758', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '188'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\n\nint main(void){\n \n int i, j;\n for(i = 1; i < 10; i++){\n for(j = 1; j < 10; j++){\...
CDSS_597904
CDSS
#include <stdio.h> int main(void) { int N, L, max = 0, sum = 0; scanf("%d", &N); for (int i = 0; i < N; i++) { scanf("%d", &L); max = max > L ? max : L; sum += L; } printf(sum - max > max ? "Yes" : "No"); return 0; }
128
memory_bytes
{'s_id': 's801626208', 'p_id': 'p03136', 'u_id': 'u194609748', 'date': '1557521232', '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\nint main(void) {\n int N, L, max = 0, sum = 0;\n \n scanf(\"%d\", &N);\n \n for (int i = 0; i < N; i++) {\n...
CDSS_627235
CDSS
main(n,m){scanf("%d%d",&n,&m);printf("%d\n",!!(n%m));}
128
memory_bytes
{'s_id': 's827125336', 'p_id': 'p03284', 'u_id': 'u437553474', 'date': '1535038065', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '55'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nmain(n,m){scanf(\"%d%d\",&n,&m);printf(\"%d\\n\",!!(n%m));}\n\nPredict its memory footprint.", "role": "user" }, { "conten...
CDSS_699916
CDSS
#include <stdio.h> #include <string.h> int main(void) { int n,i; scanf("%d",&n); int s[n]; for(i=0;i<=n-1;i++) {scanf("%d",&s[i]);} int next=1,count=0; while(next!=2) { next=s[next-1]; count++; if(count>n){count=-1;break;} } printf("%d",count); return 0; }
512
memory_bytes
{'s_id': 's991809128', 'p_id': 'p03680', 'u_id': 'u150386598', 'date': '1550328396', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '512', 'code_size': '282'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void)\n{\n\tint n,i;\n\tscanf(\"%d\",&n);\n\tint s[n];\n\tfor(i=0;i<=n-1;i++)\n\t\...
CDSS_589874
CDSS
#include <stdio.h> int main() { int N, M, C, A[20][20], B[20], i, j, sum, accepted = 0; scanf("%d%d%d", &N, &M, &C); for (j = 0; j < M; j++) { scanf("%d", &B[j]); } for (i = 0; i < N; i++) { for (j = 0; j < M; j++) { scanf("%d", &A[i][j]); } } for (i ...
128
memory_bytes
{'s_id': 's218392924', 'p_id': 'p03102', 'u_id': 'u909577618', 'date': '1552163416', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '549'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, M, C, A[20][20], B[20], i, j, sum, accepted = 0;\n\n scanf(\"%d%d%d\", &N, &M, &C);\...
CDSS_611124
CDSS
#include <stdio.h> int main() { int X, Y; scanf("%d %d", &X, &Y); printf("%d", X + Y / 2); return 0; }
128
memory_bytes
{'s_id': 's302953717', 'p_id': 'p03219', 'u_id': 'u421730290', 'date': '1562245992', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '110'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n\tint X, Y;\n\n\tscanf(\"%d %d\", &X, &Y);\n\n\tprintf(\"%d\", X + Y / 2);\n\n\treturn 0;\n}\nPred...
CDSS_586774
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> uint64_t seqlen(char *p) { uint64_t ctr = 0; for (; *p != '\0'; p++, ctr++) { if ((*p != 'A') && (*p != 'C') && (*p != 'G') && (*p != 'T')) break; } return ctr; } int main(int argc, char const* argv[]) { char str[11]; mems...
128
memory_bytes
{'s_id': 's313604110', 'p_id': 'p03086', 'u_id': 'u143536985', 'date': '1569032846', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '535'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 <stdint.h>\n\nuint64_t seqlen(char *p) {\n uint64_t ctr = 0;\n...
CDSS_365590
CDSS
#include <stdio.h> #include <ctype.h> int main(void){ char ch; int alfa[27] = {}; int i; i=0; while(scanf("%c", &ch) != EOF){ if(isupper(ch)){ ch = tolower(ch); } i = ch - 'a'; alfa[i] += 1; } for(i=0;i<26;i++){ printf("%c : %d\n",i+'a',a...
548
memory_bytes
{'s_id': 's541435742', 'p_id': 'p02417', 'u_id': 'u995116138', 'date': '1464586706', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '353'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <ctype.h>\n \nint main(void){\n char ch;\n int alfa[27] = {};\n int i;\n i=0;\n while(scan...
CDSS_509423
CDSS
#include<stdio.h> int main() { int a,b,c; scanf("%d %d %d", &a, &b, &c); if(a+b+c>=22) printf("bust"); else printf("win"); }
128
memory_bytes
{'s_id': 's432112236', 'p_id': 'p02835', 'u_id': 'u018679195', 'date': '1581138638', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '130'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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+c>=22)\n\tprintf(\"bust\");\n\telse\n\tpr...
CDSS_638415
CDSS
#include <stdio.h> int main(void) { int d,n,i,p=1; scanf("%d %d",&d,&n); for(i=0;i<d;i++){ p=p*100; } if(n==100)n=101; printf("%d",p*n); return 0; }
128
memory_bytes
{'s_id': 's130986407', 'p_id': 'p03324', 'u_id': 'u710397511', 'date': '1540303673', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '159'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 d,n,i,p=1;\n\tscanf(\"%d %d\",&d,&n);\n\tfor(i=0;i<d;i++){\n\t\tp=p*100;\n\t}\n\tif(n==1...
CDSS_387664
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<stdbool.h> #include<math.h> #include<limits.h> #define MAX 200002 int min(int a,int b){ if(a<b) return a; else return b; } int main(){ int N; char c[MAX]; scanf("%d",&N); scanf("%s",c); int r=0,w=0; for(int i=0;i<N;i++){ ...
1,924
memory_bytes
{'s_id': 's508162149', 'p_id': 'p02597', 'u_id': 'u270825463', 'date': '1596418087', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1924', 'code_size': '553'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n#include<stdbool.h>\n#include<math.h>\n#include<limits.h>\n#define MAX 2000...
CDSS_645635
CDSS
#include <stdio.h> int main() { int a,b; scanf("%d %d",&a,&b); if(a>b){printf("%d\n",a-1);} else {printf("%d\n",a);} return 0; }
128
memory_bytes
{'s_id': 's359421752', 'p_id': 'p03359', 'u_id': 'u302999878', 'date': '1525896725', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '154'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n\nint main()\n{\n int a,b; \n\n scanf(\"%d %d\",&a,&b);\n\n if(a>b){printf(\"%d\\n\",a-1);}\n else {...
CDSS_739682
CDSS
#include<stdio.h> #include<string.h> int main(void) { int i; char str[101]; for(i=0;i<100;i++) { str[i] = '0'; } scanf("%s",&str); int alphabet[26]; for(i=0;i<(sizeof(alphabet)/sizeof(alphabet[1]));i++) { alphabet[i] = 0; } char judger[26] = {'a','b','c','d','e','f','g','h'...
128
memory_bytes
{'s_id': 's995673822', 'p_id': 'p04012', 'u_id': 'u329093571', 'date': '1576863059', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1099'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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{\n int i;\n char str[101];\n for(i=0;i<100;i++)\n {\n str[i] = ...
CDSS_205225
CDSS
#include <stdio.h> #include <math.h> typedef struct Point_ { double x; double y; } Point; void koch(int n, Point a, Point b) { if (n == 0) return; Point s, t, u; double th = M_PI * 60.0 / 180.0; s.x = (2.0 * a.x + 1.0 * b.x) / 3.0; s.y = (2.0 * a.y + 1.0 * b.y) / 3.0; t.x = (...
2,044
memory_bytes
{'s_id': 's057229954', 'p_id': 'p02273', 'u_id': 'u981675881', 'date': '1527777898', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '952'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 Point_\n{\n double x;\n double y;\n} Point;\n\nvoid koch(int n, Point a,...
CDSS_655512
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdint.h> // uint64_t #define max(a,b) ((a) > (b) ? (a) : (b)) #define min(a,b) ((a) > (b) ? (b) : (a)) int get_int(void) { int num; scanf("%d", &num); return num; } int get_int2(int *a1, int *a2) { scanf("%d %d", a1, a2); return 0; } in...
128
memory_bytes
{'s_id': 's218668750', 'p_id': 'p03418', 'u_id': 'u866370648', 'date': '1591180120', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '841'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 <stdint.h> // uint64_t\n\n#define max(a,b) ((a) > (b) ? (a) : (...
CDSS_654964
CDSS
#include<stdio.h> int main(void){ int a,b,i,d1,d2,d4,d5,cnt=0; scanf("%d%d",&a,&b); for(i=a;i<=b;i++){ d5=i/10000; d4=(i%10000)/1000; d2=(i%100)/10; d1=i%10; if(d5==d1 && d4==d2){ cnt++; //printf("%d %d %d %d %d\n",i,d5,d4,d2,d1); } ...
128
memory_bytes
{'s_id': 's926863621', 'p_id': 'p03416', 'u_id': 'u234365185', 'date': '1570300966', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '364'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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,i,d1,d2,d4,d5,cnt=0;\n scanf(\"%d%d\",&a,&b);\n for(i=a;i<=b;i++){\n d5...
CDSS_203649
CDSS
#include<stdio.h> #include<stdlib.h> #define N 500000 #define INFTY 10000000000 int count,A[N]; void merge(int *A,int left,int mid,int right){ int n1,n2,i,j,k; n1 = mid - left; n2 = right - mid; long L[n1],R[n2]; for(i=0;i<n1;i++) L[i] = A[left + i]; for(i=0;i<n2;i++) R[i] = A[mid + i]; L[n1]...
7,624
memory_bytes
{'s_id': 's030413780', 'p_id': 'p02272', 'u_id': 'u863928505', 'date': '1530249719', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '7624', 'code_size': '976'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 500000\n#define INFTY 10000000000\n\nint count,A[N];\n\nvoid merge(int *A,int left,...
CDSS_521989
CDSS
#include <stdio.h> #include <stdlib.h> int main(void) { int N; char S[100000]={'\0'}; scanf("%d",&N); scanf("%s",&S); int i=0; int count=1; while (i<N-1){ if (S[i]==S[i+1]) {i++;} else if (S[i]!=S[i+1]) {count++;i++;} } printf("%d",count); return EXIT_SUCCESS; }
256
memory_bytes
{'s_id': 's976622929', 'p_id': 'p02887', 'u_id': 'u959524814', 'date': '1582873262', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '272'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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) {\nint N;\nchar S[100000]={'\\0'};\nscanf(\"%d\",&N);\nscanf(\"%s\",&S);\nint ...
CDSS_315642
CDSS
#include <stdio.h> int main() { double r,S,l; scanf ("%lf",&r); S = r*r*3.141592653589; l = r*2*3.141592653589; printf ("%.5lf %.5lf",S,l); return 0; }
652
memory_bytes
{'s_id': 's681473124', 'p_id': 'p02400', 'u_id': 'u952285106', 'date': '1500654044', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '652', 'code_size': '180'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 double r,S,l;\n\n scanf (\"%lf\",&r);\n\n S = r*r*3.141592653589;\n l = r*2*3.141592653...
CDSS_426918
CDSS
#include<stdio.h> int main (void){ int k,a,b; scanf("%d %d %d",&k,&a,&b); for(int i = a;i <=b;i++){ if(i%k==0){ printf("OK"); return 0; } } printf("NG"); return 0; }
1,732
memory_bytes
{'s_id': 's215854362', 'p_id': 'p02693', 'u_id': 'u391247609', 'date': '1588468576', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1732', '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 (void){\n int k,a,b;\n \n scanf(\"%d %d %d\",&k,&a,&b);\n \n for(int i = a;i <=b;i++){\n if(i%k=...
CDSS_253463
CDSS
#include <stdio.h> int main(void) { int a, b; int s, l; scanf("%d%d", &a, &b); s = a * b; l = a * 2 + b * 2; printf("%d %d\n", s, l); return 0; }
596
memory_bytes
{'s_id': 's755083657', 'p_id': 'p02389', 'u_id': 'u398702593', 'date': '1479130355', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '162'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int a, b;\n int s, l;\n\n scanf(\"%d%d\", &a, &b);\n s = a * b;\n l = a * 2 + b * 2;\n ...
CDSS_236945
CDSS
#include <stdio.h> #include <math.h> #define SUM(a,b) ((a)+(b)) #define MAX(a,b) ((a>b)? (a):(b)) int main(void){ int i,j,n;double x[100],y[100],m; scanf("%d",&n); for(i=0;i<n;i++){scanf("%lf",&x[i]);} for(i=0;i<n;i++){scanf("%lf",&y[i]);} for(double j=1.0;j<=3.0;j=j+1.0,m=0){ for(i=0;i<n;i+...
2,108
memory_bytes
{'s_id': 's115662500', 'p_id': 'p02382', 'u_id': 'u136916346', 'date': '1526877695', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '494'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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#define SUM(a,b) ((a)+(b))\n#define MAX(a,b) ((a>b)? (a):(b))\nint main(void){\n int i,j,n;d...
CDSS_84056
CDSS
#include <stdio.h> #include <stdlib.h> int bubbleSort(int array[],int n); int main() { int arraySize; int* insertedData; int changeLineFlag=0; while(1) { scanf("%d", &arraySize); if(arraySize==0)break; if(changeLineFlag==0) { changeLineFlag++; } ...
2,100
memory_bytes
{'s_id': 's180823933', 'p_id': 'p00167', 'u_id': 'u990433337', 'date': '1519933912', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', '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 \nint bubbleSort(int array[],int n);\n \nint main() {\n int arraySize;\n int* inserted...
CDSS_158000
CDSS
#include<stdio.h> #include<math.h> int main(){ int i,n,d,c=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&d); c+=isPrime(d); } printf("%d\n",c); return 0; } int isPrime(int d){ int i; if(d==2)return 1; if(d<2||d%2==0)return 0; i=3; while(i<=sqrt(d)){ if(d%i==0)return 0; ...
2,140
memory_bytes
{'s_id': 's277420262', 'p_id': 'p02257', 'u_id': 'u658429439', 'date': '1529219811', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', '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<math.h>\n\nint main(){\n int i,n,d,c=0;\n\n scanf(\"%d\",&n);\n \n for(i=0;i<n;i++){\n scanf(\"%d\"...
CDSS_515632
CDSS
#include <stdio.h> int main() { int r; scanf("%d",&r); char vetor[r]; scanf("%s",vetor); if(r%2==0){ for(int x=0;x<r/2;++x){ if(vetor[x]!=vetor[x+(r/2)]){ printf("No\n"); return 0; } } } else{ printf("No\n"); return 0; } printf("Yes\n"); return...
256
memory_bytes
{'s_id': 's865930306', 'p_id': 'p02860', 'u_id': 'u784277111', 'date': '1573957751', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '256', 'code_size': '325'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 r;\n\tscanf(\"%d\",&r);\n\tchar vetor[r];\n\tscanf(\"%s\",vetor);\n\tif(r%2==0){\n\t for(in...
CDSS_331134
CDSS
#include <stdio.h> int main() { int i, k, m, n = 0; int h[100], w[100]; while(1) { scanf("%d %d", &h[n], &w[n]); if(h[n] == 0 && w[n] == 0) break; n++; } for(i = 0; i < n; i++) { for(k = 0; k < h[i]; k++) { for(m = 0; m < w[i]; m++) printf("#"); ...
1,756
memory_bytes
{'s_id': 's753709909', 'p_id': 'p02403', 'u_id': 'u614095715', 'date': '1511443282', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1756', '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() {\n int i, k, m, n = 0;\n int h[100], w[100];\n while(1) {\n scanf(\"%d %d\", &h[n], ...
CDSS_660470
CDSS
#include<stdio.h> int main(void){ int x,A,B,y,i; scanf("%d",&x); scanf("%d",&A); scanf("%d",&B); y=x-A; while(y>=B){ y=y-B; } printf("%d",y); return 0; }
128
memory_bytes
{'s_id': 's630558707', 'p_id': 'p03447', 'u_id': 'u552139260', 'date': '1517192070', '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(void){\nint x,A,B,y,i;\nscanf(\"%d\",&x);\nscanf(\"%d\",&A);\nscanf(\"%d\",&B);\ny=x-A;\nwhile(y>=B){\ny=y...
CDSS_308096
CDSS
#include<stdio.h> int main() { int a,b; int d,r; double f; scanf("%d%d",&a,&b); d=a/b;r=a%b;f=(double)a/b; printf("%d %d %6f",d,r,f); return 0; }
636
memory_bytes
{'s_id': 's420992624', 'p_id': 'p02399', 'u_id': 'u369202024', 'date': '1431517269', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '152'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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;\n\tint d,r;\n\tdouble f;\n\tscanf(\"%d%d\",&a,&b);\n\td=a/b;r=a%b;f=(double)a/b;\n\tprint...
CDSS_240472
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': 's268893778', 'p_id': 'p02388', 'u_id': 'u367165501', 'date': '1429505603', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '115'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n \n int x;\n\tscanf(\"%d\", &x);\n\tprintf(\"%d\\n\", x*x*x);\n\n \n\n return 0;\n}\...
CDSS_615997
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <stdbool.h> #define PI 3.141592653589793238462643383279 void change(int *x, int *y){ int z; z = *x; *x = *y; *y = z; } int compare_int(const void *a, const void *b){ return *(int*)a - *(int*)b; } int gcd(int a, int b) { int c; if (a < b) {...
256
memory_bytes
{'s_id': 's928935255', 'p_id': 'p03241', 'u_id': 'u824196989', 'date': '1538877667', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1561', 'memory': '256', 'code_size': '650'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 <stdbool.h>\n#define PI 3.141592653589793238462643383279\n\n\nvoi...
CDSS_739680
CDSS
i;main(j){for(;(j=getchar())>96;i^=j);puts("No\0Yes"+!i*3);}
128
memory_bytes
{'s_id': 's497098920', 'p_id': 'p04012', 'u_id': 'u653187094', 'date': '1579358666', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '60'}
[ { "content": "Your task is to predict the 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;main(j){for(;(j=getchar())>96;i^=j);puts(\"No\\0Yes\"+!i*3);}\nPredict its memory footprint.", "role": "user" }, { "cont...
CDSS_361924
CDSS
#include<stdio.h> char a[1300]; int main(void){ int i; fgets(a,1300,stdin); i = 0; while(a[i] != '\0'){ if(a[i] >= 'A' && a[i] <= 'Z') printf("%c",a[i] + 0x20); else if(a[i] >= 'a' && a[i] <= 'z') printf("%c",a[i] - 0x20); else printf("%c",...
524
memory_bytes
{'s_id': 's970330581', 'p_id': 'p02415', 'u_id': 'u172120093', 'date': '1488442426', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '361'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 a[1300];\n\nint main(void){\n int i;\n\n fgets(a,1300,stdin);\n\n i = 0;\n while(a[i] != '\\0'){...
CDSS_654033
CDSS
#include<stdio.h> #define MOD 1000000009+7 int main(){ int N,i,j,ans=0,tmp; scanf("%d",&N); int a[N],b[N],c[N],d[N]; for(i=0;i<N;i++){ scanf("%d %d",&a[i],&b[i]); } for(i=0;i<N;i++){ scanf("%d %d",&c[i],&d[i]); } for(i=0;i<N-1;i++){ for(j=0;j<N-i-1;j++){ if(a[j]>a[j+1]){ tmp=a[j]; a[j]=a[j+1...
128
memory_bytes
{'s_id': 's368795403', 'p_id': 'p03409', 'u_id': 'u573082373', 'date': '1531907176', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '717'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 MOD 1000000009+7\n\nint main(){\n\tint N,i,j,ans=0,tmp;\n\tscanf(\"%d\",&N);\n\tint a[N],b[N],c[N],d[N];\n\...
CDSS_66084
CDSS
#include<stdio.h> int a[200000]; int main(void){ int i,j,k,input,count=0,Count; for(i=2;i<=200000;i++){ if(a[i]==0){ count=count+i; a[i]=count; for(j=2;i*j<=200000;j++){ a[i*j]=-1; } } } while(1){ scanf("%d",&input);...
1,380
memory_bytes
{'s_id': 's406275645', 'p_id': 'p00053', 'u_id': 'u324596395', 'date': '1439282720', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1380', 'code_size': '564'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint a[200000];\nint main(void){\n int i,j,k,input,count=0,Count;\n for(i=2;i<=200000;i++){\n if(a[i]==...
CDSS_125686
CDSS
#include<stdio.h> #include<stdlib.h> typedef struct{ int tID; int time; int count; int c[10]; int p[10]; int penalty; }Data; Data icpc[50]; int T,P,R; int comp(const void *a,const void *b){ Data c = *(Data *)a; Data d = *(Data *)b; if(c.count>d.count) return -1; else if(c.count<d...
2,104
memory_bytes
{'s_id': 's830245161', 'p_id': 'p01514', 'u_id': 'u952081851', 'date': '1528301772', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '1545'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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>\ntypedef struct{\n int tID;\n int time;\n int count;\n int c[10];\n int p[10];\n ...
CDSS_491700
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> int comp(const void *a, const void *b) { if (*(int *)a > *(int *)b) return 1; else return -1; } int main() { int N, i, j, judge = 0; scanf("%d", &N); long long A[N]; for (int i = 0; i < N; i++) { scanf("%ll...
3,324
memory_bytes
{'s_id': 's311034746', 'p_id': 'p02779', 'u_id': 'u283285729', 'date': '1581285889', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '54', 'memory': '3324', 'code_size': '607'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 comp(const void *a, const void *b)\n{\n if (*(int *)a > *(int *...
CDSS_65263
CDSS
#include <stdio.h> #include <string.h> /** Application main entry point. */ int main ( int argc, char * argv[ ] ) { int devnull; char s[ 16 ]; int res[ 4 ] = { 0 }; int i; while ( scanf ( " %d,%s", &devnull, s ) == 2 ) { ++res[ 1 * !strcmp ( s, "B" ) + 2 * !strcmp ( s, "AB" ...
0
memory_bytes
{'s_id': 's545967554', 'p_id': 'p00049', 'u_id': 'u009961299', 'date': '1319438596', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '451'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\n/** Application main entry point. */\nint main (\n int argc,\n char * argv[ ]\n )\n...
CDSS_675043
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> #include <math.h> int main(void){ char N[5]; scanf("%s", N); if((N[0] == N[1] && N[1] == N[2]) || (N[1] == N[2] && N[2] == N[3])){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
1,664
memory_bytes
{'s_id': 's087816500', 'p_id': 'p03543', 'u_id': 'u746385710', 'date': '1600575900', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1664', 'code_size': '309'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include <math.h>\n\nint main(void){\n\n char N...
CDSS_155555
CDSS
#include <stdio.h> #include <math.h> int main(){ int n,i,j,flag=0; int count=0; scanf("%d",&n); int sosuu[n]; for(i=0;i<n;i++){ scanf("%d",&sosuu[i]); } for(i=0;i<n;i++){ if(sosuu[i]==2){ count++; } if(sosuu[i]<2 || sosuu[i]%2==0)flag=1; j=3; while(j<=sqrt((double)sosuu[i...
628
memory_bytes
{'s_id': 's902001582', 'p_id': 'p02257', 'u_id': 'u270724613', 'date': '1461055409', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '50', 'memory': '628', '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#include <math.h>\nint main(){\n int n,i,j,flag=0;\n int count=0;\n scanf(\"%d\",&n);\n int sosuu[n];\n for(i...
CDSS_114164
CDSS
#include <stdio.h> int main(void){ int n,r; int p,c; int tmp[50]; int i,j; int card[50]; for(;;){ scanf("%d %d",&n,&r); if(n==0&&r==0)break; for(i=0;i<n;i++)card[i]=n-i; for(i=0;i<r;i++) { scanf("%d %d",&p,&c); for(j=0;j<p-1+c;j++) tmp[j]=card[j]; ...
600
memory_bytes
{'s_id': 's153903347', 'p_id': 'p00710', 'u_id': 'u536413778', 'date': '1445026908', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '495'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\n int n,r;\n int p,c;\n int tmp[50];\n int i,j;\n int card[50];\n\n for(;;){\n\n scan...