identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_520152
CDSS
#include <stdio.h> #include <math.h> long long int min(long long int a, long long int b) { if (a > b) return b; else return a; } int main(void) { long long int a, b, dist, f = 0; scanf("%ld", &a); dist=a-1; for (long long int i=2; i<sqrt(a)*10; i++){ if (a % i == 0){ b = a/i; ...
128
memory_bytes
{'s_id': 's920821784', 'p_id': 'p02881', 'u_id': 'u301600230', 'date': '1572225932', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '112', 'memory': '128', 'code_size': '414'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\nlong long int min(long long int a, long long int b)\n{\n if (a > b) return b;\n else retu...
CDSS_722086
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> int main(void) { long long int a[100000][2], push_all = 0; int n; scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%lld %lld", &a[i][0], &a[i][1]); } for (int i = n - 1;0 <= i; i--) { a[i][0] += push_all; if (a[i][0] % a[i][1] !=...
1,664
memory_bytes
{'s_id': 's446593136', 'p_id': 'p03821', 'u_id': 'u623759422', 'date': '1582049771', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '24', 'memory': '1664', 'code_size': '422'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n#include<math.h>\n\nint main(void)\n{\n\tlong long int a[100000][2], push_a...
CDSS_97978
CDSS
c[];main(n,m,i,j,k){for(;scanf("%d%d",&n,&m)*n;printf("%d\n",j>m?i:j)){for(i=3;i--;)for(scanf("%d",&j);j--;c[n-k]=i)scanf("%d",&k);for(i=n;i--;k+=c[i])j-=pow(3,i)*abs(k*2%4-c[i]);j=fmin(~j,pow(3,n)+j);}}
644
memory_bytes
{'s_id': 's605219255', 'p_id': 'p00426', 'u_id': 'u479246559', 'date': '1356957044', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '644', '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:\nc[];main(n,m,i,j,k){for(;scanf(\"%d%d\",&n,&m)*n;printf(\"%d\\n\",j>m?i:j)){for(i=3;i--;)for(scanf(\"%d\",&j);j--;c[n-k]=i)scanf(\"%d\...
CDSS_362084
CDSS
#include <stdio.h> #include <ctype.h> int main() { int i = 0; char str[1201]; gets(str); while(str[i]){ if(isupper(str[i])) str[i] = tolower(str[i]); else if(islower(str[i])) str[i] = toupper(str[i]); i++; } printf("%s\n", str); return 0; }
524
memory_bytes
{'s_id': 's227067598', 'p_id': 'p02415', 'u_id': 'u663449350', 'date': '1496034914', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '308'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <ctype.h>\n\nint main()\n{\n int i = 0;\n char str[1201];\n \n gets(str);\n \n while(st...
CDSS_495904
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> long long int loop(long long int h) { if (h != 1) { return 2*loop(h/2)+1; } else { return 1; } } int main(void) { long long int h; scanf("%lld", &h); printf("%lld\n", loop(h)); return 0; }
128
memory_bytes
{'s_id': 's470222089', 'p_id': 'p02786', 'u_id': 'u904655984', 'date': '1580073083', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '314'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#include <string.h>\n\nlong long int loop(long long int h) {\n if (h !=...
CDSS_463239
CDSS
#include <stdio.h> int main(){ int x,y,z; scanf("%d %d %d",&x,&y,&z); printf("%d %d %d",z,x,y); return 0; }
128
memory_bytes
{'s_id': 's674256397', 'p_id': 'p02717', 'u_id': 'u169702930', 'date': '1586122947', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '124'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 x,y,z;\n scanf(\"%d %d %d\",&x,&y,&z);\n printf(\"%d %d %d\",z,x,y);\n return 0;\n...
CDSS_281373
CDSS
#include <stdio.h> int main(){ int a,b,c,h; scanf("%d %d %d",&a,&b,&c); if(a > b){ //一番目と二番目を比較 h = a; a = b; b = h; } if(b > c){ //二番目と三番目を比較 h = b; b = c; c = h; } if(a > b){ //二番目と三番目の大きかった方と一番目の数字を比較 h = a; a = b; b = h; } printf("%d %d %d\n",a,b,c); return 0; }
2,104
memory_bytes
{'s_id': 's002498245', 'p_id': 'p02393', 'u_id': 'u835803784', 'date': '1545871701', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '393'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\tint a,b,c,h;\n\tscanf(\"%d %d %d\",&a,&b,&c);\n\tif(a > b){ //一番目と二番目を比較\n\t\th = a;\n\t\ta = b...
CDSS_238347
CDSS
//ITP1-11-B: Dice 2 //2019.05.22 #include <stdio.h> void throwdice(char, int*); typedef struct dice_ { int d[6]; } dice; int main(void){ int q; int top, south, ans_east; dice dice1; for (int i = 0; i < 6; i++) scanf("%d", &dice1.d[i]); scanf("%d\n", &q); for (int i = 0; i < q; i++) { scanf("%d %...
2,032
memory_bytes
{'s_id': 's625211835', 'p_id': 'p02384', 'u_id': 'u123432807', 'date': '1558487889', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2032', 'code_size': '2264'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//ITP1-11-B: Dice 2\n//2019.05.22\n\n#include <stdio.h>\n\nvoid throwdice(char, int*);\n\ntypedef struct dice_ {\n int d[6];\n} dice;...
CDSS_585356
CDSS
#include <stdio.h> #include <stdlib.h>//random,NULL #include <string.h> #include <time.h> #include <unistd.h>//sleep() #include <math.h> #include <stdbool.h> #define rep(i,n) for(int i=0; i<((int)n); i++) #define REP(i,n) for(int i=0; i<=((int)n); i++) #define srep(i,a,n) for(int i=a; i<((int)n); i++) #define SREP(i,a...
128
memory_bytes
{'s_id': 's362003477', 'p_id': 'p03080', 'u_id': 'u885352715', 'date': '1553976421', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '886'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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_230710
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX 2000000 #define NIL (-1) int parent(int ); int left(int ); int right(int ); void buildMaxHeap(int []); void maxHeapify(int [], int); void maxHeapInsert(int [], int ); void heapIncreaseKey(int [], int, int); int heapExtractMax(int []); int n; int ...
5,372
memory_bytes
{'s_id': 's241221057', 'p_id': 'p02289', 'u_id': 'u196155867', 'date': '1372325295', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '460', 'memory': '5372', 'code_size': '1760'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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#define MAX 2000000\n#define NIL (-1)\n\nint parent(int );\nint left(int...
CDSS_30715
CDSS
#include<stdio.h> #include<math.h> int RightTriangle(int a,int b,int c) { if(pow(a,2)+pow(b,2) == pow(c,2)) { return 1; } else return 0; } int main(void) { int a,b,c; int i; int N; scanf("%d",&N); for(i = 0; i < N; i++) { scanf("%d %d %d",&a,&b,&c); if(RightTriangle(a,b,c)||RightTriangle(a,c,b)||R...
0
memory_bytes
{'s_id': 's779434746', 'p_id': 'p00003', 'u_id': 'u387315824', 'date': '1332329165', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '405'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 RightTriangle(int a,int b,int c)\n{\n if(pow(a,2)+pow(b,2) == pow(c,2))\n {\n return 1;\n...
CDSS_507958
CDSS
#include <stdio.h> int main(void){ long A,B,i; scanf("%ld %ld", &A,&B); for (i = 1; i <= B; i++) { if ((i*A) % B == 0) { printf("%ld", i*A); return 0; } } }
128
memory_bytes
{'s_id': 's559791384', 'p_id': 'p02831', 'u_id': 'u333114422', 'date': '1586552176', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '171'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tlong A,B,i;\n\tscanf(\"%ld %ld\", &A,&B);\n\tfor (i = 1; i <= B; i++) {\n\t\tif ((i*A) % B ==...
CDSS_677609
CDSS
#include<stdio.h> int main() { int a, b, c; scanf("%d %d %d", &a, &b, &c); printf("%d", (a-c)/(c+b)); }
256
memory_bytes
{'s_id': 's458173234', 'p_id': 'p03548', 'u_id': 'u273535790', 'date': '1522878236', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '106'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint a, b, c;\n\tscanf(\"%d %d %d\", &a, &b, &c);\n\tprintf(\"%d\", (a-c)/(c+b));\n}\nPredict its m...
CDSS_315042
CDSS
#include <stdio.h> #include <math.h> int main(){ double r; double c; double area; scanf("%lf",&r); c = r*2*M_PI; area = r*r*M_PI; printf("%.6f %.6f\n",area,c); return 0; }
652
memory_bytes
{'s_id': 's741792684', 'p_id': 'p02400', 'u_id': 'u839357378', 'date': '1492767426', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '652', 'code_size': '204'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(){\n double r;\n double c;\n double area;\n\n scanf(\"%lf\",&r);\n c ...
CDSS_502368
CDSS
#include <stdio.h> int main(){ int N; char S[50]; int cnt=0; scanf("%d",&N); scanf(" %c",&S[0]); for(int i=1;i<N;i++){ scanf("%c",&S[i]); } for(int i=0;i<=N-3;i++){ if(S[i]=='A'&&S[i+1]=='B'&&S[i+2]=='C'){ cnt++; } } printf("%d\n",cnt); return 0; }
1,732
memory_bytes
{'s_id': 's983565777', 'p_id': 'p02812', 'u_id': 'u113652321', 'date': '1597644539', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1732', 'code_size': '308'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n\tint N;\n \tchar S[50];\n \tint cnt=0;\n \tscanf(\"%d\",&N);\n \tscanf(\" %c\",&S[0]);\n \tfor(...
CDSS_314133
CDSS
#include<stdio.h> #include<math.h> int main(void) { double r; scanf("%lf", &r); printf("%lf %lf", M_PI*r*r, 2*M_PI*r); return(0); }
648
memory_bytes
{'s_id': 's637356757', 'p_id': 'p02400', 'u_id': 'u496275911', 'date': '1466145892', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '134'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n\nint main(void) {\ndouble r;\n\nscanf(\"%lf\", &r);\nprintf(\"%lf %lf\", M_PI*r*r, 2*M_PI*r);\n\...
CDSS_93977
CDSS
#include <stdio.h> #include <string.h> char result[12]; int num; char *p; void print_result() { int i,zerosup=0; for(i=0;i<12;i++) { if(zerosup==0) if(result[i]) zerosup=1; if(result[i]==0 && zerosup) putchar('0'); if(result[i]==1) putchar('+'); if(result[i]==-1) putchar('-'); ...
572
memory_bytes
{'s_id': 's693836825', 'p_id': 'p00301', 'u_id': 'u708993917', 'date': '1465043557', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '731'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nchar result[12];\nint num;\nchar *p;\n\n\nvoid print_result()\n{\n int i,zerosup=0;\n for...
CDSS_570490
CDSS
#include <stdio.h> int main() { int K,N; char c[100]; scanf("%d%d%s",&N,&K,&c); N=strlen(c); c[K-1] += 32; printf("%s\n",c); return 0; }
128
memory_bytes
{'s_id': 's626759702', 'p_id': 'p03041', 'u_id': 'u062865912', 'date': '1566406440', '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>\n\nint main()\n{\n int K,N;\n char c[100];\n scanf(\"%d%d%s\",&N,&K,&c);\n N=strlen(c);\n c[K-1] += 32;\n print...
CDSS_594069
CDSS
#include<stdio.h> int main(void){ int N; scanf("%d",&N); double x; char u[3]; double sum = 0; for(int i=0;i<N;i++){ scanf("%lf %s",&x,u); if(u[0]=='B'){ x = x*380000; //printf("%lf",x); } sum += x; } printf("%lf",sum); return 0...
128
memory_bytes
{'s_id': 's195839239', 'p_id': 'p03110', 'u_id': 'u862931080', 'date': '1551039455', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '323'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int N;\n scanf(\"%d\",&N);\n double x;\n char u[3];\n double sum = 0;\n for(i...
CDSS_666788
CDSS
#include <stdio.h> int main() { int m; scanf("%d", &m); printf("%d\n", 48 - m); return 0; }
128
memory_bytes
{'s_id': 's682224158', 'p_id': 'p03473', 'u_id': 'u930734502', 'date': '1547828600', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '99'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int m;\n scanf(\"%d\", &m);\n printf(\"%d\\n\", 48 - m);\n return 0;\n}\nPredict its memory fo...
CDSS_313831
CDSS
#include<stdio.h> int main(void) { double r,menseki=0,enshu=0,M_PI=3.14159265359; scanf("%lf",&r); menseki=r*r*M_PI; enshu=r*2.0*M_PI; printf("%f %f\n",menseki,enshu); return 0; }
648
memory_bytes
{'s_id': 's845380391', 'p_id': 'p02400', 'u_id': 'u524057419', 'date': '1461226258', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '189'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include<stdio.h>\n\nint main(void)\n\n{\n\ndouble r,menseki=0,enshu=0,M_PI=3.14159265359;\n\nscanf(\"%lf\",&r);\n\nmenseki=r*r*M_PI...
CDSS_462996
CDSS
#include <stdio.h> int main(void){ int X, Y, Z; scanf("%d %d %d", &X, &Y, &Z); printf("%d %d %d\n", Z, X, Y); }
128
memory_bytes
{'s_id': 's040705226', 'p_id': 'p02717', 'u_id': 'u399091677', 'date': '1588339242', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\n\n \nint main(void){\n int X, Y, Z;\n scanf(\"%d %d %d\", &X, &Y, &Z);\n printf(\"%d %d %d\\n\", Z, X, Y);\n}\n...
CDSS_352563
CDSS
#include<stdio.h> int main(void){ int m, f, r; // input; m, f<=50 , r<=100 scanf("%d %d %d", &m, &f, &r); while(m!=-1 || f!=-1 || r !=-1){ if(m == -1 || f == -1) printf("F\n"); else if(m+f>=80) printf("A\n"); else if(m+f>=65) printf("B\n"); else if(m+f>=50) printf("C\n"); ...
584
memory_bytes
{'s_id': 's219365535', 'p_id': 'p02411', 'u_id': 'u227434008', 'date': '1492478590', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '488'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int m, f, r; // input; m, f<=50 , r<=100\n\n scanf(\"%d %d %d\", &m, &f, &r);\n whi...
CDSS_716967
CDSS
#include <stdio.h> int main(){ int a; scanf("%d",&a); printf("%d\n",(a*800)-((a/15)*200)); }
128
memory_bytes
{'s_id': 's465611273', 'p_id': 'p03795', 'u_id': 'u980659030', 'date': '1541193164', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '95'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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;\n\tscanf(\"%d\",&a);\n\tprintf(\"%d\\n\",(a*800)-((a/15)*200));\n}\nPredict its memory footp...
CDSS_546886
CDSS
#include<stdio.h> int main() { int r,area; scanf("%d",&r); area=3*r*r; printf("%d",area); return 0; }
128
memory_bytes
{'s_id': 's976964793', 'p_id': 'p02969', 'u_id': 'u640117895', 'date': '1567754834', '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{\n int r,area;\n scanf(\"%d\",&r);\n area=3*r*r;\n printf(\"%d\",area);\n return 0;\n}\...
CDSS_99099
CDSS
#include<stdio.h> int main(void) { int x,t,max=0,i,j; for(i=0; i<2; i++) { t=0; for(j=0; j<4; j++) { scanf("%d", &x); t+=x; } if(max<t) max=t; } printf("%d\n", max); return 0; }
2,052
memory_bytes
{'s_id': 's386593085', 'p_id': 'p00433', 'u_id': 'u543147617', 'date': '1563770756', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '204'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint x,t,max=0,i,j;\n\tfor(i=0; i<2; i++)\n\t{\n\t\tt=0;\n\t\tfor(j=0; j<4; j++)\n\t\t{\n\t\t\t...
CDSS_78071
CDSS
#define _CRT_SECURE_NO_WARNINGS //#define _USE_MATH_DEFINES #include<stdio.h> #include<stdlib.h> //#include<math.h> #include<string.h> //#include<time.h> #define P(type,x) fprintf(stdout,"%"#type"\n",x) int Xtoi(char*, int); int main() { char f[127], s[127], sum[127]; char tf[127],ts[127],tsum[127]; int i, a, b, c; ...
564
memory_bytes
{'s_id': 's251661645', 'p_id': 'p00110', 'u_id': 'u078042885', 'date': '1482102938', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '564', 'code_size': '800'}
[ { "content": "Your task is to predict the memory 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//#define _USE_MATH_DEFINES\n#include<stdio.h>\n#include<stdlib.h>\n//#include<math.h>\n#include<stri...
CDSS_65366
CDSS
#include <stdio.h> #include <string.h> #include <ctype.h> int main(){ int i; int a = 0; int b = 0; int ab = 0; int o = 0; char str[10]; while(1){ if(scanf("%d,%s",&i,str) == -1)break; if(str[0] == 'A'){ if(str[1] == 'B'){ ab = ab + 1; ...
592
memory_bytes
{'s_id': 's971544151', 'p_id': 'p00049', 'u_id': 'u576153335', 'date': '1386555723', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '631'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <ctype.h>\n\nint main(){\n int i;\n int a = 0;\n int b = 0;\n int ab = 0...
CDSS_30512
CDSS
#include <stdio.h> int main(){ int count; int a[3]; int max, maxidx; int i, j; scanf("%d", &count); for(i=0; i<count; i++){ scanf("%d %d %d", &a[0], &a[1], &a[2]); max=0; for(j=0; j<3; j++){ if(max<a[j]){ max=a[j]; maxidx=j; } } max=max*max; a[maxidx]=...
0
memory_bytes
{'s_id': 's722123561', 'p_id': 'p00003', 'u_id': 'u641440787', 'date': '1305092750', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '450'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 count;\n int a[3];\n int max, maxidx;\n int i, j;\n\n scanf(\"%d\", &count);\n for(i=0; ...
CDSS_280826
CDSS
#include <stdio.h> int main() { int a, b, c; scanf("%d %d %d", &a, &b, &c); if (a < b && b < c) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
2,052
memory_bytes
{'s_id': 's111188339', 'p_id': 'p02392', 'u_id': 'u351457111', 'date': '1554202280', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', '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>\n\nint main()\n{\n\tint a, b, c;\n\tscanf(\"%d %d %d\", &a, &b, &c);\n\n\tif (a < b && b < c)\n\t{\n\t\tprintf(\"Ye...
CDSS_94408
CDSS
#include<stdio.h> int main(void) { int d,l,x,y,n; scanf("%d",&d); scanf("%d",&l); x=d/l; y=d%l; n=x+y; printf("%d\n",n); return 0; }
2,112
memory_bytes
{'s_id': 's318422248', 'p_id': 'p00312', 'u_id': 'u387501704', 'date': '1536910310', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', '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>\nint main(void)\n{\n\tint d,l,x,y,n;\n\tscanf(\"%d\",&d);\n\tscanf(\"%d\",&l);\n\tx=d/l;\n\ty=d%l;\n\tn=x+y;\n\tprin...
CDSS_140132
CDSS
#include <stdio.h> #define n_max 101 #define INF 20000000 #define WHITE 0 #define BLACK 1 #define NIL -1 int main(){ int i,j,min,u,z,sum=0; int n,a[n_max][n_max],vat[n_max],ed[n_max],color[n_max]; scanf("%d",&n);//input for(i=1;i<=n;i++){ for(j=1;j<=n;j++){ scanf("%d",&a[i][j]); } } //pr...
2,044
memory_bytes
{'s_id': 's369593519', 'p_id': 'p02241', 'u_id': 'u708577790', 'date': '1532406350', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '835'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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_max 101\n#define INF 20000000\n#define WHITE 0\n#define BLACK 1\n#define NIL -1\n\n\nint main(){\n int ...
CDSS_320674
CDSS
int main(){ int a,b,ans[100],n=0; char c; while(1){ scanf("%d %c %d",&a,&c,&b); if(c=='?'){ break; }else{ switch(c){ case '+': ans[n]=a+b; break; case '-': ans[n]=a-b; ...
2,064
memory_bytes
{'s_id': 's512488855', 'p_id': 'p02401', 'u_id': 'u019521103', 'date': '1568883952', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '682'}
[ { "content": "Your task is to predict the 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(){\n int a,b,ans[100],n=0;\n char c;\n while(1){\n scanf(\"%d %c %d\",&a,&c,&b);\n if(c=='?'){\n ...
CDSS_353753
CDSS
#include <stdio.h> int main (void) { int i, m[50], f[50], r[50], point; for ( i = 0; i < 50 ; i++ ){ scanf("%d %d %d\n", m + i, f + i, r + i); if (*(m + i) < 0 && *(f + i) < 0 && *(r + i) < 0) break; point = *(m + i) + *(f + i); if ( *(m + i) < 0 || *(f + i) < 0) printf("F\n"); else if ( 80 <=...
2,052
memory_bytes
{'s_id': 's722519111', 'p_id': 'p02411', 'u_id': 'u865877572', 'date': '1553355856', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '575'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main (void) {\n int i, m[50], f[50], r[50], point;\n for ( i = 0; i < 50 ; i++ ){\n scanf(\"%d %d %d\\...
CDSS_704718
CDSS
//set many funcs template //Ver.20190714 #include<stdio.h> #include<string.h> #include<stdlib.h> #include<stdbool.h> #include<time.h> #define inf 1072114514 #define llinf 4154118101919364364 #define mod 1000000007 #define pi 3.1415926535897932384 int max(int a,int b){if(a>b){return a;}return b;} int min(int a,int b){i...
50,372
memory_bytes
{'s_id': 's287573595', 'p_id': 'p03709', 'u_id': 'u721060623', 'date': '1566036328', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '274', 'memory': '50372', 'code_size': '8150'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//set many funcs template\n//Ver.20190714\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<stdbool.h>\n#include<ti...
CDSS_310166
CDSS
#include<stdio.h> int main(void){ int a,b,d=0,r=0; double f=0.0; scanf("%d %d",&a,&b); d=a/b; r=a%b; f=(double)a/b; printf("%d %d %f\n",d,r,f); return 0; }
636
memory_bytes
{'s_id': 's209841270', 'p_id': 'p02399', 'u_id': 'u449429575', 'date': '1481976953', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', '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>\nint main(void){\nint a,b,d=0,r=0;\ndouble f=0.0;\nscanf(\"%d %d\",&a,&b);\nd=a/b;\nr=a%b;\nf=(double)a/b;\nprintf(\...
CDSS_723654
CDSS
#include <stdio.h> int main(void){ char s[20]; scanf("%s", s); s[5] = ' '; s[13] = ' '; printf("%s", s); return 0; }
1,728
memory_bytes
{'s_id': 's315936115', 'p_id': 'p03834', 'u_id': 'u913482608', 'date': '1597586312', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1728', '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 char s[20];\n scanf(\"%s\", s);\n s[5] = ' ';\n s[13] = ' ';\n printf(\"%s\", s...
CDSS_40870
CDSS
#include <stdio.h> #include <string.h> #include <math.h> #define rep(i,l,n) for(i=l;i<n;i++) int main(void){ int n,ans,a,b,c,d; while(scanf("%d",&n)!=EOF){ ans=0; rep(a,0,10){ rep(b,0,10){ rep(c,0,10){ rep(d,0,10){ if(a+b+c+d==n) ans++; } } } } printf("%d\n",ans); } return 0;...
596
memory_bytes
{'s_id': 's506339017', 'p_id': 'p00008', 'u_id': 'u188938853', 'date': '1434706842', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '322'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 <math.h>\n#define rep(i,l,n) for(i=l;i<n;i++)\n\nint main(void){\n\tint n,ans,a,b,c,...
CDSS_340822
CDSS
#include <stdio.h> #include <ctype.h> #include <stdlib.h> int main(void) { int x,i,n; scanf("%d",&n); for(i=1; i<=n; i++) { x = i; if(x %3 == 0) { printf(" %d",i); } else if(x % 10 == 3) { printf(" %d",i); } else { while...
2,096
memory_bytes
{'s_id': 's726230168', 'p_id': 'p02406', 'u_id': 'u702115148', 'date': '1533839647', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2096', 'code_size': '544'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <ctype.h>\n#include <stdlib.h>\n\nint main(void)\n{\n int x,i,n;\n \n scanf(\"%d\",&n);\n \n ...
CDSS_524380
CDSS
#include <stdio.h> int main() { int N; scanf("%d",&N); printf("%f",((N+1)/2)/(double)N); return 0; }
128
memory_bytes
{'s_id': 's718604082', 'p_id': 'p02897', 'u_id': 'u756033787', 'date': '1569936094', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '109'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 N;\n scanf(\"%d\",&N);\n printf(\"%f\",((N+1)/2)/(double)N);\n return 0;\n}\nPredict its...
CDSS_340617
CDSS
#include <stdio.h> int main(void) { int n, i = 3, x; scanf(" %d", &n); while(i <= n){ x = i; if(x % 3 == 0){ printf(" %d", i); }else{ while(x > 2){ if(x % 10 == 3){ printf(" %d", i); break; }else{ x = x / 10; } } } i++; } printf("\n"); return 0; }
2,104
memory_bytes
{'s_id': 's140307638', 'p_id': 'p02406', 'u_id': 'u445705817', 'date': '1590117662', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '310'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint n, i = 3, x;\n\t\n\tscanf(\" %d\", &n);\n\t\n\twhile(i <= n){\n\t\tx = i;\n\t\tif(x % 3 ...
CDSS_105076
CDSS
#include <stdio.h> #include <string.h> int main(void) { int n; int cnt = 0; int i; char s[11], input[11], copy[21]; scanf("%s%d", s, &n); for (i = 0; i < n; i++){ scanf("%s", input); sprintf(copy, "%s%s", input, input); if (strstr(copy, s) != NULL){ cnt++; } } printf("%d\n",...
616
memory_bytes
{'s_id': 's865438151', 'p_id': 'p00478', 'u_id': 'u881668270', 'date': '1455718497', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '616', 'code_size': '345'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void)\n{\n int n;\n int cnt = 0;\n int i;\n char s[11], input[11], copy[21];\n...
CDSS_552581
CDSS
/* * main.c * * Created on: 2019/07/07 * Author: family */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> typedef unsigned long long int uint64_t; int main() { uint64_t L = 0, R = 0, ans = 2019, i = 0, j = 0, k = 0; scanf("%llu %llu", &L, &R); for(i = L; i <= (L+(2019*2))...
128
memory_bytes
{'s_id': 's703400927', 'p_id': 'p02983', 'u_id': 'u898925304', 'date': '1562560506', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '16', 'memory': '128', 'code_size': '594'}
[ { "content": "Your task is to predict the memory 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 * main.c\n *\n * Created on: 2019/07/07\n * Author: family\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <strin...
CDSS_434154
CDSS
#include <stdio.h> int main(){ int a,b,c,d; scanf("%d %d %d %d",&a,&b,&c,&d); while(1){ c=c-b; if(c<=0){ printf("Yes\n"); break; } a=a-d; if(a<=0){ printf("No\n"); break; } } return 0; }
1,620
memory_bytes
{'s_id': 's757684528', 'p_id': 'p02700', 'u_id': 'u323051878', 'date': '1587950476', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1620', '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\nint main(){\n int a,b,c,d;\n scanf(\"%d %d %d %d\",&a,&b,&c,&d);\n while(1){\n c=c-b;\n i...
CDSS_152743
CDSS
#include<stdio.h> int main(){ int d1,d2,x,tmp; scanf("%d%d",&d1,&d2); if(d1<d2){ tmp=d1; d1=d2; d2=tmp; } x=d1%d2; while(x!=0){ d1=d2; d2=x; x=d1%d2; } printf("%d\n",d2); return 0; }
2,084
memory_bytes
{'s_id': 's513100176', 'p_id': 'p02256', 'u_id': 'u906201350', 'date': '1529055873', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2084', '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 int d1,d2,x,tmp;\n scanf(\"%d%d\",&d1,&d2);\n if(d1<d2){\n tmp=d1;\n d1=d2;\n d2=tmp;\n ...
CDSS_589862
CDSS
#include <stdio.h> int main(void){ int n, m, c, a[100][20], b[20], i, j, sum=0, cnt=0; scanf("%d %d %d", &n, &m, &c); for(i=0; i<m; i++) scanf("%d", &b[i]); for(i=0; i<n; i++, sum=0){ for(j=0; j<m; j++){ scanf("%d", &a[i][j]); sum += a[i][j] * b[j]; } ...
128
memory_bytes
{'s_id': 's297790067', 'p_id': 'p03102', 'u_id': 'u132813957', 'date': '1552163637', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main(void){\n int n, m, c, a[100][20], b[20], i, j, sum=0, cnt=0;\n scanf(\"%d %d %d\", &n, &m, &c);\n ...
CDSS_398707
CDSS
#include<stdio.h> int main(void){ int i; char moji; scanf("%c", &moji); if((moji>= 'a') && (moji<='z')){ printf("a"); } else if((moji>= 'A') && (moji<='Z')){ printf("A"); } return 0; }
1,596
memory_bytes
{'s_id': 's384703100', 'p_id': 'p02627', 'u_id': 'u161409383', 'date': '1594224430', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1596', 'code_size': '232'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 \n \n char moji;\n \n \n \n scanf(\"%c\", &moji);\n \n \n if((moji>= 'a') &&...
CDSS_113170
CDSS
char names[20][16]; int M[20][30],S[30],P[20]; main(n,m,i,j,d){ for(;scanf("%d",&n),n;printf("%d %s\n",P[d],names[d])){ memset(names,0,sizeof names), memset(M,0,sizeof M), memset(S,0,sizeof S), memset(P,0,sizeof P); for(i=0;i<n;i++) for(scanf("%s%d",names[i],&m),j=0;j<m;j++)scanf("%d",&d),M[...
0
memory_bytes
{'s_id': 's150407244', 'p_id': 'p00659', 'u_id': 'u300645821', 'date': '1319018865', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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:\nchar names[20][16];\nint M[20][30],S[30],P[20];\nmain(n,m,i,j,d){\n for(;scanf(\"%d\",&n),n;printf(\"%d %s\\n\",P[d],names[d])){\n ...
CDSS_436859
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define MOD1 1000000007 #define MOD2 998244353 #define LIMIT1 200002 #define LIMIT2 500002 typedef long long ll; typedef long double ld; #define rep(i,n) for(i=0;i<n;i++) #define max(a,b) ((a)>(b) ? (a) : (b)) #define min(a,b) ((a)<(b) ? (a) :...
3,832
memory_bytes
{'s_id': 's815112936', 'p_id': 'p02702', 'u_id': 'u091870478', 'date': '1587955099', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '24', 'memory': '3832', 'code_size': '1917'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#define MOD1 1000000007\n#define MOD2 998244353\n#def...
CDSS_433608
CDSS
#include<stdio.h> int main(void){ int a,b,c,d; scanf("%d %d %d %d",&a,&b,&c,&d); int X = (a+d-1)/d; int Y = (c+b-1)/b; if(X>=Y){ printf("Yes"); } else{ printf("No"); } return 0; }
1,736
memory_bytes
{'s_id': 's848708870', 'p_id': 'p02700', 'u_id': 'u441919020', 'date': '1588044911', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1736', '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>\n\nint main(void){\n int a,b,c,d;\n scanf(\"%d %d %d %d\",&a,&b,&c,&d);\n int X = (a+d-1)/d;\n int Y = (...
CDSS_351506
CDSS
#include<stdio.h> int main(void) { int n, m; fflush(stdout); scanf("%d %d", &n, &m); int arr1[100][100]; int arr2[100]; int res[100]; fflush(stdout); for(int i = 0; i < n; i++){ for(int j = 0; j < m; j++){ scanf("%d", &arr1[i][j]); } } for(int i = 0; i < m; i++){ scanf("%d", &arr2[i]); } for(i...
2,112
memory_bytes
{'s_id': 's991285958', 'p_id': 'p02410', 'u_id': 'u508736183', 'date': '1586837025', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '501'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n\tint n, m;\n\tfflush(stdout);\n\tscanf(\"%d %d\", &n, &m);\n\n\tint arr1[100][100];\n\tint ar...
CDSS_64752
CDSS
#include <stdio.h> int main(void){ double data; while(scanf("%lf",&data)!=EOF){ if(data>91.00) printf("heavy\n"); else if(data>81.00) printf("light heavy\n"); else if(data>75.00) printf("middle\n"); else if(data>69.00) printf("light middle\n"); else if(data>64.00) printf("welter\n"); else if(data>60.00) ...
608
memory_bytes
{'s_id': 's636328434', 'p_id': 'p00048', 'u_id': 'u700389021', 'date': '1410255805', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '560'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\tdouble data;\n\twhile(scanf(\"%lf\",&data)!=EOF){\n\t\tif(data>91.00) printf(\"heavy\\n\");\n...
CDSS_682161
CDSS
#include<stdio.h> int main(){ int H,W,i,j,num; scanf("%d %d",&H,&W); char S[H][W+1]; for(i=0;i<H;i++){ scanf("%s",S[i]); } for(i=0;i<H;i++){ for(j=0;j<W;j++){ if(S[i][j]=='.'){ num=0; if(i>0){ if(j>0){ ...
128
memory_bytes
{'s_id': 's464076813', 'p_id': 'p03574', 'u_id': 'u350561621', 'date': '1508030753', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1187'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int H,W,i,j,num;\n scanf(\"%d %d\",&H,&W);\n char S[H][W+1];\n for(i=0;i<H;i++){\n ...
CDSS_186510
CDSS
#include <stdio.h> #include <stdlib.h> int getNumber() { int input; scanf("%d", &input); return input; } void getString(char* input) { scanf("%s", input); } typedef struct LinkElement { int key; struct LinkElement* pre; struct LinkElement* next; } LE, *PLE; void display(PLE head, PLE tail) { PLE p = head->...
33,012
memory_bytes
{'s_id': 's951266227', 'p_id': 'p02265', 'u_id': 'u244105241', 'date': '1542809069', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '210', 'memory': '33012', 'code_size': '1428'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nint getNumber()\n{\n\tint input;\n\tscanf(\"%d\", &input);\n\treturn input;\n}\n\nvoid ge...
CDSS_713204
CDSS
#include <stdio.h> #include <stdlib.h> int main(void){ int n,m; scanf("%d%d",&n,&m); long long x[n],y[m],sum=0,prev=0,ans=0,mod=1000000007; for (int i=0; i<n; i++){ scanf("%lld",&x[i]); if (i>0){ prev=(prev+i*llabs(x[i]-x[i-1]))%mod; sum=(sum+prev)%mod; }...
1,664
memory_bytes
{'s_id': 's697986773', 'p_id': 'p03762', 'u_id': 'u750028862', 'date': '1543328068', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '26', 'memory': '1664', 'code_size': '565'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(void){\n int n,m;\n scanf(\"%d%d\",&n,&m);\n long long x[n],y[m],sum=0,pr...
CDSS_518872
CDSS
#include<stdio.h> #include<stdlib.h> int main() { int n,flag=0; scanf("%d",&n); for(int i=1;i<=9;i++) { for(int j=1;j<=9;j++) { if(i*j==n) { flag=1; } }} if(flag==1) printf("Yes\n"); else printf("No\n"); return 0; }
128
memory_bytes
{'s_id': 's125143852', 'p_id': 'p02880', 'u_id': 'u089230684', 'date': '1572574095', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '299'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\nint main()\n{\n int n,flag=0;\n scanf(\"%d\",&n);\n for(int i=1;i<=9;i++)\n {\n ...
CDSS_679820
CDSS
#include <stdio.h> int main(void){ int a,b; scanf("%d%d",&a,&b); printf("%d",a+(b-a)*2); return 0; }
128
memory_bytes
{'s_id': 's439525802', 'p_id': 'p03563', 'u_id': 'u013213797', 'date': '1583258628', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main(void){\n\tint a,b;\n\tscanf(\"%d%d\",&a,&b);\n\tprintf(\"%d\",a+(b-a)*2);\n\treturn 0;\n}\nPredict its me...
CDSS_203653
CDSS
#include<stdio.h> #include<limits.h> void merge(int *,int,int,int); void mergesort(int *,int,int); int num=0; int main(){ int i,n,l=0,m; scanf("%d",&n); int S[n]; for(i=0;i<n;i++) scanf("%d",&S[i]); int r=n; mergesort(S,l,r); for(i=0;i<n;i++){ if(i<n-1) printf("%d ",S[i]); else printf("%d\n",S[i])...
5,632
memory_bytes
{'s_id': 's815227204', 'p_id': 'p02272', 'u_id': 'u318027587', 'date': '1530250180', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '5632', 'code_size': '985'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<limits.h>\nvoid merge(int *,int,int,int);\nvoid mergesort(int *,int,int);\nint num=0;\nint main(){\n int ...
CDSS_188983
CDSS
#include <stdio.h> #define N 10000 #define M 500 int ls(int s[],int n,int key); int main(){ int n,q,key; int s[N]; int count=0; int i; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&s[i]); } scanf("%d",&q); for(i=0;i<q;i++){ scanf("%d",&key); if(ls(s,n,key)==1) count++; } printf("%...
640
memory_bytes
{'s_id': 's332194800', 'p_id': 'p02267', 'u_id': 'u761306808', 'date': '1494473119', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', '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#define N 10000\n#define M 500\n\nint ls(int s[],int n,int key);\n\nint main(){\n int n,q,key;\n int s[N];\n in...
CDSS_722632
CDSS
#include<stdio.h> int main() { int a,b,c,d; long int a1,a2; scanf("%d %d %d %d",&a,&b,&c,&d); a1=a*b; a2=c*d; if(a1>a2) printf("%ld",a1); else printf("%ld",a2); return 0; }
128
memory_bytes
{'s_id': 's973987120', 'p_id': 'p03826', 'u_id': 'u955465429', 'date': '1541921147', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '173'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\nint a,b,c,d;\nlong int a1,a2;\nscanf(\"%d %d %d %d\",&a,&b,&c,&d);\na1=a*b;\na2=c*d;\nif(a1>a2)\npri...
CDSS_655306
CDSS
#include <limits.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> // 内部変数 - テスト用 #ifdef D_TEST static int siRes; static FILE *szpFpT, *szpFpA; #endif // 実行メイン int fMain( int piTNo // <I> テスト番号 1~ ) { char lc1Buf[1024], lc1Out[1024]; // テストファイルオープン #ifdef D_TE...
128
memory_bytes
{'s_id': 's110272179', 'p_id': 'p03417', 'u_id': 'u088333128', 'date': '1530213882', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1541'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <limits.h>\n#include <math.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <time.h>\n\n// 内部変数 - テ...
CDSS_320320
CDSS
#include <stdio.h> int main(void) { int a,b; char op; while(1){ scanf("%d %c %d", &a, &op, &b); //???????????其 if(op=='?') break; else if(op=='+') printf("%d\n", a+b); else if(op=='-') printf("%d\n", a-b); else if(op=='*') printf("%d\n", a*b); e...
600
memory_bytes
{'s_id': 's862765690', 'p_id': 'p02401', 'u_id': 'u708195431', 'date': '1373542477', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '381'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(void) {\n int a,b;\n char op;\n \n while(1){\n scanf(\"%d %c %d\", &a, &op, &b);\n ...
CDSS_198586
CDSS
#include <stdio.h> int allocation(int *,int,int); int check(int *,int,int,int); int main(){ int i,n,k,w[100000]; int ans; scanf("%d%d",&n,&k); for(i=0;i<n;i++)scanf("%d",&w[i]); ans=allocation(w,n,k); printf("%d\n",ans); return 0; } int allocation(int *w,int n,int k){ int left=0,right=1000000000,v; i...
2,220
memory_bytes
{'s_id': 's202092397', 'p_id': 'p02270', 'u_id': 'u322648397', 'date': '1529944695', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2220', 'code_size': '640'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 allocation(int *,int,int);\nint check(int *,int,int,int);\nint main(){\n int i,n,k,w[100000];\n int ans;\n ...
CDSS_73229
CDSS
z[4000],*a=z,*b=z+2000,m,i,j;main(n){for(;scanf("%d",&n),i=n;printf("%d\n",m))for(memset(a,m=0,8e3);i--;j=a,a=b,b=j)for(j=0;j++<=n;)m=fmax(m,b[j]=getchar()-42&&j-1?1+fmin(fmin(b[j-1],a[j-1]),a[j]):0);}
0
memory_bytes
{'s_id': 's302941174', 'p_id': 'p00092', 'u_id': 'u479246559', 'date': '1321797113', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '0', 'code_size': '201'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nz[4000],*a=z,*b=z+2000,m,i,j;main(n){for(;scanf(\"%d\",&n),i=n;printf(\"%d\\n\",m))for(memset(a,m=0,8e3);i--;j=a,a=b,b=j)for(j=0;j++<=...
CDSS_179926
CDSS
/* 3_A_Stack_Ans.c */ #include <stdio.h> #include <stdlib.h> #include <string.h> int top, S[1000]; void push(int x) { /* topを可算してからその位置へ挿入 */ S[++top] = x; } int pop() { /* topが指していた要素を返しtopの位置を一つ下げる */ top--; return S[top+1]; } int main() { int a, b; top = 0; char com[100]; wh...
2,088
memory_bytes
{'s_id': 's805601165', 'p_id': 'p02263', 'u_id': 'u187191563', 'date': '1590831068', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2088', 'code_size': '834'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* 3_A_Stack_Ans.c */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nint top, S[1000];\n\nvoid push(int x) {\n ...
CDSS_264450
CDSS
#include <stdio.h> int main () { int S, h, m, s; scanf("%d", &S); h = S / 3600; m = S % 3600 / 60; s = S % 3600 % 60; printf("%d:%d:%d\n", h, m, s); return 0; }
2,092
memory_bytes
{'s_id': 's852818235', 'p_id': 'p02390', 'u_id': 'u751565491', 'date': '1569852904', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2092', '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{\n\tint S, h, m, s;\n\tscanf(\"%d\", &S);\n\th = S / 3600;\n\tm = S % 3600 / 60;\n\ts = S % 3600 % 6...
CDSS_248611
CDSS
#include <stdio.h> int main() { int a; scanf("%d",&a); printf("%d\n",a*a*a); }
2,056
memory_bytes
{'s_id': 's650654410', 'p_id': 'p02388', 'u_id': 'u895733325', 'date': '1585560988', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', '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()\n{\n int a;\n scanf(\"%d\",&a);\n printf(\"%d\\n\",a*a*a);\n}\n\nPredict its memory footprint....
CDSS_635318
CDSS
#include <stdio.h> int main (void) { int i = 0; char s[5]; char *si; si = s; gets(s); while(*si){ if (*si == '+') i++; if (*si == '-') i--; si++; } printf("%d\n", i); }
128
memory_bytes
{'s_id': 's016587137', 'p_id': 'p03315', 'u_id': 'u335453773', 'date': '1529802305', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\n\nint main (void)\n{\n int i = 0;\n char s[5];\n char *si;\n\n si = s;\n\n gets(s);\n\n while(*s...
CDSS_553986
CDSS
#include <stdio.h> int main() { char a[4], s = '\0', k = '\0'; gets(a); s = a[0]; for (int i = 1; i < 4; i++) { if (a[i] != s && k == '\0') k = a[i]; else if (a[i] != s && a[i] != k) { printf("No"); ...
128
memory_bytes
{'s_id': 's784191355', 'p_id': 'p02987', 'u_id': 'u609088008', 'date': '1563297022', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '534'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 {\n \tchar a[4], s = '\\0', k = '\\0';\n \tgets(a);\n \ts...
CDSS_95654
CDSS
#include<stdio.h> int main(){ int a,b,c,d=1; scanf("%d %d",&a,&b); if(a<b){ c=a; a=b; b=c; } c=1; while(b>=c){ if(a%c==0 && b%c==0){ d=c; } c++; } d--; printf("%d\n",a+b-d); return 0; }
1,996
memory_bytes
{'s_id': 's360882247', 'p_id': 'p00356', 'u_id': 'u222399748', 'date': '1542702809', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1996', 'code_size': '186'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 a,b,c,d=1;\nscanf(\"%d %d\",&a,&b);\nif(a<b){\nc=a;\na=b;\nb=c;\n}\nc=1;\nwhile(b>=c){\nif(a%c==0 ...
CDSS_395315
CDSS
#include <stdio.h> #include <string.h> int main(){ int i,j,N; scanf("%d",&i); printf("%d\n",i+i*i+i*i*i); return 0; }
1,732
memory_bytes
{'s_id': 's987643896', 'p_id': 'p02621', 'u_id': 'u062865912', 'date': '1593306123', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', '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>\n#include <string.h>\n\n\n\nint main(){\n\t\n\tint i,j,N;\n\n\tscanf(\"%d\",&i);\n\t\n\tprintf(\"%d\\n\",i+i*i+i*i*...
CDSS_417057
CDSS
#pragma warning(disable:4996) #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <float.h> #pragma region 定義 #define i_cin(X) scanf("%d", &X) #define i_cin2(X,Y) scanf("%d %d",&X,&Y) #define i_cin4(X,Y,Z,W) scanf("%d %d %d %d",&X,&Y,&Z,&W) #define i_cin3(X,Y,Z) scanf("%d %d %d",&X,...
2,520
memory_bytes
{'s_id': 's609333552', 'p_id': 'p02677', 'u_id': 'u918599282', 'date': '1589856546', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '2520', 'code_size': '4305'}
[ { "content": "Your task is to predict the memory 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#pragma warning(disable:4996)\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#include <float.h>...
CDSS_71622
CDSS
#include <stdio.h> int main(void) { int y, m, d; while(scanf("%d %d %d",&y,&m,&d) != EOF){ if( ( (y==1868&&m==9&&d>=8) || (y==1868&&m>9) || (y>1868) ) && ( (y==1912&&m==7&&d<=29) || (y==1912&&m<7) || (y<1912) )) printf("meiji %d %d %d\n",y-1867,m,d); else if( ((y==1912&&m==7&&d>=30)||(y==1912&&m>7)||(y>1912)) ...
608
memory_bytes
{'s_id': 's493349435', 'p_id': 'p00083', 'u_id': 'u395334793', 'date': '1465489386', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '728'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint y, m, d;\n\twhile(scanf(\"%d %d %d\",&y,&m,&d) != EOF){\n\t\tif( ( (y==1868&&m==9&&d>=8)...
CDSS_223644
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){ } Node treeSearch(Node u, int k){ while(u!=NIL && k!=u->key){ if(k<u->key) u=u->left; ...
19,364
memory_bytes
{'s_id': 's244779724', 'p_id': 'p02284', 'u_id': 'u324881424', 'date': '1403230278', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '360', 'memory': '19364', 'code_size': '1692'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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_616527
CDSS
#include<stdio.h> int main() { int N; scanf("%d",&N); if(100>N>999) printf("\n"); else if(N>=100&&N<=111) printf("111"); else if(N>111&&N<=222) printf("222"); else if(N>222&&N<=333) printf("333"); else if(N>333&&N<=444) ...
1,732
memory_bytes
{'s_id': 's111062379', 'p_id': 'p03243', 'u_id': 'u816631826', 'date': '1596658124', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1732', 'code_size': '654'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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(100>N>999)\n printf(\"\\n\");\n else...
CDSS_399897
CDSS
#include<stdio.h> void sort(int n,int *p){ int i,j,temp; for(i=0;i<n;i++) for(j=i;j<n;j++) if(p[i]>p[j]){ temp = p[i]; p[i] = p[j]; p[j] = temp; } } int main(void){ int n, k; int i,sum=0; scanf("%d %d",&n,&k); ...
1,716
memory_bytes
{'s_id': 's128615244', 'p_id': 'p02628', 'u_id': 'u661797111', 'date': '1592789573', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '1716', 'code_size': '488'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nvoid sort(int n,int *p){\n int i,j,temp;\n\n for(i=0;i<n;i++)\n for(j=i;j<n;j++)\n if(p[i...
CDSS_289850
CDSS
#include<stdio.h> int main() { int W,H,x,y,r; scanf("%d%d%d%d%d",&W,&H,&x,&y,&r); if(0<=x-r&&x+r<=W&&0<=y-r&&y+r<=H) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
584
memory_bytes
{'s_id': 's302943582', 'p_id': 'p02394', 'u_id': 'u029512513', 'date': '1460447517', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', '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 int W,H,x,y,r;\n scanf(\"%d%d%d%d%d\",&W,&H,&x,&y,&r);\n if(0<=x-r&&x+r<=W&&0<=y-r&&y+r<=H...
CDSS_349230
CDSS
#include <stdio.h> int main(void) { int n; scanf("%d",&n); int b,f,r,v; int info[4][3][10] = {0}; while(n--) { scanf("%d %d %d %d",&b,&f,&r,&v); info[b-1][f-1][r-1]+=v; } int i, j, k; for(i=0;i<4;++i) { for(j=0;j<3;++j) { for(k=0;k<...
608
memory_bytes
{'s_id': 's433669201', 'p_id': 'p02409', 'u_id': 'u600152841', 'date': '1501673272', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '539'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int n;\n scanf(\"%d\",&n);\n\n int b,f,r,v;\n int info[4][3][10] = {0};\n\n w...
CDSS_615542
CDSS
#include<stdio.h> #include<stdlib.h> int max(int a,int b){return a > b ? a:b;} int sortmax(int h[],int n); int hantei(int Cx,int Cy,int H,int N,int x[],int y[],int h[]); int main(){ /*入力*/ int N; int m =scanf("%d",&N); int x[N],y[N],h[N]; for(int i = 0;i < N;i++){ int l = scanf("%d%d%d",&...
128
memory_bytes
{'s_id': 's364999214', 'p_id': 'p03240', 'u_id': 'u550272667', 'date': '1541263880', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '128', 'code_size': '1398'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 max(int a,int b){return a > b ? a:b;} \nint sortmax(int h[],int n);\nint hantei(int Cx,in...
CDSS_531885
CDSS
#include<stdio.h> int main() { int i,count=0; char s[100]; char s1[100]; scanf("%s",s); scanf("%s",s1); for(i=0;i<=2;i++) { if(s[i]==s1[i]) { count++; } } printf("%d",count); }
128
memory_bytes
{'s_id': 's279445218', 'p_id': 'p02921', 'u_id': 'u224508941', 'date': '1582402232', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '221'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,count=0;\n char s[100];\n char s1[100];\n scanf(\"%s\",s);\n scanf(\"%s\",s1);\n for(i=...
CDSS_239796
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> int main(void){ int x; scanf("%d", &x); printf("%d\n", x * x * x); return 0; }
2,140
memory_bytes
{'s_id': 's549169677', 'p_id': 'p02388', 'u_id': 'u452577928', 'date': '1540466656', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', '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#include <stdlib.h>\n#include <string.h>\n\nint main(void){\n\n int x;\n\n scanf(\"%d\", &x);\n\n printf(\"%d\\...
CDSS_99455
CDSS
#include <stdio.h> int main(){ int flag[31] = {0}, i, input; for(i = 1; i < 29;i++){ scanf("%d", &input); flag[input] = 1; } for(i = 1; i < 31;i++){ if(flag[i] != 1){ printf("%d\n", i); } } return 0; }
596
memory_bytes
{'s_id': 's763996802', 'p_id': 'p00434', 'u_id': 'u088697939', 'date': '1385705086', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '238'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 flag[31] = {0}, i, input;\n\n for(i = 1; i < 29;i++){\n scanf(\"%d\", &input);\n flag...
CDSS_154256
CDSS
//AOJ ALDS1_1_B #include <stdio.h> int main () { int x,y,a,b,c,d; scanf("%d", &x); scanf("%d", &y); if (x >= y) { a = x; b = y; }else if (x < y) { b = x; a = y; } c = a % b; if (c == 0) { printf("%d\n", b); }else { while (c != 0) { d = b % c; b = c; c = d; } printf("%d\n", b); }...
2,112
memory_bytes
{'s_id': 's290202044', 'p_id': 'p02256', 'u_id': 'u600796623', 'date': '1534623935', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '335'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//AOJ ALDS1_1_B\n#include <stdio.h>\n\nint main () {\n\tint x,y,a,b,c,d;\n\n\tscanf(\"%d\", &x);\n\tscanf(\"%d\", &y);\n\n\tif (x >= y...
CDSS_74188
CDSS
main(a,b){ scanf("%d %d", &a, &b); printf("%lf\n", a * b / 3.305785); return (0); }
632
memory_bytes
{'s_id': 's414185472', 'p_id': 'p00094', 'u_id': 'u490032117', 'date': '1365410322', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '632', 'code_size': '84'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nmain(a,b){\nscanf(\"%d %d\", &a, &b);\nprintf(\"%lf\\n\", a * b / 3.305785);\n\nreturn (0);\n}\nPredict its memory footprint.", "r...
CDSS_646264
CDSS
#define _USE_MATH_DEFINES #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <ctype.h> #include <limits.h> #define inf 100000000 #define INF 9223372036854775807 #define EPS 1e-10 #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...
128
memory_bytes
{'s_id': 's883529327', 'p_id': 'p03360', 'u_id': 'u128527648', 'date': '1525569417', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1931'}
[ { "content": "Your task is to predict the memory 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 _USE_MATH_DEFINES\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#include <ctype.h>\n#inclu...
CDSS_110738
CDSS
#include <stdio.h> int main(void) { int a,b,c; while( scanf("%d %d",&a,&b)!=EOF){ c=a+b; printf("%d\n",c);} return 0; }
0
memory_bytes
{'s_id': 's234276075', 'p_id': 'p00586', 'u_id': 'u047988051', 'date': '1306752474', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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(void) {\n\n int a,b,c;\n\n while( scanf(\"%d %d\",&a,&b)!=EOF){\n\n c=a+b;\n printf(\"%d\\n\",c);}\n\...
CDSS_673616
CDSS
#include<stdio.h> #include<string.h> int main(void){ int A,B,C,X,cou=0,v[3]; char S[10]; 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': 's261020106', 'p_id': 'p03501', 'u_id': 'u635508156', 'date': '1551975141', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '227'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 int A,B,C,X,cou=0,v[3];\n char S[10];\n scanf(\"%d %d %d\",&A,&B,&C)...
CDSS_229532
CDSS
#include<stdio.h> #define MAX 500000 int H, A[MAX]; void maxHeapify(int i); int main(){ int i; scanf("%d", &H); for(i = 1; i <= H; i++){ scanf("%d", &A[i]); } for(i = H/2; i >= 1; i--) maxHeapify(i); for(i = 1; i <= H; i++){ printf(" %d", A[i]); } printf("\n"); return 0; } void maxHeapify(...
3,700
memory_bytes
{'s_id': 's908734031', 'p_id': 'p02288', 'u_id': 'u631490385', 'date': '1579330700', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '3700', 'code_size': '605'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 500000\n\nint H, A[MAX];\n\nvoid maxHeapify(int i);\n\nint main(){\n int i;\n scanf(\"%d\", &H);\n f...
CDSS_544603
CDSS
#include <stdio.h> int main() { int ar[50],n,i,count=0; scanf("%d",&n); for (i=1; i<=n; i++) { scanf("%d",&ar[i]); if(ar[i]!=i) count++; } if(count>2) printf("NO\n"); else printf("YES\n"); return 0; }
2,068
memory_bytes
{'s_id': 's163985675', 'p_id': 'p02958', 'u_id': 'u018679195', 'date': '1600853834', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '2068', 'code_size': '282'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int ar[50],n,i,count=0; \n scanf(\"%d\",&n);\n for (i=1; i<=n; i++)\n {\n scanf...
CDSS_153974
CDSS
#include <stdio.h> int main(void) { int x, y, z; scanf("%d %d", &x, &y); if(x < y){ z=x; x=y; y=z; } z=x%y; while(z!=0){ x=y; y=z; z=x%y; } printf("%d\n", y); return 0; }
2,036
memory_bytes
{'s_id': 's452462106', 'p_id': 'p02256', 'u_id': 'u471417709', 'date': '1569131682', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', '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>\nint main(void)\n{\n\tint x, y, z;\n\t\n\tscanf(\"%d %d\", &x, &y);\n\t\n\tif(x < y){\n\t\tz=x;\n\t\tx=y;\n\t\ty=z;...
CDSS_402285
CDSS
#include <stdio.h> int main(void){ int i,x[10]; for(i = 1;i <= 5;i ++){ scanf("%d", &x[i]); } for(i = 1;i <= 5;i ++){ if(x[i] != i){ printf("%d", i); break; } } return 0; }
1,680
memory_bytes
{'s_id': 's248508986', 'p_id': 'p02639', 'u_id': 'u509179239', 'date': '1592183026', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1680', 'code_size': '244'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int i,x[10];\n for(i = 1;i <= 5;i ++){\n scanf(\"%d\", &x[i]);\n }\n for(i = ...
CDSS_293409
CDSS
#include<stdio.h> int main(void){ 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"); } return 0; }
2,104
memory_bytes
{'s_id': 's914823716', 'p_id': 'p02394', 'u_id': 'u745437820', 'date': '1588168048', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '238'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 w,h,x,y,r;\n \n scanf(\"%d%d%d%d%d\",&w,&h,&x,&y,&r);\n \n if((x+r<=w&&x-r>=0)...
CDSS_267123
CDSS
#include <stdio.h> #include <math.h> int main(void){ int a; int b; scanf("%d %d", &a, &b); if( a < b ){ printf("a < b\n"); }else if( a > b ){ printf("a > b\n"); }else if( a == b ){ printf("a == b\n"); } return 0; }
580
memory_bytes
{'s_id': 's108802665', 'p_id': 'p02391', 'u_id': 'u980650508', 'date': '1460361342', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '229'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(void){\n\tint a;\n\tint b;\n\tscanf(\"%d %d\", &a, &b);\n\tif( a < b ){\n\t\tprintf(...
CDSS_494157
CDSS
#include <stdio.h> int main(void) { long l_monsterHP; int i_skillNum; long l_totalDamage = 0; scanf("%ld%d", &l_monsterHP, &i_skillNum); int i_skillDetail[i_skillNum]; for (int index = 0; index < i_skillNum; index++) { scanf("%d", &i_skillDetail[index]); l_totalDamage +=...
512
memory_bytes
{'s_id': 's851888939', 'p_id': 'p02784', 'u_id': 'u119310692', 'date': '1585146544', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '512', '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\nint main(void)\n{\n\n long l_monsterHP;\n int i_skillNum;\n long l_totalDamage = 0;\n\n scanf(\"%ld%...
CDSS_104357
CDSS
#include<stdio.h> int main(){ int n,m,i,j,k; while(scanf("%d %d",&n,&m),n){ int d[110][110][4]={}; d[1][1][0]=d[1][1][1]=1; for(i=0;i<n;i++){ for(j=0;j<m;j++){ d[i+1][j+1][0]+=d[i+1][j][3]; d[i+1][j+1][1]+=d[i][j+1][2]; d[i+1][j+1][2]+=d[i+1][j][0]+d[i+1][j][2]; d[i+1][j+1][3]+=d[i][j+1][1]+d[...
796
memory_bytes
{'s_id': 's906895184', 'p_id': 'p00470', 'u_id': 'u731027244', 'date': '1483785349', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '796', 'code_size': '486'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,m,i,j,k;\n while(scanf(\"%d %d\",&n,&m),n){\n int d[110][110][4]={};\n d[1][1][0]=d[1][...
CDSS_665491
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...
128
memory_bytes
{'s_id': 's690910053', 'p_id': 'p03470', 'u_id': 'u128527648', 'date': '1517983351', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1400'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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_541779
CDSS
#include<stdio.h> int main(void) { int n; scanf("%d",&n); int nn,nlength,ans=0,i; for(i=1;i<=n;i++){ nn = i; nlength = 0; while(nn!=0){ nn /= 10; nlength++; } if(nlength%2==1) ans++; } printf("%d\n",ans); return 0; }
1,732
memory_bytes
{'s_id': 's813451083', 'p_id': 'p02952', 'u_id': 'u582095101', 'date': '1592848703', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1732', '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(void)\n{\n int n;\n scanf(\"%d\",&n);\n int nn,nlength,ans=0,i;\n for(i=1;i<=n;i++){\n nn = i;\n ...
CDSS_660910
CDSS
#include <stdio.h> #include <math.h> #define rep(i, n) for(int i = 0; i < n; i++) #define in_arr(type, a, n) for(int i = 0; i < n; i++) scanf(type, &((a)[i])); int main(){ int a, b, c, x, ret = 0; scanf("%d%d%d%d", &a, &b, &c, &x); for(int i = 0; i <= a; ++i){ for(int j = 0; j <= b; ++j){ ...
128
memory_bytes
{'s_id': 's602486392', 'p_id': 'p03448', 'u_id': 'u605917063', 'date': '1547872281', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '522'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 rep(i, n) for(int i = 0; i < n; i++)\n#define in_arr(type, a, n) for(int i = 0; i < n...
CDSS_94403
CDSS
#include <stdio.h> int main(void) { int D,L; scanf("%d %d",&D,&L); printf("%d\n",D/L+D%L); return 0; }
2,112
memory_bytes
{'s_id': 's748906150', 'p_id': 'p00312', 'u_id': 'u988619893', 'date': '1562660713', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '110'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint D,L;\n\tscanf(\"%d %d\",&D,&L);\n\tprintf(\"%d\\n\",D/L+D%L);\n\n\treturn 0;\n}\n\n\nPre...
CDSS_702157
CDSS
#include<stdio.h> int main(void){ int values; int color[8]; int exceed = 0; int N; values = scanf("%d",&N); int a[100]; int i; for(i = 0;i < N;i++){ values = scanf("%d",&a[i]); } for(i = 0;i < 8;i++){color[i] = 0;} for(i = 0;i < N;i++){ if(a[i] < 400){ color[0]++; }else if(a[i] < 800){ color[...
128
memory_bytes
{'s_id': 's668932598', 'p_id': 'p03695', 'u_id': 'u123766645', 'date': '1497149417', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '767'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n \nint main(void){\n\tint values;\n\tint color[8];\n\tint exceed = 0;\n\tint N;\n\tvalues = scanf(\"%d\",&N);\n\tin...