identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_71516
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <ctype.h> #include <limits.h> #define inf (INT_MAX-1) #define INF 9223372036854775807 #define sq(n) ((n)*(n)) #define rep(i,n) for(i=0;i<n;i++) #define rev(i,n) for(i=n-1;i>=0;i--) #define sort(a,n) qsort(a,n,sizeof(TYPE),cmp) #defin...
2,036
memory_bytes
{'s_id': 's751405445', 'p_id': 'p00082', 'u_id': 'u505651850', 'date': '1517809177', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '1766'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 <ctype.h>\n#include <limits.h>\t\n#define in...
CDSS_34036
CDSS
#include <stdio.h> int main(void) { float a, b, c, d, e, f; float x, y; while (scanf("%f %f %f %f %f %f", &a, &b, &c, &d, &e, &f) != EOF){ y = (a * f - d * c) / (a * e - d * b); x = (c - b * y) / a; printf("%.3f %.3f\n", x, y); } return (0); }
648
memory_bytes
{'s_id': 's155167087', 'p_id': 'p00004', 'u_id': 'u404295326', 'date': '1362236209', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '258'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tfloat a, b, c, d, e, f;\n\tfloat x, y;\n\n\twhile (scanf(\"%f %f %f %f %f %f\", &a, &b, &c,...
CDSS_385596
CDSS
#include<stdio.h> int main() { int x; scanf("%d",&x); if(x>=30) { printf("Yes"); } else { printf("No"); } return 0; }
1,736
memory_bytes
{'s_id': 's561334409', 'p_id': 'p02594', 'u_id': 'u349068071', 'date': '1597100492', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1736', 'code_size': '143'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int x;\n scanf(\"%d\",&x);\n if(x>=30)\n {\n printf(\"Yes\");\n }\n else\n {\n printf(...
CDSS_264752
CDSS
#include <stdio.h> int main(void){ int ss; int h_mod; int h,m,s; scanf("%d",&ss); h=ss/3600; m=(ss % 3600)/60; s=(ss % 60 ); printf("%d:%d:%d\n",h,m,s); return 0; }
2,052
memory_bytes
{'s_id': 's428861761', 'p_id': 'p02390', 'u_id': 'u474146567', 'date': '1543109867', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '218'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int ss;\n int h_mod;\n int h,m,s;\n \n scanf(\"%d\",&ss);\n h=ss/3600;\n ...
CDSS_710348
CDSS
#include <stdio.h> int main() { char s1[100],s2[100],s3[100]; scanf("%s %s %s",&s1,&s2,&s3); s1[0]=(s1[0]-32); s2[0]=(s2[0]-32); s3[0]=(s3[0]-32); printf("%c%c%c\n", s1[0],s2[0],s3[0]); return 0; }
1,708
memory_bytes
{'s_id': 's224322859', 'p_id': 'p03737', 'u_id': 'u018679195', 'date': '1593470812', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1708', 'code_size': '226'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 char s1[100],s2[100],s3[100];\n scanf(\"%s %s %s\",&s1,&s2,&s3);\n s1[0]=(s1[0]-32);\n ...
CDSS_407828
CDSS
#include<stdio.h> int main() { int n; scanf("%d", &n); int zero = 0; long long a[n]; int over = 0; for (int i = 0; i < n; i++) { scanf("%lld", &a[i]); if (a[i] == 0) zero = 1; if (a[i] > 1000000000000000000) over = 1; } if (zero) printf("0\n"); else { long long result = 1; for(int i = 0; i < n...
2,456
memory_bytes
{'s_id': 's530326571', 'p_id': 'p02658', 'u_id': 'u863370423', 'date': '1597449393', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '29', 'memory': '2456', 'code_size': '517'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n\tint n;\n\tscanf(\"%d\", &n);\n\tint zero = 0;\n\tlong long a[n];\n\t\n\t\tint over = 0;\n\tfor (...
CDSS_671182
CDSS
#include<stdio.h> int main() { char s[3]; int i; int t=0; scanf("%s",s); for(i=0;i<3;i++){ if(s[i]=='1') t++; } printf("%d\n",t); return 0; }
1,708
memory_bytes
{'s_id': 's511414432', 'p_id': 'p03493', 'u_id': 'u287365470', 'date': '1593213906', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1708', 'code_size': '163'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 s[3];\n int i;\n int t=0;\n scanf(\"%s\",s);\n for(i=0;i<3;i++){\n if(s[i]=='1') t++...
CDSS_95635
CDSS
#include<stdio.h> int main(void){ int x, y, a, b, r, sum; scanf("%d %d", &x, &y); sum = x + y + 2; a = x; b = y; if (x < y) { b = x; a = y; } r = a % b; while ( r != 0) { a = b; b = r; r = a % b; } sum -= ( b + 1); printf("%d\n", sum); return 0; }
1,828
memory_bytes
{'s_id': 's107536835', 'p_id': 'p00356', 'u_id': 'u328199937', 'date': '1508634972', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1828', '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:\n#include<stdio.h>\nint main(void){\n int x, y, a, b, r, sum;\n scanf(\"%d %d\", &x, &y);\n sum = x + y + 2;\n a = x; b = y;\n ...
CDSS_585221
CDSS
#include <stdio.h> #include <string.h> int main(void) { int N; int Red_count = 0; int Blue_count = 0; scanf("%d", &N); char s[N], str[1]; scanf("%s", s); for(int i = 0; i < N; i++){ if(s[i] == 'R'){ Red_count = Red_count + 1; } else if (s[i] == 'B')...
128
memory_bytes
{'s_id': 's903522084', 'p_id': 'p03080', 'u_id': 'u981518167', 'date': '1553993144', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '643'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void)\n{\n int N;\n int Red_count = 0;\n int Blue_count = 0; \n sca...
CDSS_308537
CDSS
#include <stdio.h> void division(int x,int y); int main(void) { int x,y; scanf("%d %d",&x,&y); division(x,y); return 0; } void division(int x,int y){ int d,r; double f; d = x / y; r = x % y; f = 1.0000 * x / y; printf("%d %d %f\n",d,r,f); }
636
memory_bytes
{'s_id': 's345351161', 'p_id': 'p02399', 'u_id': 'u380930335', 'date': '1459819230', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', '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\nvoid division(int x,int y);\n \nint main(void) {\n int x,y;\n \n scanf(\"%d %d\",&x,&y);\n division(...
CDSS_713648
CDSS
l,r,c,a[99],b[99],i,j,k,p;f(long n){n>1?a[i++]=n&1?f(n^1),--l:(f(n>>1),++r):(l=1);}long n;main(){scanf("%ld",&n),f(n+1);printf("%d\n",i*2);for(j=i;j;)b[a[--j]-l]=i-j;for(;k<i;)printf("%d ",b[k++]);for(;p<=r-l;)printf("%d ",++p);}
128
memory_bytes
{'s_id': 's456992902', 'p_id': 'p03769', 'u_id': 'u598057917', 'date': '1583560068', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '229'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nl,r,c,a[99],b[99],i,j,k,p;f(long n){n>1?a[i++]=n&1?f(n^1),--l:(f(n>>1),++r):(l=1);}long n;main(){scanf(\"%ld\",&n),f(n+1);printf(\"%d\...
CDSS_410821
CDSS
#include<stdio.h> int main() { long long a,b,c; scanf("%lld %lld.%lld",&a,&b,&c); printf("%lld\n",a*((b*100)+c)/100); return 0; }
1,732
memory_bytes
{'s_id': 's452414617', 'p_id': 'p02659', 'u_id': 'u785727223', 'date': '1598304442', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1732', 'code_size': '133'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 a,b,c;\n\tscanf(\"%lld %lld.%lld\",&a,&b,&c);\n\tprintf(\"%lld\\n\",a*((b*100)+c)/100);\...
CDSS_545856
CDSS
#include <stdio.h> #include <stdlib.h> int main(void) { long n, sum=0; scanf("%ld", &n); int a[n+1], b[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=n-1; i>=0; i--){ int nokoriTaoseru = b[i] - a[i+1]; if(nokoriTaoseru > 0...
896
memory_bytes
{'s_id': 's943443040', 'p_id': 'p02959', 'u_id': 'u699683008', 'date': '1564283434', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '26', 'memory': '896', 'code_size': '698'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\nint main(void) {\n long n, sum=0;\n scanf(\"%ld\", &n);\n int a[n+1], b[n];\n for...
CDSS_45771
CDSS
#include <stdio.h> #include <math.h> #include <string.h> int main(){ int w,n,i,t; int W[30],a[30],b[30]; scanf("%d",&w); for (i=0; i<w; i++) { W[i]=i+1; } scanf("%d",&n); for (i=0; i<n; i++) { scanf("%d,%d",&a[i],&b[i]); } for (i=0; i<n; i++) { ...
596
memory_bytes
{'s_id': 's447905679', 'p_id': 'p00011', 'u_id': 'u626996572', 'date': '1484889423', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '488'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include <stdio.h>\n#include <math.h>\n#include <string.h>\n\nint main(){\n \n int w,n,i,t;\n int W[30],a[30],b[30];\n \...
CDSS_688210
CDSS
#include <stdio.h> int main() { int X, A, B; scanf("%d %d %d", &X, &A, &B); int T, Y; T = A - X; Y = B - X; if ( T < 0 ) { T *= -1; } if ( Y < 0 ) { Y *= -1; } if (T < Y) { printf("A"); } else { printf("B"); } return 0; }
1,656
memory_bytes
{'s_id': 's932078693', 'p_id': 'p03623', 'u_id': 'u353919145', 'date': '1597602401', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1656', '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>\n\nint main() {\n\tint X, A, B;\n\tscanf(\"%d %d %d\", &X, &A, &B);\n\tint T, Y;\n\tT = A - X;\n\tY = B - X;\n\tif ...
CDSS_418373
CDSS
#include <stdio.h> #include <string.h> int main(void){ char s[11], t[12]; scanf("%s%s", s, t); (strncmp(s, t, strlen(s)) == 0) ? puts("Yes") : puts("No"); return 0; }
1,684
memory_bytes
{'s_id': 's723421836', 'p_id': 'p02681', 'u_id': 'u203907350', 'date': '1597093141', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1684', 'code_size': '175'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint main(void){\n char s[11], t[12];\n scanf(\"%s%s\", s, t);\n (strncmp(s, t, strlen(s)) ...
CDSS_116774
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #define BUF_SIZE ROW_MAX*3 #define ROW_MAX 30 #define COL_MAX 30 int get_int2(int *a1, int *a2) { #ifdef BUF_SIZE char line[BUF_SIZE]; if(!fgets(line, BUF_SIZE, stdin)) return -1; sscanf(line, "%d %d", a1, a2); #else #error #endif return 0; } // <arr...
1,988
memory_bytes
{'s_id': 's270979071', 'p_id': 'p00747', 'u_id': 'u933484853', 'date': '1584693813', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1988', 'code_size': '3378'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\n#define BUF_SIZE ROW_MAX*3\n#define ROW_MAX 30\n#define COL_MAX 30\n\n...
CDSS_229681
CDSS
#include<stdio.h> #define MAX 2000000 int size,X[MAX]; void maxHeapify(int i){ int l,r,LL,a; l = 2*i; r = 2*i+1; if(l<=size && X[l]>X[i])LL = l; else LL = i; if(r<=size && X[r]>X[LL])LL = r; if(LL != i){ a = X[i]; X[i] = X[LL]; X[LL] = a; maxHeapify(LL); } } int main(){ int i; scan...
3,688
memory_bytes
{'s_id': 's233015780', 'p_id': 'p02288', 'u_id': 'u071740547', 'date': '1548046361', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '3688', 'code_size': '499'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define MAX 2000000\n\nint size,X[MAX];\n\nvoid maxHeapify(int i){\n int l,r,LL,a;\n l = 2*i;\n r = 2*i+1;\n if...
CDSS_426473
CDSS
//A #include<stdio.h> int main(void){ int K; int A,B; int i; scanf("%d",&K); scanf("%d%d",&A,&B); for(i=A;i<=B;i++){ if((i%K)==0){ printf("OK"); return 0; } } printf("NG"); return 0; }
1,732
memory_bytes
{'s_id': 's897773378', 'p_id': 'p02693', 'u_id': 'u840269340', 'date': '1588470802', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1732', '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//A\n#include<stdio.h>\nint main(void){\n int K;\n int A,B;\n int i;\n scanf(\"%d\",&K);\n scanf(\"%d%d\",&A,&B);\n for(i=A;i<=B...
CDSS_312305
CDSS
#include<stdio.h> int main(void) { int a,b,d,r; double f; scanf("%d %d",&a,&b); d=a/b; r=a%b; f=(double)a/b; printf("%d %d %21.9f\n",d,r,f); }
2,052
memory_bytes
{'s_id': 's961178015', 'p_id': 'p02399', 'u_id': 'u411780044', 'date': '1561090493', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', '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 main(void)\n{\n int a,b,d,r;\n double f;\n\n scanf(\"%d %d\",&a,&b);\n \n d=a/b;\n r=a%b;\n f=(double)a...
CDSS_547294
CDSS
#include <stdio.h> int main(){ int r,s; scanf("%d",&r); s=3*r*r; printf("%d",s); }
128
memory_bytes
{'s_id': 's631287591', 'p_id': 'p02969', 'u_id': 'u546853743', 'date': '1563670925', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '82'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 r,s;\nscanf(\"%d\",&r);\ns=3*r*r;\nprintf(\"%d\",s);\n}\nPredict its memory footprint.", "rol...
CDSS_66198
CDSS
#include <stdio.h> #include <math.h> #define SIZE 1000000 int prime[SIZE]; int sosu ( int n ) { int i , lim = (int)(sqrt(n)); for ( i = 2; i <= lim; i++ ) { if ( n % i == 0 ) return 0; } return 1; } void tmp(void) { int i; prime[0] = prime[1] = 0; for ( i = 2; i < SIZE; i++ ) { prime[i] = sosu(i); } retu...
4,312
memory_bytes
{'s_id': 's574226514', 'p_id': 'p00053', 'u_id': 'u336000501', 'date': '1296193650', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '250', 'memory': '4312', 'code_size': '558'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 SIZE 1000000\nint prime[SIZE];\n\nint sosu ( int n ) {\n\tint i , lim = (int)(sqrt(n));...
CDSS_736981
CDSS
#include<stdio.h> int main(){ int a,b,h,area; scanf("%d %d %d",&a,&b,&h); area = ((a+b)*h)/2; printf("%d\n",area); return 0; }
128
memory_bytes
{'s_id': 's882948699', 'p_id': 'p03997', 'u_id': 'u816631826', 'date': '1589147965', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main(){\n int a,b,h,area;\n scanf(\"%d %d %d\",&a,&b,&h);\n area = ((a+b)*h)/2;\n printf(\"%d\\n\",...
CDSS_67110
CDSS
#include<stdio.h> #define M 100000 int main(void){ int i,j; int n,ans; int num[M]; num[0]=0; for(i=1;i<M;i++) num[i]=1; for(i=1;i<M;i++) if(num[i]==1) for(j=i+i+1;j<M;j+=i+1) num[j]=0; for(;;){ scanf("%d",&n); if(n==0) break; ans=0; for(i=1;i<n/2;i++) ...
792
memory_bytes
{'s_id': 's824457396', 'p_id': 'p00056', 'u_id': 'u846661244', 'date': '1328448001', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '230', 'memory': '792', 'code_size': '403'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define M 100000\n\nint main(void){\n int i,j;\n int n,ans;\n int num[M];\n\n num[0]=0;\n for(i=1;i<M;i++)\n ...
CDSS_651137
CDSS
#include<stdio.h> #include<stdlib.h> #include<math.h> typedef long long int int64; #define MAX(a,b) ((a)>(b)?(a):(b)) #define MIN(a,b) ((a)<(b)?(a):(b)) #define ABS(a) ((a)>(0)?(a):-(a)) void run(void){ int a,b,k; scanf("%d%d%d",&a,&b,&k); int i; if(a+k-1<b+1-k){ for(i=1;i<=k;i++) printf("%d\n",a+i-1); ...
128
memory_bytes
{'s_id': 's491921081', 'p_id': 'p03386', 'u_id': 'u425248533', 'date': '1541068124', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '460'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\ntypedef long long int int64;\n\n#define MAX(a,b) ((a)>(b)?(a):(b))\n#define...
CDSS_656437
CDSS
#include <stdio.h> int main(void) { int N; int asumikana = 0; int i; if (scanf("%d", &N) != 1) return 1; for (i = 0; i < N; i++) { char S[4]; if (scanf("%3s", S) != 1) return 1; switch (S[0]) { case 'P': asumikana |= 1; break; case 'W': asumikana |= 2; break; case 'G': asumikana |= 4; break; cas...
128
memory_bytes
{'s_id': 's168876074', 'p_id': 'p03424', 'u_id': 'u646118499', 'date': '1578571922', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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\tint N;\n\tint asumikana = 0;\n\tint i;\n\tif (scanf(\"%d\", &N) != 1) return 1;\n\tfor (i = ...
CDSS_387822
CDSS
#include <stdio.h> #include <stdlib.h> #define rep(i,l,r)for(int i=(l);i<(r);i++) #define W 700 typedef struct tuple{int x,y;}T; int qidx[500010]; T query[500010];//[x,y] int qcmp(const void*p,const void*q){ if(query[*(int*)p].x/W<query[*(int*)q].x/W)return -1; if(query[*(int*)p].x/W>query[*(int*)q].x/W)return 1; ...
15,244
memory_bytes
{'s_id': 's730652283', 'p_id': 'p02599', 'u_id': 'u382163500', 'date': '1596392579', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '875', 'memory': '15244', 'code_size': '1185'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 rep(i,l,r)for(int i=(l);i<(r);i++)\n#define W 700\n\ntypedef struct tuple{int x,y;}T;...
CDSS_712443
CDSS
#include<stdio.h> int main() { char o[55],e[55]; scanf("%s%s",o,e); for(int i=0;o[i];i++){ putchar(o[i]); if(e[i]) putchar(e[i]); } return 0; }
128
memory_bytes
{'s_id': 's422273191', 'p_id': 'p03760', 'u_id': 'u596813883', 'date': '1591665104', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '157'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tchar o[55],e[55];\n\n\tscanf(\"%s%s\",o,e);\n\n\tfor(int i=0;o[i];i++){\n\t\tputchar(o[i]);\n\t\ti...
CDSS_550377
CDSS
#include <stdio.h> int main (void) { int a, b, n, c; scanf("%d %d %d", &n, &a, &b); c = a * n; if(c >= b){ c = b; } printf("%d",c); return 0; }
128
memory_bytes
{'s_id': 's222583501', 'p_id': 'p02981', 'u_id': 'u196669204', 'date': '1565729493', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main (void)\n{\n\tint a, b, n, c;\n\t\n\tscanf(\"%d %d %d\", &n, &a, &b);\n\t\n\tc = a * n;\n\t\n\tif(c >= b){...
CDSS_153946
CDSS
#include<stdio.h> int main(void){ int x,y,result=0; int temp; scanf("%d",&x); scanf("%d",&y); if(x<=y){ temp=x; x=y; y=temp; } result=x%y; while(result!=0){ x=y; y=result; result=x%y; } printf("%d\n",y); return 0; }
2,100
memory_bytes
{'s_id': 's192332875', 'p_id': 'p02256', 'u_id': 'u173258443', 'date': '1569568855', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', '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\n\n\nint main(void){\n\tint x,y,result=0;\n\tint temp;\n\tscanf(\"%d\",&x);\n\tscanf(\"%d\",&y);\n\tif(x<=y){\n\t\...
CDSS_509083
CDSS
#include <stdio.h> int main(void) { int A1,A2,A3; scanf ("%d %d %d",&A1,&A2,&A3); if (A1+A2+A3>=22) printf ("bust");// Your code here! else printf ("win"); }
1,724
memory_bytes
{'s_id': 's890303526', 'p_id': 'p02835', 'u_id': 'u757670973', 'date': '1598896137', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '1724', '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)\n{\n int A1,A2,A3;\n scanf (\"%d %d %d\",&A1,&A2,&A3);\n if (A1+A2+A3>=22) printf (\"bust\");// ...
CDSS_112232
CDSS
char r[99],g[99],*G,d[99];main(c,i,k){for(;scanf("%s%s%s",r,g,d)>1;puts(""))for(i=k=0,G=g,c=*G++;*(G-1);)c==d[k]?k++,c=r[i++]:(putchar(c),c=*G++);exit(0);}
524
memory_bytes
{'s_id': 's815696307', 'p_id': 'p00622', 'u_id': 'u300645821', 'date': '1349808416', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', '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:\nchar r[99],g[99],*G,d[99];main(c,i,k){for(;scanf(\"%s%s%s\",r,g,d)>1;puts(\"\"))for(i=k=0,G=g,c=*G++;*(G-1);)c==d[k]?k++,c=r[i++]:(put...
CDSS_270447
CDSS
#include<stdio.h> int main() { int a,b; scanf("%d %d",&a,&b); if(a<b) printf("a < b\n"); else if(a>b) printf("a > b\n"); else printf("a == b\n"); return 0; }
580
memory_bytes
{'s_id': 's840931526', 'p_id': 'p02391', 'u_id': 'u510945912', 'date': '1492674417', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '160'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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{\nint a,b;\nscanf(\"%d %d\",&a,&b);\nif(a<b)\n\tprintf(\"a < b\\n\");\nelse if(a>b)\n\tprintf(\"a > b\...
CDSS_677065
CDSS
#include <stdio.h> #include <string.h> int main (int argc,char **argv) { char x[2],y[2]; int a = 0; scanf("%s %s",x,y); a = strcmp(x,y); if (a == 0) { printf("=\n"); } else if (a < 0) { printf("<\n"); } else { printf(">\n"); } return 0; }
128
memory_bytes
{'s_id': 's712428191', 'p_id': 'p03547', 'u_id': 'u746675075', 'date': '1524969246', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', '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>\n#include <string.h>\n\nint main (int argc,char **argv)\n{\n\tchar x[2],y[2];\n\tint a = 0;\n\n\tscanf(\"%s %s\",x,...
CDSS_597981
CDSS
#include<stdio.h> int main() { int N; int i; int L[110] ; scanf("%d",&N); for(i=0;i<=N-1;i++){ scanf("%d",&L[i]); }; int max = 0; for(i=0;i<=N-1;i++){ if(L[i] > max) max = L[i]; }; int sum = 0; for(i=0;i<=N-1;i++){ sum += L[i]; }; if(sum - 2 * max > 0) printf("Yes"); else printf("No"); }
128
memory_bytes
{'s_id': 's568465089', 'p_id': 'p03136', 'u_id': 'u362444129', 'date': '1551585311', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '311'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 N;\n\tint i;\n\tint L[110] ;\n\tscanf(\"%d\",&N);\n\tfor(i=0;i<=N-1;i++){\n\t\tscanf(\"%d\",...
CDSS_535744
CDSS
#include <stdio.h> int main(){ int a; char s[20]; scanf("%d %s", &a, s); if(a >= 3200) puts(s); else puts("red"); return 0; }
128
memory_bytes
{'s_id': 's112358767', 'p_id': 'p02933', 'u_id': 'u906918812', 'date': '1592376499', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', '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>\n\nint main(){\n int a;\n char s[20];\n\n scanf(\"%d %s\", &a, s);\n\n if(a >= 3200) puts(s);\n else...
CDSS_490649
CDSS
#include<stdio.h> int main(){ char t[100]; scanf("%s",t); int i=0; while(t[i]!='\0'){ printf("x"); i++; } printf("\n"); return 0; }
128
memory_bytes
{'s_id': 's728684675', 'p_id': 'p02778', 'u_id': 'u757014735', 'date': '1584878533', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '146'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 t[100]; scanf(\"%s\",t); int i=0;\n while(t[i]!='\\0'){\n printf(\"x\"); i++;\n }\n pri...
CDSS_438403
CDSS
#include <stdio.h> #define _USE_MATH_DEFINES #include <math.h> int main() { double r; double around = 0; scanf("%lf", &r); around = M_PI * r * 2; printf("%lf", around); return 0; }
1,752
memory_bytes
{'s_id': 's605939939', 'p_id': 'p02705', 'u_id': 'u076064214', 'date': '1587499225', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1752', 'code_size': '187'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 _USE_MATH_DEFINES\n#include <math.h>\n\nint main() {\n\tdouble r;\n\tdouble around = 0;\n\tscanf(\"%lf\", ...
CDSS_340679
CDSS
#include <stdio.h> #include <stdlib.h> int** make2dArray(int x,int y){ int** array = (int**)malloc(sizeof(int*) * x); for (int i = 0; i < x; i++) { array[i] = (int*)malloc(sizeof(int) * y); } return array; } void printArray(int* a, int length) { for (int i = 0; i < length; i++) { printf("%d ", a[i]); } } vo...
2,096
memory_bytes
{'s_id': 's221867585', 'p_id': 'p02406', 'u_id': 'u025170431', 'date': '1585224750', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2096', 'code_size': '1619'}
[ { "content": "Your task is to predict the memory 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#include <stdlib.h>\n\nint** make2dArray(int x,int y){\n\tint** array = (int**)malloc(sizeof(int*) * x);\n\tfor ...
CDSS_642127
CDSS
#include<stdio.h> int main(void){ int a,b,max; scanf("%d %d",&a,&b); max = (a+b>a-b) ? a+b: a-b; max = (max>a*b) ? max: a*b; printf("%d" ,max); return 0; }
128
memory_bytes
{'s_id': 's505466858', 'p_id': 'p03337', 'u_id': 'u352248517', 'date': '1529245272', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '168'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int a,b,max;\n scanf(\"%d %d\",&a,&b);\n max = (a+b>a-b) ? a+b: a-b;\n max = (max>a*b) ? max:...
CDSS_433594
CDSS
#include <stdio.h> int main(void){ int a,b,c,d; scanf("%d%d%d%d",&a,&b,&c,&d); while(1){ c-=b; if(c<=0){printf("Yes\n");return 0;} a-=d; if(a<=0){printf("No\n");return 0;} } return 0; }
1,660
memory_bytes
{'s_id': 's619738523', 'p_id': 'p02700', 'u_id': 'u112319905', 'date': '1588081282', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1660', 'code_size': '226'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int a,b,c,d;\n scanf(\"%d%d%d%d\",&a,&b,&c,&d);\n\n while(1){\n c-=b;\n if(c<=...
CDSS_292376
CDSS
#include<stdio.h> int main(){ int W,H,x,y,r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(x+r<=W && x-r>=0 && y+r<=H && y-r>=0){ printf("Yes\n"); }else{ printf("No\n"); } }
1,816
memory_bytes
{'s_id': 's906531597', 'p_id': 'p02394', 'u_id': 'u381985271', 'date': '1511431279', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1816', 'code_size': '194'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n int main(){\n \tint W,H,x,y,r;\n \tscanf(\"%d %d %d %d %d\",&W,&H,&x,&y,&r);\n \tif(x+r<=W && x-r>=0 && y+r<=H && ...
CDSS_720605
CDSS
#include<stdio.h> int main() { int x; scanf("%d", &x); if(x < 1200){ puts("ABC"); } else{ puts("ARC"); } return 0; }
128
memory_bytes
{'s_id': 's148682791', 'p_id': 'p03813', 'u_id': 'u288147331', 'date': '1569256534', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '160'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int x; scanf(\"%d\", &x);\n\n if(x < 1200){\n puts(\"ABC\");\n }\n else{\n ...
CDSS_113140
CDSS
/* AOJ 1072 Title: @kankichi573 */ #include <stdio.h> int r,c; main() { while(scanf("%d %d",&r,&c) && (r||c)) { if((r & 1) && (c & 1)) printf("no\n"); else printf("yes\n"); } return(0); }
584
memory_bytes
{'s_id': 's715013200', 'p_id': 'p00657', 'u_id': 'u708993917', 'date': '1393474518', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', '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/*\n AOJ 1072\n Title:\n @kankichi573\n*/\n#include <stdio.h>\nint r,c;\nmain()\n{\n while(scanf(\"%d %d\",&r,&c) && (r||c))\n ...
CDSS_288293
CDSS
#include<stdio.h> int main(){ int a,b,c,tmp; scanf("%d %d %d",&a,&b,&c); if ( a > b ) { tmp = a; a = b; b = tmp; } if ( b > c ) { tmp = b; b = c; c = tmp; } if ( a > b ) { tmp = a; a = b; b = tmp; } p...
2,056
memory_bytes
{'s_id': 's016007645', 'p_id': 'p02393', 'u_id': 'u442295940', 'date': '1563613862', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '363'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,c,tmp;\n scanf(\"%d %d %d\",&a,&b,&c);\n if ( a > b )\n {\n tmp = a;\n ...
CDSS_424132
CDSS
#include<stdio.h> int main(void) { int n, m, i,count=0; int h[100000], a[100000], b[100000], max[100000] = {}; scanf("%d %d", &n, &m); for (i = 0; i < n; i++) { scanf("%d", &h[i]); } for (i = 0; i < m; i++) { scanf("%d %d\n", &a[i], &b[i]); if (max[a[i]-1] < h[b[i]-1]) max[a[i]-1] = h[b[i]-1]; if (max[b...
3,700
memory_bytes
{'s_id': 's393518370', 'p_id': 'p02689', 'u_id': 'u189521276', 'date': '1588614553', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '39', 'memory': '3700', 'code_size': '463'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n\nint main(void) {\n\tint n, m, i,count=0;\n\tint h[100000], a[100000], b[100000], max[100000] = {};\n\tscanf(\"%...
CDSS_496780
CDSS
#include<stdio.h> int main( ) { int M,N; scanf("%d %d",&N,&M); if(N>M){ printf("No"); } else{ printf("Yes"); } return 0; }
128
memory_bytes
{'s_id': 's794850792', 'p_id': 'p02789', 'u_id': 'u018679195', 'date': '1581117543', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '122'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main( )\n{\nint M,N;\nscanf(\"%d %d\",&N,&M);\nif(N>M){\nprintf(\"No\");\n}\nelse{\nprintf(\"Yes\");\n}\nreturn...
CDSS_279281
CDSS
#include <stdio.h> int main(void){ int a,b,c; scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); if(a<b&&b<c) puts("Yes"); else puts("No"); return 0; }
2,100
memory_bytes
{'s_id': 's819371291', 'p_id': 'p02392', 'u_id': 'u374434600', 'date': '1523593479', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', '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\tint a,b,c;\n\n\tscanf(\"%d\",&a);\n\tscanf(\"%d\",&b);\n\tscanf(\"%d\",&c);\n\tif(a<b&&b<c)\n...
CDSS_50827
CDSS
#include <stdio.h> main(){ int kazu[6],i,j,tmp=0; for(i=0;i<5;i++){ scanf("%d",&kazu[i]); } for(i=0;i<5;i++){ for(j=4;j>i;j--){ if(kazu[j]>kazu[j-1]){ tmp=kazu[j-1]; kazu[j-1]=kazu[j]; kazu[j]=tmp; } } } for(i=0;i<5;i++){ printf("%d",kazu[i]); if(i!=4){ printf(" "); ...
600
memory_bytes
{'s_id': 's578412827', 'p_id': 'p00018', 'u_id': 'u857051250', 'date': '1406679741', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '379'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 kazu[6],i,j,tmp=0;\n for(i=0;i<5;i++){\n scanf(\"%d\",&kazu[i]);\n }\n for(i=0;i<5;i++){\n ...
CDSS_684686
CDSS
#include<stdio.h> int main() { int A, B, C, D, E, F; scanf("%d%d%d%d%d%d", &A, &B, &C, &D, &E, &F); //A = 1, B = 2, F = 200; //C = 10, D = 20, E = 15; int a, b, c, d, x, y; double noudo = 0, noudomax = 0, noudolim = 0; int ansa = 0, ansb = 0; noudolim = (double)E / (100 + (double)E); for (a = 0; a <= F / (10...
128
memory_bytes
{'s_id': 's761887794', 'p_id': 'p03601', 'u_id': 'u389185410', 'date': '1552144628', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '39', 'memory': '128', 'code_size': '1272'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 A, B, C, D, E, F;\n\tscanf(\"%d%d%d%d%d%d\", &A, &B, &C, &D, &E, &F);\n\t//A = 1, B = 2, F = 20...
CDSS_46792
CDSS
#include <stdio.h> t[10],p; int main(x){ // int t[10],p=0; while(~scanf("%d",&x)){ if(x)t[p++]=x; else printf("%d\n",t[--p]); } return 0; }
600
memory_bytes
{'s_id': 's573121224', 'p_id': 'p00013', 'u_id': 'u817021824', 'date': '1416669814', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '156'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nt[10],p;\nint main(x){\n // int t[10],p=0;\n while(~scanf(\"%d\",&x)){\n if(x)t[p++]=x;\n else printf(\"%...
CDSS_499496
CDSS
#include<stdio.h> #define N 1000000000 int main() { long n,k,s; long i; long j; scanf("%ld%ld%ld",&n,&k,&s); if(s==N){ for(i=0;i<k;i++){ printf("%ld ",s); }if(k<n){ for(j=i;i<n;i++) printf("%ld ",s-1); } }else{ ...
1,280
memory_bytes
{'s_id': 's233194345', 'p_id': 'p02797', 'u_id': 'u149757670', 'date': '1579383971', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '1280', 'code_size': '503'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 1000000000\nint main()\n{\n long n,k,s;\n long i;\n long j;\n \n scanf(\"%ld%ld%ld\",&n,&k...
CDSS_258530
CDSS
#include<stdio.h> int main(void) { int x,y,a,b; scanf("%d %d",&a,&b); x=a*b; y=a+a+b+b; printf("%d %d\n",x,y); return 0; }
2,056
memory_bytes
{'s_id': 's748813393', 'p_id': 'p02389', 'u_id': 'u122455362', 'date': '1537493541', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '126'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 x,y,a,b;\nscanf(\"%d %d\",&a,&b);\nx=a*b;\ny=a+a+b+b;\nprintf(\"%d %d\\n\",x,y);\n\n\nretu...
CDSS_514934
CDSS
#include <stdio.h> int main(){ int N; scanf("%d", &N); char S[N + 1]; scanf("%s", S); if(N % 2 == 1){ puts("No"); } else{ int flag = 1; for(int i = 0; i < N / 2; i ++){ if(S[i] != S[i + N/2]){ flag = 0; } } if...
1,644
memory_bytes
{'s_id': 's844188340', 'p_id': 'p02860', 'u_id': 'u863370423', 'date': '1596944843', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1644', '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\n\nint main(){\n int N;\n scanf(\"%d\", &N);\n\n char S[N + 1];\n scanf(\"%s\", S);\n if(N % 2 == ...
CDSS_308763
CDSS
#include <stdio.h> int main(void) { int a,b; scanf("%d %d",&a,&b); printf("%d %d %lf\n",a/b,a%b,(double)a/(double)b); return 0; }
632
memory_bytes
{'s_id': 's252197114', 'p_id': 'p02399', 'u_id': 'u106156046', 'date': '1461138868', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '632', 'code_size': '142'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n\n\n{\n\n\nint a,b;\n\n\nscanf(\"%d %d\",&a,&b);\n\n\nprintf(\"%d %d %lf\\n\",a/b,a%b,(double)a/...
CDSS_493842
CDSS
#include<stdio.h> int main() { int i,n,a; long long int h, sum = 0; scanf("%lld %d", &h,&n); for(i = 1;i<=n;i++) { scanf("%d", &a); sum = sum+a; } if(sum >= h) printf("Yes\n"); else printf("No\n"); }
1,664
memory_bytes
{'s_id': 's512874217', 'p_id': 'p02784', 'u_id': 'u353919145', 'date': '1600395255', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '19', 'memory': '1664', '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{\n int i,n,a;\n long long int h, sum = 0;\n scanf(\"%lld %d\", &h,&n);\n for(i = 1;i<=n;i+...
CDSS_225920
CDSS
#include<stdio.h> #include<stdlib.h> #define MAX 255 int Parent(int i){ return i/2; } int Left(int i){ return 2*i; } int Right(int i){ return (2*i)+1; } main(){ int heap[MAX],i,size,left,right; scanf("%d",&size); for(i=1 ; i<=size ; i++){ scanf("%d",&heap[i]); } for(i=1 ; i<=size ; i++){ p...
600
memory_bytes
{'s_id': 's352875664', 'p_id': 'p02287', 'u_id': 'u238122532', 'date': '1404355628', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '610'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 255\n\nint Parent(int i){\n return i/2;\n}\n\nint Left(int i){\n return 2*i;\n}\n...
CDSS_616154
CDSS
#include<stdio.h> int main(){ int N; scanf("%d", &N)+ printf("%d", 1110-N); return 0; }
128
memory_bytes
{'s_id': 's193327380', 'p_id': 'p03242', 'u_id': 'u235231201', 'date': '1558748576', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '107'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int N;\n\n scanf(\"%d\", &N)+\n\n printf(\"%d\", 1110-N);\n\n return 0;\n}\nPredict its...
CDSS_734472
CDSS
#include<stdio.h> int main(){ int a, b, c; int chk[101]; int i; for(i=0;i<=100;i++) chk[i] = 0; scanf("%d%d%d", &a, &b, &c); chk[a]++; chk[b]++; chk[c]++; int cnt = 0; for(i=0;i<=100;i++) cnt += chk[i] > 0 ? 1 : 0; printf("%d\n", cnt); return 0; }
128
memory_bytes
{'s_id': 's417203531', 'p_id': 'p03962', 'u_id': 'u774845108', 'date': '1520394547', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '267'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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, c;\n int chk[101];\n int i;\n for(i=0;i<=100;i++) chk[i] = 0;\n scanf(\"%d%d%d\", &a, ...
CDSS_478907
CDSS
#include<stdio.h> int main(void) { long n, a, b, m; scanf("%ld%ld%ld",&n,&a,&b); if(n%(a+b)==0) m=a*(n/(a+b)); else if(n%(a+b)>=a) m=a*(n/(a+b))+a; else m=a*(n/(a+b))+n%(a+b); printf("%ld",m); return 0; }
128
memory_bytes
{'s_id': 's454294903', 'p_id': 'p02754', 'u_id': 'u615336522', 'date': '1589364379', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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(void)\n{\n long n, a, b, m;\n\n scanf(\"%ld%ld%ld\",&n,&a,&b);\n if(n%(a+b)==0)\n ...
CDSS_605924
CDSS
#include<stdio.h> int main() { int n, h, w; scanf("%d %d %d", &n, &h, &w); int ans = 0; int a, b; for (int i = 0; i < n; i++) { scanf("%d %d", &a, &b); if (a >= h && b >= w) ans++; } printf("%d\n", ans); return 0; }
128
memory_bytes
{'s_id': 's998614108', 'p_id': 'p03193', 'u_id': 'u600300412', 'date': '1545530663', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '279'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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, h, w;\n scanf(\"%d %d %d\", &n, &h, &w);\n int ans = 0;\n int a, b;\n for (in...
CDSS_114593
CDSS
#include<stdio.h> #include<stdlib.h> int unit(int p,int q,double a,int n,int l) { int i,c=0; if(n>0 && p>0){ for(i=l;i<=a;i++) { if(p*i==q)c++; c += unit(p*i-q,q*i,a/i,n-1,i); } } return(c); } int main(void) { int p,q,a,n; while(1) { scanf("%d %d %d %d ",&p,&q,&a,&n); if(p==0 && q==0 && a==0...
408
memory_bytes
{'s_id': 's977878769', 'p_id': 'p00712', 'u_id': 'u914140574', 'date': '1276524031', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '440', 'memory': '408', 'code_size': '393'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint unit(int p,int q,double a,int n,int l)\n{\n\tint i,c=0;\n\n\tif(n>0 && p>0){\n\t\tfor(i=l...
CDSS_215927
CDSS
#include<stdio.h> #define N 100001 #define NIL -1 typedef struct { int parent, left, right; }Node; Node Tree[N]; void print(int); int Depth[N]; int main(VOID){ int i, j, n, cc, child[N], node; scanf("%d", &n); for ( i = 0; i < n; i++ ) { Tree[i].parent = NIL; Tree[i].left = NIL; Tree[...
2,564
memory_bytes
{'s_id': 's667711187', 'p_id': 'p02279', 'u_id': 'u159204823', 'date': '1497415864', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '2564', 'code_size': '1354'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 100001\n#define NIL -1\n \ntypedef struct {\n int parent, left, right;\n}Node;\n \nNode Tree[N]; \nvoid ...
CDSS_712898
CDSS
#include <stdio.h> #include <string.h> int main(void) { char a[100]={},b[100]={},c[100]={}; int i,j,len; scanf("%s",a); scanf("%s",b); len = strlen(a); for(i=1;i<=len;i++){ c[i*2-2] = a[i-1]; c[i*2-1] = b[i-1]; } printf("%s\n",c); return 0; }
128
memory_bytes
{'s_id': 's181045538', 'p_id': 'p03760', 'u_id': 'u563313000', 'date': '1498758294', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '320'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 char a[100]={},b[100]={},c[100]={};\n int i,j,len;\n \n ...
CDSS_237779
CDSS
/* Includes */ #include <stdio.h> /* Defines */ /* Variables */ int list_dice[6]; char list_direction[100]; /* Prototypes */ int RotDice(char directon, int list_val[6]); /* Main */ int main() { for (int i = 0; i < 6; i++) { scanf("%d", &list_dice[i]); } scanf("%s", &list_direction); for (i...
2,120
memory_bytes
{'s_id': 's945716153', 'p_id': 'p02383', 'u_id': 'u246238278', 'date': '1583278334', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2120', 'code_size': '1818'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* Includes */\n#include <stdio.h>\n\n/* Defines */\n\n/* Variables */\nint list_dice[6];\nchar list_direction[100];\n\n/* Prototypes ...
CDSS_647644
CDSS
#include <stdio.h> main() { int a,b,c,o,sum; a=getchar(); b=getchar(); c=getchar(); sum=700; if (a=='o'){ sum+=100; } if (b=='o'){ sum+=100; } if (c=='o'){ sum+=100; } printf("%d",sum); }
128
memory_bytes
{'s_id': 's231079268', 'p_id': 'p03369', 'u_id': 'u839599863', 'date': '1524359705', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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\nmain()\n{\n\tint a,b,c,o,sum;\n\ta=getchar();\n\tb=getchar();\n\tc=getchar();\n\tsum=700;\n\tif (a=='o'){\n\tsum...
CDSS_554648
CDSS
#include <stdio.h> int main(void) { int i,n,count=0; int p[30]; scanf("%d",&n); for(i=0; i<n; i++){ scanf("%d",&p[i]); } for(i=0; i<n-2; i++){ if(((p[i]<p[i+1])&&(p[i+1]<p[i+2]))||((p[i]>p[i+1])&&(p[i+1]>p[i+2]))) count++; } printf("%d\n",count); return 0; }
128
memory_bytes
{'s_id': 's820980372', 'p_id': 'p02988', 'u_id': 'u506314975', 'date': '1588448360', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '319'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 i,n,count=0;\n int p[30];\n\n scanf(\"%d\",&n);\n for(i=0; i<n; i++){\n ...
CDSS_370759
CDSS
#include<stdio.h> #include<string.h> int main() { char input[201] ; char copy[201] ; int i; int m,r,n; while(scanf("%s\n",input),strcmp(input,"-")) { scanf("%d",&m); n = strlen(input); for(i = 0;i < m;i++) { scanf("%d",&r); strcpy(copy,&input[r]); strncat(copy,input,r); input[n] = '\...
2,032
memory_bytes
{'s_id': 's013255402', 'p_id': 'p02420', 'u_id': 'u685681120', 'date': '1570777817', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2032', 'code_size': '401'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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{\n\tchar input[201] ;\n\tchar copy[201] ;\n\tint i;\n\tint m,r,n;\n\t\n\twhile(...
CDSS_240529
CDSS
#include <stdio.h> int main() { int x, sam; scanf("%d",&x); sam = x * x * x; printf("%d\n",sam); return 0; }
596
memory_bytes
{'s_id': 's403591175', 'p_id': 'p02388', 'u_id': 'u921472706', 'date': '1429938304', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '120'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main() {\n int x, sam;\n scanf(\"%d\",&x);\n\n sam = x * x * x;\n\n printf(\"%d\\n\",sam);\n return 0;\n}...
CDSS_189595
CDSS
#include<stdio.h> #define MAX 10000 int linearSearch(){ int i,j,count,k,l; int s[MAX],t[MAX]; count = 0; scanf("%d",&k); for(i = 0; i < k; i++) scanf("%d",&s[i]); scanf("%d",&l); for(i = 0; i < l; i++) scanf("%d",&t[i]); if(k > l){ for(i = 0; i < l; i++) for(j = 0; j < k; j+...
2,144
memory_bytes
{'s_id': 's049143529', 'p_id': 'p02267', 'u_id': 'u426293744', 'date': '1529981857', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '576'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 10000\n\n\nint linearSearch(){\n int i,j,count,k,l;\n int s[MAX],t[MAX];\n\n count = 0;\n \n sca...
CDSS_142025
CDSS
#include<stdio.h> #define N 8 //8×8のマス #define FREE -1 #define NOT_FREE 1 int row[N]; int col[N]; int dpos[2*N-1],dneg[2*N-1]; /*dpos:左下方向 dneg:右下方向*/ int Z[N][N]; void Initialize(void); void PrintBoard(void); void Recursive(int); int main(){ int i, j; int k, r, c; /*1行目に整数 k 、続く k 行にクイーンが配置されているマスが2つの整数 r,...
2,140
memory_bytes
{'s_id': 's865953278', 'p_id': 'p02244', 'u_id': 'u779353543', 'date': '1581541014', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '1916'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 8 //8×8のマス\n#define FREE -1\n#define NOT_FREE 1\n\nint row[N];\nint col[N];\nint dpos[2*N-1],dneg[2*N-1...
CDSS_138316
CDSS
#include <stdio.h> #define SIZE 201 int que[SIZE]; int head, tail; int init() { head = tail = 0; } int empty() { return head == tail; } int push(int elm) { que[tail] = elm; tail = (tail+1)%SIZE; } int front() { return que[head]; } void pop() { head = (head+1)%SIZE; } int bfs(int n, int G[][101], int *cost) { in...
2,112
memory_bytes
{'s_id': 's878161778', 'p_id': 'p02239', 'u_id': 'u581342603', 'date': '1532846543', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '1052'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 SIZE 201\n \nint que[SIZE];\nint head, tail;\n \nint init() { head = tail = 0; }\nint empty() { return hea...
CDSS_139901
CDSS
#include <stdio.h> #define MAX 100 #define INFTY 1000000000 #define white 0 #define gray 1 #define brack 2 int A[MAX][MAX],p[MAX]; void prim(int); int main(){ int n,i,e,j,sum; scanf("%d",&n); for(i=0;i<n;i++){ for(j=0;j<n;j++){ scanf("%d",&e); A[i][j] = (e==-1) ? INFTY:e; } } prim(n); ...
2,048
memory_bytes
{'s_id': 's484908036', 'p_id': 'p02241', 'u_id': 'u359802056', 'date': '1548732119', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '967'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 INFTY 1000000000\n#define white 0\n#define gray 1\n#define brack 2\n\nint A[MAX][MAX],p...
CDSS_200942
CDSS
#include <stdio.h> int solve(int, int); int A[100], n; int main(){ int q, m[200]; int i; scanf("%d", &n); for(i = 0; i < n; i++){ scanf("%d", &A[i]); } scanf("%d", &q); for(i = 0; i < q; i++){ scanf("%d", &m[i]); } for(i = 0; i < q; i++){ if(solve(0, m[i]) == 1) printf("yes\n"); ...
2,108
memory_bytes
{'s_id': 's448094358', 'p_id': 'p02271', 'u_id': 'u909412249', 'date': '1576834926', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '470', 'memory': '2108', 'code_size': '533'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint solve(int, int);\n\nint A[100], n;\n\nint main(){\n int q, m[200];\n int i;\n\n scanf(\"%d\", &n);\n\n f...
CDSS_392453
CDSS
#include<stdio.h> #include<string.h> int main(void){ int n; int ac=0, wa=0, tle=0, re=0; scanf("%d",&n); char s[4]; for(int i = 1; i<=n; i++){ scanf("%s",s); if(strcmp(s,"AC")==0) ac++; else if(strcmp(s,"WA")==0) wa++; else if(strcmp(s,"TLE")==0) tle++; ...
1,732
memory_bytes
{'s_id': 's202786803', 'p_id': 'p02613', 'u_id': 'u764919977', 'date': '1595262966', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '21', 'memory': '1732', 'code_size': '477'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nint main(void){\n int n;\n int ac=0, wa=0, tle=0, re=0;\n\n scanf(\"%d\",&n);\n\n ...
CDSS_326541
CDSS
#include <stdio.h> int main(void){ int i,n,data[10001],min,max; long long sum=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&data[i]); } max=data[0]; min=data[0]; for(i=0;i<n;i++){ if(max<data[i]){ max=data[i]; } else if(min>data[i]){ ...
1,812
memory_bytes
{'s_id': 's131822805', 'p_id': 'p02402', 'u_id': 'u638444351', 'date': '1511456359', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1812', '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>\nint main(void){\n int i,n,data[10001],min,max;\n long long sum=0;\n scanf(\"%d\",&n);\n for(i=0;i<n;i+...
CDSS_330210
CDSS
#include <stdio.h> int main () { int h,w; while (1) { scanf ("%d %d",&h,&w); int n,i; if (h == 0 && w == 0) break; for (i=0;i<h;i++) { for (n=0;n<w;n++) { printf ("#"); } printf ("\n"); } printf ("\n"); } return 0; }
572
memory_bytes
{'s_id': 's280095412', 'p_id': 'p02403', 'u_id': 'u320547885', 'date': '1492243450', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '280'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 h,w;\n while (1) {\n scanf (\"%d %d\",&h,&w);\n int n,i;\n if (h == 0 && w ...
CDSS_639663
CDSS
#include<stdio.h> int main(void){ int a; scanf("%d",&a); if(a<=999){ printf("ABC\n"); }else{ printf("ABD\n"); } return 0; }
1,644
memory_bytes
{'s_id': 's283500357', 'p_id': 'p03327', 'u_id': 'u143361448', 'date': '1600378549', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1644', 'code_size': '144'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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;\n scanf(\"%d\",&a);\n if(a<=999){\n printf(\"ABC\\n\");\n }else{\n printf(\"AB...
CDSS_469047
CDSS
#include <stdio.h> int main() { char string[6]; scanf("%s",string); if(string[2]==string[3]) { if(string[4]==string[5]) { printf("Yes"); } else { printf("No"); } } else { printf("No"); } return 0; }
128
memory_bytes
{'s_id': 's144162271', 'p_id': 'p02723', 'u_id': 'u214543645', 'date': '1585443825', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '318'}
[ { "content": "Your task is to predict the memory 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{\n char string[6];\n scanf(\"%s\",string);\n if(string[2]==string[3])\n {\n if...
CDSS_579526
CDSS
#include<stdio.h> int main(void) { int a,b,i=0,sum=0; scanf("%d %d",&a,&b); for(i=1;i<=2;i++){ if(a>=b){ sum=sum+a; a--; } else{ sum=sum+b; b--; } } printf("%d\n",sum); return 0; }
128
memory_bytes
{'s_id': 's463122234', 'p_id': 'p03071', 'u_id': 'u051455185', 'date': '1557401868', '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(void)\n{\n int a,b,i=0,sum=0;\n \n scanf(\"%d %d\",&a,&b);\n \n for(i=1;i<=2;i++){\n if(a>=b){\n ...
CDSS_622506
CDSS
#include <stdio.h> #include <string.h> int main() { int x1, x2, x3, x4, y1, y2, y3, y4; int w1, w2; scanf("%d %d %d %d", &x1, &y1, &x2, &y2); w1 = x1 - x2; w2 = y1 - y2; int temp; temp = w1; w1 = w2; w2 = temp; w1 *= -1; y4 = y1 - w2; x4 = x1 - w1; y3 = y2 - w2; x3 = x2 - w1; printf("%d %d %d %d\n...
128
memory_bytes
{'s_id': 's140942185', 'p_id': 'p03265', 'u_id': 'u018679195', 'date': '1537399103', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '357'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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{\n\tint x1, x2, x3, x4, y1, y2, y3, y4;\n\tint w1, w2;\n\tscanf(\"%d %d %d %d\...
CDSS_708712
CDSS
#include <stdio.h> #include <string.h> int main() { char a[20], b[20], c[20]; scanf("%s %s %s", &a, &b, &c); int lenA = strlen(a); int lenB = strlen(b); if (a[lenA-1] == b[0] && b[lenB-1] == c[0]){ printf("YES\n"); } else printf("NO\n"); return 0; }
1,664
memory_bytes
{'s_id': 's390665341', 'p_id': 'p03729', 'u_id': 'u816631826', 'date': '1596049916', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1664', 'code_size': '267'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\t\n\tchar a[20], b[20], c[20];\n\tscanf(\"%s %s %s\", &a, &b, &c);\n\t\n\tint ...
CDSS_712804
CDSS
#include<stdio.h> #include<string.h> int main() { int i,j,sum; char odd[100],even[100],pass[200]; gets(odd); gets(even); sum=strlen(odd)+strlen(even); for(i=0;i<sum;i++) { if(i%2==0) pass[i]=odd[i/2]; else pass[i]=even[(i-1)/2]; } pass[i]='\0';...
128
memory_bytes
{'s_id': 's219790316', 'p_id': 'p03760', 'u_id': 'u816631826', 'date': '1510622072', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '352'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 int i,j,sum;\n char odd[100],even[100],pass[200];\n gets(odd);\n ge...
CDSS_238323
CDSS
#include <stdio.h> int main(){ int dice_num[7]; int i,j; for(i=1; i<=6; i++) scanf("%d", &dice_num[i]); getchar(); int data_num; scanf("%d", &data_num); int right[7][7]; right[1][2] = dice_num[3]; right[1][3] = dice_num[5]; right[1][4] = dice_num[2]; righ...
2,148
memory_bytes
{'s_id': 's386229711', 'p_id': 'p02384', 'u_id': 'u570958314', 'date': '1565127363', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2148', 'code_size': '1202'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 dice_num[7];\n \n int i,j;\n for(i=1; i<=6; i++)\n scanf(\"%d\", &dice_nu...
CDSS_389967
CDSS
#include<stdio.h> long long n,r[16384]={0}; void rep(long long x,long long y,long long z,long long tg){ if(x*x+y*y+z*z+x*y+y*z+z*x>n){return;} r[x*x+y*y+z*z+x*y+y*z+z*x]++; if(tg<=0){rep(x+1,y,z,0);} if(tg<=1){rep(x,y+1,z,1);} if(tg<=2){rep(x,y,z+1,2);} } int main(){ long long i; scanf("%lld",&n); re...
1,732
memory_bytes
{'s_id': 's451366288', 'p_id': 'p02608', 'u_id': 'u721060623', 'date': '1594674050', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '1732', '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\nlong long n,r[16384]={0};\n\nvoid rep(long long x,long long y,long long z,long long tg){\n if(x*x+y*y+z*z+x*y+y*...
CDSS_268959
CDSS
#include<stdio.h> int main(){ int a,b; scanf("%d %d",&a,&b); if(a>b){ printf("a > b"); } else if(a<b){ printf("a < b"); } else{ printf("a == b"); } printf("\n"); return 0; }
584
memory_bytes
{'s_id': 's029836231', 'p_id': 'p02391', 'u_id': 'u643729574', 'date': '1474437704', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '192'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int a,b;\n scanf(\"%d %d\",&a,&b);\n if(a>b){\n printf(\"a > b\");\n }\n else if(a<b){\n printf(\...
CDSS_416383
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> int main(void){ int K; char S[1000]; scanf("%d%s",&K,S); int len = strlen(S); if(len<=K) printf("%s",S); else { for(int i=0;i<K;i++){ printf("%c",S[i]); } printf("..."); } return 0; }
1,728
memory_bytes
{'s_id': 's326836480', 'p_id': 'p02676', 'u_id': 'u525203921', 'date': '1589764588', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1728', 'code_size': '279'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nint main(void){\n int K;\n char S[1000];\n scanf(\"%d%s\",&K,S);\n ...
CDSS_302483
CDSS
#include<stdio.h> int main() { int x,y,z; for(;scanf("%d %d",&x,&y);) { if(x==0 && y==0) break; else if(x>y) { z=x; x=y; y=z; } printf("%d %d\n",x,y); } return 0; }
1,996
memory_bytes
{'s_id': 's226787693', 'p_id': 'p02397', 'u_id': 'u011621222', 'date': '1518545962', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1996', 'code_size': '268'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,z;\n \n for(;scanf(\"%d %d\",&x,&y);)\n {\n if(x==0 && y==0)\n br...
CDSS_628516
CDSS
#include<stdio.h> #include<math.h> int ind(int *N){ int ret; if(*N < 0){ *N *= -1; if(*N%2 == 1){ *N += 1; *N /= 2; return 1; }else{ *N /= 2; return 0; } }else{ ret = *N%-2; *N /= -2; return ret; } return 0; } int main(void){ int N; int i; int ...
128
memory_bytes
{'s_id': 's199061109', 'p_id': 'p03286', 'u_id': 'u755027226', 'date': '1534040947', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '606'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 ind(int *N){\n int ret;\n if(*N < 0){\n *N *= -1;\n if(*N%2 == 1){\n *N += 1;\...
CDSS_304270
CDSS
#include <stdio.h> int main(void) { int a, b, c; int i, count; scanf("%d %d %d", &a, &b, &c); count = 0; for(i=a;i<=b;i++){ if(c%i==0) count++; } printf("%d\n", count); return 0; }
596
memory_bytes
{'s_id': 's437689338', 'p_id': 'p02398', 'u_id': 'u172060476', 'date': '1421804501', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '183'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 a, b, c;\nint i, count;\n\nscanf(\"%d %d %d\", &a, &b, &c);\n\ncount = 0;\nfor(i=a;i<=b;i...
CDSS_484449
CDSS
#include<stdio.h> int main() { int n; int r; int inner; scanf("%d",&n); scanf("%d",&r); if(n<10){ inner=r+(100*(10-n)); }else{ inner=r; } printf("%d\n",inner); return 0; }
128
memory_bytes
{'s_id': 's012666453', 'p_id': 'p02765', 'u_id': 'u149757670', 'date': '1582747610', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '228'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int n;\n int r;\n int inner;\n scanf(\"%d\",&n);\n scanf(\"%d\",&r);\n if(n<10){\...
CDSS_233238
CDSS
#include <stdio.h> #include <stdlib.h> #define INF 1010001000 #define MAX_V 100000 #define min(a, b) a<b?a:b typedef struct vertex { int edge_count; struct edge *head; }vertex; typedef struct edge { int to; struct edge *next; }edge; void add(int f, int t); void dfs(int st, int prev); void cc(void); ...
4,376
memory_bytes
{'s_id': 's859193392', 'p_id': 'p02366', 'u_id': 'u648717067', 'date': '1466025881', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '4376', 'code_size': '2095'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 INF 1010001000\n#define MAX_V 100000\n#define min(a, b) a<b?a:b\n\ntypedef struct ver...
CDSS_404194
CDSS
#include<stdio.h> #include<stdlib.h> typedef long long ll; int max(int a, int b){ if(a > b) return a; else return b; } int min(int a, int b){ if(a < b) return a; else return b; } int sort(const void *a ,const void *b){ return *(int*)a - *(int*)b; } int main(){ int x,n; scanf("%d%d",&x,&n); if(n =...
1,732
memory_bytes
{'s_id': 's637412894', 'p_id': 'p02641', 'u_id': 'u759675243', 'date': '1592184651', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1732', 'code_size': '840'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\ntypedef long long ll;\n\nint max(int a, int b){\n if(a > b) return a;\n else return b;\n}\n...