identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_26733
CDSS
#include <stdio.h> int main() { int a, b, sum, i = 1; while (scanf("%d %d", &a, &b) != EOF) { i = 1; sum = a + b; while (sum / 10 != 0) { sum = sum / 10; i++; } printf("%d\n", i); } return 0; }
600
memory_bytes
{'s_id': 's006786061', 'p_id': 'p00002', 'u_id': 'u467541030', 'date': '1466738745', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '217'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n\tint a, b, sum, i = 1;\n\n\twhile (scanf(\"%d %d\", &a, &b) != EOF) {\n\t\ti = 1;\n\t\tsum = a ...
CDSS_655030
CDSS
#include <stdio.h> int main(void){ int a, b; scanf("%d%d", &a, &b); int i; int count = 0; for(i = a; i <= b; i++){ if(((i / 10000) % 10) == i % 10){ if((i / 1000) % 10 == (i / 10) % 10){ count++; } } } printf("%d\n", count); return 0; }
128
memory_bytes
{'s_id': 's006124122', 'p_id': 'p03416', 'u_id': 'u692797455', 'date': '1547325033', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '281'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int a, b;\n scanf(\"%d%d\", &a, &b);\n int i;\n int count = 0;\n for(i = a; i <= b; i++...
CDSS_550087
CDSS
#include<stdio.h> int main(){ int n,a,b; scanf("%d %d %d",&n,&a,&b); if(n * a < b){ printf("%d",n * a); } else{ printf("%d",b); } }
1,732
memory_bytes
{'s_id': 's762757072', 'p_id': 'p02981', 'u_id': 'u488700515', 'date': '1600453861', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1732', 'code_size': '142'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tint n,a,b;\n\tscanf(\"%d %d %d\",&n,&a,&b);\n\tif(n * a < b){\n\t\tprintf(\"%d\",n * a);\n\t}\n\...
CDSS_159478
CDSS
#include <stdio.h> #include <math.h> #define N 10000 int sosu(int *,int); int count=0; int main(){ int i,n; int array[N]; scanf("%d",&n); for(i=0;i<=n-1;i++){ scanf("%d",&array[i]); } count=sosu(array,n); printf("%d\n",count); return 0; } int sosu(int *array,int n){ int i,j,flag=0; for(i=0...
2,048
memory_bytes
{'s_id': 's658216463', 'p_id': 'p02257', 'u_id': 'u882462216', 'date': '1577081865', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2048', 'code_size': '622'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n#define N 10000\n\nint sosu(int *,int);\nint count=0;\n\nint main(){\n int i,n;\n int array...
CDSS_383197
CDSS
#include <stdio.h> #include <string.h> int main() { char sr[3]; scanf("%s", sr); int rc_cnt = 0; int rc_ans = 0; int i; for (i = 0; i < strlen(sr); i++) { if (sr[i] == 'S') { rc_cnt = 0; } else if (sr[i] == 'R') { rc_cnt++; ...
1,720
memory_bytes
{'s_id': 's940265506', 'p_id': 'p02582', 'u_id': 'u171399797', 'date': '1598654224', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1720', 'code_size': '476'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 char sr[3];\n scanf(\"%s\", sr);\n\n int rc_cnt = 0;\n int rc...
CDSS_89303
CDSS
#include<stdio.h> #include<string.h> int main(){ char r[6],a[6]; int hit,blow,i,j; while(scanf("%s%s",r,a)!=EOF){ if(strcmp(r,"0")==0 && strcmp(a,"0")==0)break; hit=blow=0; for(i=0;i<4;i++){ if(r[i]==a[i])hit++; for(j=0;j<4;j++){ if(j!=i && r[i]==a[j])blow++; } } printf("%d %d\n",hit,blow); }...
0
memory_bytes
{'s_id': 's685867099', 'p_id': 'p00226', 'u_id': 'u500961378', 'date': '1314951267', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '333'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main(){\n\tchar r[6],a[6];\n\tint hit,blow,i,j;\n\twhile(scanf(\"%s%s\",r,a)!=EOF){\n\t\t...
CDSS_630639
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main() { //int A, B, C, X, Y; char s[101]={}; // int a, b, c; int a[20000]={}; int i,j,k; int flag=0; int tmp=0; int min=101; int max=0; long cnt =0; long long A_temp; // int k=0; // scanf("%d", &a); // A_tem...
256
memory_bytes
{'s_id': 's789140304', 'p_id': 'p03292', 'u_id': 'u301843562', 'date': '1532223200', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '527'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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()\n\n{\n //int A, B, C, X, Y;\n char ...
CDSS_613242
CDSS
#include <stdio.h> int main(){ char S[4]; char mem[4]; gets(S); if(S[2] != '\0'){ mem[0]=S[2]; mem[1]=S[1]; mem[2]=S[0]; mem[3]='\0'; puts(mem); }else{ puts(S); } return 0; }
128
memory_bytes
{'s_id': 's507137204', 'p_id': 'p03227', 'u_id': 'u369436268', 'date': '1540688739', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\tchar S[4];\n\tchar mem[4];\n\t\n\tgets(S);\n\t\n\tif(S[2] != '\\0'){\n\t\tmem[0]=S[2];\n\t\tmem...
CDSS_354384
CDSS
#include <stdio.h> int main(){ int n,x,count,sum,i,j,k; count=0; while(1){ count=0; scanf("%d%d",&n,&x); if(n==0 && x==0)break; for(i=1;i<=n;i++){ for(j=i+1;j<=n;j++){ for(k=j+1;k<=n;k++){ sum=i+j+k; if(sum==x)count += 1; } } } printf("%d\n",count); sum=0; } r...
600
memory_bytes
{'s_id': 's529069970', 'p_id': 'p02412', 'u_id': 'u073302075', 'date': '1430383175', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '330'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\n int n,x,count,sum,i,j,k;\n count=0;\n while(1){\n count=0;\n scanf(\"%d%d\",&n,&x);\n...
CDSS_169851
CDSS
#include <stdio.h> #define N 100 int main() { int i, j, n, minj, A[N], temp, ccount=0; scanf("%d",&n); for(i = 0 ; i < n ; i++) { scanf("%d",&A[i]); } for(i = 0 ; i < n ; i++) { minj=i; for(j = i ; j < n ; j++) { if(A[j] < A[minj]) { minj=j; } } if(A[i]!...
600
memory_bytes
{'s_id': 's154154600', 'p_id': 'p02260', 'u_id': 'u149941997', 'date': '1460611778', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '568'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define N 100\nint main()\n{\n int i, j, n, minj, A[N], temp, ccount=0;\n scanf(\"%d\",&n);\n for(i = 0 ; i <...
CDSS_284510
CDSS
#include <stdio.h> main(){ int a,b,c,x,y,z; scanf("%d%d%d",&a,&b,&c); if(a > b){ x = a; a = b; b = x; } if(b > c){ y = b; b = c; c = y; } if(a > b){ z = a; a = b; b = z; } printf("%d %d %d\n",a,b,c); return 0; }
596
memory_bytes
{'s_id': 's577534288', 'p_id': 'p02393', 'u_id': 'u660238915', 'date': '1480827977', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '296'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nmain(){\n \n int a,b,c,x,y,z;\n \n scanf(\"%d%d%d\",&a,&b,&c);\n \n if(a > b){ \n x = a;\n a = b;...
CDSS_27711
CDSS
b; main(a){ for(;~scanf("%d%d",&a,&b);) { a+=b; for(b=0;a>0;b++) a/=10; printf("%d\n",b); } exit(0); }
0
memory_bytes
{'s_id': 's684078512', 'p_id': 'p00002', 'u_id': 'u752673456', 'date': '1284605448', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\nb;\nmain(a){\n for(;~scanf(\"%d%d\",&a,&b);)\n {\n a+=b;\n for(b=0;a>0;b++)\n\ta/=10;\n printf(\"%d\\n\",b);\n ...
CDSS_744861
CDSS
#include<stdio.h> int array[3], max, min, i; int main() { scanf("%d %d %d",&array[0],&array[1],&array[2]); max = array[0]; min = array[0]; for (i = 0; i <=2 ; i++){ if ( max < array[i]) max = array[i]; if ( min > array[i]) min = array[i]; } if ( (array...
128
memory_bytes
{'s_id': 's656300345', 'p_id': 'p04043', 'u_id': 'u312666321', 'date': '1505967649', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '443'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint array[3], max, min, i;\n\nint main()\n {\n scanf(\"%d %d %d\",&array[0],&array[1],&array[2]);\n \...
CDSS_702404
CDSS
/* Coached by rainboy */ #include <stdio.h> #include <string.h> #define N 100 int main() { static char s[N + 1], cc[N * 2 + 1], *t = cc; int n, h, i, x, y; scanf("%d%s", &n, s); x = y = 0; for (i = 0; i < n; i++) { x += (s[i] == '(' ? 1 : -1); if (y > x) y = x; } for (h = 0; h < -y; h++) t += sprintf...
128
memory_bytes
{'s_id': 's750153481', 'p_id': 'p03696', 'u_id': 'u000120715', 'date': '1573057443', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '444'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n/* Coached by rainboy */\n#include <stdio.h>\n#include <string.h>\n\n#define N 100\n\nint main() {\n\tstatic char s[N + 1], cc[N * 2...
CDSS_613042
CDSS
#include <stdio.h> #include <string.h> int main(void) { char S[128]; int i; int len; if (scanf("%127s", S) != 1) return 1; len = (int)strlen(S); if (len == 2) { puts(S); } else { for (i = len - 1; i >= 0; i--) putchar((unsigned char)S[i]); putchar('\n'); } return 0; }
1,568
memory_bytes
{'s_id': 's516999810', 'p_id': 'p03227', 'u_id': 'u646118499', 'date': '1596777185', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1568', 'code_size': '285'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\tchar S[128];\n\tint i;\n\tint len;\n\tif (scanf(\"%127s\", S) != 1) r...
CDSS_742942
CDSS
#include<stdio.h> #define min(a,b) ((a)<(b)?(a):(b)) #define INF 2000000000 int main(){ int n,i,j,a[100]; long ans=INF; scanf("%d",&n); for(i=0;i<n;i++)scanf("%d",&a[i]); for(i=-100;i<=100;i++){ long tmp=0; for(j=0;j<n;j++)tmp+=(a[j]-i)*(a[j]-i); ans=min(ans,tmp); } printf("%ld\n",ans); re...
128
memory_bytes
{'s_id': 's938663752', 'p_id': 'p04031', 'u_id': 'u946810083', 'date': '1546981421', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '330'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n#define min(a,b) ((a)<(b)?(a):(b))\n#define INF 2000000000\n\nint main(){\n\t\tint n,i,j,a[100];\n\t\tlong ans=...
CDSS_365447
CDSS
#include <stdio.h> #include <string.h> #include <ctype.h> int main(){ int i, n, c; int count[500] = {0}; while((c = getchar()) != EOF){ if(isupper(c)) c = tolower(c); count[c]++; } for(c = 'a';c <= 'z';c++){ printf("%c : %d\n", c, count[c]); } return 0; }
524
memory_bytes
{'s_id': 's851554612', 'p_id': 'p02417', 'u_id': 'u158338651', 'date': '1447996457', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '268'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <ctype.h>\nint main(){\n\tint i, n, c;\n\tint count[500] = {0};\n\twhile((c = getc...
CDSS_391274
CDSS
#include <stdio.h> int main() { int a; scanf("%d", &a); if (a % 1000 == 0) printf("0"); else printf("%d", 1000-(a%1000)); return 0; }
1,712
memory_bytes
{'s_id': 's128852411', 'p_id': 'p02612', 'u_id': 'u741183122', 'date': '1594371870', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1712', 'code_size': '165'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int a;\n scanf(\"%d\", &a);\n\n if (a % 1000 == 0)\n printf(\"0\");\n else ...
CDSS_161004
CDSS
#include<stdio.h> int main(){ int j, n, t, R[200000], max, min; scanf("%d", &n); for (t=0;t<n;t++){ scanf("%d", &R[t]); } min=R[0]; max=R[1]-R[0]; for(j=1;j<n;j++){ if(max < R[j]-min){ max = R[j] - min; } else if(max > R[j]-min){ max = max; } if(min > R[j]){ min = R[j]; } else if(min < R...
1,376
memory_bytes
{'s_id': 's852939272', 'p_id': 'p02258', 'u_id': 'u358859406', 'date': '1463016047', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '1376', 'code_size': '382'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\nint j, n, t, R[200000], max, min;\nscanf(\"%d\", &n);\nfor (t=0;t<n;t++){\n scanf(\"%d\", &R[t]);...
CDSS_50218
CDSS
#include<stdio.h> #include<string.h> int main(void) { char str[81]; int i; while (fgets(str,81,stdin) != NULL) { while (1) { for (i = 0; i < strlen(str); i++) { if (str[i] >= 'a' && str[i] <= 'z') str[i] = (str[i] - 'a' + 1) % 26 + 'a'; } if (strstr(str, "this") != NULL) break; else if (strst...
524
memory_bytes
{'s_id': 's871293117', 'p_id': 'p00017', 'u_id': 'u481307862', 'date': '1484469753', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '436'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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{\n\tchar str[81];\n\tint i;\n\n\twhile (fgets(str,81,stdin) != NULL) {\n\t\t...
CDSS_633333
CDSS
#include<stdio.h> int main(void) { int a,N; scanf("%d",&N); if (N % 2 == 0) { printf("%d", N); } else { a = N * 2; printf("%d", a); } return 0; }
128
memory_bytes
{'s_id': 's119844259', 'p_id': 'p03307', 'u_id': 'u539847932', 'date': '1531418612', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n\tint a,N;\n\tscanf(\"%d\",&N);\n\tif (N % 2 == 0) {\n\t\tprintf(\"%d\", N);\n\t}\n\telse {\...
CDSS_303745
CDSS
#include <stdio.h> #define MAX 3000 int main(void){ int x = 0; int y = 0; int i; for (i = 0; i < MAX; i++){ scanf("%d %d", &x, &y); if (x == 0 && y == 0) break; else if(x < y) printf("%d %d\n", x, y); else printf("%d %d\n", y, x); ...
2,024
memory_bytes
{'s_id': 's714746087', 'p_id': 'p02397', 'u_id': 'u059825901', 'date': '1558186249', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2024', 'code_size': '341'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define MAX 3000\n\nint main(void){\n int x = 0;\n int y = 0;\n int i;\n for (i = 0; i < MAX; i++)...
CDSS_340580
CDSS
#include<stdio.h> #ifdef DEBUG #include<conio.h> #endif // DEBUG int main () { #ifdef DEBUG freopen("input.txt", "r", stdin); #endif // DEBUG int num; scanf("%d", &num); int i = 1; while(i <= num) { int x = i; if(0 == x % 3) { printf(" %d", i); } else { ...
2,128
memory_bytes
{'s_id': 's789574961', 'p_id': 'p02406', 'u_id': 'u743340828', 'date': '1595404355', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2128', 'code_size': '589'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#ifdef DEBUG\n#include<conio.h>\n#endif // DEBUG\n\nint main () {\n#ifdef DEBUG\n freopen(\"input.txt\", \"r\"...
CDSS_510252
CDSS
#include<stdio.h> #include<string.h> int main(){ char str[101]; scanf("%s",str); int lengh = strlen(str); //printf("%d\n",lengh); int count = 0; if(lengh % 2 == 0){ for(int i = 0;i < lengh / 2;i++){ if(str[i] != str[lengh - 1 - i]){ count++; } ...
128
memory_bytes
{'s_id': 's512771782', 'p_id': 'p02836', 'u_id': 'u491343140', 'date': '1577065100', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '527'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main(){\n char str[101];\n scanf(\"%s\",str);\n int lengh = strlen(str);\n //...
CDSS_283279
CDSS
#include<stdio.h> int main(void){ int a,b,c,temp; scanf("%d %d %d",&a,&b,&c); while(1){ if(a<=b){ temp = a; a = b; b = temp; } if(b<=c){ temp = b; b = c; c = temp; } if(c<=a){ tem...
596
memory_bytes
{'s_id': 's903812725', 'p_id': 'p02393', 'u_id': 'u063363397', 'date': '1463186820', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '471'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int a,b,c,temp;\n scanf(\"%d %d %d\",&a,&b,&c);\n \n while(1){\n if(a<=b){\n...
CDSS_106130
CDSS
#include<stdio.h> int main() { int a,b,i,i2,min=2000,min2=2000,g; for(i=0;i<3;i++){ scanf("%d",&a); if(a<min) min=a; } for(i2=0;i2<2;i2++){ scanf("%d",&b); if(b<min2) min2=b; } g=min+min2-50; printf("%d\n",g); return 0; }
592
memory_bytes
{'s_id': 's083030799', 'p_id': 'p00488', 'u_id': 'u453728254', 'date': '1376310279', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '243'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint a,b,i,i2,min=2000,min2=2000,g;\n\tfor(i=0;i<3;i++){\n\t\tscanf(\"%d\",&a);\n\t\tif(a<min)\n\...
CDSS_644359
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <stdbool.h> #define PI 3.141592653589793238462643383279 int a,b,c,d; void change(int *x, int *y){ int z; z = *x; *x = *y; *y = z; } int compare_int(const void *a, const void *b){ return *(int*)a - *(int*)b; } int main(void){ scanf("%d %d %d %d",...
128
memory_bytes
{'s_id': 's566841167', 'p_id': 'p03351', 'u_id': 'u824196989', 'date': '1526174555', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '447'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#include <stdbool.h>\n#define PI 3.141592653589793238462643383279\n\nint...
CDSS_503708
CDSS
#include<stdio.h> #include<string.h> int main() { char a[100],b[100]; scanf("%s%s",a,b); printf("%s%s\n",b,a); }
128
memory_bytes
{'s_id': 's434431184', 'p_id': 'p02817', 'u_id': 'u353919145', 'date': '1579941740', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '125'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main()\n{\n char a[100],b[100];\n scanf(\"%s%s\",a,b);\n printf(\"%s%s\\n\",b,a)...
CDSS_710367
CDSS
#include<stdio.h> #include<ctype.h> int main(void) { char s1[10],s2[10],s3[10]; char S1,S2,S3; scanf("%s %s %s",s1,s2,s3); S1= toupper(s1[0]); S2= toupper(s2[0]); S3= toupper(s3[0]); printf("%c%c%c\n",S1,S2,S3); return 0; }
128
memory_bytes
{'s_id': 's967490283', 'p_id': 'p03737', 'u_id': 'u670199931', 'date': '1590794489', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '274'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n #include<stdio.h>\n #include<ctype.h>\n int main(void)\n {\n char s1[10],s2[10],s3[10];\n char S1,S2,S3;\n\n scanf(\"%s...
CDSS_182439
CDSS
#include <stdio.h> #include <string.h> #define LEN 100005 typedef struct pp { char chName[10]; int nTime; } Pair; Pair PIn[LEN]; int nHead, nTail, n; Pair dequeue() { Pair PTemp = PIn[nHead]; nHead = (nHead + 1) % (n + 2); return PTemp; } void enqueue(Pair in) { PIn[nTail] = in; nTail = (nTail + 1) % (n + 2...
2,512
memory_bytes
{'s_id': 's092664072', 'p_id': 'p02264', 'u_id': 'u609578509', 'date': '1523191601', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2512', 'code_size': '729'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\n#define LEN 100005\n\ntypedef struct pp\n{\n\tchar chName[10];\n\tint nTime;\n} Pair;\n\n...
CDSS_303416
CDSS
/* * main.c * * Created on: 2020/07/27 * Author: 113896 */ #include <stdio.h> void swap(int *x, int *y) { int tmp = *x; *x = *y; *y = tmp; } int main() { int a, b; while (1) { scanf("%d%d", &a, &b); if (a == 0 && b == 0) break; if (a > b) swap(&a, &b); printf("%d %d\n", a, b); } return 0;...
2,068
memory_bytes
{'s_id': 's920983996', 'p_id': 'p02397', 'u_id': 'u035401074', 'date': '1595816576', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2068', 'code_size': '324'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n/*\n * main.c\n *\n * Created on: 2020/07/27\n * Author: 113896\n */\n#include <stdio.h>\n\n\nvoid swap(int *x, int *y) {\n\ti...
CDSS_64767
CDSS
#include <stdio.h> #include <math.h> int main(void){ double a; while(scanf("%lf",&a) != EOF){ if(a<=48){ printf("light fly\n"); } else if(a<=51){ printf("fly\n"); } else if(a<=54){ printf("bantam\n"); } else if(a<=57){ printf("feather\n"); } else if(a<=60){ printf("light\n"); }...
608
memory_bytes
{'s_id': 's794079891', 'p_id': 'p00048', 'u_id': 'u214278145', 'date': '1435480040', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '623'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\tdouble a;\n\twhile(scanf(\"%lf\",&a) != EOF){\n\t\tif(a<=48){\n\t\t\tpri...
CDSS_253481
CDSS
#include<stdio.h> int main(){ int a, b, syu, menn; scanf("%d", &a); scanf("%d", &b); syu = 2 * a + 2 * b ; menn = a * b ; printf("%d %d\n", menn,syu); return 0; }
596
memory_bytes
{'s_id': 's922408298', 'p_id': 'p02389', 'u_id': 'u024822943', 'date': '1479172929', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '163'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\nint a, b, syu, menn;\nscanf(\"%d\", &a);\nscanf(\"%d\", &b);\nsyu = 2 * a + 2 * b ;\nmenn = a * b ;\...
CDSS_458530
CDSS
#include <stdio.h> int gcd(int p,int q){while(q){int t=p%q;p=q;q=t;}return p;} int main(){ int k; scanf("%d",&k); int ans=0; for(int a=1;a<=k;a++)for(int b=1;b<=k;b++)for(int c=1;c<=k;c++){ ans+=gcd(a,gcd(b,c)); } printf("%d",ans); }
1,732
memory_bytes
{'s_id': 's488720221', 'p_id': 'p02713', 'u_id': 'u382163500', 'date': '1592492225', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '326', 'memory': '1732', 'code_size': '243'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint gcd(int p,int q){while(q){int t=p%q;p=q;q=t;}return p;}\n\nint main(){\n\tint k;\n\tscanf(\"%d\",&k);\n\ti...
CDSS_110346
CDSS
#include<stdio.h> int main(){ int n,x[101],m,a,i,j; scanf("%d",&n); for(i=0;i<n;i++)scanf("%d",&x[i]); x[n]=0; scanf("%d",&m); for(i=0;i<m;i++){ scanf("%d",&a); if(x[a-1]!=2019&&x[a-1]+1!=x[a])x[a-1]++; } for(i=0;i<n;i++)printf("%d\n",x[i]); return 0; }
2,052
memory_bytes
{'s_id': 's811024902', 'p_id': 'p00576', 'u_id': 'u822467561', 'date': '1556595532', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '267'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tint n,x[101],m,a,i,j;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<n;i++)scanf(\"%d\",&x[i]);\n\tx[n]=0;\n\ts...
CDSS_416479
CDSS
#include <stdio.h> #include <string.h> #define MAX 1000 int main() { char s[MAX]; int k; int a; int i; scanf("%d", &k); scanf("%s", s); a = strlen(s); if (a <= k) printf("%s\n", s); else { for (i = 0; i < k; i++) printf("%c", s[i]); printf("...\n"); } return 0; }
1,644
memory_bytes
{'s_id': 's450685374', 'p_id': 'p02676', 'u_id': 'u500731720', 'date': '1589764148', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1644', 'code_size': '290'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\n#define MAX 1000\n\nint main()\n{\n\tchar s[MAX];\n\tint k;\n\tint a;\n\tint i;\n\t\n\tsc...
CDSS_218824
CDSS
#include <stdio.h> #define M 100000 #define N -1 struct Node{ int parent,left,right; }; struct Node T[M]; int D[M],H[M]; void setdepth(int u,int d){ if(u==N)return; D[u]=d; setdepth(T[u].left,d+1); setdepth(T[u].right,d+1); } int setheight(int u){ int h1=0,h2=0; if(T[u].left != N) h1=setheight(T[u].l...
2,112
memory_bytes
{'s_id': 's736452529', 'p_id': 'p02280', 'u_id': 'u536373814', 'date': '1578978166', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '1554'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define M 100000\n#define N -1\n\nstruct Node{\nint parent,left,right;\n};\nstruct Node T[M];\nint D[M],H[M];\n\...
CDSS_431323
CDSS
#include<stdio.h> int main() { int sheep,wolves; scanf("%d",&sheep); scanf("%d",&wolves); if(wolves>=sheep) { printf("unsafe"); } else { printf("safe"); } return 0; }
1,728
memory_bytes
{'s_id': 's487369184', 'p_id': 'p02699', 'u_id': 'u867045157', 'date': '1587949525', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1728', 'code_size': '175'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\nint sheep,wolves;\nscanf(\"%d\",&sheep);\nscanf(\"%d\",&wolves);\nif(wolves>=sheep)\n{\n printf...
CDSS_716977
CDSS
#include<stdio.h> int n,ans; int main(){ scanf("%d",&n); ans=800*n-200*(n/15); printf("%d",ans); }
128
memory_bytes
{'s_id': 's379214244', 'p_id': 'p03795', 'u_id': 'u353919145', 'date': '1538757118', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '102'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint n,ans;\nint main(){\n\tscanf(\"%d\",&n);\n\tans=800*n-200*(n/15);\n\tprintf(\"%d\",ans);\n}\n\nPredict its me...
CDSS_518666
CDSS
#include <stdio.h> int main() { int n; scanf("%d",&n); for(int a=1;a<=9;a++) {for(int b=1;b<=9;b++) {if(n==a*b){ puts("Yes"); return 0; } } } puts("No"); return 0; }
128
memory_bytes
{'s_id': 's326757077', 'p_id': 'p02880', 'u_id': 'u108934099', 'date': '1575834357', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '189'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\n for(int a=1;a<=9;a++)\n {for(int b=1;b<=9;b++)\n {if(n==a*...
CDSS_745273
CDSS
#include<stdio.h> #include<string.h> int main(){ int N,L; scanf("%d%d",&N,&L); int i,j; char s[N][L+1]; char tmp[L+1]; char str[10001]; for(i=0;i<N;i++){ scanf("%s",s[i]); } //printf("%s\n",s[0]); for(i=1;i<N;i++){ for(j=1;j<N;j++){ if(strcmp(s[j-1],s[j])>0){ strcpy(tmp,s[j-...
128
memory_bytes
{'s_id': 's936493993', 'p_id': 'p04044', 'u_id': 'u052185335', 'date': '1587748962', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '501'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 int N,L;\n scanf(\"%d%d\",&N,&L);\n int i,j;\n char s[N][L+1];\n cha...
CDSS_245204
CDSS
#include<stdio.h> int main(void){ int x; scanf("%d",&x); printf("%d\n",x*x*x); return 0; }
596
memory_bytes
{'s_id': 's823769024', 'p_id': 'p02388', 'u_id': 'u360943149', 'date': '1495101172', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '104'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int x;\n scanf(\"%d\",&x);\n printf(\"%d\\n\",x*x*x);\n\n\nreturn 0;\n}\nPredict its m...
CDSS_496339
CDSS
#include<stdio.h> int main(){ int m,n; scanf("%d %d",&n,&m); if(m==n) { printf("Yes\n"); } if(m<n) { printf("No\n"); } return 0; }
1,624
memory_bytes
{'s_id': 's680931274', 'p_id': 'p02789', 'u_id': 'u816631826', 'date': '1598796258', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1624', 'code_size': '183'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int m,n;\n scanf(\"%d %d\",&n,&m);\n if(m==n)\n {\n printf(\"Yes\\n\");\n }\n...
CDSS_624885
CDSS
#include <stdio.h> long long int merge_sort(int N, int a[]){ int pivot=N/2; long long int merge=0; int left=0,right=0; int b[pivot+1],c[N-pivot+1]; if(N==1) return 0; for(int i=0;i<pivot;i++) b[i]=a[i]; for(int i=0;i<N-pivot;i++) c[i]=a[i+pivot]; merge+=merge_sort(pivot,b); merge+=merge_sort(N-pivot,...
2,176
memory_bytes
{'s_id': 's604767847', 'p_id': 'p03275', 'u_id': 'u618608862', 'date': '1535344724', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '201', 'memory': '2176', 'code_size': '1399'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nlong long int merge_sort(int N, int a[]){\n int pivot=N/2;\n long long int merge=0;\n int left=0,right=0;\n...
CDSS_545857
CDSS
#include <stdio.h> int main(void) { int i, n; long long int a[100005], b, c = 0, sum = 0; scanf("%d", &n); for (i = 1; i <= n + 1; i++) scanf("%lld", &a[i]); for (i = 1; i <= n; i++) { scanf("%lld", &b); if (a[i] <= b+c) { sum += a[i]; if (c >= a[i]) c = b; else c = b - (a[i] - c); } else { ...
896
memory_bytes
{'s_id': 's252864083', 'p_id': 'p02959', 'u_id': 'u924527074', 'date': '1564283399', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '25', 'memory': '896', 'code_size': '447'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint i, n;\n\tlong long int a[100005], b, c = 0, sum = 0;\n\tscanf(\"%d\", &n);\n\tfor (i ...
CDSS_138275
CDSS
#include<stdio.h> int map[101][101]; int d[101]; int queue[101]; int n; int main(){ int i, j; int u, o, a; scanf("%d", &n); for( i = 1; i <= n; i++ ){ d[i] = -1; for( j = 1; j <= n; j++ ){ map[i][j] = 0; } } for( i = 1; i <= n; i++ ){ scanf("%d", &u)...
2,096
memory_bytes
{'s_id': 's606140036', 'p_id': 'p02239', 'u_id': 'u961694012', 'date': '1533823690', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2096', 'code_size': '818'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint map[101][101];\nint d[101];\nint queue[101];\nint n;\n\nint main(){\n int i, j;\n int u, o, a;\n s...
CDSS_397401
CDSS
#include <stdio.h> typedef long long ll; int main(void){ int n, m, k, i, j; scanf("%d %d %d", &n, &m, &k); ll a[n+1], b[m+1], ans = 0, best = 0; b[0] = a[0] = 0; for(i = 1; i <= n; i++){ a[i] = 0; scanf("%lld", &a[i]); a[i] += a[i-1]; } for(j = 1; j <= m; j++){ b[j] = 0; scanf("%ll...
4,856
memory_bytes
{'s_id': 's113384520', 'p_id': 'p02623', 'u_id': 'u242706056', 'date': '1593486879', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '54', 'memory': '4856', 'code_size': '536'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\ntypedef long long ll;\n\nint main(void){\n int n, m, k, i, j;\n scanf(\"%d %d %d\", &n, &m, &k);\n ll a[n+1],...
CDSS_419158
CDSS
#include<stdio.h> int main(void){ char S[20]; char T[20]; int i,f; f=1; for(i=0;i<20;i++){ S[i]= 0; T[i]= 0; } scanf("%s",&S); scanf("%s",&T); for(i=0;S[i]!=0;i++){ f=f*(S[i] == T[i]); } if(f) printf("Yes"); else { prin...
1,732
memory_bytes
{'s_id': 's172375099', 'p_id': 'p02681', 'u_id': 'u923418829', 'date': '1589162380', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', 'code_size': '358'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 char T[20];\n int i,f;\n \n f=1;\n \n for(i=0;i<20;i++){\n ...
CDSS_199271
CDSS
#include <stdio.h> int rec(int,int); int a[2000],n; main(){ int i,j,p,q; int m[2000]; 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(rec(0,m[i])==1)printf("yes\n"); else printf("no\n"...
588
memory_bytes
{'s_id': 's810500672', 'p_id': 'p02271', 'u_id': 'u737175927', 'date': '1431966030', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '570', 'memory': '588', 'code_size': '491'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint rec(int,int);\n \nint a[2000],n;\n \nmain(){\n int i,j,p,q;\n int m[2000];\n \n scanf(\"%d\",&n);\n ...
CDSS_680069
CDSS
#include<stdio.h> int main(void){ int r,g; scanf("%d %d",&r,&g); printf("%d\n",2*g-r); return 0; }
128
memory_bytes
{'s_id': 's749166950', 'p_id': 'p03563', 'u_id': 'u759764204', 'date': '1524778241', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '114'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int r,g;\n scanf(\"%d %d\",&r,&g);\n printf(\"%d\\n\",2*g-r);\n return 0;\n}\nPredi...
CDSS_153766
CDSS
#include<stdio.h> int gcd(int ,int); int main(){ int n1,n2; scanf("%d %d",&n1,&n2); if(n1 > n2){ printf("%d\n",gcd(n1,n2)); }else{ printf("%d\n",gcd(n2,n1)); } return 0; } int gcd(int x,int y){ int r; r = x % y; while(r!=0){ x= y; y = r; r = x % y; } return y; } ...
2,104
memory_bytes
{'s_id': 's112337734', 'p_id': 'p02256', 'u_id': 'u357121199', 'date': '1575951570', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '321'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint gcd(int ,int);\n\nint main(){\n int n1,n2;\n \n scanf(\"%d %d\",&n1,&n2);\n \n if(n1 > n2){\n print...
CDSS_248331
CDSS
#include <stdio.h> main(){ int x,ans; scanf("%d",&x); ans=x*x*x; printf("%d\n",ans); return 0; }
596
memory_bytes
{'s_id': 's333166604', 'p_id': 'p02388', 'u_id': 'u857051250', 'date': '1403076282', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '106'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nmain(){\n int x,ans;\n scanf(\"%d\",&x);\n ans=x*x*x;\n printf(\"%d\\n\",ans);\n return 0;\n}\nPredict its ...
CDSS_324238
CDSS
#include <stdio.h> int main(){ int a[10000]; int i, n, max, min; long int b = 0; scanf("%d", &n); for (i = 0; i < n; i++){ scanf("%d", &a[i]); b = b + a[i]; } max = a[0]; min = a[0]; for (i = 0; i < n; i++){ if (max < a[i]){ max = a[i]; } if (m...
640
memory_bytes
{'s_id': 's429075802', 'p_id': 'p02402', 'u_id': 'u548073184', 'date': '1480471658', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '425'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(){\n \n int a[10000];\n int i, n, max, min;\n long int b = 0;\n \n scanf(\"%d\", &n);\n fo...
CDSS_114114
CDSS
#include <stdio.h> int main(){ int n, r, p, c, i; for(;;){ int N[50]; scanf("%d %d", &n, &r); if( n == 0 && r == 0){ break; } for( i = 0; i < n; i++){ N[i] = n-i; } //cut for( ; r > ...
600
memory_bytes
{'s_id': 's165493858', 'p_id': 'p00710', 'u_id': 'u807440918', 'date': '1434344632', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '789'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int n, r, p, c, i;\n \n for(;;){\n int N[50];\n \n scanf(\"%d %d\"...
CDSS_733193
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> #define sl(x) scanf("%ld", &x) #define ss(x) scanf("%s", x) #define pl(x) printf("%ld\n", x) #define ps(x) printf("%s\n", x) #define INF 100000000000 #define M 1000000007 #define min(a,b) (((a)<(b))?(a):(b)) #define max(a,b) (((a)>(b))?(a):(b))...
1,792
memory_bytes
{'s_id': 's589918086', 'p_id': 'p03948', 'u_id': 'u617888512', 'date': '1478485854', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '15', 'memory': '1792', 'code_size': '720'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n#include<math.h>\n\n#define sl(x) scanf(\"%ld\", &x)\n#define ss(x) scanf...
CDSS_506729
CDSS
#include<stdio.h> int main() { int A, B; scanf("%d %d", &A, &B); if((A==1)&&(B==2)) printf("3\n"); else if((A==1)&&(B==3)) printf("2\n"); else if((A==2)&&(B==3)) printf("1\n"); else if((A==3)&&(B==2)) printf("1\n"); else if((A==3)&&(B==1)) printf("2\n"...
128
memory_bytes
{'s_id': 's506916879', 'p_id': 'p02829', 'u_id': 'u353919145', 'date': '1581301781', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '433'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int A, B;\n scanf(\"%d %d\", &A, &B);\n if((A==1)&&(B==2))\n printf(\"3\\n\");\n ...
CDSS_320550
CDSS
#include<stdio.h> int main(void) { int a,b; char op; while(1) { if(op=='?') break; scanf("%d %c %d",&a,&op,&b); if(op=='+') printf("%d\n",a+b); if(op=='-') printf("%d\n",a-b); if(op=='*') printf("%d\n",a*b); if(op=='/') printf("%d\n",a/b); } return 0; } ...
2,108
memory_bytes
{'s_id': 's614485811', 'p_id': 'p02401', 'u_id': 'u840839224', 'date': '1586936232', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '321'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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;\n char op;\n while(1)\n {\n if(op=='?')\n break;\n scanf(\"%d %c %d\"...
CDSS_426898
CDSS
#include<stdio.h> int main(void){ int a,b,k; scanf("%d%d%d",&k,&a,&b); for(int i=a;i<=b;i++){ if(i%k==0) { printf("OK"); return 0; } } printf("NG"); return 0; }
1,736
memory_bytes
{'s_id': 's823073873', 'p_id': 'p02693', 'u_id': 'u073336549', 'date': '1588468620', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1736', 'code_size': '206'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\nint a,b,k;\nscanf(\"%d%d%d\",&k,&a,&b);\n for(int i=a;i<=b;i++){\n\tif(i%k==0)\n {\n pr...
CDSS_583266
CDSS
#include <stdio.h> int main() { int a[5], k; int i, j, tmp; for ( i = 0; i < 5; i++ ) { scanf("%d", &a[i]); } scanf("%d", &k); if ( a[4] - a[0] > k ) { printf(":(\n"); } else { printf("Yay!\n"); } }
128
memory_bytes
{'s_id': 's878418007', 'p_id': 'p03075', 'u_id': 'u006180579', 'date': '1554578272', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '235'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n int a[5], k;\n int i, j, tmp;\n \n for ( i = 0; i < 5; i++ ) {\n scanf(\"%d\", &a[i]);\n...
CDSS_232971
CDSS
#include <stdio.h> #define TMAX 100001 #define THALF 50000 void fill(int *p, int T, int d) { int i; for(i=0; i<T; i++){ *(p+i) = d; } } void stak(int *p, int head, int end, int d) { int i; for(i=head; i<end; i++){ *(p+i) += d; } } int main(void) { int N, T, t[TMAX], in, out, d, sw, max=0, i, j; scan...
992
memory_bytes
{'s_id': 's460616062', 'p_id': 'p02359', 'u_id': 'u751715365', 'date': '1478414952', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '490', 'memory': '992', 'code_size': '967'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define TMAX 100001\n#define THALF 50000\n\nvoid fill(int *p, int T, int d)\n{\n\tint i;\n\tfor(i=0; i<T; i++){\...
CDSS_554993
CDSS
int main(void){ int n, count, i; int in[19]; scanf("%d", &n); scanf("%d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d", &in[0], &in[1], &in[2], &in[3], &in[4], &in[5], &in[6], &in[7], &in[8], &in[9], &in[10], &in[11], &in[12], &in[13], &in[14], &in[15], &in[16], &in[17], &in[18], &in[19]); for(...
128
memory_bytes
{'s_id': 's533212872', 'p_id': 'p02988', 'u_id': 'u658820221', 'date': '1561861787', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '499'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\nint main(void){\n\tint n, count, i;\n int in[19];\n \n\tscanf(\"%d\", &n);\n scanf(\"%d %d %d %d %d %d %d %d %d %d %d %d %d %...
CDSS_684141
CDSS
#include<stdio.h> int n, a; int main(void) { scanf( "%d %d", &n, &a ); printf( "%d\n", n*n-a ); return 0; }
128
memory_bytes
{'s_id': 's024488435', 'p_id': 'p03597', 'u_id': 'u115071405', 'date': '1505610240', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '118'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint n, a;\n\nint main(void)\n{\n\t\n\tscanf( \"%d %d\", &n, &a );\n\t\n\tprintf( \"%d\\n\", n*n-a );\n\t\n\tret...
CDSS_695873
CDSS
#include <stdio.h> #include <stdlib.h> int cmpint(const void *x, const void *y) { return *(int *)y - *(int *)x; } int main() { int n, k, l[50], sum = 0; scanf("%d%d", &n, &k); for (int i = 0; i < n; i++) { scanf("%d", &l[i]); } qsort(l, n, sizeof(int), cmpint); for (int i = 0; i < k; i++) { sum += l[i]; } p...
128
memory_bytes
{'s_id': 's208113196', 'p_id': 'p03658', 'u_id': 'u030504180', 'date': '1586726083', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\nint cmpint(const void *x, const void *y) { return *(int *)y - *(int *)x; }\nint main() {\n\...
CDSS_393270
CDSS
#include<stdio.h> #include<math.h> #define rep(i,n) for(int i = 0; i < n; i++) #define H_MAX 6 #define W_MAX 6 /*配列(整数型)の表示のための関数*/ void print_array_int(char name[], int nlen, int array[], int alen) { printf("%s = [", name); rep(i,alen) { printf("%d", array[i]); if (i == alen - 1) { //pass } else { pr...
2,564
memory_bytes
{'s_id': 's148359999', 'p_id': 'p02614', 'u_id': 'u318233626', 'date': '1599880932', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '2564', 'code_size': '2619'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 H_MAX 6\n#define W_MAX 6\n\n/*配列(整数型)の表示...
CDSS_252621
CDSS
#include<stdio.h> int main(void) { int a,b; scanf("%d %d",&a,&b); printf("%d %d\n",a*b,2*(a+b)); return 0; }
596
memory_bytes
{'s_id': 's896412352', 'p_id': 'p02389', 'u_id': 'u117671979', 'date': '1466573854', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '112'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\tscanf(\"%d %d\",&a,&b);\n\tprintf(\"%d %d\\n\",a*b,2*(a+b));\n\treturn 0;\n}\nPr...
CDSS_58128
CDSS
#include <stdio.h> int const NUM[3][13] = { {0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0}, {0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1} }; int main() { int x, y, size; int i, zero, max; int paper[100] = {0}; int const *vrange; while (scanf(" %d,%d,%d", &x, &y, &size) != EOF) { ...
600
memory_bytes
{'s_id': 's767564132', 'p_id': 'p00026', 'u_id': 'u782850731', 'date': '1362264234', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '851'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint const NUM[3][13] = {\n\t{0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0},\n\t{0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0...
CDSS_568159
CDSS
// Ver19.03 #include <math.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #define INF (1 << 29) * 2 #define LLINF 4545454545454545454 #define MOD 1000000007 #define ll long long #define ull unsigned long long #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define MIN(a, b) ((a) < (b) ? (a) : (b)) int upll(con...
128
memory_bytes
{'s_id': 's257351920', 'p_id': 'p03035', 'u_id': 'u883325972', 'date': '1558886095', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '837'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n// Ver19.03\n#include <math.h>\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#define INF (1 << 29) * 2\n#define LLI...
CDSS_433880
CDSS
#include <stdio.h> int main(){ int a,b,c,d; int flag1 = 0; int flag2 = 0; scanf("%d %d %d %d", &a, &b, &c, &d); while(a > 0){ a = a - d; flag1++; } while(c > 0){ c = c - b; flag2++; } if(flag1 >= flag2){ printf("Yes"); }else{ printf("No"); } return 0; }
1,708
memory_bytes
{'s_id': 's425152545', 'p_id': 'p02700', 'u_id': 'u087807690', 'date': '1587952752', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1708', 'code_size': '314'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n \n int a,b,c,d;\n int flag1 = 0;\n int flag2 = 0;\n \n scanf(\"%d %d %d %d\", &a, &b, &c, ...
CDSS_255033
CDSS
#include<stdio.h> int main (){ int a,b,men=0,shu=0; scanf("%d %d",&a,&b); men=a*b; shu=(a+b)*2; printf("%d %d\n",men,shu); return 0; }
596
memory_bytes
{'s_id': 's451641028', 'p_id': 'p02389', 'u_id': 'u226258218', 'date': '1500599943', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '164'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main (){\n\n int a,b,men=0,shu=0;\n\n scanf(\"%d %d\",&a,&b);\n\n men=a*b;\n shu=(a+b)*2;\n\n ...
CDSS_671128
CDSS
#include <stdio.h> int main() { int a, b, c, d; scanf("%d", &a); b = a % 100 % 10; c = (a / 10) % 10; d = a / 100; printf("%d", b + c + d); return (0); }
1,688
memory_bytes
{'s_id': 's663528803', 'p_id': 'p03493', 'u_id': 'u221374645', 'date': '1596750559', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1688', 'code_size': '178'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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, d;\n\t\n\tscanf(\"%d\", &a);\n b = a % 100 % 10;\n c = (a / 10) % 10;\n ...
CDSS_545455
CDSS
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #define MOD 1000000007 typedef long long int ll; void llswap(ll *x,ll *y){ll temp;temp=*x;*x=*y;*y=temp;} void swap(int *x,int *y){int tmp;tmp=*x;*x=*y;*y=tmp;} int max(int x,int y){return x>y?x:y;} int min(int x,int y){return x>y?y:x;} ll llmax(l...
128
memory_bytes
{'s_id': 's970067419', 'p_id': 'p02958', 'u_id': 'u679951803', 'date': '1564275894', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '900'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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#define MOD 1000000007\ntypedef long long int ll;\nvoid...
CDSS_306777
CDSS
#include <stdio.h> int main(void){ int a,b,c,x,y=0; scanf("%d %d %d",&a,&b,&c); for( x=a; x <=b;x++){ if(c%x==0){ y++; } } printf("%d\n",y);// Your code here! return(0); }
2,048
memory_bytes
{'s_id': 's213743934', 'p_id': 'p02398', 'u_id': 'u414096184', 'date': '1526880072', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '233'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int a,b,c,x,y=0;\n scanf(\"%d %d %d\",&a,&b,&c);\n for( x=a; x <=b;x++){\n \n ...
CDSS_641170
CDSS
#include <stdio.h> int main() { int n; scanf("%d", &n); int ans = 0; if(n < 10){ ans = n; } else { while(n!=0){ ans += n % 10; n /= 10; } } if(ans == 1) ans = 10; printf("%d", ans); return 0; }
128
memory_bytes
{'s_id': 's337812169', 'p_id': 'p03331', 'u_id': 'u459215900', 'date': '1528074969', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '243'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n int n;\n scanf(\"%d\", &n);\n\n int ans = 0;\n if(n < 10){\n ans = n;\n } else {\n w...
CDSS_149852
CDSS
#include<stdio.h> void print(int *a, int N) { for (int i = 0; i < N; i++) { if (i) printf(" "); printf("%d", a[i]); } printf("\n"); } void insertionSort(int *a, int N) { int i, j, v; for (i = 1; i < N; i++) { v = a[i]; j = i - 1; while (j >= 0 && a[j] > v) { a[j + 1] = a[j]; j--; } a[j...
2,092
memory_bytes
{'s_id': 's660095559', 'p_id': 'p02255', 'u_id': 'u673825722', 'date': '1570610836', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2092', 'code_size': '493'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nvoid print(int *a, int N)\n{\n\tfor (int i = 0; i < N; i++)\n\t{\n\t\tif (i)\n\t\t\tprintf(\" \");\n\t\tprintf(...
CDSS_597405
CDSS
#include <stdio.h> int main(void){ int X; int T; double A_time; scanf("%d %d",&T,&X); A_time = T / (double)X; printf("%.10f",A_time); return 0; }
128
memory_bytes
{'s_id': 's393247069', 'p_id': 'p03135', 'u_id': 'u374678351', 'date': '1549250555', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '178'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(void){\n \n int X;\n int T;\n double A_time;\n \n scanf(\"%d %d\",&T,&X);\n \n A_time = T / (...
CDSS_118961
CDSS
#include <stdio.h> int main(void) { int dataset_num,cur_data; unsigned int chunks[9]; int i,j; int key,sum; scanf("%d",&dataset_num); for(cur_data=0;cur_data<dataset_num;cur_data++) { for(i=0;i<9;i++)scanf("%x",&chunks[i]); key=0; for(i=0;i<32;i++) { for(sum=0,j=0;j<8;j++)sum+=chunks[j]; if((sum & (1...
0
memory_bytes
{'s_id': 's436573560', 'p_id': 'p00829', 'u_id': 'u543521645', 'date': '1333762572', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '444'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint dataset_num,cur_data;\n\tunsigned int chunks[9];\n\tint i,j;\n\tint key,sum;\n\tscanf(...
CDSS_463223
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': 's431555131', 'p_id': 'p02717', 'u_id': 'u766413013', 'date': '1586143720', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '116'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 scanf(\"%d %d %d\",&x,&y,&z);\n printf(\"%d %d %d\",z,x,y);\n return 0;\n}\n\nPr...
CDSS_486765
CDSS
#include <stdio.h> int main(void) { int a , b , c ; scanf("%d" , &a ) ; scanf("%d" , &b) ; scanf( "%d" , &c) ; if ((a == b && a != c)|| (a == c && a!=b ) || (b == c && b!= a)) { printf("Yes") ; ...
128
memory_bytes
{'s_id': 's865166993', 'p_id': 'p02771', 'u_id': 'u149923287', 'date': '1592319674', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '391'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 scanf(\"%d\" , &a ) ;\n scanf(\"%d\" , &b) ;\n ...
CDSS_636985
CDSS
#include <stdio.h> #include <string.h> #define BOTH 0 #define TAKA 1 #define HASI 2 #define DEBUG #undef DEBUG int main(int argc, char *argv[]) { int N, M; int from, to; int old, new; char swapflag; int i, j, k; int ans; char bridge[700][700] = {0}; long state[700] = {0}; int...
640
memory_bytes
{'s_id': 's898490318', 'p_id': 'p03321', 'u_id': 'u747557923', 'date': '1532802613', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '81', 'memory': '640', 'code_size': '5097'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\n#define BOTH 0\n#define TAKA 1\n#define HASI 2\n\n#define DEBUG\n#undef DEBUG\n\nint main...
CDSS_43588
CDSS
#include <stdio.h> #include <math.h> main(){ int n, i, j, k, p, count; int data[100000]; k=1; data[0]=2; for(i=3;i<1000000;i+=2){ p=0; if(i%2==0) continue; for(j=3;j<=(int)sqrt(i);j+=2){ if(i%j==0){ p=1; break; } } if(p==1) continue; data[k]=i; k++; } data[k]=-...
592
memory_bytes
{'s_id': 's887341097', 'p_id': 'p00009', 'u_id': 'u622083648', 'date': '1278598364', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '380', 'memory': '592', 'code_size': '535'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\n\nmain(){\n int n, i, j, k, p, count;\n int data[100000];\n k=1;\n data[0]=2;\n for(i=...
CDSS_130763
CDSS
#include <stdio.h> int F[50]; int fibonacci(int x){ if(x == 0 || x == 1) return F[x] = 1; if(F[x] != NULL)return F[x]; return F[x] = fibonacci(x - 1) + fibonacci(x - 2); } int main(){ int x; scanf("%d",&x); printf("%d\n",fibonacci(x)); return 0; }
2,056
memory_bytes
{'s_id': 's552257937', 'p_id': 'p02233', 'u_id': 'u140576179', 'date': '1579501618', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '270'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint F[50];\n\nint fibonacci(int x){\n if(x == 0 || x == 1) return F[x] = 1;\n if(F[x] != NULL)return F[x];\n...
CDSS_646641
CDSS
#include<stdio.h> int p[55]={2,7,17,37,47,67,97,107,127,137,157,167,197,227,257,277,307,317,337,347,367,397,457,467,487,547,557,577,587,607,617,647,677,727,757,787,797,827,857,877,887,907,937,947,967,977,997,1087,1097,1117,1187,1217,1237,1277,1297}; int main(){ int N,i; scanf("%d",&N); for(i=0;i<N-1;i++)printf("%d...
128
memory_bytes
{'s_id': 's791372229', 'p_id': 'p03362', 'u_id': 'u573082373', 'date': '1539205501', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '366'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint p[55]={2,7,17,37,47,67,97,107,127,137,157,167,197,227,257,277,307,317,337,347,367,397,457,467,487,547,557,5...
CDSS_387664
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<stdbool.h> #include<math.h> #include<limits.h> #define MAX 200002 int min(int a,int b){ if(a<b) return a; else return b; } int main(){ int N; char c[MAX]; scanf("%d",&N); scanf("%s",c); int r=0,w=0; for(int i=0;i<N;i++){ ...
1,924
memory_bytes
{'s_id': 's508162149', 'p_id': 'p02597', 'u_id': 'u270825463', 'date': '1596418087', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1924', 'code_size': '553'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n#include<stdbool.h>\n#include<math.h>\n#include<limits.h>\n#define MAX 20...
CDSS_640981
CDSS
#include <stdio.h> int kochousinobu(int kanndaakemi) { int morigutihiroko = 0; while (kanndaakemi > 0) { morigutihiroko += kanndaakemi % 10; kanndaakemi /= 10; } return morigutihiroko; } int main(void) { int N; int i; int nakagawasyouko = 999999999; if (scanf("%d", &N) != 1) return 1; for (i = 1; i < N; ...
1,728
memory_bytes
{'s_id': 's407513497', 'p_id': 'p03331', 'u_id': 'u646118499', 'date': '1593672531', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1728', 'code_size': '483'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint kochousinobu(int kanndaakemi) {\n\tint morigutihiroko = 0;\n\twhile (kanndaakemi > 0) {\n\t\tmorigutihirok...
CDSS_542735
CDSS
#include<stdio.h> int main(){ int i,j,k=0; int N; scanf("%d",&N); for(i=0;i<N;i++){ scanf("%d ",&j); if(k > j){ puts("No"); return 0; } else if(k==j){ k=j; } else k=(j-1); } puts("Yes"); return 0; }
128
memory_bytes
{'s_id': 's598131314', 'p_id': 'p02953', 'u_id': 'u491818247', 'date': '1565226732', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '14', 'memory': '128', 'code_size': '264'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int i,j,k=0;\n int N;\n scanf(\"%d\",&N);\n \n for(i=0;i<N;i++){\n scanf(\"%d \",&j);\n ...
CDSS_258313
CDSS
#include<stdio.h> int main(void) { int a,b; scanf("%d %d",&a,&b); printf("%d %d\n",a*b,(a*2)+(b*2)); return 0; }
2,048
memory_bytes
{'s_id': 's718939473', 'p_id': 'p02389', 'u_id': 'u800433405', 'date': '1554431896', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '117'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\tscanf(\"%d %d\",&a,&b);\n\tprintf(\"%d %d\\n\",a*b,(a*2)+(b*2));\n\treturn 0;\n}...
CDSS_173638
CDSS
#include <stdio.h> #define N 100 typedef struct{ char a; char value; }Card_t; void bubble(Card_t A[],int v){ int i,j; Card_t t; for(i=0;i<v;i++){ for(j=v-1;j>=i;j--){ if(A[j].value < A[j-1].value){ t=A[j]; A[j]=A[j-1]; A[j-1]=t; } ...
608
memory_bytes
{'s_id': 's637091206', 'p_id': 'p02261', 'u_id': 'u761306808', 'date': '1497419616', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '1467'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n #include <stdio.h>\n #define N 100\n\n typedef struct{\n char a;\n char value;\n }Card_t;\n\n void bubble(Card_t A[],int...
CDSS_510014
CDSS
#include<stdio.h> int main() { int a[3]; scanf("%d %d %d", &a[0], &a[1], &a[2]); if (a[0] + a[1] + a[2] >= 22) printf("bust\n"); else printf("win\n"); return 0; }
128
memory_bytes
{'s_id': 's009938262', 'p_id': 'p02835', 'u_id': 'u600300412', 'date': '1575856897', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '171'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint a[3];\n\tscanf(\"%d %d %d\", &a[0], &a[1], &a[2]);\n\tif (a[0] + a[1] + a[2] >= 22)\n\t\tpri...
CDSS_76848
CDSS
h,s,o;main(i){for(;~scanf("%*d%s"+!!--i*3,&i);i-4?s=i?++o==3?h=o=!printf("%d\n",s>h-3?s:h-3):s:++h:++h)i%=6;}
0
memory_bytes
{'s_id': 's738435705', 'p_id': 'p00103', 'u_id': 'u399107199', 'date': '1290002811', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '109'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\nh,s,o;main(i){for(;~scanf(\"%*d%s\"+!!--i*3,&i);i-4?s=i?++o==3?h=o=!printf(\"%d\\n\",s>h-3?s:h-3):s:++h:++h)i%=6;}\nPredict its memo...
CDSS_648699
CDSS
#include <stdio.h> int main(){ int A,B,X; scanf("%d %d %d",&A,&B,&X); if(A<=X && X<=A+B){ printf("YES\n"); }else{ printf("NO\n"); } return 0; }
1,612
memory_bytes
{'s_id': 's709584870', 'p_id': 'p03377', 'u_id': 'u455691947', 'date': '1597168823', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1612', 'code_size': '167'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int A,B,X;\n scanf(\"%d %d %d\",&A,&B,&X);\n \n if(A<=X && X<=A+B){\n printf(\"YES\\n\");...
CDSS_300231
CDSS
#include<stdio.h> int main() { int x; int y; int z; while(1) { scanf("%d %d",&x,&y); if(x==0&&y==0) { break; } if(x>y) { z=x; x=y; y=z; } printf("%d %d\n",x,y); } return 0; }
600
memory_bytes
{'s_id': 's398928383', 'p_id': 'p02397', 'u_id': 'u964131793', 'date': '1447923347', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '195'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\nint x;\nint y;\nint z;\nwhile(1)\n{\n scanf(\"%d %d\",&x,&y);\n if(x==0&&y==0)\n {\n break;\n }\...
CDSS_591589
CDSS
#include<stdio.h> int main(){ int a,b,c,d=0; scanf("%d %d %d",&a,&b,&c); for(int i=100; 1<=i; i--){ if(a%i==0&&b%i==0){ d++; } if(d==c){ printf("%d",i); break; } } return 0;}
128
memory_bytes
{'s_id': 's602291809', 'p_id': 'p03106', 'u_id': 'u308101268', 'date': '1589663767', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '218'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int a,b,c,d=0;\n scanf(\"%d %d %d\",&a,&b,&c);\n for(int i=100; 1<=i; i--){\n if(a%i==0&&b%i=...
CDSS_301284
CDSS
#include <stdio.h> int main(void) { int x, y; while (1) { scanf("%d", &x); scanf("%d", &y); if (x == 0 && y == 0) break; if (x < y) printf("%d %d\n", x, y); else printf("%d %d\n", y, x); } return 0; }
600
memory_bytes
{'s_id': 's168876016', 'p_id': 'p02397', 'u_id': 'u447890506', 'date': '1481692146', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '224'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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;\n\n\twhile (1) {\n\t\tscanf(\"%d\", &x);\n\t\tscanf(\"%d\", &y);\n\n\t\tif (x == ...
CDSS_37378
CDSS
#include<stdio.h> #include<string.h> int main(){ int i; char a[21]; while ( (fscanf(stdin, "%s", a)) != EOF){ for (i=strlen(a)-1; i >= 0; i--){ printf("%c", a[i]); } printf("\n"); } return 0; }
520
memory_bytes
{'s_id': 's899347410', 'p_id': 'p00006', 'u_id': 'u135516417', 'date': '1443945769', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '520', 'code_size': '253'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 int i;\n char a[21];\n\n while ( (fscanf(stdin, \"%s\", a)) != EOF...
CDSS_622296
CDSS
/* ex 7_1 Stuartyg */ #include <stdio.h> #include <math.h> int N = 245; int D = 55; typedef struct point{ //頂点を表す構造体pointの定義 int x_elem; int y_elem; }point; point shift_point(point apex,int x_diff,int y_diff); //プロトタイプ宣言 int main(void){ point apex,vertex,top,peak; //頂点の名前 int x_diff,y_diff; sc...
1,704
memory_bytes
{'s_id': 's627807847', 'p_id': 'p03265', 'u_id': 'u811068179', 'date': '1594438926', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1704', 'code_size': '996'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n/* ex 7_1\n Stuartyg */\n\n#include <stdio.h>\n#include <math.h>\nint N = 245;\nint D = 55;\ntypedef struct point{ //頂点を表す構造体point...
CDSS_23839
CDSS
#include <stdio.h> int main(){ int n,count,count2,temp; int mountain[10]; for(n=0;n<10;n++){ scanf("%d",&mountain[n]); } for(count=0;count<n;count++){ for(count2=count;count2<n;count2++){ if(mountain[count2]>mountain[count]){ temp=mountain[count]; mountain[count]=mountain[count2]...
600
memory_bytes
{'s_id': 's940131552', 'p_id': 'p00001', 'u_id': 'u100370736', 'date': '1496763025', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '431'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int n,count,count2,temp;\n int mountain[10];\n for(n=0;n<10;n++){\n scanf(\"%d\",&mountain[n...
CDSS_311702
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/(double)b; printf("%d %d %f\n", d, r, f); return 0; }
2,140
memory_bytes
{'s_id': 's962285464', 'p_id': 'p02399', 'u_id': 'u485618438', 'date': '1528775330', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '181'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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, d, r;\n\tdouble f;\n\tscanf(\"%d %d\", &a, &b);\n\td = a/b;\n\tr = a%b;\n\tf = (...
CDSS_501640
CDSS
#include <stdio.h> int main(){ int K,X; scanf ("%d%d",&K,&X); if (500*K<X){ printf ("No"); } else { printf ("Yes"); } }
2,140
memory_bytes
{'s_id': 's174181054', 'p_id': 'p02811', 'u_id': 'u816631826', 'date': '1600197164', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '2140', 'code_size': '129'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n\tint K,X;\n\tscanf (\"%d%d\",&K,&X);\n\tif (500*K<X){\n\t\tprintf (\"No\");\n\t}\n\telse {\n\t\tpr...
CDSS_675695
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> typedef long long ll; typedef char keytype; int gcd(int a, int b){ return (a % b) ? gcd(b, a % b) : b;} int lcm(int a, int b){ return (a / gcd(a, b)) * b;} /* a[0], ..., a[n-1] の数の最大公約数 */ int ngcd(int n, int a[]) { int i, d; d = a[0]; for (i = ...
1,716
memory_bytes
{'s_id': 's689318306', 'p_id': 'p03544', 'u_id': 'u906918812', 'date': '1600906618', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1716', 'code_size': '2550'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\ntypedef long long ll;\ntypedef char keytype;\n\nint gcd(int a, int b...
CDSS_519945
CDSS
#include <stdio.h> #include <math.h> int main(void){ long int i, n; scanf("%ld", &n); long int ans = n; for(i = 1; i <= (long int)sqrt(n); ++i){ if(n % i == 0){ if(ans > i + n/i - 2 ){ ans = i + n/i - 2; } } } printf("%ld\n", ans); return 0; }
128
memory_bytes
{'s_id': 's386469441', 'p_id': 'p02881', 'u_id': 'u752847729', 'date': '1572229547', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '128', 'code_size': '300'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 long int i, n;\n scanf(\"%ld\", &n);\n long int ans = n;\n fo...