identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_658910
CDSS
#include <stdio.h> int main(void) { int n,i,j,t,b=0,c=1; scanf("%d",&n); int a[100]; for(i=0;i<=n-1;i++){scanf("%d",&a[i]);} for(i=n-1;i>=1;i--)for(j=1;j<=i;j++){ t=a[j-1]; if(a[j-1]<a[j]){a[j-1]=a[j];a[j]=t;} } for(i=0;i<n;i++){b+=c*a[i];c*=(-1);} printf("%d",b); return 0; }
128
memory_bytes
{'s_id': 's486284059', 'p_id': 'p03434', 'u_id': 'u169170719', 'date': '1519087658', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '292'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include <stdio.h>\n\nint main(void)\n{\n\tint n,i,j,t,b=0,c=1;\n\tscanf(\"%d\",&n);\n\tint a[100];\n\tfor(i=0;i<=n-1;i++){scanf(\"%...
CDSS_493598
CDSS
#include<stdio.h> int main(){ int H,A; scanf("%d%d",&H,&A); if(H%A==0)printf("%d",H/A); else printf("%d",H/A+1); return 0; }
128
memory_bytes
{'s_id': 's330339546', 'p_id': 'p02783', 'u_id': 'u321065001', 'date': '1580070223', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '138'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int H,A;\n scanf(\"%d%d\",&H,&A);\n if(H%A==0)printf(\"%d\",H/A);\n else printf(\"%d\",H/A+1);\n ...
CDSS_716747
CDSS
#include <stdio.h> int main(void){ int a; scanf("%d", &a); printf("%d", a * 800 - (a / 15 * 200)); }
128
memory_bytes
{'s_id': 's763291401', 'p_id': 'p03795', 'u_id': 'u909771578', 'date': '1591387828', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '117'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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;\n scanf(\"%d\", &a);\n printf(\"%d\", a * 800 - (a / 15 * 200));\n \n}\nPredi...
CDSS_96202
CDSS
#include <stdio.h> int main(void) { int R, B, W, G; if (scanf("%d%d%d%d", &R, &B, &W, &G) != 4) return 1; printf("%d\n", R + B + W + G); return 0; }
2,128
memory_bytes
{'s_id': 's272493576', 'p_id': 'p00399', 'u_id': 'u543521645', 'date': '1577978863', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2128', 'code_size': '155'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint R, B, W, G;\n\tif (scanf(\"%d%d%d%d\", &R, &B, &W, &G) != 4) return 1;\n\tprintf(\"%d\\n...
CDSS_362848
CDSS
#include<stdio.h> int main(void) { char str[1200]; int i; scanf("%[^\n]", str); for(i=0; str[i]!='\0'; i++){ if((str[i]>='A') && (str[i]<='Z')){ str[i] += 32;} else if((str[i]>='a') && (str[i]<='z')){ str[i] -= 32;}} printf("%s\n", str); }
2,072
memory_bytes
{'s_id': 's564812676', 'p_id': 'p02415', 'u_id': 'u269203218', 'date': '1578717227', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2072', 'code_size': '285'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 char str[1200];\n\tint i;\n \n scanf(\"%[^\\n]\", str);\n\t\n\tfor(i=0; str[i]!='\\0...
CDSS_384427
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <limits.h> long f(long X, long K, long D) { { long tmp = ((labs(X) / D) > K ? K : labs(X) / D); X -= tmp * D; K -= tmp; } if (K %2== 1) { X -= D; } return labs(X); } int main(vo...
2,148
memory_bytes
{'s_id': 's224309816', 'p_id': 'p02584', 'u_id': 'u396511998', 'date': '1597672563', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '2148', 'code_size': '434'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#include <limits.h>\nlong f(long X, long K, long D)\n...
CDSS_666677
CDSS
#include <stdio.h> int main(void){ int m; scanf("%d", &m); printf("%d\n", 48-m); return 0; }
1,684
memory_bytes
{'s_id': 's028274942', 'p_id': 'p03473', 'u_id': 'u419845534', 'date': '1592964225', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1684', 'code_size': '104'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 m;\n scanf(\"%d\", &m);\n printf(\"%d\\n\", 48-m);\n \n return 0;\n}\nPredict its mem...
CDSS_299208
CDSS
#include <stdio.h> int main(void) { int i, x; for (i = 1; i <= 10001; i++) { scanf("%d", &x); if (!x) break; printf("Case %d: %d\n", i, x); } return 0; }
2,092
memory_bytes
{'s_id': 's345007525', 'p_id': 'p02396', 'u_id': 'u042565257', 'date': '1570082364', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2092', '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>\n\nint\nmain(void)\n{\n\tint i, x;\n\n\tfor (i = 1; i <= 10001; i++) {\n\t\tscanf(\"%d\", &x);\n\t\tif (!x)\n\t\t\t...
CDSS_652482
CDSS
#include<stdio.h> int main(void) { int n,d,x,a[101]={0},i,j,c=0; scanf("%d%d%d",&n,&d,&x); for(i=1;i<=n;i++) scanf("%d",&a[i]); for(i=1;i<=n;i++){ j=0; while((1+(j*a[i]))<=d){ c++; j++; } } c+=x; printf("%d\n",c); return 0; }
128
memory_bytes
{'s_id': 's476067379', 'p_id': 'p03400', 'u_id': 'u029818749', 'date': '1591617354', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '313'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 n,d,x,a[101]={0},i,j,c=0;\n scanf(\"%d%d%d\",&n,&d,&x);\n for(i=1;i<=n;i++)\n ...
CDSS_494792
CDSS
#include<stdio.h> #include<stdlib.h> int main(void){ int H,N,A; int ans; scanf("%d",&H); scanf("%d",&N); ans=0; for(int i=0;i<N;i++){ scanf("%d",&A); ans+=A; } if(ans >= H){ printf("Yes"); }else{ printf("No"); } return 0; }
128
memory_bytes
{'s_id': 's031902062', 'p_id': 'p02784', 'u_id': 'u350498965', 'date': '1580069299', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '128', 'code_size': '304'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint main(void){\n int H,N,A;\n int ans;\n\n scanf(\"%d\",&H);\n scanf(\"%d\",&N);...
CDSS_133977
CDSS
#include<stdio.h> #include<string.h> int LCS(char*,char*); int main() { int n,i,j; char C1[1001],C2[1001]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%s",C1); scanf("%s",C2); printf("%d\n",LCS(C1,C2)); } return 0; } int LCS(char *A,char *B) { int c[1001][1001],i,j,x,y; x=strlen(A)+1; y=strl...
5,688
memory_bytes
{'s_id': 's325281537', 'p_id': 'p02235', 'u_id': 'u764082611', 'date': '1533638703', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '5688', 'code_size': '598'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 LCS(char*,char*);\n\nint main()\n{\n int n,i,j;\n char C1[1001],C2[1001];\n scanf(\"%d\"...
CDSS_473063
CDSS
#include<stdio.h> int main(){ int L; scanf("%d",&L); printf("%.12f \n",(double)L*L*L/27); }
128
memory_bytes
{'s_id': 's532334130', 'p_id': 'p02731', 'u_id': 'u816631826', 'date': '1586558593', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '91'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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(){\nint L;\nscanf(\"%d\",&L);\nprintf(\"%.12f \\n\",(double)L*L*L/27);\n}\nPredict its memory footprint.",...
CDSS_97272
CDSS
#include<stdio.h> #include<string.h> int main(void){ int n,m,i,j,k,fg; char ch,str[2][100]; while(scanf("%d\n",&n),n){ for(i=0,j=0;i<n;i++,j++){ scanf("%c %c\n",&str[0][i],&str[1][i]); } scanf("%d\n",&m); for(k=0;k<m;k++){ scanf("%c\n",&ch); fg=0; for(i=0;i<j+1;i++){ if...
0
memory_bytes
{'s_id': 's316860299', 'p_id': 'p00424', 'u_id': 'u047988051', 'date': '1323691986', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '0', 'code_size': '468'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nint main(void){\n int n,m,i,j,k,fg;\n char ch,str[2][100];\n\n\n while(scanf(\"%d\\n\",&n)...
CDSS_610392
CDSS
#include <stdio.h> long exist(long y, long tag){ while(y != 0){ if(tag == y % 10) return 1; else y=y/10; } return 0; } long count753(long x, long y){ if (x < y) return 0; else{ long yes = exist(y,3)&&exist(y,5)&&exist(y,7); long ret = yes + count753(x,y*10+3) + count753(x,y*10+5) +...
128
memory_bytes
{'s_id': 's356604168', 'p_id': 'p03212', 'u_id': 'u955251526', 'date': '1544626780', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '453'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nlong exist(long y, long tag){\n while(y != 0){\n if(tag == y % 10)\n return 1;\n else y=y/10;\n }\n...
CDSS_668469
CDSS
#include <stdio.h> #include <string.h> int digitSum(int i){ int sum=0; while(i>0){ sum+=i%10; i/=10; }return sum; } int main() { int N,A,B; scanf("%d %d %d",&N,&A,&B); int sum=0; for(int i=1;i<=N;i++){ if(digitSum(i)>=A&&digitSum(i)<=B){ sum+=i; } } printf("%d\n",sum); }
1,732
memory_bytes
{'s_id': 's835677755', 'p_id': 'p03478', 'u_id': 'u018679195', 'date': '1596570990', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', 'code_size': '293'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 digitSum(int i){\n\tint sum=0;\n\twhile(i>0){\n\t\tsum+=i%10;\n\t\ti/=10;\n\t}return su...
CDSS_139699
CDSS
#include<stdio.h> #define MAX 100 #define WHITE 0 #define GRAY 1 #define BLACK 2 #define INF 1000000 int prim(int); int n,M[MAX][MAX]; int main(){ int i,j,e; scanf("%d",&n); for(i=0;i<n;i++){ for(j=0;j<n;j++){ scanf("%d",&e); if(e==-1)M[i][j]=INF; else M[i][j]=e; } } printf("%d\...
2,040
memory_bytes
{'s_id': 's013228241', 'p_id': 'p02241', 'u_id': 'u120374015', 'date': '1580447677', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '888'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\n#define WHITE 0\n#define GRAY 1\n#define BLACK 2\n#define INF 1000000\n\nint prim(int);\nint n,M...
CDSS_682129
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int H, W; int i,j,count; char S[50][51] = {}; char tempS[52][52] = {}; scanf("%d %d", &H, &W); for(i = 0; i < H; i++) { scanf("%s", S[i]); sprintf(tempS[i+1]," %s",S[i]); } for(i = 1; i < H+1; i++) { for(j = 1; j < W+1; j++) { count = 0; ...
128
memory_bytes
{'s_id': 's462947770', 'p_id': 'p03574', 'u_id': 'u966921103', 'date': '1508215586', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '781'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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{\n\tint H, W;\n\tint i,j,count;\n\tchar S[50][51] = {};\n\tchar tempS[52][52] ...
CDSS_492581
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int n, k; scanf("%d %d", &n, &k); long long int p[n]; for(int i=0;i<n;i++){ scanf("%lld", &p[i]); } double pd[n], s[n]; s[0]=0.0; for(int i=0; i<n; i++) { pd[i] = ((double)p[i]+1.0)/2.0; } for(int i=0; i<n; i++) { s[i+1] = s[i...
4,864
memory_bytes
{'s_id': 's962602433', 'p_id': 'p02780', 'u_id': 'u301600230', 'date': '1581280881', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '21', 'memory': '4864', 'code_size': '493'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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{\n int n, k; \n scanf(\"%d %d\", &n, &k);\n \n long long int p[n];\n f...
CDSS_384999
CDSS
#include<stdio.h> long long MAX(long long a,long long b){return a<b?b:a;} long long d[3010][3010][5]={},m[3010][3010]; int main(){ int h,w,i,j,k,n,y,x,a; scanf("%d %d %d",&h,&w,&n); for(i=0;i<n;i++){ scanf("%d %d %d",&y,&x,&a); m[y][x]=a; } for(i=1;i<=h;i++){ for(j=1;j<=w;j++){ for(k=0;k<=3;...
425,136
memory_bytes
{'s_id': 's899940716', 'p_id': 'p02586', 'u_id': 'u121922047', 'date': '1597545167', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '496', 'memory': '425136', 'code_size': '910'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nlong long MAX(long long a,long long b){return a<b?b:a;}\nlong long d[3010][3010][5]={},m[3010][3010];\nint main(){\...
CDSS_501206
CDSS
// ABC 151-D // 2020.1.12 bal4u #include <stdio.h> #include <string.h> #if 1 #define gc() getchar_unlocked() #else #define gc() getchar() #endif int in() { // 非負整数の入力 int n = 0, c = gc(); do n = 10 * n + (c & 0xf); while ((c = gc()) >= '0'); return n; } void ins(char *s) { // 文字列の入力 スペース以下の文字で入力終了 do *s = gc(...
128
memory_bytes
{'s_id': 's888907489', 'p_id': 'p02803', 'u_id': 'u759237395', 'date': '1578915207', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '128', 'code_size': '1316'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// ABC 151-D\n// 2020.1.12 bal4u\n\n#include <stdio.h>\n#include <string.h>\n\n#if 1\n#define gc() getchar_unlocked()\n#else\n#define ...
CDSS_218548
CDSS
#include<stdio.h> #include<stdlib.h> #define SIZE 100001 enum TYPE{root, node, leaf, null}; char* strtype[] = {"root", "internal node", "leaf"}; typedef struct Vec{ int lenght; int size; int maxsize; int* buff; }VEC; typedef struct VecIt{ int i; VEC* vp; }VECIT; struct TREE{ int pa...
9,972
memory_bytes
{'s_id': 's989529232', 'p_id': 'p02280', 'u_id': 'u020335718', 'date': '1378813899', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '9972', 'code_size': '3468'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 SIZE 100001\n \nenum TYPE{root, node, leaf, null};\nchar* strtype[] = {\"root\", \"i...
CDSS_142036
CDSS
#include <stdio.h> void a(int); void b(); int ro[8],co[8],dp[15],dn[15],A[8][8]; int main(){ int i,j,k,r,c; for(i=0;i<8;i++){ ro[i]=-1; co[i]=-1; } for(i=0;i<15;i++){ dp[i]=-1; dn[i]=-1; } for(i=0;i<8;i++){ for(j=0;j<8;j++){ A[i][j]=-1; } } scanf("%d",&k); for(i=0;...
2,108
memory_bytes
{'s_id': 's389439494', 'p_id': 'p02244', 'u_id': 'u474504093', 'date': '1580970137', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '901'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 a(int);\nvoid b();\n\nint ro[8],co[8],dp[15],dn[15],A[8][8];\n\nint main(){\n int i,j,k,r,c;\n\n for(i=0;...
CDSS_562344
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...
2,560
memory_bytes
{'s_id': 's417802885', 'p_id': 'p03007', 'u_id': 'u885352715', 'date': '1560651375', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '36', 'memory': '2560', 'code_size': '2408'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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_227793
CDSS
#include <stdio.h> #define MAX_N 250 int N; int heap[MAX_N]; int main() { int i, parent, left, right; scanf("%d", &N); for(i = 0; i < N; ++i) { scanf("%d", heap+i); } for(i = 0; i < N; ++i) { printf("node %d: key = %d, ", i+1, heap[i]); parent = (i-1)/2; left = i*2 + 1; right = i*2 + 2...
2,064
memory_bytes
{'s_id': 's346956500', 'p_id': 'p02287', 'u_id': 'u568918115', 'date': '1544256451', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '531'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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_N 250\n \nint N;\nint heap[MAX_N];\n \nint main() {\n int i, parent, left, right;\n scanf(\"%d\", &N...
CDSS_106130
CDSS
#include<stdio.h> int main() { int a,b,i,i2,min=2000,min2=2000,g; for(i=0;i<3;i++){ scanf("%d",&a); if(a<min) min=a; } for(i2=0;i2<2;i2++){ scanf("%d",&b); if(b<min2) min2=b; } g=min+min2-50; printf("%d\n",g); return 0; }
592
memory_bytes
{'s_id': 's083030799', 'p_id': 'p00488', 'u_id': 'u453728254', 'date': '1376310279', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '243'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint a,b,i,i2,min=2000,min2=2000,g;\n\tfor(i=0;i<3;i++){\n\t\tscanf(\"%d\",&a);\n\t\tif(a<min)\n\t\...
CDSS_68716
CDSS
a,s[9999],t[9999];main(i,n,_){for(;n=~scanf("%d,%*d%*c%[\n]",&a,&_);n+2?i=0:0)i?s[a]++:s[a]&&t[a]++;for(;a=i<9999;i++)t[i]&&printf("%d %d\n",i,s[i]+t[i]);}
0
memory_bytes
{'s_id': 's097905245', 'p_id': 'p00065', 'u_id': 'u399107199', 'date': '1300364158', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '155'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\na,s[9999],t[9999];main(i,n,_){for(;n=~scanf(\"%d,%*d%*c%[\\n]\",&a,&_);n+2?i=0:0)i?s[a]++:s[a]&&t[a]++;for(;a=i<9999;i++)t[i]&&printf(...
CDSS_125451
CDSS
/* A2356: Palindromic Anagram */ #include <stdio.h> #include <string.h> int N; char strbuf[40]; int alpha_cnt[26]; int product[26]; /*kisuuko no mojiga 0~1 ko hokawa guusuu*/ int chkpalin() { int i; int cnt; for(i=0;i<26;i++) cnt += (alpha_cnt[i] & 1); return(cnt); } /*kaijou wo motometekara juufukub...
536
memory_bytes
{'s_id': 's599889578', 'p_id': 'p01473', 'u_id': 'u708993917', 'date': '1353334619', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '536', 'code_size': '1160'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*\nA2356: Palindromic Anagram\n*/\n\n#include <stdio.h>\n#include <string.h>\n\nint N;\nchar strbuf[40];\nint alpha_cnt[26];\nint p...
CDSS_584488
CDSS
main() { long long int N, a[5]={0}, b, c, d, i, ans=0, min=1000000000000001; scanf("%lld", &N); for(i=0;i<5;i++) { scanf("%lld", &a[i]); min = min>a[i]?a[i]:min; } b = N / min; c = N % min; d = b + (c>0); d = d>1?d-1:0; ans = 5 + d; printf("%lld", ans); }
128
memory_bytes
{'s_id': 's559550697', 'p_id': 'p03077', 'u_id': 'u735878783', 'date': '1554582863', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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:\nmain()\n{\n long long int N, a[5]={0}, b, c, d, i, ans=0, min=1000000000000001;\n scanf(\"%lld\", &N);\n for(i=0;i<5;i++)\n ...
CDSS_736516
CDSS
#include <stdio.h> int main(void){ int n,a[110000],ans=0; scanf("%d",&n); for(int i=0;i<n;i++){ scanf("%d",&a[i]); } for(int i=0;i<n;i++){ if(a[a[i]-1]==i+1)ans++; } printf("%d\n",ans/2); return 0; }
512
memory_bytes
{'s_id': 's163470365', 'p_id': 'p03993', 'u_id': 'u869282786', 'date': '1497126404', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '512', '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>\nint main(void){\n int n,a[110000],ans=0;\n scanf(\"%d\",&n);\n for(int i=0;i<n;i++){\n scanf(\"%d\...
CDSS_309483
CDSS
#include <stdio.h> int a,b; double a1,b1; int d,r; double f; main(){ scanf("%d%d",&a,&b); d=a/b; r=a%b; a1=a; b1=b; f=a1/b1; printf("%d %d %.8lf\n",d,r,f); return 0; }
640
memory_bytes
{'s_id': 's620017500', 'p_id': 'p02399', 'u_id': 'u914097127', 'date': '1468893666', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', '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>\nint a,b;\ndouble a1,b1;\nint d,r;\ndouble f;\nmain(){\n \n scanf(\"%d%d\",&a,&b);\n \n d=a/b;\n r=a%b;\n a1...
CDSS_429674
CDSS
#include <stdio.h> int main() { int s, w; scanf("%d%d", &s, &w); if (s <= w) printf("unsafe\n"); else printf("safe\n"); return 0; }
1,660
memory_bytes
{'s_id': 's274930338', 'p_id': 'p02699', 'u_id': 'u813269900', 'date': '1596477795', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1660', 'code_size': '176'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int s, w;\n\n scanf(\"%d%d\", &s, &w);\n\n if (s <= w)\n printf(\"unsafe\\n\");\...
CDSS_725713
CDSS
inline long long in() { long long n = 0; char c = getchar_unlocked(); while ('0' <= c && c <= '9') { n = n * 10 + (c - '0'); c = getchar_unlocked(); } return n; } int main() { long long I = in(), O = in(), T = in(), J = in(), L = in(); long long n = (I&1?I-1:I) + (J&1?J-1:J) + (L&1?L-1:L); if (...
128
memory_bytes
{'s_id': 's824336733', 'p_id': 'p03840', 'u_id': 'u172873334', 'date': '1577914024', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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:\ninline long long in() {\n long long n = 0;\n char c = getchar_unlocked();\n while ('0' <= c && c <= '9') {\n n = n * 10 + (c - '...
CDSS_300829
CDSS
#include <stdio.h> int main(){ int x,y,i,a; for(i = 0 ; 1 ; i++){ scanf("%d%d",&x,&y); if(x == 0 && y == 0) break; if(x > y){ a = x; x = y; y = a; } printf("%d %d\n",x,y); } return 0; }
600
memory_bytes
{'s_id': 's521798538', 'p_id': 'p02397', 'u_id': 'u924084996', 'date': '1474082593', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '243'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n \n int x,y,i,a;\n \n for(i = 0 ; 1 ; i++){\n scanf(\"%d%d\",&x,&y);\n if(x == 0 && y == ...
CDSS_535039
CDSS
#include<stdio.h> int main(){ int n,q[1010],p[1010],r=1,rr=1,t=0,i,j,c=0,d[1010][1010],e[1010]={}; int m[1010]; scanf("%d",&n); for(i=0;i<n;i++){ for(j=0;j<n-1;j++){ scanf("%d",&d[i][j]); d[i][j]--; } } for(i=0;i<n;i++){ e[i]=0; q[r++]=i; } for(i=c=0;c<n;i++){//printf("c%d %d...
4,096
memory_bytes
{'s_id': 's353872463', 'p_id': 'p02925', 'u_id': 'u121922047', 'date': '1567367131', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '266', 'memory': '4096', 'code_size': '868'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n,q[1010],p[1010],r=1,rr=1,t=0,i,j,c=0,d[1010][1010],e[1010]={};\n int m[1010];\n scanf(\"%d\"...
CDSS_313175
CDSS
#include<stdio.h> int main(void) { double r,a,b; scanf("%lf",&r); a =(double)r * r * 3.1415926535897; b =(double)2 * r * 3.1415926535897; printf("%f %f",a,b); return 0; }
648
memory_bytes
{'s_id': 's734008096', 'p_id': 'p02400', 'u_id': 'u087163685', 'date': '1434166391', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '176'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tdouble r,a,b;\n\tscanf(\"%lf\",&r);\n\ta =(double)r * r * 3.1415926535897;\n\tb =(double)2 * r...
CDSS_38303
CDSS
k;main(i){i-10&&main(getchar())&putchar(i-1?i:10);k/=i;}
0
memory_bytes
{'s_id': 's156001778', 'p_id': 'p00006', 'u_id': 'u648926140', 'date': '1298107707', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '56'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nk;main(i){i-10&&main(getchar())&putchar(i-1?i:10);k/=i;}\nPredict its memory footprint.", "role": "user" }, { "content": "...
CDSS_709864
CDSS
#include <stdio.h> int main(){ int N, T, t[200000]; int i, x=0; scanf("%d %d", &N, &T); for(i=0; i<N; i++) scanf("%d", &t[i]); for(i=0; i<N; i++){ if(i != N-1){ if(t[i+1] - t[i] < T) x += t[i+1] - t[i]; else x += T; ...
896
memory_bytes
{'s_id': 's232794846', 'p_id': 'p03731', 'u_id': 'u097683098', 'date': '1561141014', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '26', 'memory': '896', 'code_size': '409'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include <stdio.h>\n\nint main(){\n int N, T, t[200000];\n int i, x=0;\n\n scanf(\"%d %d\", &N, &T);\n\n for(i=0; i<N; i...
CDSS_727160
CDSS
#include <stdio.h> #include <stdlib.h> #define N 100000 int compare(const void *a, const void *b) { return *(int *)a - *(int *)b; } int power(int a, int b) { if (b == 0) return 1; else return a * power(a, b - 1) % 1000000007; } int main() { int n, i; int flag = 1; int a[N]; ...
1,396
memory_bytes
{'s_id': 's414806931', 'p_id': 'p03846', 'u_id': 'u706786134', 'date': '1543720121', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '23', 'memory': '1396', 'code_size': '1256'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 N 100000\n\nint compare(const void *a, const void *b)\n{\n return *(int *)a - *(in...
CDSS_541190
CDSS
#include <stdio.h> int main(void){ int A,B,C,x; scanf("%d%d%d",&A,&B,&C); x=C-(A-B); if(x<=0){ x=0; } printf("%d",x); return 0; }
128
memory_bytes
{'s_id': 's713652110', 'p_id': 'p02951', 'u_id': 'u159153763', 'date': '1570335889', '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(void){\n int A,B,C,x;\n scanf(\"%d%d%d\",&A,&B,&C);\n x=C-(A-B);\n if(x<=0){\n x=0;\n ...
CDSS_490245
CDSS
#include <stdio.h> #include <string.h> #include <limits.h> #include <stdlib.h> #include <math.h> int main(void) { long int i, j; long int a, b; long int count = 0; char s[20], t[20], u[20]; scanf("%s %s %ld %ld %s", s, t, &a, &b, u); if(strlen(s) == strlen(t) ) { for(i = 0; i < strlen(s); i++) { if(s[i]...
128
memory_bytes
{'s_id': 's232597019', 'p_id': 'p02777', 'u_id': 'u833841247', 'date': '1581280100', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '128', '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>\n#include <string.h>\n#include <limits.h>\n#include <stdlib.h>\n#include <math.h>\n\nint main(void)\n{\n\tlong int ...
CDSS_184072
CDSS
#include <stdio.h> #include <stdlib.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; void enqueue(P x){ if(tail == LEN){ exit(2); } Q[tail] = x; if(tail + 1 == LEN){ tail = 0; } else{ tail++; } } P dequeue(){ if(head == LEN){ exit...
11,872
memory_bytes
{'s_id': 's867562089', 'p_id': 'p02264', 'u_id': 'u359802056', 'date': '1544774828', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '11872', 'code_size': '896'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 LEN 100005\n\ntypedef struct pp{\n char name[100];\n int t;\n}P;\n\nP Q[LEN+1];\nin...
CDSS_106496
CDSS
#include <stdio.h> #include <stdlib.h> int compare_int(const void *a, const void *b); int main(void){ int N, A, B, C; int D[10000]; int best_pizza_cpp, pizza_cpp, calorie, price; int i; scanf("%d", &N); scanf("%d %d", &A, &B); scanf("%d", &C); for(i = 0; i < N; i++){ scanf("%d", &D[i]...
2,048
memory_bytes
{'s_id': 's254555333', 'p_id': 'p00490', 'u_id': 'u729274656', 'date': '1577149013', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '787'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 compare_int(const void *a, const void *b);\n\nint main(void){\n\tint N, A, B, C;\n i...
CDSS_135970
CDSS
#include<stdio.h> #define N 102 int main(){ int a[N][N]; int n,i,j,u,k,v; scanf("%d",&n); for(i=1;i<=n;i++){ for(j=1;j<=n;j++){ a[i][j]=0; } } for(i=1;i<=n;i++){ scanf("%d%d",&u,&k); for(j=1;j<=k;j++){ scanf("%d",&v); a[u][v]=1; } } for(i=1;i<=n;i++){ for(j=...
2,100
memory_bytes
{'s_id': 's761768873', 'p_id': 'p02237', 'u_id': 'u410979978', 'date': '1548130892', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '433'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 102\n\nint main(){\n int a[N][N];\n int n,i,j,u,k,v;\n\n scanf(\"%d\",&n);\n for(i=1;i<=n;i++){\n ...
CDSS_228942
CDSS
#include<stdio.h> #define H 500000 int n,A[H+1]; int left(int i){ return 2*i; } int right(int i){ return 2*i+1; } void maxHeapify(int i){ int l,r,x,largest; l=left(i); r=right(i); if(l<=n && A[l]>A[i]) largest=l; else largest=i; if(r<=n && A[r]>A[largest]) largest=r; if(largest!=i){ ...
2,552
memory_bytes
{'s_id': 's518595083', 'p_id': 'p02288', 'u_id': 'u369179738', 'date': '1498617091', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '110', 'memory': '2552', 'code_size': '662'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 H 500000\n\nint n,A[H+1];\n\nint left(int i){\n return 2*i;\n}\nint right(int i){\n return 2*i+1;\n}\n\nv...
CDSS_109236
CDSS
#include <stdio.h> int main(void) { int i,j,n,m,tg[128],sc[128]={0},w,a,b; scanf("%d",&n); scanf("%d",&m); for(i = 1;i <= m;i++){scanf("%d",&tg[i]);} for(i = 1;i <= m;i++){ w = 0; for(j = 1;j <= n;j++){ scanf("%d",&a); if(tg[i] == a){sc[j]++;} else{w++;} } b = tg[i]; sc[b]+=w; } for(i = 1;i <...
596
memory_bytes
{'s_id': 's252855002', 'p_id': 'p00532', 'u_id': 'u444407884', 'date': '1477384326', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '369'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 i,j,n,m,tg[128],sc[128]={0},w,a,b;\n\tscanf(\"%d\",&n);\n\tscanf(\"%d\",&m);\n\tfor(i = ...
CDSS_58519
CDSS
#include<stdio.h> int main(){ char text[][10]={"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"}; int a,b,c,d,e,f; int year,month,day; int ans,i; for(;;){ year=2004; scanf("%d %d",&month,&day); if(month==0) break; if(month==1||month==2){ year--; m...
0
memory_bytes
{'s_id': 's234412846', 'p_id': 'p00027', 'u_id': 'u533679381', 'date': '1324372431', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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\nint main(){\n char text[][10]={\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\",\"Sunda...
CDSS_179770
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> main(){ int x,sum=0,i,n,a,b; char s[110]; int stack[110]; int stack_top=0; while( scanf("%s",s) != EOF ){ if( s[0] == '+' ){ --stack_top; a = stack[stack_top]; --stack_top; b = stack[stack_top]; sum = a + b; st...
548
memory_bytes
{'s_id': 's997718105', 'p_id': 'p02263', 'u_id': 'u569524920', 'date': '1398393056', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '874'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nmain(){\n int x,sum=0,i,n,a,b;\n char s[110];\n int stack[110];\n int...
CDSS_207050
CDSS
#include <stdio.h> #include <stdlib.h> #define MAX 2000001 #define VMAX 10000 int main(){ unsigned short *A, *B; int C[VMAX+1]; int n, i, j; scanf("%d", &n); A = malloc(sizeof(short)*n+1); B = malloc(sizeof(short)*n+1); /* your code */ for( i= 0 ; i <= VMAX ; i++ ){ C[i] = 0; } for( i = 0 ; ...
9,592
memory_bytes
{'s_id': 's219377153', 'p_id': 'p02275', 'u_id': 'u265635555', 'date': '1545382960', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '220', 'memory': '9592', 'code_size': '684'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 int C[VMA...
CDSS_720187
CDSS
#include<stdio.h> int main(){ int n,a,i,r=1; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a); r^=a; } if(r&1||n<2)puts("YES"); else puts("NO"); }
128
memory_bytes
{'s_id': 's441265072', 'p_id': 'p03807', 'u_id': 'u017744950', 'date': '1486261095', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '14', '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 int n,a,i,r=1;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\n scanf(\"%d\",&a);\n r^=a;\n }\n i...
CDSS_114091
CDSS
#include<stdio.h> int main(){ int d[50]; int a[50],b[50]; int i,j,k,l,m,o,q; int n,r,p,c; int A; for(i=0; ;i++){ scanf("%d",&n); scanf("%d",&r); if(n == 0 && r == 0) break; A = n; ...
600
memory_bytes
{'s_id': 's410809609', 'p_id': 'p00710', 'u_id': 'u452212317', 'date': '1430135341', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '1107'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 d[50];\n int a[50],b[50];\n int i,j,k,l,m,o,q;\n int n,r,p,c;\n ...
CDSS_245594
CDSS
#include <stdio.h> int main(void){ int data; scanf("%d",&data); printf("%d\n",data*data*data); return 0; }
596
memory_bytes
{'s_id': 's532305562', 'p_id': 'p02388', 'u_id': 'u182731991', 'date': '1498751805', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '112'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\nint data;\n\nscanf(\"%d\",&data);\n\nprintf(\"%d\\n\",data*data*data);\n\nreturn 0;\n\n}\nPre...
CDSS_468752
CDSS
#include<stdio.h> #include<string.h> int main() { int k = 0; int i; char s[1000]; scanf("%s",s); if(s[2] == s[3]) { k = 1; } else { k = 0; } if(s[4] == s[5]) { k += 1; } else { k = 0; } if(k == 2) { printf("Yes"); } else { printf("No"); } ...
128
memory_bytes
{'s_id': 's079541296', 'p_id': 'p02723', 'u_id': 'u725993280', 'date': '1585447284', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '334'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 int k = 0;\n int i;\n char s[1000];\n\n scanf(\"%s\",s);\n if(s[2] ...
CDSS_503304
CDSS
#include <stdio.h> int main (){ char a[105], b[105]; scanf("%s %s", a, b); printf("%s%s", b, a); return 0; }
2,080
memory_bytes
{'s_id': 's530179500', 'p_id': 'p02817', 'u_id': 'u816631826', 'date': '1600346454', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '2080', 'code_size': '113'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tchar a[105], b[105];\n\tscanf(\"%s %s\", a, b);\n\tprintf(\"%s%s\", b, a);\n\treturn 0;\n}\nPred...
CDSS_595335
CDSS
#include <stdio.h> #define N (30) #define M (30) int main(){ int i, j, l; int n, m; int k[N]; int a[N][M]; int like[M]; int like_all; // 値の入力 scanf("%d %d", &n, &m); // printf("%d %d\n", n, m); for(i=0 ; i<n ; i++){ scanf("%d", &k[i]); // printf("%d ", k[i]); ...
128
memory_bytes
{'s_id': 's521280750', 'p_id': 'p03126', 'u_id': 'u385748551', 'date': '1550498178', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '805'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 (30)\n#define M (30)\n\nint main(){\n\n int i, j, l;\n int n, m;\n int k[N];\n int a[N][M]...
CDSS_673676
CDSS
#include <stdio.h> int main(void){ // Your code here! int a; int b; int c; scanf("%d %d %d",&a,&b,&c); if(a*b >c){ printf("%d",c); } else{ printf("%d",a*b); } return 0; }
128
memory_bytes
{'s_id': 's961982423', 'p_id': 'p03501', 'u_id': 'u644100188', 'date': '1526173003', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '246'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 // Your code here!\n int a;\n int b;\n int c;\n scanf(\"%d %d %d\",&a,&b,&c);\n ...
CDSS_497488
CDSS
#include <stdio.h> #include <stdlib.h> int main(int argc, char **argv) { int m; int n; int num = 0; int rep = 0; int base; scanf("%d %d", &m, &n); if (m == 0 || n == 0) { printf("0\n"); return (0); } if (m <= n) { base = m; rep = n; } else { base = n; rep = m; } ...
128
memory_bytes
{'s_id': 's115523591', 'p_id': 'p02790', 'u_id': 'u198858287', 'date': '1582403057', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '442'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n \nint\nmain(int argc, char **argv)\n{\n int m;\n int n;\n int num = 0;\n int rep = 0;\n ...
CDSS_109504
CDSS
#include<stdio.h> int h ,w ; int mx[] = { 1 ,1 ,1 ,-1 ,-1 ,-1 ,0 ,0 } ; int my[] = { 1 ,-1 ,0 ,1 ,-1 ,0 ,1 ,-1 } ; char castle[ 1000 ][ 1000 ] ; char castles[ 1000 ][ 1000 ] ; char sand[ 1000 ][ 1000 ] ; int del[ 999 * 999 ][ 2 ] ; int DEL ; #define x j + mx[ k ] #define y i + my[ k ] #define dy [ 0 ] #defin...
11,504
memory_bytes
{'s_id': 's096906974', 'p_id': 'p00535', 'u_id': 'u302788563', 'date': '1509863727', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '11504', 'code_size': '2716'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\n\nint h ,w ;\n\nint mx[] = { 1 ,1 ,1 ,-1 ,-1 ,-1 ,0 ,0 } ;\nint my[] = { 1 ,-1 ,0 ,1 ,-1 ,0 ,1 ,-1 } ;\n\n\ncha...
CDSS_543626
CDSS
#include<stdio.h> int main() { int a,b,x,k; scanf("%d%d",&a,&b); x=(a+b); if(x%2==0) { k=x/2; printf("%d\n",k); } else { printf("IMPOSSIBLE\n"); } return 0; }
1,692
memory_bytes
{'s_id': 's170573621', 'p_id': 'p02957', 'u_id': 'u089230684', 'date': '1595832958', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1692', 'code_size': '230'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,x,k;\n scanf(\"%d%d\",&a,&b);\n x=(a+b);\n\n\n if(x%2==0)\n {\n k=x/2...
CDSS_530688
CDSS
#include <stdio.h> int main(void){ int N; int a[30]; int b[30]; int c[30]; int sum=0; scanf("%d",&N); for(int i=0;i<N;i++){ scanf("%d",&a[i]); } for(int i=0;i<N;i++){ scanf("%d",&b[i]); } for(int i=0;i<N-1;i++){ scanf("%d",&c[i]); } for(int i=0;i<N;i++){ sum=sum+b[i]; if(i!=N-...
128
memory_bytes
{'s_id': 's816863259', 'p_id': 'p02916', 'u_id': 'u275797785', 'date': '1579192968', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '423'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 int a[30];\n int b[30];\n int c[30];\n int sum=0;\n\nscanf(\"%d\",&N);\n...
CDSS_373136
CDSS
#include<stdio.h> int A[200005],B[200005]; int main() { long long int n,m,i,start,end,flag,flag2=0; scanf("%lld",&n); for(i=0;i<n;i++) { scanf("%lld",&A[i]); } scanf("%lld",&m); for(i=0;i<m;i++) { scanf("%lld",&B[i]); } for(i=0;i<m;i++) { start=0; end=n-1; flag=0; while(start<=end) { if(B[i]<A[(start+end)/2]) { end=((s...
3,296
memory_bytes
{'s_id': 's815542000', 'p_id': 'p02452', 'u_id': 'u011621222', 'date': '1537441728', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '3296', '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>\nint A[200005],B[200005];\nint main()\n{\nlong long int n,m,i,start,end,flag,flag2=0;\nscanf(\"%lld\",&n);\nfor(i=0;...
CDSS_65519
CDSS
#include<stdio.h> #include<string.h> int main(){ int i,slen; char str[1002],b; fgets(str,1000,stdin); slen=strlen(str); for(i=0;i<slen;i++){ if(str[i]=='a'&&i+4<slen){ if(!strncmp(str+i+1,"pple",4)){ b=str[i+5]; strcpy(str+i,"peach"); str[i+5]=b; } }else if(str[i]=='p'&&i+4<slen){ ...
0
memory_bytes
{'s_id': 's680922731', 'p_id': 'p00050', 'u_id': 'u540597234', 'date': '1309300773', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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<string.h>\n\nint main(){\n int i,slen;\n char str[1002],b;\n fgets(str,1000,stdin);\n slen=strlen(str)...
CDSS_647770
CDSS
#include <stdio.h> int main(void) { int N, X; int m[128]; int i; int saitei = 0; int nokori; int saisyou = 99999999; if (scanf("%d%d", &N, &X) != 2) return 1; for (i = 0; i < N; i++) { if (scanf("%d", &m[i]) != 1) return 1; saitei += m[i]; if (m[i] < saisyou) saisyou = m[i]; } nokori = X - saitei; pri...
128
memory_bytes
{'s_id': 's629593937', 'p_id': 'p03370', 'u_id': 'u646118499', 'date': '1578979667', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '368'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, X;\n\tint m[128];\n\tint i;\n\tint saitei = 0;\n\tint nokori;\n\tint saisyou = 999999...
CDSS_332361
CDSS
#include <stdio.h> void Print_a_Rectangle(unsigned int H, unsigned int W) { unsigned short i,j; for(i=1;i<=H;i++){ for(j=1;j<=W;j++){ printf("#"); } printf("\n"); } } int main() { unsigned int H,W; while(1) { scanf("%d %d",&H,&W); if((H==0)&&(...
2,100
memory_bytes
{'s_id': 's899131666', 'p_id': 'p02403', 'u_id': 'u937720191', 'date': '1587891588', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '479'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 Print_a_Rectangle(unsigned int H, unsigned int W)\n{\n unsigned short i,j;\n for(i=1;i<=H;i++){\n ...
CDSS_370843
CDSS
#include <stdio.h> #include <string.h> int main(void) { char A[200]; int h,i,j,m,n; char t; scanf("%s",A); n=strlen(A); while (A[0]!='-'){ scanf("%d",&m); for (i=0;i<m;i++){ scanf("%d",&h); while(h-->0){ t=A[0]; for (j=1;j<n;j++){ A[j-1]=A[j]; } ...
2,028
memory_bytes
{'s_id': 's208673871', 'p_id': 'p02420', 'u_id': 'u883044209', 'date': '1533716292', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2028', '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 <string.h>\n \nint main(void)\n{\n char A[200];\n int h,i,j,m,n;\n char t;\n \n scanf(\"%s\",A);\n n...
CDSS_203143
CDSS
#include<stdio.h> #define N 500000 void merge(int, int, int); void mergeSort(int, int); int c=0; int A[N]; int L[N]; int R[N]; int main(){ int i, n; scanf("%d", &n); for(i=0 ; i<n ; i++) scanf("%d", &A[i]); mergeSort(0, n); for(i=0 ; i<n-1 ; i++) printf("%d ", A[i]); printf("%d\n", A[i]); printf("%d\n"...
5,484
memory_bytes
{'s_id': 's005509441', 'p_id': 'p02272', 'u_id': 'u705671425', 'date': '1495715912', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '160', 'memory': '5484', 'code_size': '940'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 500000\n\nvoid merge(int, int, int);\nvoid mergeSort(int, int);\n\nint c=0;\nint A[N];\nint L[N];\nint ...
CDSS_588282
CDSS
#include<stdio.h> int main() { int n; scanf("%d", &n); if (n == 3) { printf("61\n"); return 0; } long long int m = 1000000007; long long int p[102][4][4][4][4]; int a, b, c, d, e; for (a = 0; a < 102; a++) for (b = 0; b < 4; b++) for (c = 0; c < 4;...
384
memory_bytes
{'s_id': 's859937496', 'p_id': 'p03088', 'u_id': 'u600300412', 'date': '1553461558', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '384', 'code_size': '2132'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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;\n scanf(\"%d\", &n);\n if (n == 3)\n {\n printf(\"61\\n\");\n retu...
CDSS_422621
CDSS
#include <stdio.h> int main(){ char S[999]; scanf("%s",S); if(S[1] == 'B'){ printf("ARC\n"); } else if(S[1] == 'R'){ printf("ABC\n"); } return 0; }
1,600
memory_bytes
{'s_id': 's539083326', 'p_id': 'p02687', 'u_id': 'u135988127', 'date': '1588557598', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1600', 'code_size': '169'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n char S[999];\n scanf(\"%s\",S);\n if(S[1] == 'B'){\n printf(\"ARC\\n\");\n }\n else if(S[1] ...
CDSS_136041
CDSS
#include<stdio.h> int main(){ int a[501][501]; int n,i,j,U,k,V; scanf("%d",&n); for(i=0;i<n;i++){ for(j=0;j<n;j++) a[i][j]=0; } for(i=0;i<n;i++){ scanf("%d%d",&U,&k); U--; for(j=0;j<k;j++){ scanf("%d",&V); V--; a[U][V]=1; } } for(i=0;i<n;i++){ for(j=0;j<n;j++){ ...
2,056
memory_bytes
{'s_id': 's577494476', 'p_id': 'p02237', 'u_id': 'u628184488', 'date': '1532665022', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '415'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int a[501][501];\n int n,i,j,U,k,V;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\n for(j=0;j<n;j++)...
CDSS_312914
CDSS
#include<stdio.h> #define PI 3.14159265358979 int main(){ double r; scanf("%lf",&r); printf("%f %f\n",r * r * PI,r * 2 * PI); return 0; }
648
memory_bytes
{'s_id': 's757567323', 'p_id': 'p02400', 'u_id': 'u606820927', 'date': '1421656605', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '141'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 PI 3.14159265358979\nint main(){\n\tdouble r;\n\tscanf(\"%lf\",&r);\n\tprintf(\"%f %f\\n\",r * r * PI,r * 2...
CDSS_640116
CDSS
#include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); printf("%d\n", ((b - a) + 1) * (b - a) / 2 - b); fflush(stdout); return 0; }
1,660
memory_bytes
{'s_id': 's625820630', 'p_id': 'p03328', 'u_id': 'u943800443', 'date': '1597290791', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1660', 'code_size': '148'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n\tint a, b;\n\tscanf(\"%d %d\", &a, &b);\n\tprintf(\"%d\\n\", ((b - a) + 1) * (b - a) / 2 - b);\n...
CDSS_651986
CDSS
#include<stdio.h> #include<math.h> #include<stdlib.h> int main() { long long a,b,c,d,e,f; scanf("%lld %lld %lld %lld",&a,&b,&c,&d); if (a>b) { e=a; a=b; b=e; } if (c>d) { e=c; c=d; d=e; } //if (c%2==0) printf("%lld",a+c); //else //printf("%lld",c*2); }
1,716
memory_bytes
{'s_id': 's855416319', 'p_id': 'p03399', 'u_id': 'u353919145', 'date': '1596051233', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '1716', 'code_size': '278'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n#include<stdlib.h>\nint main()\n{\nlong long a,b,c,d,e,f;\nscanf(\"%lld %lld %lld %lld\",&a,&b,&c...
CDSS_664229
CDSS
w[4444][4444]; n,k;i,j,x,y,c;ans;now;f; g(u,v){return w[u+k][v+k]-w[u][v+k]-w[u+k][v]+w[u][v];} main(){ scanf("%d%d",&n,&k); for(i=0;i<n;i++){ scanf("%d%d %c",&x,&y,&c); if(c=='B')x+=k; x%=2*k,y%=2*k; w[x+1+k][y+1+k]++; } for(i=1;i<=4*k;i++)for(j=1;j<=4*k;j++)w[i][j]+=w[i-1][j]+w[i][j-1]-w[i-1][j-1]; for(i...
69,760
memory_bytes
{'s_id': 's365886958', 'p_id': 'p03460', 'u_id': 'u657913472', 'date': '1539905852', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '107', 'memory': '69760', 'code_size': '531'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nw[4444][4444];\nn,k;i,j,x,y,c;ans;now;f;\ng(u,v){return w[u+k][v+k]-w[u][v+k]-w[u+k][v]+w[u][v];}\nmain(){\n\tscanf(\"%d%d\",&n,&k);\n...
CDSS_222535
CDSS
#include<stdio.h> #include<stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL Node root; Node treeMinimum(Node x){ while( x -> left != NIL) x = x -> left; return x; } Node treeMaximum(Node x){ while( x->ri...
25,220
memory_bytes
{'s_id': 's848385827', 'p_id': 'p02283', 'u_id': 'u587288800', 'date': '1547643199', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '320', 'memory': '25220', 'code_size': '2471'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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_632425
CDSS
#include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); if (a+b == 15) { puts("+"); } else if (a*b == 15) { puts("*"); } else { puts("x"); } return 0; }
128
memory_bytes
{'s_id': 's954565931', 'p_id': 'p03302', 'u_id': 'u572665222', 'date': '1531011832', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '193'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n int a, b;\n scanf(\"%d %d\", &a, &b);\n if (a+b == 15) {\n puts(\"+\");\n }\n else if (a*...
CDSS_137923
CDSS
#include<stdio.h> #define N 101 #define WHITE 0 #define BLACK 1 #define GRAY 2 typedef struct{ int k; int d; int color; int v[N]; } Graph; Graph g[N]; int n,head=0,tail=0,q[N]; void enqueue(int x) { q[tail] = x; if(tail+1 == N-1) tail = 0; else tail++; } int dequeue() { int x; x = q[head]; if(he...
632
memory_bytes
{'s_id': 's509513081', 'p_id': 'p02239', 'u_id': 'u980045752', 'date': '1499914404', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '632', 'code_size': '1082'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 101\n#define WHITE 0\n#define BLACK 1\n#define GRAY 2\ntypedef struct{\n int k;\n int d;\n int color;\...
CDSS_348910
CDSS
#include<stdio.h> int main(){ int n,i,b,f,r,v,total[5][4][11]={0}; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d %d %d %d",&b,&f,&r,&v); total[b][f][r]+=v; } for(b=1;b<5;b++){ for(f=1;f<4;f++){ for(r=1;r<11;r++){ if(total[b][f][r]<0)total[b][f][r]=0; if(total[b][f][r]>9)total[b][f][r]=...
612
memory_bytes
{'s_id': 's055064585', 'p_id': 'p02409', 'u_id': 'u924810243', 'date': '1494218603', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '454'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n,i,b,f,r,v,total[5][4][11]={0};\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\n scanf(\"%d %d %d...
CDSS_616310
CDSS
#include<stdio.h> int main(){ int ch; int i; for(i=0;i<3;i++){ ch=getchar(); if(ch=='1'){ putchar('9'); } else { putchar('1'); } } return 0; }
128
memory_bytes
{'s_id': 's225578447', 'p_id': 'p03242', 'u_id': 'u637067145', 'date': '1538778558', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '219'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 ch;\n int i;\n for(i=0;i<3;i++){\n ch=getchar();\n if(ch=='1'){\n ...
CDSS_421814
CDSS
#include<stdio.h> long long n,m,d[100][200010],p=1,i,j; int main(){ scanf("%lld %lld",&n,&m); for(i=0;i<n;i++)scanf("%lld",&d[0][i+1]); for(i=0;i<70;i++){ for(j=1;j<=n;j++)d[i+1][j]=d[i][d[i][j]]; } for(i=0;i<64;i++){ if(((1LL<<i)&m))p=d[i][p];//printf("%lld %lld\n",(1LL<<i),p); } printf("%lld\n",...
112,676
memory_bytes
{'s_id': 's213001776', 'p_id': 'p02684', 'u_id': 'u121922047', 'date': '1589160367', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '113', 'memory': '112676', 'code_size': '338'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 n,m,d[100][200010],p=1,i,j;\nint main(){\n scanf(\"%lld %lld\",&n,&m);\n for(i=0;i<n;i++)scanf(\"%lld\"...
CDSS_330692
CDSS
int main(void){ int a = 0; int b = 0; int i = 0; int j = 0; while (1){ scanf("%d %d", &a, &b); if (a == 0 && b == 0){ break; }else{ for (i = 0; i < a; i++){ for (j = 0; j < b; j++) { printf("%c", '#'); } printf("\n"); } printf("\n"); } } return 0; }
572
memory_bytes
{'s_id': 's212104743', 'p_id': 'p02403', 'u_id': 'u169109925', 'date': '1499736414', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '298'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nint main(void){\n\tint a = 0;\n\tint b = 0;\n\tint i = 0;\n\tint j = 0;\n\n\twhile (1){\n\t\tscanf(\"%d %d\", &a, &b);\n\t\tif (a == 0...
CDSS_371583
CDSS
#include <stdio.h> #include <string.h> #define TARO 0 #define HANAKO 1 int main(void) { int game, win = 3, draw = 1; char taro[101], hanako[101]; int score[2] = {0, 0}; scanf("%d", &game); for (int i = 0; i < game; i++) { scanf("%s %s", taro, hanako); int result = strcmp(taro,...
2,064
memory_bytes
{'s_id': 's632811751', 'p_id': 'p02421', 'u_id': 'u104754431', 'date': '1583044201', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '644'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 TARO 0\n#define HANAKO 1\n\nint main(void)\n{\n int game, win = 3, draw = 1;\n ...
CDSS_39359
CDSS
#include <stdio.h> int main(void) { int i,j,n,k=1; i=100000; scanf("%d",&n); if(n==0){ printf("%d\n",i); return 0;} do{ j=i*0.05; i+=j; if(i%1000!=0)i=i+1000-(i%1000); k++; }while(k<=n); printf("%d\n",i); return 0; }
592
memory_bytes
{'s_id': 's192472918', 'p_id': 'p00007', 'u_id': 'u287407095', 'date': '1404028111', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '223'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\nint i,j,n,k=1;\t\n\t\ni=100000;\nscanf(\"%d\",&n);\n\nif(n==0){\nprintf(\"%d\\n\",i);\nreturn 0...
CDSS_463019
CDSS
#include<stdio.h> int main(void){ int x,y,z,a,b,c; scanf("%d %d %d",&x,&y,&z); a=z; b=x; c=y; printf("%d %d %d\n",a,b,c); return 0; }
128
memory_bytes
{'s_id': 's323069461', 'p_id': 'p02717', 'u_id': 'u986190948', 'date': '1587611919', '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){\n int x,y,z,a,b,c;\n scanf(\"%d %d %d\",&x,&y,&z);\n a=z;\n b=x;\n c=y;\n printf(\"%d %d %d\\...
CDSS_249849
CDSS
#include<stdio.h> int main(){ int a,b; scanf("%d %d",&a,&b); printf("%d %d\n",a*b,2*(a+b)); return 0; }
2,132
memory_bytes
{'s_id': 's185747989', 'p_id': 'p02389', 'u_id': 'u664440206', 'date': '1555989027', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2132', 'code_size': '121'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int a,b;\n scanf(\"%d %d\",&a,&b);\n printf(\"%d %d\\n\",a*b,2*(a+b));\n return 0;\n}\t\n...
CDSS_587275
CDSS
#include <stdio.h> #include <string.h> int main(void){ char s[100000]; scanf("%s",s); int n=strlen(s),max=0; for(int i=0;i<n;i++){ int cnt=0; for(int j=i;j<n;j++){ if(s[j]=='A'||s[j]=='T'||s[j]=='C'||s[j]=='G') cnt++; else break; } if(max<cnt) max=cnt; } printf("%d",max); retur...
128
memory_bytes
{'s_id': 's177937241', 'p_id': 'p03086', 'u_id': 'u185896732', 'date': '1553459050', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '326'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint main(void){\n char s[100000];\n scanf(\"%s\",s);\n int n=strlen(s),max=0;\n for(int i...
CDSS_303532
CDSS
#include <stdio.h> int main(void){ int x, y,w; while(1){ scanf("%d %d", &x, &y); if(x == 0 && y == 0){ break; } if(x > y){ w = x; x = y; y = w; } printf("%d %d\n", x, y); } return 0; }
2,052
memory_bytes
{'s_id': 's236145780', 'p_id': 'p02397', 'u_id': 'u120803548', 'date': '1586853727', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', '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>\nint main(void){\n int x, y,w;\n while(1){\n scanf(\"%d %d\", &x, &y);\n if(x == 0 && y == 0){\...
CDSS_586408
CDSS
#include<stdio.h> #include<string.h> int main() { char a,b; while(scanf("%c",&a)==1) { if(a=='A') printf("T\n"); else if(a=='T') printf("A\n"); else if(a=='C') printf("G\n"); else if(a=='G') printf("C\n"); } return 0; }
256
memory_bytes
{'s_id': 's865421722', 'p_id': 'p03085', 'u_id': 'u057633934', 'date': '1553457865', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '29', 'memory': '256', 'code_size': '317'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 a,b;\n while(scanf(\"%c\",&a)==1)\n {\n if(a=='A')\n ...
CDSS_244958
CDSS
#include <stdio.h> int main(void) { int x; int cub; scanf("%d",&x); cub = x * x * x; printf("%d\n",cub); return 0; }
596
memory_bytes
{'s_id': 's640875920', 'p_id': 'p02388', 'u_id': 'u266640508', 'date': '1492574681', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '131'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 x;\n\tint cub;\n\t\n\tscanf(\"%d\",&x);\n\t\n\tcub = x * x * x;\n\t\n\tprintf(\"%d\\n\"...
CDSS_179919
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> int top, S[1000]; void push(int x) { top++; S[top] = x; } int pop() { top--; return S[top + 1]; } int main() { int a, b; top = 0; char T[100]; while(scanf("%s", &T) != EOF) { if(T[0] == '+') { a = pop(); ...
2,100
memory_bytes
{'s_id': 's625945304', 'p_id': 'p02263', 'u_id': 'u163315833', 'date': '1592479171', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '683'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n\nint top, S[1000];\n\nvoid push(int x) {\n top++;\n S[top] = x;\n}\n...
CDSS_146835
CDSS
#define _CRT_SECURE_NO_WARNINGS #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){ A[j+1]=A[j]; j--; } A[j+1]=v; trace(A,N); } } int main(...
1,760
memory_bytes
{'s_id': 's083251750', 'p_id': 'p02255', 'u_id': 'u043039307', 'date': '1512133727', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1760', 'code_size': '446'}
[ { "content": "Your task is to predict the memory 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 \nvoid trace(int A[],int N){\nint i;\nfor(i=0;i<N;i++){\nif(i>0)printf(\" \");\np...
CDSS_474829
CDSS
#include <stdio.h> #include<string.h> int main(void) { int A[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int K; scanf("%d", &K); printf("%d", A[K-1]); return 0; }
128
memory_bytes
{'s_id': 's890472806', 'p_id': 'p02741', 'u_id': 'u034323841', 'date': '1584234266', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '237'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include<string.h>\n\nint main(void)\n{\n\tint A[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, ...
CDSS_644422
CDSS
#include <stdio.h> #include <stdlib.h> int main(){ int a,b,c,d; scanf("%d%d%d%d",&a,&b,&c,&d); if( abs(a-c) <= d ){ printf("Yes\n"); return 0; }else{ if( (abs(a-b) <= d) && (abs(b-c) <= d) ){ printf("Yes\n"); return 0; } } printf("N...
128
memory_bytes
{'s_id': 's037651992', 'p_id': 'p03351', 'u_id': 'u481526887', 'date': '1526173512', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '343'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 a,b,c,d;\n\n scanf(\"%d%d%d%d\",&a,&b,&c,&d);\n \n if( abs(a-...
CDSS_631922
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int cmp(const void *a,const void *b){ if(*(int*)a>*(int*)b){return 1;} else if(*(int*)a<*(int*)b){return -1;} else {return 0;} } int main(void){ int n,a[105]; int dif=1; int color; int ans=0; scanf("%d",&n); for(int i=0;i<n;i++...
128
memory_bytes
{'s_id': 's104008419', 'p_id': 'p03296', 'u_id': 'u932514381', 'date': '1587859470', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '497'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nint cmp(const void *a,const void *b){\n if(*(i...
CDSS_204376
CDSS
#include <stdio.h> #include <math.h> #define INFTY 1000000000 int count, n, A[500000]; void merge(int, int, int); void mergeSort(int, int); int main(){ int i; scanf("%d",&n); for(i = 0; i < n; i++) scanf("%d",&A[i]); mergeSort(0,n); for(i = 0; i < n-1; i++) printf("%d ",A[i]); printf("%d\n%d\n",A[...
5,616
memory_bytes
{'s_id': 's117599074', 'p_id': 'p02272', 'u_id': 'u890530158', 'date': '1576819380', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '5616', 'code_size': '1013'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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#define INFTY 1000000000\nint count, n, A[500000];\n\nvoid merge(int, int, int);\nvoid mergeS...
CDSS_509938
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"); return 0; }
128
memory_bytes
{'s_id': 's570417426', 'p_id': 'p02835', 'u_id': 'u878411242', 'date': '1575857106', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', '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,c;\n scanf(\"%d%d%d\",&a,&b,&c);\n if(a+b+c>=22)\n printf(\"bust\");\n e...
CDSS_684450
CDSS
#include <limits.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <math.h> #define P 1000000007 int comp(const void *a, const void *b){return *(int*)a-*(int*)b;} int main(void){ int a, b, c, d, e, f; int i, j, k, l; scanf("%d%d%d%d%d%d", &a, &b, &c, &d...
128
memory_bytes
{'s_id': 's025041471', 'p_id': 'p03599', 'u_id': 'u292252214', 'date': '1582859070', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '128', 'code_size': '774'}
[ { "content": "Your task is to predict the memory footprint (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 <stdint.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <unistd.h>\n#include ...
CDSS_386057
CDSS
#include<stdio.h> int main() { int x; scanf("%d", &x); if (x >= 30) printf("Yes"); else printf("No"); return 0; }
2,152
memory_bytes
{'s_id': 's056073020', 'p_id': 'p02594', 'u_id': 'u898318923', 'date': '1596416594', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '2152', 'code_size': '127'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main() {\n\n\tint x;\n\n\tscanf(\"%d\", &x);\n\n\tif (x >= 30)\n\t\tprintf(\"Yes\");\n\telse\n\t\tprintf(\"No\"...
CDSS_211098
CDSS
#include <stdio.h> int partition(int *, int, int); int A[100000]; int main(){ int i,n,j; scanf("%d",&n); for(i=0;i<n;i++) scanf("%d",&A[i]); j=partition(A,0,n-1); for(i=0;i<j;i++) printf("%d ",A[i]); printf("[%d] ",A[j]); for(i=j+1;i<n-1;i++) printf("%d ",A[i]); printf("%d\n",A[n-1]); re...
988
memory_bytes
{'s_id': 's968137579', 'p_id': 'p02276', 'u_id': 'u937490775', 'date': '1464746743', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '988', 'code_size': '598'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 partition(int *, int, int);\n int A[100000];\nint main(){\n int i,n,j;\n scanf(\"%d\",&n);\n \n for(i=0;i<...
CDSS_693914
CDSS
#include <stdio.h> int main(){ int i, j, N; scanf("%d", &N); for(i = 0; (1 << i) <= N; i++){ j = 1 << i; } printf("%d\n", j); }
128
memory_bytes
{'s_id': 's197791646', 'p_id': 'p03644', 'u_id': 'u467041847', 'date': '1513827216', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '138'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 i, j, N;\n\n\tscanf(\"%d\", &N);\n\n\tfor(i = 0; (1 << i) <= N; i++){\n\t\tj = 1 << i;\n\t}\n...
CDSS_722646
CDSS
#include <stdio.h> int max2(int x,int y){ if(x>y){ return x; }else{ return y; } } int main(void){ int A,B,C,D; int x,y; scanf("%d %d %d %d",&A,&B,&C,&D); x=A*B; y=C*D; printf("%d\n",max2(x,y)); return 0; }
128
memory_bytes
{'s_id': 's205036832', 'p_id': 'p03826', 'u_id': 'u461044076', 'date': '1539118998', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '265'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 max2(int x,int y){\n if(x>y){\n return x;\n }else{\n return y;\n }\n}\n\nint main(void)...
CDSS_654927
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int acs(const void *a, const void *b) { return *(int*)a - *(int*)b; } /* 1,2,3,4.. */ int des(const void *a, const void *b) { return *(int*)b - *(int*)a; } /* 8,7,6,5.. */ int cmp_char(const void *a, const void *b) { return *(char*)a -...
128
memory_bytes
{'s_id': 's591744859', 'p_id': 'p03416', 'u_id': 'u391667116', 'date': '1580410272', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '894'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\nint acs(const void *a, const void *b) { \n return *(...