identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_64556
CDSS
main(x){char a,b;for(x='A';~scanf("%c,%c\n",&a,&b);)x=x==a?b:x==b?a:x;printf("%c\n",x);return 0;}
548
memory_bytes
{'s_id': 's370611484', 'p_id': 'p00047', 'u_id': 'u300645821', 'date': '1349112671', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '97'}
[ { "content": "Your task is to predict the 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(x){char a,b;for(x='A';~scanf(\"%c,%c\\n\",&a,&b);)x=x==a?b:x==b?a:x;printf(\"%c\\n\",x);return 0;}\nPredict its memory footprint....
CDSS_614921
CDSS
#include <stdio.h> int main(void){ int i, n, time, min = 9999; scanf("%d %d", &n, &time); int c[n], t[n]; for(i = 0; i < n; i++){ scanf("%d %d", &c[i], &t[i]); } for(i = 0; i < n; i++){ if(time >= t[i] && min > c[i]){ min = c[i]; } } if(min == 9999){ printf("TLE"); }else{ printf("%d",...
128
memory_bytes
{'s_id': 's494301696', 'p_id': 'p03239', 'u_id': 'u523969266', 'date': '1549054598', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '344'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\t\n\tint i, n, time, min = 9999;\n\t\n\tscanf(\"%d %d\", &n, &time);\n\t\n\tint c[n], t[n];\n\...
CDSS_230922
CDSS
#include <stdlib.h> #include <stdio.h> #include <string.h> #define swap(typ, x, y) \ do { \ typ tmp; \ tmp = x; \ x = y; \ y = tmp; \ } while (0) void max_heapify(int *arr, int i, int size) { int l, r, largest; l = (i+1) * 2 - 1; r = (i+1) * 2; if (l <= (size ...
5,752
memory_bytes
{'s_id': 's379880606', 'p_id': 'p02289', 'u_id': 'u073049338', 'date': '1571114753', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '340', 'memory': '5752', 'code_size': '1967'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdlib.h>\n#include <stdio.h>\n#include <string.h>\n\n#define swap(typ, x, y) \\\n do { \\\n typ tmp; \\\n ...
CDSS_137320
CDSS
#include<stdio.h> #define N 100 #define WHITE 0 #define GRAY 1 #define BLACK 2 int n,M[N][N]; int color[N],d[N],f[N],tt; void dfs_visit(int u){ int v; color[u] = GRAY; d[u] = ++tt; for(v=0;v<n;v++){ if(M[u][v] == 0)continue; if(color[v] == WHITE){ dfs_visit(v); } } color[u] = BLACK; f...
2,108
memory_bytes
{'s_id': 's529583489', 'p_id': 'p02238', 'u_id': 'u095050442', 'date': '1548307513', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '788'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n#define N 100\n#define WHITE 0\n#define GRAY 1\n#define BLACK 2\n\nint n,M[N][N];\nint color[N],d[N],f[N],tt;\n\n...
CDSS_51718
CDSS
#include <stdio.h> int main() { unsigned long long int ret = 1; int i, n; scanf("%d", &n); for (i = 1; i <= n; i++) { ret *= i; } printf("%lld\n", ret); return 0; }
592
memory_bytes
{'s_id': 's320896737', 'p_id': 'p00019', 'u_id': 'u368521320', 'date': '1406078487', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', '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>\n\nint main() {\n unsigned long long int ret = 1;\n int i, n;\n \n scanf(\"%d\", &n);\n \n for (i...
CDSS_657984
CDSS
#include <stdio.h> int main(void) { int N, A; scanf("%d %d", &N, &A); N %= 500; puts(N <= A ? "Yes" : "No"); return (0); }
128
memory_bytes
{'s_id': 's598002538', 'p_id': 'p03433', 'u_id': 'u874723578', 'date': '1561168126', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '130'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint\nmain(void)\n{\n\tint N, A;\n\tscanf(\"%d %d\", &N, &A);\n\n\tN %= 500;\n\tputs(N <= A ? \"Yes\" : \"No\");\...
CDSS_357653
CDSS
#include <stdio.h> #include <stdlib.h> int main(void){ int data[2]; int size_input, size_column, size_row; int *input; int *column, *row; //????????? int i, j; int num_column=0; scanf("%d %d", &data[0], &data[1]); size_input = data[0] * data[1]; size_column = data[0]; size_row = data[1] + 1; input =...
644
memory_bytes
{'s_id': 's305488501', 'p_id': 'p02413', 'u_id': 'u212103396', 'date': '1479964580', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '644', 'code_size': '1271'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(void){\n\tint data[2];\n\tint size_input, size_column, size_row;\n\tint *input;\n\...
CDSS_389314
CDSS
#include<stdio.h> int main (void){ int L,R,d; int min,max; int ans; scanf("%d %d %d",&L,&R,&d); if(L%d==0){ min=L; }else{ min=L+d-L%d; } max=R-R%d; if(d==1){ min=1; } ans=(max/d)-(min/d)+1; printf("%d",ans); return 0 ; }
1,728
memory_bytes
{'s_id': 's586298134', 'p_id': 'p02606', 'u_id': 'u654625936', 'date': '1594516738', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1728', 'code_size': '305'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 L,R,d;\n int min,max;\n int ans;\n scanf(\"%d %d %d\",&L,&R,&d);\n\n if(L...
CDSS_184050
CDSS
#include <stdio.h> #include <string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; int min(int,int); P dequeue(void); void enqueue(P); int main(){ int elaps = 0, c; int i, q; P a ; scanf("%d %d", &n, &q); for ( i = 1; i <= n; i++){ ...
11,900
memory_bytes
{'s_id': 's375715885', 'p_id': 'p02264', 'u_id': 'u804528691', 'date': '1544957507', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '11900', 'code_size': '836'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#define LEN 100005\n\ntypedef struct pp{ \n char name[100];\n int t;\n}P;\n\nP Q[L...
CDSS_551822
CDSS
#include <stdio.h> int main(){ int l, r, ll, rr, minn; scanf("%d%d", &l, &r); ll = l % 2019; rr = r % 2019; minn = 2019; if(r - l > 2019) rr += 2019; for (int i=ll;i<rr;i++){ for (int j=ll+i-ll+1;j<rr+1;j++){ if(minn > i * j % 2019){ minn = i * j % 2019; ...
1,728
memory_bytes
{'s_id': 's378309166', 'p_id': 'p02983', 'u_id': 'u419963262', 'date': '1599684610', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '1728', 'code_size': '373'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 l, r, ll, rr, minn;\n \n scanf(\"%d%d\", &l, &r);\n\n ll = l % 2019;\n rr = r % 2019;...
CDSS_689267
CDSS
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <math.h> #include <limits.h> #define Max(a, b) ((a) > (b) ? (a) : (b)) #define Min(a, b) ((a) > (b) ? (b) : (a)) #define abs(x) ((x) > 0 ? (x) : -(x)) #define MOD (ll)1000000007 //10^9 + 7 #define endl printf("\n") typedef long lon...
128
memory_bytes
{'s_id': 's809187775', 'p_id': 'p03626', 'u_id': 'u801102476', 'date': '1566952531', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '967'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include <string.h>\n#include <math.h>\n#include <limits.h>\n#define Ma...
CDSS_623222
CDSS
#include<stdio.h> int main(void) { int n,i,a; scanf("%d%d",&n,&i); if(1>n>100) return 1; else if(1>i>n) return 1; a=n-i+1; printf("%d\n",a); return 0; }
128
memory_bytes
{'s_id': 's540982993', 'p_id': 'p03272', 'u_id': 'u658441673', 'date': '1564767520', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '210'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int n,i,a;\n scanf(\"%d%d\",&n,&i);\n if(1>n>100) return 1;\n else ...
CDSS_372626
CDSS
// AOJ ITP2_10_C Bit Flag // 2019.3.8 bal4u #include <stdio.h> #include <stdlib.h> #include <string.h> #if 1 #define gc() getchar_unlocked() #define pc(c) putchar_unlocked(c) #else #define gc() getchar() #define pc(c) putchar(c) #endif int in() // 非負整数の入力 { int n = 0, c = gc(); do n = 10 * n + (c & 0xf), c = gc(...
2,084
memory_bytes
{'s_id': 's311016898', 'p_id': 'p02425', 'u_id': 'u847467233', 'date': '1552003380', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2084', 'code_size': '1660'}
[ { "content": "Your task is to predict the memory 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 ITP2_10_C Bit Flag\n// 2019.3.8 bal4u\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#if 1\n#define gc() ge...
CDSS_279754
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,044
memory_bytes
{'s_id': 's093863796', 'p_id': 'p02392', 'u_id': 'u000124292', 'date': '1526893247', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '165'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n int main(){\n int a,b,c;\n scanf(\"%d %d %d\",&a ,&b ,&c);\n if(a < b && b < c){\n printf(\"Yes\\n\");\n }el...
CDSS_613249
CDSS
#include <stdio.h> #include<string.h> int main() { char str[4]; scanf("%s",str); if(strlen(str)==2) printf("%s",str); else { for(int i=2;i>=0;i--) printf("%c",str[i]); } return 0; }
128
memory_bytes
{'s_id': 's866817220', 'p_id': 'p03227', 'u_id': 'u370273398', 'date': '1540688626', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', '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#include<string.h>\nint main()\n{\n char str[4];\n scanf(\"%s\",str);\n if(strlen(str)==2)\n printf(\"...
CDSS_660464
CDSS
#include<stdio.h> int main() { int a,b,c,d; scanf("%d%d%d",&a,&b,&c); d=a-b; printf("%d\n",d%c); return 0; }
128
memory_bytes
{'s_id': 's162065349', 'p_id': 'p03447', 'u_id': 'u556737561', 'date': '1517192289', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '113'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint a,b,c,d;\n\tscanf(\"%d%d%d\",&a,&b,&c);\n\td=a-b;\n\tprintf(\"%d\\n\",d%c);\n\treturn 0;\n}\nP...
CDSS_679782
CDSS
#include <stdio.h> int main(void) { int r,g; scanf("%d%d",&r,&g); printf("%d\n",2*g-r); }
1,700
memory_bytes
{'s_id': 's472136581', 'p_id': 'p03563', 'u_id': 'u769530239', 'date': '1593301714', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1700', '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(void) {\n int r,g;\n scanf(\"%d%d\",&r,&g);\n printf(\"%d\\n\",2*g-r);\n}\nPredict its memory footprin...
CDSS_303233
CDSS
#include <stdio.h> int main() { int x, y, tmp; while (1) { scanf("%d %d", &x, &y); if (x == 0 & y == 0) { return 0; } if (x > y) { tmp = x; x = y; y = tmp; } printf("%d %d\n", x, y); } }
600
memory_bytes
{'s_id': 's399507551', 'p_id': 'p02397', 'u_id': 'u355549067', 'date': '1348470496', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '214'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 x, y, tmp;\n\twhile (1) {\n\t\tscanf(\"%d %d\", &x, &y);\n\t\tif (x == 0 & y == 0) {\n\t\t\...
CDSS_122968
CDSS
#include <stdio.h> int main(void){ int n,a,b,c,x,y[100],i,cnt; while(1){ BACK: scanf("%d %d %d %d %d",&n,&a,&b,&c,&x); if(!n) break; for(i=0;i<n;i++) scanf("%d",&y[i]); cnt=0; i=0; while(1){ if(x==y[i]) i++; if(i==n) break; x=(a*x+b)%c; cnt++; if...
612
memory_bytes
{'s_id': 's195214309', 'p_id': 'p01267', 'u_id': 'u505651850', 'date': '1482547067', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '612', 'code_size': '413'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int n,a,b,c,x,y[100],i,cnt;\n while(1){\n BACK:\n scanf(\"%d %d %d %d %d\",&n,&a,&b,&c,&x)...
CDSS_639228
CDSS
#include<stdio.h> #define SIZE 100000 int main(){ int n,a[SIZE],i; int counter=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a[i]); } for(i=0;i<n;i++){ while(a[i]%2==0){ counter++; a[i]=a[i]/2; } } printf("%d\n",counter); return 0; }
256
memory_bytes
{'s_id': 's886484787', 'p_id': 'p03325', 'u_id': 'u110996038', 'date': '1541280260', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '279'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define SIZE 100000\nint main(){\n int n,a[SIZE],i;\n int counter=0;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\n ...
CDSS_520977
CDSS
#include<stdio.h> int A,B,i; int main(void) {scanf("%d %d",&A,&B); i=A-2*B; if(i<=0){ printf("0"); }else{ printf("%d",i); } }
128
memory_bytes
{'s_id': 's921313324', 'p_id': 'p02885', 'u_id': 'u336979293', 'date': '1572305698', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '129'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint A,B,i;\nint main(void)\n{scanf(\"%d %d\",&A,&B);\n\ti=A-2*B;\nif(i<=0){\n\tprintf(\"0\");\n}else{\n\tprintf(\"...
CDSS_200986
CDSS
#include<stdio.h> int array[20], n; int solve(int, int); int main(){ int i, m, num; scanf("%d",&n); for(i = 0; i < n; i++)scanf("%d",&array[i]); scanf("%d",&m); for(i = 0; i < m; i++) { scanf("%d",&num); if(solve(0,num) == 1)printf("yes\n"); else printf("no\n"); } ...
2,108
memory_bytes
{'s_id': 's553795926', 'p_id': 'p02271', 'u_id': 'u727457150', 'date': '1576742631', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '350', 'memory': '2108', 'code_size': '533'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint array[20], n;\nint solve(int, int);\n\nint main(){\n\n int i, m, num;\n \n scanf(\"%d\",&n);\n\n for(i = ...
CDSS_261105
CDSS
#include "stdio.h" int main() { int input_time; int sec, min, hour; do { scanf("%d", &input_time); } while (input_time >= 86400 && input_time < 0); sec = input_time % 60; min = ((input_time - sec) / 60) % 60; hour = (input_time - (input_time % 3600)) / 3600; printf("%d:%d:%d\n", hour, min, sec); ...
592
memory_bytes
{'s_id': 's276760216', 'p_id': 'p02390', 'u_id': 'u178215473', 'date': '1474531896', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '331'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 input_time;\n\tint sec, min, hour;\n\t\n\tdo\n\t{\n\t\tscanf(\"%d\", &input_time);\n\t} \...
CDSS_463556
CDSS
#include <stdio.h> void SwapInt(int *a, int *b){ int tmp; tmp = *a; *a = *b; *b = tmp; return; } int main(void){ int a, b, c; scanf("%d %d %d", &a, &b, &c); SwapInt(&a, &b); SwapInt(&a, &c); printf("%d %d %d\n", a, b, c); return 0; }
128
memory_bytes
{'s_id': 's892667468', 'p_id': 'p02717', 'u_id': 'u599503273', 'date': '1586048878', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '262'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 SwapInt(int *a, int *b){\n int tmp;\n\n tmp = *a;\n *a = *b;\n *b = tmp;\n\n return;\n}\n\nint main(vo...
CDSS_124548
CDSS
#include<stdio.h> int main(){ char maz[10]; int i=0,n,count=0,m,e=0,b=0; for(i=0;i<10;i++){ scanf("%c",&maz[i]); if(maz[i]=='\n')break; } m=i-1; for(n=0;n<i/2;n++){ if(maz[n] != maz[m]){ if( (maz[n]=='(' && maz[m]==')') || (maz[n]==')' && maz[m]=='(')){ e++; } count++; ...
536
memory_bytes
{'s_id': 's808356130', 'p_id': 'p01377', 'u_id': 'u654835367', 'date': '1435990095', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '536', 'code_size': '574'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n char maz[10];\n int i=0,n,count=0,m,e=0,b=0;\n for(i=0;i<10;i++){\n scanf(\"%c\",&maz[i]);\n ...
CDSS_101701
CDSS
#include <stdio.h> #include <stdlib.h> int compare_int(const void *a, const void *b); typedef enum{ en_taro = 0, en_hanako = 1 } en_turn; typedef struct { int num; int str[100]; } card; int main(void){ int n; int field_number; int taro_first, hanako_first; int i, j, k; en_turn turn; card taro, hanako; ...
2,108
memory_bytes
{'s_id': 's575285296', 'p_id': 'p00446', 'u_id': 'u729274656', 'date': '1576823743', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '2640'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint compare_int(const void *a, const void *b);\n\ntypedef enum{\n\ten_taro = 0,\n\ten_hanak...
CDSS_327698
CDSS
#include<stdio.h> int main(void){ int a[10000], min, max, n, i; long long sum = 0; scanf("%d", &n); for(i = 0; i < n; i++){ scanf("%d", &a[i]); sum += a[i]; } max=min=a[0]; for(i=1; i<n; i++){ if(a[i]>max)max=a[i]; if(a[i]<min)min=a[i]; } printf("%d %d...
2,140
memory_bytes
{'s_id': 's496144164', 'p_id': 'p02402', 'u_id': 'u499561491', 'date': '1528766226', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '367'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int a[10000], min, max, n, i;\n long long sum = 0;\n scanf(\"%d\", &n);\n for(i = 0; ...
CDSS_236114
CDSS
#include<stdio.h> #include<math.h> int main() { //変数の宣言 int i, n, hako[1000]; double h, sum; while (1) { //入力 scanf("%d", &n); if (n == 0) { break; } //初期化 sum = 0; h = 0; for (i=0; i<n; i++) {//nの分だけ ...
2,104
memory_bytes
{'s_id': 's090963829', 'p_id': 'p02381', 'u_id': 'u521798769', 'date': '1527139085', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '716'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 //変数の宣言\n int i, n, hako[1000];\n double h, sum;\n \n while (1) {...
CDSS_235998
CDSS
#include<stdio.h> #include<math.h> int main() { int n, i; double m, a, s[1000], sum; while (1) { a = 0; sum = 0; scanf("%d", &n); if (n == 0) { break; } for (i = 0;i < n;i++) { scanf("%lf", &s[i]); sum += s[i]; } ...
664
memory_bytes
{'s_id': 's653634592', 'p_id': 'p02381', 'u_id': 'u979453636', 'date': '1502331828', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '664', 'code_size': '481'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\nint main() {\n int n, i;\n double m, a, s[1000], sum;\n while (1) {\n a = 0;\n ...
CDSS_519152
CDSS
#include <stdio.h> int main(void){ int N; scanf("%d",&N); if(N==1 || N==2|| N==3|| N==4|| N==5|| N==6|| N==7|| N==8|| N==9|| N==10|| N==12|| N==14|| N==15|| N==16|| N==18|| N==20|| N==21|| N==24|| N==25|| N==27|| N==28|| N==30|| N==32|| N==35|| N==36|| N==40|| N==42|| N==45|| N==48|| N==49|| N==54|| N==56...
128
memory_bytes
{'s_id': 's826524286', 'p_id': 'p02880', 'u_id': 'u149854193', 'date': '1572226127', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '424'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\n if(N==1 || N==2|| N==3|| N==4|| N==5|| N==6|| N==7|| N...
CDSS_481554
CDSS
#include <stdio.h> int main(){ int n; scanf("%d",&n); printf("%d",n/2+n%2); }
128
memory_bytes
{'s_id': 's110858062', 'p_id': 'p02759', 'u_id': 'u201326295', 'date': '1584404688', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', '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 must be a numerical value, with no extra text or explanation.\nThe code is:\n #include <stdio.h>\n \n int main(){\n \tint n;\n \tscanf(\"%d\",&n);\n \tprintf(\"%d\",n/2+n%2);\n }\nPredi...
CDSS_547231
CDSS
#include<stdio.h> int main() { int r; scanf("%d",&r); printf("%d",3*r*r); return 0; }
128
memory_bytes
{'s_id': 's174435680', 'p_id': 'p02969', 'u_id': 'u321139366', 'date': '1563671113', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '97'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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;\n scanf(\"%d\",&r);\n printf(\"%d\",3*r*r);\nreturn 0;\n}\nPredict its memory footp...
CDSS_76263
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> int main(){ int n,i; char s[1001]; char *p; scanf("%d",&n);while(getchar()!='\n'); for(i=0;i<n;i++){ gets(s); do{ p=strstr(s,"Hoshino"); if(p!=NULL)*(p+6)='a'; }while(p!=NULL); puts(s); } return 0; }
592
memory_bytes
{'s_id': 's985251110', 'p_id': 'p00101', 'u_id': 'u643705886', 'date': '1362858222', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '277'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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(){\n\tint n,i;\n\tchar s[1001];\n\tchar *p;\n\tscanf(\"%d\",&n);...
CDSS_416218
CDSS
#include <stdio.h> #include <string.h> int main(void) { int K; char S[101]; scanf("%d\n", &K); scanf("%s\n", S); if (strlen(S) <= K) { printf("%s\n", S); } else { S[K] = 0x00; printf("%s...\n", S); } return(0); }
1,724
memory_bytes
{'s_id': 's493258801', 'p_id': 'p02676', 'u_id': 'u998267560', 'date': '1589765725', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1724', '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 <string.h>\nint main(void) {\n\tint K;\n\tchar S[101];\n\tscanf(\"%d\\n\", &K);\n\tscanf(\"%s\\n\", S);\n...
CDSS_353700
CDSS
#include <stdio.h> #include <ctype.h> #include <stdlib.h> int main() { int m, f, r; int s; while (1) { scanf("%d%d%d", &m, &f, &r); if (m == -1 && f == -1 && r == -1) break; if (m < 0 || f < 0) puts("F"); else { s = m + f; if (s >= 80) puts("A");...
2,112
memory_bytes
{'s_id': 's401336070', 'p_id': 'p02411', 'u_id': 'u630852627', 'date': '1564104392', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '519'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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()\n{\n int m, f, r;\n int s;\n \n while (1) {\n ...
CDSS_303814
CDSS
#include<stdio.h> int main(){ int i,x,y; i = 1; while(1){ scanf("%d %d", &x, &y); if ( x == 0 && y == 0 ) { break; } else if (x >= y) { printf("%d %d\n", y, x); } else if (y > x) { printf("%d %d\n", x, y); i++; } } return 0; }
2,032
memory_bytes
{'s_id': 's790595649', 'p_id': 'p02397', 'u_id': 'u008514844', 'date': '1548295797', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2032', 'code_size': '274'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int i,x,y;\n\ti = 1;\n\twhile(1){\n scanf(\"%d %d\", &x, &y);\n if ( x == 0 && y == 0 ) {\...
CDSS_51674
CDSS
#include<stdio.h> int main(void) { int a[5], temp; int i, j, k; scanf("%d%d%d%d%d", &a[0], &a[1], &a[2], &a[3], &a[4]); for(i = 0; i < 5; i++){ for(j = 0; j < 4; j++){ //printf("comparing %d and %d\n", a[j], a[j + 1]); if(a[j] < a[j + 1]){ //printf("com...
2,044
memory_bytes
{'s_id': 's514442539', 'p_id': 'p00018', 'u_id': 'u228549574', 'date': '1589171212', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '729'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n int a[5], temp;\n\n int i, j, k;\n scanf(\"%d%d%d%d%d\", &a[0], &a[1], &a[2], &a[3],...
CDSS_142217
CDSS
#include<stdio.h> #define N 8 #define E -1 #define NE 1 int R[N],C[N],dpos[2*N-1],dneg[2*N-1]; int x[N][N]; void init(); void print(); void recur(int); int main(){ int i,j,n,r,c; init(); for(i=0;i<N;i++){ for(j=0;j<N;j++) x[i][j] = 0; } scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&r); ...
2,104
memory_bytes
{'s_id': 's586994476', 'p_id': 'p02244', 'u_id': 'u915088497', 'date': '1549341331', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '1107'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n\n#define N 8\n#define E -1\n#define NE 1\n\nint R[N],C[N],dpos[2*N-1],dneg[2*N-1];\n\nint x[N][N];\nvoid init();...
CDSS_255677
CDSS
#include <stdio.h> int main(){ int area; int perimeter; int a; //length a int b; //length b scanf("%d %d", &a, &b); area = a * b; perimeter = 2 * a + 2 * b; printf("%d %d\n",area,perimeter); return 0; }
1,740
memory_bytes
{'s_id': 's590920791', 'p_id': 'p02389', 'u_id': 'u092993594', 'date': '1513827584', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1740', 'code_size': '249'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 area;\n int perimeter;\n int a; //length a\n int b; //length b\n\n scanf(...
CDSS_81035
CDSS
#include <stdio.h> typedef struct { int group; int no; float time; } TIME; int main(void) { int i, j; TIME data[24]; TIME tmp; int n; for (i = 0; i < 24; i++){ scanf("%d%f", &data[i].no, &data[i].time); data[i].group = (i / 8) + 1; } for (i = 0; i < 24...
0
memory_bytes
{'s_id': 's290240277', 'p_id': 'p00138', 'u_id': 'u648926140', 'date': '1314955826', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '1112'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\ntypedef struct {\n int group;\n int no;\n float time;\n} TIME;\n\nint main(void)\n{\n int i, j;\n ...
CDSS_260363
CDSS
#include<stdio.h> int main(){ int s; scanf("%d",&s); printf("%d:%d:%d\n",s/3600,(s/60)%60,s%60); return 0; }
592
memory_bytes
{'s_id': 's871682539', 'p_id': 'p02390', 'u_id': 'u731027244', 'date': '1461146751', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '108'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 s;\nscanf(\"%d\",&s);\nprintf(\"%d:%d:%d\\n\",s/3600,(s/60)%60,s%60);\nreturn 0;\n}\nPredict its m...
CDSS_92926
CDSS
#include <stdio.h> int main(){ int d,c,sum; scanf("%d %d",&d,&c); sum=c*d; printf("%d\n",sum); return 0; }
596
memory_bytes
{'s_id': 's621522923', 'p_id': 'p00290', 'u_id': 'u955830252', 'date': '1431146440', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '123'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 d,c,sum;\n\n scanf(\"%d %d\",&d,&c);\n sum=c*d;\n printf(\"%d\\n\",sum);\n return 0...
CDSS_304641
CDSS
#include<stdio.h> int main(){ int a,b,c,i,cou=0; scanf("%d %d %d",&a,&b,&c); for(i=a;i<=b;i++){ if((c%i)==0)cou++; }; printf("%d\n",cou); return 0; }
596
memory_bytes
{'s_id': 's070525279', 'p_id': 'p02398', 'u_id': 'u806727497', 'date': '1447753184', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '151'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,i,cou=0;\nscanf(\"%d %d %d\",&a,&b,&c);\nfor(i=a;i<=b;i++){\nif((c%i)==0)cou++;\n};\nprintf(...
CDSS_645598
CDSS
a;main(b){scanf("%d%d",&a,&b);printf("%d",a-(a>b));}
128
memory_bytes
{'s_id': 's264797525', 'p_id': 'p03359', 'u_id': 'u657913472', 'date': '1526420670', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '52'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\na;main(b){scanf(\"%d%d\",&a,&b);printf(\"%d\",a-(a>b));}\nPredict its memory footprint.", "role": "user" }, { "content": "...
CDSS_39402
CDSS
#include <stdio.h> int main(void) { int n; int m = 100000; int i; scanf("%d", &n); for (i = 0; i < n; i++){ m *= 1.05; m = (m % 1000 == 0 ? m : (m - m % 1000) + 1000); } printf("%d\n", m); return (0); }
592
memory_bytes
{'s_id': 's424040499', 'p_id': 'p00007', 'u_id': 'u875131962', 'date': '1410506458', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '255'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 int m = 100000;\n int i;\n\n scanf(\"%d\", &n);\n\n for (i = 0; i < ...
CDSS_236244
CDSS
#include <stdio.h> #include <math.h> int main(){ int i,n,s[1000]; double h,sum; while(1){ scanf("%d",&n); if(!n) break; sum = 0; h = 0; for(i=0;i<n;i++){ scanf("%d",&s[i]); sum += s[i]; } sum /= n; ...
2,044
memory_bytes
{'s_id': 's080865678', 'p_id': 'p02381', 'u_id': 'u728027937', 'date': '1591194034', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '496'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(){\n int i,n,s[1000];\n double h,sum;\n \n while(1){\n\n scanf(\"...
CDSS_626543
CDSS
#include <stdio.h> #include <stdlib.h> int main(void){ char S[100]; long long int K, i, x=0; scanf("%s", &S); scanf("%lld", &K); for(i=0; i<K; i++){ if(S[i] - '1' != 0){ printf("%c\n", S[i]); x = 1; break; } } if(x == 0){ printf("1\n"); } return 0; }
128
memory_bytes
{'s_id': 's433993238', 'p_id': 'p03282', 'u_id': 'u570124150', 'date': '1534644481', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '298'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(void){\n char S[100]; long long int K, i, x=0;\n scanf(\"%s\", &S);\n scanf(\"%...
CDSS_646341
CDSS
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #include<stdbool.h> typedef long long ll; typedef long double ld; #define rep(i,l,r)for(ll i=(l);i<(r);i++) #define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k)) #define INF (1LL<<60) #define MOD1 1000000007 #define MAX_N (1 << 17) void swap(ll *a, ll...
128
memory_bytes
{'s_id': 's992336342', 'p_id': 'p03361', 'u_id': 'u004279520', 'date': '1584371643', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1974'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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#include<stdbool.h>\ntypedef long long ll;\ntypedef long ...
CDSS_190812
CDSS
#include<stdio.h> int search(int A[],int s,int key){ int i=0; A[s] = key; while(A[i]!=key)i++; return i!=s; } int main(){ int i,n,m[10000+1],q,key,sum=0; scanf("%d",&n); for(i=0;i<n;i++)scanf("%d",&m[i]); scanf("%d",&q); for(i=0;i<q;i++) { scanf("%d",&key); if(search(m,n,key))sum++;...
2,104
memory_bytes
{'s_id': 's869972779', 'p_id': 'p02267', 'u_id': 'u453977932', 'date': '1576736073', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '365'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 search(int A[],int s,int key){\n int i=0;\n A[s] = key;\n while(A[i]!=key)i++;\n return i!=s;\n}\nint mai...
CDSS_280068
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; }
580
memory_bytes
{'s_id': 's944385062', 'p_id': 'p02392', 'u_id': 'u107427443', 'date': '1345736397', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '150'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int a,b,c;\n scanf(\"%d %d %d\",&a,&b,&c);\n if(a<b&&b<c){\n printf(\"Yes\\n\");\n }\n else{\n pr...
CDSS_143806
CDSS
#include <stdio.h> main(){ int N; int i,j,k,v; int A[1000]; scanf("%d",&N); for(i=0;i<N;i++){ scanf("%d",&A[i]); } for(i=0;i<N;i++){ printf("%d",A[i]); if(i!=N-1) printf(" "); } printf("\n"); for(i=1;i<N;i++){ v=A[i]; j=i-1; while(j>=0 && A[j]>v){ ...
608
memory_bytes
{'s_id': 's590021677', 'p_id': 'p02255', 'u_id': 'u809822290', 'date': '1428629290', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '492'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nmain(){\n \n int N;\n int i,j,k,v;\n int A[1000];\n \n scanf(\"%d\",&N);\n \n for(i=0;i<N;i++){\n sca...
CDSS_727614
CDSS
#include <stdio.h> int main(int argc, char const *argv[]) { char in; scanf("%c", &in ); if((in == 'a') || (in == 'i') ||(in=='u') || (in=='e') || (in == 'o')){ puts("vowel"); return 0; } puts("consonant"); return 0; }
128
memory_bytes
{'s_id': 's138407695', 'p_id': 'p03852', 'u_id': 'u746528249', 'date': '1564777884', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '241'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(int argc, char const *argv[]) {\n char in;\n\n scanf(\"%c\", &in );\n\n if((in == 'a') || (in == 'i'...
CDSS_521083
CDSS
#include <stdio.h> int main(){ int A,B; scanf("%d %d",&A,&B); (A>2*B)?printf("%d\n",A-2*B):printf("0\n"); return 0; }
128
memory_bytes
{'s_id': 's738113510', 'p_id': 'p02885', 'u_id': 'u205303994', 'date': '1571596249', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '127'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int A,B;\n scanf(\"%d %d\",&A,&B);\n (A>2*B)?printf(\"%d\\n\",A-2*B):printf(\"0\\n\");\n retur...
CDSS_378499
CDSS
#include <stdio.h> int main() { float d,t,s,r; scanf("%f %f %f", &d, &t, &s); r = d/s; if (r <= t) { printf("Yes"); } else { printf("No"); } return 0; }
1,740
memory_bytes
{'s_id': 's981515460', 'p_id': 'p02570', 'u_id': 'u929178552', 'date': '1598728422', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1740', '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>\n\nint main()\n{\n float d,t,s,r;\n scanf(\"%f %f %f\", &d, &t, &s);\n \n r = d/s;\n \n if (r <= ...
CDSS_365835
CDSS
#include<stdio.h> int main(void) { int a,n,sum=0,i=0; int counter[26] = {0}; /* ??¢???????????????????????°???????´????????????? */ char number = 0; char c = 97; while(scanf("%c",&number) != EOF) /* EOF?????§????????? */ { if(number - 'a' < 0) { sum = numbe...
540
memory_bytes
{'s_id': 's604177137', 'p_id': 'p02417', 'u_id': 'u862220432', 'date': '1492762607', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '540', 'code_size': '748'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n \nint main(void)\n{\n int a,n,sum=0,i=0;\n int counter[26] = {0};\n /* ??¢???????????????????????°???????...
CDSS_510505
CDSS
#include <stdio.h> int main(void) { char S[101], copy[101]; int number=0, count=0; int i; scanf("%s",S); while(S[number]!='\0'){ copy[number] = S[number]; number++; } for(i=0;i<number/2;i++){ if(S[i]!=copy[number-i-1])count++; } printf("%d\n",count); return 0; }
128
memory_bytes
{'s_id': 's358587262', 'p_id': 'p02836', 'u_id': 'u652760628', 'date': '1575857876', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '302'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n char S[101], copy[101];\n int number=0, count=0;\n int i;\n\n scanf(\"%s\",S);\n\n whil...
CDSS_446038
CDSS
#include<stdio.h> int main(){ int n,i; scanf("%d",&n); int a[n+1],b[n+1]; for(i=0;i<=n;i++) b[i]=0; for(i=1;i<n;i++){ scanf("%d",&a[i]); b[a[i]]++; } for(i=1;i<=n;i++) printf("%d\n",b[i]); return 0; }
3,284
memory_bytes
{'s_id': 's926279660', 'p_id': 'p02707', 'u_id': 'u917851778', 'date': '1587345746', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '3284', 'code_size': '233'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n,i;\n scanf(\"%d\",&n);\n int a[n+1],b[n+1];\n for(i=0;i<=n;i++)\n b[i]=0;\n for(i=1;i<n...
CDSS_706998
CDSS
#include<stdio.h> int main() { int a, b, c; scanf("%d %d %d", &a, &b, &c); if (a <= c && c <= b) { printf("Yes\n"); } else { printf("No\n"); } }
128
memory_bytes
{'s_id': 's486309434', 'p_id': 'p03719', 'u_id': 'u429843511', 'date': '1494723805', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '163'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main() {\n int a, b, c;\n scanf(\"%d %d %d\", &a, &b, &c);\n if (a <= c && c <= b) {\n printf(\"Yes\\n\...
CDSS_18093
CDSS
#include<stdio.h> int main(void) { int i, j; for (i = 1; i < 10; i++) { for (j = 1; j < 10; j++) { printf("%dx%d=%d\n", i, j, i*j); } } return 0; }
524
memory_bytes
{'s_id': 's982013856', 'p_id': 'p00000', 'u_id': 'u551438531', 'date': '1440737015', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '159'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void) {\n\tint i, j;\n\tfor (i = 1; i < 10; i++) {\n\t\tfor (j = 1; j < 10; j++) {\n\t\t\tprintf(\"%dx%d...
CDSS_403262
CDSS
#include <stdio.h> int main() { int count, leg; scanf("%d%d", &count, &leg); int i = 0; int sum = 0; int flag = 0; for (i = 0; i <= count; i++) { sum = 2 * i + 4 * (count - i); if (sum == leg) { flag = 1; break; } } if (flag == 1) { puts("Yes"); } else { puts("No"); ...
1,660
memory_bytes
{'s_id': 's578116365', 'p_id': 'p02640', 'u_id': 'u660007557', 'date': '1592184166', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1660', '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#include <stdio.h>\n\nint main() {\n int count, leg;\n scanf(\"%d%d\", &count, &leg);\n int i = 0;\n int sum = 0;\n int flag = 0;...
CDSS_484273
CDSS
#include<stdio.h> int main(){ int n; int r; scanf("%d %d", &n, &r); if(n >= 10) printf("%d\n", r); else printf("%d\n", r + 100*(10 - n)); return 0; }
128
memory_bytes
{'s_id': 's472633736', 'p_id': 'p02765', 'u_id': 'u253584031', 'date': '1586487266', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '166'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int n;\n int r;\n\n scanf(\"%d %d\", &n, &r);\n\n if(n >= 10) printf(\"%d\\n\", r);\n\n else p...
CDSS_701497
CDSS
#include<stdio.h> #include<stdlib.h> int main(){ int i,j,n,s[100],max,min,ans; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&s[i]); } max = 0; min = 1000; for(j=0;j<n;j++){ if(s[j]>=max){ max=s[j]; } if(s[j]<=min){ min = s[j]; } } ans=max-min; printf("%d",ans); }
128
memory_bytes
{'s_id': 's371743382', 'p_id': 'p03694', 'u_id': 'u362884401', 'date': '1500162876', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '319'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint main(){\n int i,j,n,s[100],max,min,ans;\n\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\n ...
CDSS_529224
CDSS
#include <stdio.h> int main() { long long n, k, q; long long a; long long p[100010] = {}; scanf("%lld %lld %lld", &n, &k, &q); for (int i = 0; i < q; i++) { scanf("%lld", &a); p[a]++; } for (int i = 1; i <= n; i++) { if (p[i] > q - k) { pri...
1,280
memory_bytes
{'s_id': 's370316029', 'p_id': 'p02911', 'u_id': 'u857484987', 'date': '1568597315', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '1280', 'code_size': '426'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 long long n, k, q;\n long long a;\n long long p[100010] = {};\n scanf(\"%lld %lld %lld...
CDSS_737559
CDSS
#include <stdio.h> int main(){ int a,b,h; scanf("%d%d%d", &a, &b, &h); printf("%d\n", (a+b)*h/2); return 0; }
128
memory_bytes
{'s_id': 's068836925', 'p_id': 'p03997', 'u_id': 'u790142428', 'date': '1474755633', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '127'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int a,b,h;\n scanf(\"%d%d%d\", &a, &b, &h);\n printf(\"%d\\n\", (a+b)*h/2);\n return 0...
CDSS_656245
CDSS
a;main(){printf("%d",atoi(gets(&a))/3);}
128
memory_bytes
{'s_id': 's535424809', 'p_id': 'p03423', 'u_id': 'u283869437', 'date': '1520223224', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '40'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\na;main(){printf(\"%d\",atoi(gets(&a))/3);}\nPredict its memory footprint.", "role": "user" }, { "content": "128.0", "r...
CDSS_350911
CDSS
#include <stdio.h> int main() { int i,j,n,m,x; int a[100][100],b[100]; scanf("%d %d",&n,&m); for(i=0;i<n;i++){ for(j=0;j<m;j++){ scanf("%d",&a[i][j]); } } for(j=0;j<m;j++){ scanf("%d",&b[j]); } for(i=0;i<n;i++){ x = 0;...
640
memory_bytes
{'s_id': 's140173520', 'p_id': 'p02410', 'u_id': 'u791203787', 'date': '1490197435', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '437'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 i,j,n,m,x;\n int a[100][100],b[100];\n \n scanf(\"%d %d\",&n,&m);\n \n ...
CDSS_114705
CDSS
#include <stdio.h> #include <math.h> #define EPS 1e-7 #define ENSYURITU 3.1415926535897932384626433832795028841 int main(void) { int n; int i,j,k; int count,max; int loopmax; double x[300],y[300]; double cx,cy; while(scanf("%d",&n)==1 && n!=0) { for(i=0;i<n;i++)scanf("%lf%lf",&x[i...
2,120
memory_bytes
{'s_id': 's534482153', 'p_id': 'p00713', 'u_id': 'u952081851', 'date': '1527765946', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3490', 'memory': '2120', 'code_size': '843'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 EPS 1e-7\n\n#define ENSYURITU 3.1415926535897932384626433832795028841\n\nint main(voi...
CDSS_474571
CDSS
#include<stdio.h> int main(void){ int K[32]={1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int k=0; scanf("%d",&k); printf("%d",K[k-1]); return 0; }
128
memory_bytes
{'s_id': 's435928621', 'p_id': 'p02741', 'u_id': 'u167847014', 'date': '1584867597', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '222'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int K[32]={1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, ...
CDSS_715892
CDSS
#include <stdio.h> int main() { int x, i; scanf("%d", &x); for (i = 1; i * (i + 1) / 2 < x; i++) ; printf("%d\n", i); return 0; }
128
memory_bytes
{'s_id': 's503572269', 'p_id': 'p03779', 'u_id': 'u000120715', 'date': '1569570896', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '139'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n\tint x, i;\n\n\tscanf(\"%d\", &x);\n\tfor (i = 1; i * (i + 1) / 2 < x; i++)\n\t\t;\n\tprintf(\"%d...
CDSS_548547
CDSS
// abc134c: Exception Handling #include <stdio.h> #include <stdlib.h> #define MAX 200000 int desc(const void *a, const void *b) { return *(int *)b - *(int *)a; } int main(){ int n,a[MAX],s[MAX]; scanf("%d",&n); for(int i=0;i<n;i++){ scanf("%d,",a+i); s[i] = a[i]; } qsort(s,n,sizeof(int),desc); ...
3,120
memory_bytes
{'s_id': 's621121416', 'p_id': 'p02971', 'u_id': 'u525065967', 'date': '1563675753', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '66', 'memory': '3120', 'code_size': '477'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// abc134c: Exception Handling\n#include <stdio.h>\n#include <stdlib.h>\n#define MAX 200000\n\nint desc(const void *a, const void *b) ...
CDSS_42374
CDSS
#include<stdio.h> int main(void){ int i,j,k,n,judge ; int prime_array[1000000] = {2,3}; while(scanf("%d",&n)==1){ if (n<=1) { printf("%d\n",0); } else if (n ==2){ printf("%d\n",1); } else{ k = 2; for(j=5;j<=n;j+=2){ judge = 1; for(i=0;prime_array[i]*prime_array[i]<=j;i++){ if(j%prime_...
4,508
memory_bytes
{'s_id': 's828926889', 'p_id': 'p00009', 'u_id': 'u224288634', 'date': '1444123968', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '770', 'memory': '4508', 'code_size': '469'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\tint i,j,k,n,judge ;\n\tint prime_array[1000000] = {2,3};\n\twhile(scanf(\"%d\",&n)==1){\n\t\ti...
CDSS_266046
CDSS
#include <stdio.h> int main(void){ int a,b; scanf("%d %d",&a,&b); if(a<b){ printf("a < b\n"); } else if(a>b){ printf("a > b\n"); } else{ printf("a == b\n"); } return 0; }
580
memory_bytes
{'s_id': 's215718541', 'p_id': 'p02391', 'u_id': 'u323193773', 'date': '1413602318', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '185'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\tif(a<b){\n\t\tprintf(\"a < b\\n\");\n\t}\n\telse if(a>b)...
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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint a, b, d, r;\n\tdouble f;\n\tscanf(\"%d %d\", &a, &b);\n\td = a/b;\n\tr = a%b;\n\tf = (do...
CDSS_675434
CDSS
#include <stdio.h> int main() { char s[4]; scanf("%c%c%c%c", s+0, s+1, s+2, s+3); if ((s[0] == s[1]) && (s[1] == s[2])) printf("Yes\n"); else if ((s[1] == s[2]) && (s[2] == s[3])) printf("Yes\n"); else printf("No\n"); return 0; }
128
memory_bytes
{'s_id': 's096263716', 'p_id': 'p03543', 'u_id': 'u437068347', 'date': '1512332682', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '255'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n char s[4];\n scanf(\"%c%c%c%c\", s+0, s+1, s+2, s+3);\n if ((s[0] == s[1]) && (s[1] == ...
CDSS_384154
CDSS
#include<stdio.h> #include<stdlib.h> int main(void){ int n; int i,j,u; int ans=0; scanf("%d",&n); int L[n]; for(i=0;i<n;i++) scanf("%d",&L[i]); for(i=0;i<n-2;i++) for(j=i+1;j<n-1;j++) for(u=j+1;u<n;u++) if(L[i]>abs(L[j]-L[u])&&L[i]<L[j]+L[u]&&L[i]!=L[j]&&L[j]!=L[u]&&L[i]!=L[u]){ ans+...
1,732
memory_bytes
{'s_id': 's384208905', 'p_id': 'p02583', 'u_id': 'u987692205', 'date': '1597521690', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', 'code_size': '371'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\nint main(void){\n\tint n;\n\tint i,j,u;\n\tint ans=0;\n\n\tscanf(\"%d\",&n);\n\n\tint L[n];\n\t...
CDSS_67372
CDSS
i,a;main(n){for(;i=~scanf("%d",&n);printf("%d\n",a))for(i=a=1;i<=n;)a+=i++;}
596
memory_bytes
{'s_id': 's272258998', 'p_id': 'p00057', 'u_id': 'u752673456', 'date': '1353566970', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '76'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\ni,a;main(n){for(;i=~scanf(\"%d\",&n);printf(\"%d\\n\",a))for(i=a=1;i<=n;)a+=i++;}\nPredict its memory footprint.", "role": "user" ...
CDSS_607889
CDSS
#include <stdio.h> int main() { int N,sum = 0,h,a; int p[10]; scanf("%d",&N); for(int i = 0;i < N;i++) { scanf("%d",&p[i]); } a = p[0]; for(int j = 0;j < N;j++) { if(a < p[j])a = p[j]; sum += p[j]; } sum -= (a / 2); printf("%d",sum); return 0;...
256
memory_bytes
{'s_id': 's968209308', 'p_id': 'p03207', 'u_id': 'u291080309', 'date': '1568254061', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '256', '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\nint main()\n{\n int N,sum = 0,h,a;\n int p[10];\n scanf(\"%d\",&N);\n for(int i = 0;i < N;i++)\n ...
CDSS_213783
CDSS
#include<stdio.h> #define MAX 100000 struct Card{ char s; int v; }; struct Card L[MAX], R[MAX]; void merge(struct Card [], int, int, int, int); void m_sort(struct Card [], int , int, int); int partition(struct Card [], int , int , int ); void quickSort(struct Card [], int ,int , int ); int main(){ int i,...
4,116
memory_bytes
{'s_id': 's802431931', 'p_id': 'p02277', 'u_id': 'u889908059', 'date': '1533761973', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '4116', 'code_size': '2439'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 100000\n\nstruct Card{\n char s;\n int v;\n};\n\nstruct Card L[MAX], R[MAX];\n\nvoid merge(struct Car...
CDSS_136219
CDSS
#include <stdio.h> void DFS(void); void DFS_Visit(int ); #define WHITE 0 #define BLACK 1 #define GRAY 2 #define MAX 101 int G[MAX][MAX]; int vertex[MAX],edge[MAX]; int color[MAX]; int time,n; int d[MAX],f[MAX]; /*vの最初の時間、終了の時間*/ int main() { int i,j; scanf("%d",&n); for(i=1;i<=n;i++) { scanf("%d%d",&vertex[i],&e...
636
memory_bytes
{'s_id': 's437031641', 'p_id': 'p02238', 'u_id': 'u764706845', 'date': '1404995049', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '837'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nvoid DFS(void);\nvoid DFS_Visit(int );\n#define WHITE 0\n#define BLACK 1\n#define GRAY 2\n#define MAX 101\nint G[M...
CDSS_582567
CDSS
#include <stdio.h> int main(void) { int a, b, c, d, e, k; scanf("%d %d %d %d %d %d", &a, &b, &c, &d, &e, &k); puts(e - a <= k ? "Yay!" : ":("); return 0; }
128
memory_bytes
{'s_id': 's659677267', 'p_id': 'p03075', 'u_id': 'u679585052', 'date': '1567340528', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '161'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 a, b, c, d, e, k;\n\tscanf(\"%d %d %d %d %d %d\", &a, &b, &c, &d, &e, &k);\n\tputs(e - ...
CDSS_519378
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) :...
128
memory_bytes
{'s_id': 's639022088', 'p_id': 'p02881', 'u_id': 'u091870478', 'date': '1587698407', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '128', 'code_size': '1667'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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_672863
CDSS
#include <stdio.h> int main(){ int i, j, k, N, A[201]; int count = 0; int minimum = 30; scanf("%d", &N); for (k = 0; k <= N-1; k++){ scanf("%d", &A[k]); } for (j=0; j<=N-1; j++){ for (i=1; i<=30; i++){ if (A[j] % 2 == 0){ count += 1; ...
128
memory_bytes
{'s_id': 's168482799', 'p_id': 'p03494', 'u_id': 'u275934251', 'date': '1539615725', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '505'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int i, j, k, N, A[201];\n int count = 0;\n int minimum = 30;\n scanf(\"%d\", &N);\n ...
CDSS_395308
CDSS
#include <stdio.h> int main(){ int a, x; scanf("%d", &a); x = a + a*a + a*a*a; printf("%d\n", x); return 0; }
1,732
memory_bytes
{'s_id': 's606412023', 'p_id': 'p02621', 'u_id': 'u571537830', 'date': '1593306132', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1732', '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>\nint main(){\n int a, x;\n\n scanf(\"%d\", &a);\n\n x = a + a*a + a*a*a;\n\n printf(\"%d\\n\", x);\n\n ...
CDSS_660994
CDSS
#include <stdio.h> int main () { int a, b, c, x, i, j, k, cnt=0; scanf("%d%d%d%d", &a, &b, &c, &x); for (i=0; i <= a && 500*i<=x; i++) { for (j=0; j <= b && 100*j+500*i<=x; j++) { for (k=0; k <= c && 50*k+100*j+500*i<=x; k++) { if (500*i+100*j+50*...
128
memory_bytes
{'s_id': 's178048269', 'p_id': 'p03448', 'u_id': 'u476418095', 'date': '1521751206', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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\nint main ()\n{\n int a, b, c, x, i, j, k, cnt=0;\n scanf(\"%d%d%d%d\", &a, &b, &c, &x);\n for (i=0; i <...
CDSS_506504
CDSS
#include <stdio.h> int main(){ int a,b; scanf("%d%d", &a,&b); printf("%d", 6-a-b); return 0; }
1,712
memory_bytes
{'s_id': 's604763081', 'p_id': 'p02829', 'u_id': 'u858806530', 'date': '1593792936', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1712', 'code_size': '102'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int a,b;\n scanf(\"%d%d\", &a,&b);\n printf(\"%d\", 6-a-b);\n return 0;\n}\nPredict its memory f...
CDSS_623343
CDSS
#include <stdio.h> int main(){ int n, i; scanf("%d %d", &n, &i); printf("%d\n", n-i+1); return 0; }
128
memory_bytes
{'s_id': 's521122626', 'p_id': 'p03272', 'u_id': 'u167161639', 'date': '1544283915', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '111'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int n, i;\n\n scanf(\"%d %d\", &n, &i);\n\n printf(\"%d\\n\", n-i+1);\n\n return 0;\n}\nPredic...
CDSS_434108
CDSS
#include<stdio.h> int main(){ int a,b,c,d; scanf("%d %d %d %d",&a ,&b ,&c ,&d); int i; for(i=0;i<100;i++){ c=c-b; if(c<=0){ printf("Yes"); goto lavel; } a=a-d; if(a<=0){ printf("No"); goto lavel; } } ...
1,732
memory_bytes
{'s_id': 's779749677', 'p_id': 'p02700', 'u_id': 'u176260124', 'date': '1587950641', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', 'code_size': '343'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int a,b,c,d;\n scanf(\"%d %d %d %d\",&a ,&b ,&c ,&d);\n int i;\n for(i=0;i<100;i++){\n ...
CDSS_128690
CDSS
#include <stdio.h> int main(void) { int P; if (scanf("%d", &P) != 1) return 1; printf("%d\n", P - P % 500); return 0; }
2,124
memory_bytes
{'s_id': 's579663272', 'p_id': 'p02137', 'u_id': 'u543521645', 'date': '1578039509', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2124', 'code_size': '126'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint P;\n\tif (scanf(\"%d\", &P) != 1) return 1;\n\tprintf(\"%d\\n\", P - P % 500);\n\treturn...
CDSS_532295
CDSS
#include <stdio.h> int main (void) { char S[4], T[4]; int i; int a = 0; scanf ("%s", S); scanf ("%s", T); for (i = 0; i < 3; i++) { if (S[i] == T[i]) { a++; } } printf ("%d", a); }
128
memory_bytes
{'s_id': 's290832513', 'p_id': 'p02921', 'u_id': 'u724573196', 'date': '1567365727', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '214'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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[4], T[4];\n int i;\n int a = 0;\n\n scanf (\"%s\", S);\n scanf (\"%s\", T);\n\n ...
CDSS_19382
CDSS
#include<stdio.h> int main(){ int i,j; for(i=1;i<=9;i++) { for(j=1;j<=9;j++) { printf("%dx%d=%d\n",i,j,i*j); } } return 0; }
524
memory_bytes
{'s_id': 's806505817', 'p_id': 'p00000', 'u_id': 'u098423786', 'date': '1493180996', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '144'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tint i,j;\n\t\n\tfor(i=1;i<=9;i++)\n\t{\n\t\tfor(j=1;j<=9;j++)\n\t\t{\n\tprintf(\"%dx%d=%d\\n\",i,j...
CDSS_281756
CDSS
#include <stdio.h> int main(void){ int a, b, c, temp; scanf("%d %d %d", &a, &b, &c); if(a > b){ temp = a; a = b; b = temp; } if(b > c){ temp = b; b = c; c = temp; } if(a > b){ temp = a; a = b; b = temp; } prin...
596
memory_bytes
{'s_id': 's206306676', 'p_id': 'p02393', 'u_id': 'u738270472', 'date': '1423724803', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '362'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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, temp;\n scanf(\"%d %d %d\", &a, &b, &c);\n if(a > b){\n temp = ...
CDSS_293670
CDSS
#include<stdio.h> main(){ int w, h; int x, y, r; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); if(((x - r) >= 0 && (x + r) <= w) && ((y - r) >= 0 && (y + r) <= h)){ printf("Yes\n"); } else{ printf("No\n"); } }
2,052
memory_bytes
{'s_id': 's276917153', 'p_id': 'p02394', 'u_id': 'u744477533', 'date': '1559883020', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '224'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nmain(){\n\tint w, h;\n\tint x, y, r;\n\n\tscanf(\"%d %d %d %d %d\", &w, &h, &x, &y, &r);\n\n\tif(((x - r) >= 0 &&...
CDSS_343857
CDSS
#include <stdio.h> int main(void){ int n; int i; scanf("%d",&n); int a[n]; for (i = 0;i<n;i++){ scanf ("%d",&a[i]); } for (i = n-1;i > 0;i--){ printf("%d ",a[i]); } printf("%d\n",a[0]); return 0; }
2,068
memory_bytes
{'s_id': 's592646213', 'p_id': 'p02407', 'u_id': 'u636823961', 'date': '1595577481', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2068', 'code_size': '213'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 int i;\n scanf(\"%d\",&n);\nint a[n];\n\nfor (i = 0;i<n;i++){\nscanf (\"%d\"...
CDSS_727967
CDSS
#include<stdio.h> int main(void){ char x; scanf("%c",&x); if(x=='a'||x=='i'||x=='u'||x=='e'||x=='o'){ printf("vowel\n"); }else{ printf("consonant\n"); } return 0; }
128
memory_bytes
{'s_id': 's358572778', 'p_id': 'p03852', 'u_id': 'u462946613', 'date': '1481422483', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '205'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 char x;\n scanf(\"%c\",&x);\n if(x=='a'||x=='i'||x=='u'||x=='e'||x=='o'){\n print...
CDSS_22870
CDSS
#include<stdio.h> int main() { int i,j,n[10],k; for(i=0;i<10;i++) { scanf("%d",&n[i]); } for(i=0;i<10;i++) for(j=i+1;j<10;j++) { if(n[j]>n[i]) { k=n[j]; n[j]=n[i]; n[i]=k; } } ...
600
memory_bytes
{'s_id': 's206033189', 'p_id': 'p00001', 'u_id': 'u011621222', 'date': '1449066880', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '386'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int i,j,n[10],k;\n for(i=0;i<10;i++)\n {\n scanf(\"%d\",&n[i]);\n }\n for(i=...
CDSS_241194
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': 's912009916', 'p_id': 'p02388', 'u_id': 'u729826699', 'date': '1445327381', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '89'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\nint x;\nscanf(\"%d\",&x);\nprintf(\"%d\\n\",x*x*x);\nreturn 0;}\nPredict its memory footprint.", ...
CDSS_531115
CDSS
#include<stdio.h> int main(){ int N,ans=0; scanf("%d",&N); int A[N],B[N-1]; for (int i = 0; i < N-1; i++){ scanf("%d",&B[i]); } A[N-1] = B[N-2]; for (int i = N-2; 0 < i; i--) { if (B[i] > B[i-1]){ A[i]=B[i-1]; ans +=A[i]; }else{ A[i]=B[i]; ans +=A[i]; } } A[0] = B[0]; printf("%d",ans+A[0...
1,728
memory_bytes
{'s_id': 's283180108', 'p_id': 'p02917', 'u_id': 'u555143073', 'date': '1594963110', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1728', 'code_size': '343'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\nint N,ans=0;\nscanf(\"%d\",&N);\n\nint A[N],B[N-1];\n\nfor (int i = 0; i < N-1; i++){\n scanf(\...
CDSS_222885
CDSS
#include<stdio.h> #include<stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL Node root; Node treeMinimum(Node x){ while(x->left!=NIL){ x=x->left; } return x; } Node treeMaximum(Node x){ while(x->right !=N...
20,448
memory_bytes
{'s_id': 's816459008', 'p_id': 'p02284', 'u_id': 'u524202128', 'date': '1531747190', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '290', 'memory': '20448', 'code_size': '1962'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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_455329
CDSS
#include<stdio.h> int main(void){ unsigned long long int n,tmp,three,five,fifteen; scanf("%llu",&n); tmp=(1+n)*n/2; three=n/3; five=n/5; fifteen=n/15; three=(1+three)*three/2*3; five=(1+five)*five/2*5; fifteen=(1+fifteen)*fifteen/2*15; printf("%llu",tmp-three-five+fifteen); return 0; }
1,704
memory_bytes
{'s_id': 's364138374', 'p_id': 'p02712', 'u_id': 'u323310954', 'date': '1586895489', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1704', 'code_size': '312'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 unsigned long long int n,tmp,three,five,fifteen;\n scanf(\"%llu\",&n);\n \n tmp=(1+n)*n/2;\...
CDSS_584925
CDSS
#include<stdio.h> int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a==b&&b==c){ printf("Yes"); }else{ printf("No"); } }
128
memory_bytes
{'s_id': 's540261809', 'p_id': 'p03079', 'u_id': 'u596200441', 'date': '1554408692', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main()\n{\n\tint a,b,c;\n\tscanf(\"%d %d %d\",&a,&b,&c);\n\tif(a==b&&b==c){\n\t\tprintf(\"Yes\");\n\t}else{\n\t...