identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_517056
CDSS
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <inttypes.h> #include <limits.h> #include <ctype.h> #include <stdint.h> #include <string.h> #include <wchar.h> #include <math.h> #define N_MAX (100) #define P_MAX (100) #define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1) #define MIN(a, b) ((a) < (b) ? (a...
4,224
memory_bytes
{'s_id': 's500934322', 'p_id': 'p02873', 'u_id': 'u615782628', 'date': '1572844884', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '4224', 'code_size': '12042'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdbool.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <inttypes.h>\n#include <limits.h>\n#include <ctype.h>\n#includ...
CDSS_290601
CDSS
#include<stdio.h> int main(){ int W,H,x,y,r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(W>= (x+r) && 0<=(x-r) && H>= (y+r) && 0<=(y-r) ){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }
584
memory_bytes
{'s_id': 's186423405', 'p_id': 'p02394', 'u_id': 'u028210388', 'date': '1472452768', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '215'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n\nint main(){\n\tint W,H,x,y,r;\n\n\t\t\n\tscanf(\"%d %d %d %d %d\",&W,&H,&x,&y,&r);\n\t\n\tif(W>= (x+r) && 0<=(x...
CDSS_188548
CDSS
#include <stdio.h> int main(){ int an,bn,i,j,count=0; scanf("%d",&an); int A[an+1]; for(i=0;i<an;i++) scanf("%d",&A[i]); scanf("%d",&bn); int B[bn+1]; for(i=0;i<bn;i++) scanf("%d",&B[i]); //search for(i=0;i<bn;i++){ j=0; A[an]=B[i]; while...
636
memory_bytes
{'s_id': 's489356319', 'p_id': 'p02267', 'u_id': 'u681371370', 'date': '1494375644', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '472'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 an,bn,i,j,count=0;\n scanf(\"%d\",&an);\n int A[an+1];\n for(i=0;i<an;i++)\n ...
CDSS_706601
CDSS
#include<stdio.h> int main() { int a,b,c; scanf("%d%d%d",&a,&b,&c); if((a>=-100 && a<=100) && (b>=-100 && b<=100) && (c>=-100 && c<=100)){ if(c>=a && c<=b){ printf("Yes\n"); } else{ printf("No\n"); } } return 0; }
128
memory_bytes
{'s_id': 's244339414', 'p_id': 'p03719', 'u_id': 'u018679195', 'date': '1534484308', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '291'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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;\n scanf(\"%d%d%d\",&a,&b,&c);\n if((a>=-100 && a<=100) && (b>=-100 && b<=100)...
CDSS_213801
CDSS
#include<stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card{ char suit; int value; }; struct Card L[MAX/2 + 2], R[MAX/2 + 2]; void merge(struct Card A[], int n, int left, int mid, int right){ int i, j, k; int n1 = mid - left; int n2 = right -mid; for(i=0; i<n1; i++) L[i] = A[left+i]; f...
4,072
memory_bytes
{'s_id': 's751827343', 'p_id': 'p02277', 'u_id': 'u892925213', 'date': '1533476477', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '4072', 'code_size': '1740'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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#define SENTINEL 2000000000\n\nstruct Card{\n char suit;\n int value;\n};\n\nstruct Card L[MA...
CDSS_319580
CDSS
#include<stdio.h> int main(void){//float?????????double??? int a,b,r,i; char op; i=1; while(i=1){ scanf("%d %c %d",&a,&op,&b);//??????????????¨??????%c?????§char??§??£?¨? if(op=='+'){ r=a+b; printf("%d\n",r); } if(op=='-'){ r=a-b; printf("%d\n",r); } if(op=='*'){ r=a*b; printf("%d\n",r); } if(op=='/'){ r=a/b; printf("%...
1,816
memory_bytes
{'s_id': 's236647030', 'p_id': 'p02401', 'u_id': 'u705537935', 'date': '1513816852', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1816', 'code_size': '375'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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){//float?????????double???\nint a,b,r,i;\nchar op;\ni=1;\nwhile(i=1){\nscanf(\"%d %c %d\",&a,&op,&b);...
CDSS_70261
CDSS
#include <stdio.h> #define MAX 7200 void out(int s){ int f, m; f = s /3600; s %= 3600; m = s /60; s %= 60; printf("0%d:", f); printf(m / 10 > 0 ?"%d:" :"0%d:", m); printf(s / 10 > 0 ?"%d\n" : "0%d\n", s); } int main(){ int f, m, s, i, j, junk; while(1){ scanf("%d%d%d", &f, &m, &s); if(f =...
600
memory_bytes
{'s_id': 's894748071', 'p_id': 'p00074', 'u_id': 'u709185111', 'date': '1392541058', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '455'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define MAX 7200\n\nvoid out(int s){\n int f, m;\n f = s /3600;\n s %= 3600;\n m = s /60;\n s %= 60;\n pri...
CDSS_112672
CDSS
// Aizu 1046: Ghost Buster! // 2017.9.6 bal4u@uu #include <stdio.h> #include <string.h> #define QMAX 100000 typedef struct { int t, ax, ay, bx, by; } Q; Q q[QMAX+3], *top, *end, *qend = q + QMAX; int gm[9][2] = { {0},{0},{1,0},{0},{0,-1},{0,0},{0,1},{0},{-1,0} }; int m[4][2] = { {1,0},{-1,0},{0,1},{0,-1} }; char ma...
4,168
memory_bytes
{'s_id': 's635513385', 'p_id': 'p00632', 'u_id': 'u847467233', 'date': '1504654821', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '4168', 'code_size': '1867'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// Aizu 1046: Ghost Buster!\n// 2017.9.6 bal4u@uu\n\n#include <stdio.h>\n#include <string.h>\n\n#define QMAX 100000\ntypedef struct { ...
CDSS_437413
CDSS
#include <stdio.h> #include <math.h> int main(void) { int r; scanf("%d", &r); printf("%lf", r * 2 * M_PI); return 0; }
1,672
memory_bytes
{'s_id': 's690758333', 'p_id': 'p02705', 'u_id': 'u773833122', 'date': '1596493948', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1672', '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#include <math.h>\nint main(void) {\n int r;\n scanf(\"%d\", &r);\n printf(\"%lf\", r * 2 * M_PI);\n return 0;...
CDSS_64032
CDSS
#include <stdio.h> int main(void) { double max, min, x, n; scanf("%lf", &x); max=x; min=x; while(scanf("%lf", &n)!=EOF){ if(min>n) min=n; if(max<n) max=n; } printf("%.1lf\n", max-min); return 0; }
652
memory_bytes
{'s_id': 's336469179', 'p_id': 'p00046', 'u_id': 'u356989804', 'date': '1465184190', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '652', '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\nint main(void) {\n\tdouble max, min, x, n;\n\t\n\tscanf(\"%lf\", &x);\n\tmax=x;\n\tmin=x;\n\t\n\twhile(scanf(\"%...
CDSS_722441
CDSS
#include<stdio.h> int main(){ int a, b, c, d; scanf("%d %d %d %d", &a, &b, &c, &d); if(a*b>c*d){ printf("%d\n", a * b); }else { printf("%d\n", c * d); } }
128
memory_bytes
{'s_id': 's227292082', 'p_id': 'p03826', 'u_id': 'u224085427', 'date': '1585889260', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '190'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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, d;\n scanf(\"%d %d %d %d\", &a, &b, &c, &d);\n if(a*b>c*d){\n printf(\"%...
CDSS_311086
CDSS
#include<stdio.h> int main(){ 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", d, r, f); return 0; }
1,812
memory_bytes
{'s_id': 's248607287', 'p_id': 'p02399', 'u_id': 'u179338582', 'date': '1511754409', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1812', 'code_size': '178'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tint a, b, d, r;\n\tdouble f;\n\tscanf(\"%d %d\", &a, &b);\n\td = a / b;\n\tr = a % b;\n\tf = (doub...
CDSS_319695
CDSS
#include <stdio.h> int main(int argc, char const *argv[]) { int a,b; char op; while(1){ scanf("%d %c %d",&a,&op,&b); if(op == '+'){ printf("%d\n",a + b); }else if(op == '-'){ printf("%d\n",a - b); }else if(op == '/'){ printf("%d\n",a / ...
2,036
memory_bytes
{'s_id': 's816229433', 'p_id': 'p02401', 'u_id': 'u984493706', 'date': '1524488709', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '470'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\n int a,b;\n char op;\n\n while(1){\n scanf(\"%d %c %...
CDSS_17809
CDSS
#include<stdio.h> int main(void){ int x,y; 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; }
520
memory_bytes
{'s_id': 's744462394', 'p_id': 'p00000', 'u_id': 'u452212317', 'date': '1429499909', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '520', 'code_size': '167'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 x,y;\n int i,j;\n\n for(i=1; i<10; i++){\n for(j=1; j<10; j++){\n printf(\"%dx%d...
CDSS_328308
CDSS
#include<stdio.h> int main(void) { int num, i, min, max = 0, n; long sum = 0; scanf("%d", &num); scanf("%d", &n); min = max = sum = n; for (i = 0; i < num - 1; i++) { scanf("%d", &n); sum += n; if (min > n) { min = n; } if (max < n) { max = n; } } printf("%d %d %ld\n", min, max, sum); ...
2,140
memory_bytes
{'s_id': 's549064097', 'p_id': 'p02402', 'u_id': 'u800226589', 'date': '1537853051', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '334'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint num, i, min, max = 0, n;\n\tlong sum = 0;\n\n\tscanf(\"%d\", &num);\n\tscanf(\"%d\", &n);\...
CDSS_305991
CDSS
#include<stdio.h> int main() { int a,b,c,i,r=0; scanf("%d%d%d",&a,&b,&c); if(a>b) { i=b; b=a; a=i; } for(i=a; i<=b; i++) { if(c%i==0) r+=1; } printf("%d\n",r); return 0; }
596
memory_bytes
{'s_id': 's962511137', 'p_id': 'p02398', 'u_id': 'u710890480', 'date': '1495103120', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '230'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int a,b,c,i,r=0;\n scanf(\"%d%d%d\",&a,&b,&c);\n if(a>b)\n {\n i=b;\n b=a;\n a...
CDSS_605866
CDSS
#include<stdio.h> int main() { int N, H, W, i, tmp1, tmp2; int count = 0; fscanf(stdin, "%d %d %d", &N, &H, &W); for(i = 0; i < N; i++){ fscanf(stdin, "%d %d", &tmp1, &tmp2); if( (H <= tmp1) && (W <= tmp2)) count++; } fprintf(stdout, "%d\n", count); return 0; }
128
memory_bytes
{'s_id': 's601853341', 'p_id': 'p03193', 'u_id': 'u816645498', 'date': '1545534451', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '320'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int N, H, W, i, tmp1, tmp2;\n int count = 0;\n fscanf(stdin, \"%d %d %d\", &N, &H, &W);\...
CDSS_350986
CDSS
#include<stdio.h> int main(void){ int n,m,i,j,num,tmp; int *B,**A; scanf("%d %d",&n,&m); B = (int *)malloc(sizeof(int)*m); A = (int **)malloc(sizeof(int *)*n); for(i=0;i<n;i++){ A[i] = (int *)malloc(sizeof(int )*m); } for(i=0;i<n;i++){ ...
640
memory_bytes
{'s_id': 's162188495', 'p_id': 'p02410', 'u_id': 'u630116972', 'date': '1494394561', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '799'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,m,i,j,num,tmp;\n int *B,**A;\n scanf(\"%d %d\",&n,&m);\n B = ...
CDSS_400092
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define ll long long #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<<62)-(1LL<<31)) #define max(p,q)((p)>(q)?(p):(q)) #define min(p,q)((p)<(q)?(p):(q)) #define bit(n,m)(((n)>>(m))&1)...
1,688
memory_bytes
{'s_id': 's787628456', 'p_id': 'p02628', 'u_id': 'u382163500', 'date': '1592777815', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1688', 'code_size': '944'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 ll long long\n#define rep(i,l,r)for(ll i=(l);...
CDSS_105741
CDSS
#include<stdio.h> #include<string.h> int map[5][1005][1005]; int main(){ int i,j,h,m,n,k; int a,b,c,d,x,y,z; char s[1005]; memset(map,0,sizeof(map)); scanf("%d%d%d",&m,&n,&k); for(i=0;i<m;i++){ scanf("%s",s); for(j=0;j<n;j++){ for(h=0;h<3;h++) map[h][i+1][j+1]=map[h][i][j+1]+map[h][i+1][j]-map[h][i][j]...
0
memory_bytes
{'s_id': 's934868895', 'p_id': 'p00483', 'u_id': 'u435952407', 'date': '1331557094', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '110', 'memory': '0', 'code_size': '723'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 map[5][1005][1005];\nint main(){\n\tint i,j,h,m,n,k;\n\tint a,b,c,d,x,y,z;\n\tchar s[1005];...
CDSS_391951
CDSS
#include <stdio.h> #include <stdlib.h> int main(void) { int input = 0; scanf("%d", &input); int change = input % 1000; if (change > 0) { change = 1000 - change; printf("%d\n", change); } else { printf("%d\n", change); } return 0; }
1,732
memory_bytes
{'s_id': 's826046984', 'p_id': 'p02612', 'u_id': 'u114834319', 'date': '1593997727', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '1732', 'code_size': '272'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 \n int input = 0;\n scanf(\"%d\", &input);\n int change = input % 10...
CDSS_141700
CDSS
#include<stdio.h> #include<stdlib.h> #define MAX 100001 #define INFTY 10000000 typedef struct{ int prev; int next; int cost; } Edge; Edge G[500000]; int d[MAX]; void Dijkstra(int,int); int main(void){ int i, j, k, n, v, u, c; int count=0; scanf("%d", &n); for(i=0; i<n; i++){ scanf("%d%d", &u, &k...
7,584
memory_bytes
{'s_id': 's612856449', 'p_id': 'p02243', 'u_id': 'u068378820', 'date': '1549884377', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '50', 'memory': '7584', 'code_size': '875'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\n#define MAX 100001\n#define INFTY 10000000\n\ntypedef struct{\n int prev;\n int next;\n in...
CDSS_659998
CDSS
#include<stdio.h> int main() { int x,a,b; scanf("%d%d%d",&x,&a,&b); printf("%d\n",(x-a)%b); return 0; }
2,116
memory_bytes
{'s_id': 's172955360', 'p_id': 'p03447', 'u_id': 'u089230684', 'date': '1596052988', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '2116', 'code_size': '110'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h> \nint main() \n{ \nint x,a,b; \nscanf(\"%d%d%d\",&x,&a,&b); \nprintf(\"%d\\n\",(x-a)%b); \nreturn 0; \n}\nPredict it...
CDSS_135179
CDSS
#include<stdio.h> int main(){ int a,n,i,j,k,v; int M[100][100]; scanf("%d", &n); for(i = 0; i < n; i++){ for(j = 0; j < n; j++){ M[i][j] = 0; } } for(i = 0; i < n; i++){ scanf("%d",&a); scanf("%d",&k); for(j = 0; j < k; j++){ scanf("%d",&v); M[a-1][v-1] = 1; ...
636
memory_bytes
{'s_id': 's430573654', 'p_id': 'p02237', 'u_id': 'u867876418', 'date': '1499825208', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '489'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,n,i,j,k,v;\n int M[100][100];\n\n scanf(\"%d\", &n);\n\n for(i = 0; i < n; i++){\n for(j...
CDSS_740205
CDSS
//set many funcs template #include<stdio.h> #include<string.h> #include<stdlib.h> #include<stdbool.h> #define inf 1072114514 #define llinf 4154118101919364364 #define mod 1000000007 #define pi 3.1415926535897932384 int max(int a,int b){if(a>b){return a;}return b;} int min(int a,int b){if(a<b){return a;}return b;} int ...
3,200
memory_bytes
{'s_id': 's687783784', 'p_id': 'p04015', 'u_id': 'u721060623', 'date': '1511582031', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '3200', 'code_size': '3043'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//set many funcs template\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<stdbool.h>\n#define inf 1072114514\n#de...
CDSS_143404
CDSS
#include <stdio.h> static int *A; void print(int *A, int n) { for (int i = 0; i < n; i++) printf((i == n - 1 ? "%d\n" : "%d "), *(A + i)); } void insertion_sort(int *A, int n) { for (int i = 1; i < n; i++) { int val = A[i]; int j = i - 1; while (0 <= j && val < A[j]) { A[j + 1] = A[j]; j--; } A[j + 1...
2,052
memory_bytes
{'s_id': 's021823460', 'p_id': 'p02255', 'u_id': 'u789864568', 'date': '1535455321', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '510'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\nstatic int *A;\n\nvoid print(int *A, int n) {\n for (int i = 0; i < n; i++)\n\tprintf((i == n - 1 ? \"%d\\n\" :...
CDSS_111311
CDSS
#include <stdio.h> int main(void) { int a, b; int n, m; int t; while (scanf("%d%d", &a, &b) != EOF){ n = a; m = b; if (a < b){ n = b; m = a; } while (n > 0){ t = n; n = m % n; m = t; } printf("%d\n", m); } return (0); }
596
memory_bytes
{'s_id': 's127846341', 'p_id': 'p00595', 'u_id': 'u648926140', 'date': '1410953117', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '265'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint a, b;\n\tint n, m;\n\tint t;\n\t\n\twhile (scanf(\"%d%d\", &a, &b) != EOF){\n\t\tn = a;...
CDSS_705275
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,744
memory_bytes
{'s_id': 's574291734', 'p_id': 'p03712', 'u_id': 'u906918812', 'date': '1600907852', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1744', 'code_size': '2706'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\ntypedef long long ll;\ntypedef char keytype;\n\nint gcd(int a, int b){...
CDSS_347260
CDSS
#include<stdio.h> #include<stdbool.h> #ifdef DEBUG #include<conio.h> #endif // DEBUG bool S[14]; bool H[14]; bool D[14]; bool C[14]; int main () { #ifdef DEBUG freopen("input.txt", "r", stdin); #endif // DEBUG int num; scanf("%d", &num); getchar(); char ch; int digit; for (size_t i = 0; i...
2,068
memory_bytes
{'s_id': 's132171214', 'p_id': 'p02408', 'u_id': 'u743340828', 'date': '1595405559', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2068', 'code_size': '1151'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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<stdbool.h>\n#ifdef DEBUG\n#include<conio.h>\n#endif // DEBUG\n\nbool S[14];\nbool H[14];\nbool D[14];\nboo...
CDSS_262412
CDSS
#include<stdio.h> int main(void){ int S,h,m,s; scanf("%d",&S); s=S%60; m=(S%(60*60))/60; h=S/(60*60); printf("%d:%d:%d\n",h,m,s); return 0; }
592
memory_bytes
{'s_id': 's949826430', 'p_id': 'p02390', 'u_id': 'u634931174', 'date': '1498304305', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '152'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 S,h,m,s;\n\t\n\tscanf(\"%d\",&S);\n\t\n\ts=S%60;\n\tm=(S%(60*60))/60;\n\th=S/(60*60);\n\n\tp...
CDSS_347779
CDSS
#include <stdio.h> int main(void) { int n; scanf("%d",&n); int room[4][3][10] = {}; for(int i = 0; i < n; i++){ int a,b,c,d; scanf("%d %d %d %d",&a,&b,&c,&d); room[a-1][b-1][c-1] += d; } for(int i = 0; i < 4; i++){ for(int j = 0; j < 3; j++){ for(int k = 0; k < 10; k++){ printf(" %d",room[i][j][k]...
2,040
memory_bytes
{'s_id': 's795010517', 'p_id': 'p02409', 'u_id': 'u590274138', 'date': '1559107275', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '408'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint n;\n\tscanf(\"%d\",&n);\n\tint room[4][3][10] = {};\n\tfor(int i = 0; i < n; i++){\n\t\t...
CDSS_541677
CDSS
#include <stdio.h> int main(void){ int a, b, c; int x; scanf("%d %d %d", &a, &b, &c); x=a-b; if(x<c){ printf("%d", c-x); }else{ printf("0\n"); } return 0; }
128
memory_bytes
{'s_id': 's887255133', 'p_id': 'p02951', 'u_id': 'u904318605', 'date': '1564967036', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '187'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\n int a, b, c;\n int x;\n\n scanf(\"%d %d %d\", &a, &b, &c);\n\n x=a-b;\n\n if(x<c){\n ...
CDSS_518897
CDSS
#include <stdio.h> int main() { int a; scanf("%d",&a); for(int i=1;i<=9;i++) { if(a%i==0&&a/i>0&&a/i<10) { printf("Yes\n"); break; } else { if(i==9) printf("No\n"); else continue; } } return 0; }
128
memory_bytes
{'s_id': 's402267362', 'p_id': 'p02880', 'u_id': 'u816631826', 'date': '1572482166', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '239'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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;\n\tscanf(\"%d\",&a);\n\tfor(int i=1;i<=9;i++)\n\t{\n\t\tif(a%i==0&&a/i>0&&a/i<10)\n\t\t{\n...
CDSS_603982
CDSS
char s[3333],t[3333];p[3333][3333];i,j,l;A(a){i--*l--?(a=s[i])-t[l]?A(p[i+1][l+1]-p[i][l+1]?i++:l++):putchar(a,A()):0;}main(){gets(s);for(l=strlen(gets(t));j<l?:(j=0,++i<strlen(s));j++)p[i+1][j+1]=s[i]-t[j]?fmax(p[i+1][j],p[i][j+1]):p[i][j]+1;A();}
41,216
memory_bytes
{'s_id': 's966638446', 'p_id': 'p03165', 'u_id': 'u657913472', 'date': '1547022327', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '66', 'memory': '41216', 'code_size': '248'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nchar s[3333],t[3333];p[3333][3333];i,j,l;A(a){i--*l--?(a=s[i])-t[l]?A(p[i+1][l+1]-p[i][l+1]?i++:l++):putchar(a,A()):0;}main(){gets(s);...
CDSS_558394
CDSS
#include <stdio.h> #include <stdlib.h> long gcd(long m, long n){ long temp; while (m % n != 0){ temp = n; n = m % n; m = temp; } return n; } long lcm(long c, long d){ return c * d / gcd(c, d); } int main(void){ long a, b, c, d; scanf("%ld%ld%ld%ld", &a, &b, &c, &d); //(B-A-1) - (cで割れる数) - (d...
128
memory_bytes
{'s_id': 's385723933', 'p_id': 'p02995', 'u_id': 'u318955153', 'date': '1561231541', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '635'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\nlong gcd(long m, long n){\n\tlong temp;\n\twhile (m % n != 0){\n\t\ttemp = n;\n\t\tn = m % ...
CDSS_637747
CDSS
#include <stdio.h> int main(){ int a,b; scanf("%d%d", &a, &b); if(a > 8 || b > 8) printf(":("); else printf("Yay!"); return 0; }
128
memory_bytes
{'s_id': 's369776198', 'p_id': 'p03323', 'u_id': 'u459215900', 'date': '1529199516', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '140'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\n scanf(\"%d%d\", &a, &b);\n if(a > 8 || b > 8) printf(\":(\");\n else printf(\"Yay...
CDSS_566999
CDSS
#include<stdio.h> int main() { int i, j, k, n, t, m, h, w, g; int f = 0; scanf("%d %d", &i, &j); f = (3 * i + j) / 2; printf("%d", f); return 0; }
128
memory_bytes
{'s_id': 's295366845', 'p_id': 'p03029', 'u_id': 'u133959444', 'date': '1558918942', '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() {\n\tint i, j, k, n, t, m, h, w, g;\n\tint f = 0;\n\n\n\n\tscanf(\"%d %d\", &i, &j);\n\n\tf = (3 * i +...
CDSS_229349
CDSS
#include <stdio.h> void buildMaxHeap(void); void maxHeapify(int ); int left(int ); int right(int ); int heap_size; int A[500005]; int main() { int i; scanf("%d",&heap_size); for(i=1;i<=heap_size;i++) { scanf("%d",&A[i]); } buildMaxHeap(); for(i=1;i<=heap_size;i++) { printf(" %d",A[i]); } printf("\n"); retu...
2,548
memory_bytes
{'s_id': 's180489195', 'p_id': 'p02288', 'u_id': 'u764706845', 'date': '1403788835', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '2548', 'code_size': '794'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 buildMaxHeap(void);\nvoid maxHeapify(int );\nint left(int );\nint right(int );\nint heap_size;\nint A[500005]...
CDSS_668140
CDSS
#include <stdio.h> int main(void) { int a,b,c,d; scanf("%d %d %d %d",&a,&b,&c,&d); if (a+b > c+d) { printf("Left\n"); } else if (a+b == c+d) { printf("Balanced\n"); } else { printf("Right\n"); } return 0; }
128
memory_bytes
{'s_id': 's407408846', 'p_id': 'p03477', 'u_id': 'u241469130', 'date': '1555944173', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '232'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void) {\n int a,b,c,d;\n scanf(\"%d %d %d %d\",&a,&b,&c,&d);\n if (a+b > c+d) {\n printf(\"Left\\n\...
CDSS_177814
CDSS
#include<stdio.h> #include<string.h> #include<stdlib.h> #define N 1000000 void initialized( void ); void push(int); int pop(void); int isFull(void); int isEmpty(void); int S[100]; int top; void initialized( void ) { top = 0; } void push(int x) { if(isFull() == 0){ top++; S[top] = x; } else fprintf(st...
556
memory_bytes
{'s_id': 's814056092', 'p_id': 'p02263', 'u_id': 'u453733916', 'date': '1493181325', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '556', 'code_size': '997'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#define N 1000000\n\nvoid initialized( void );\nvoid push(int);\nint pop(v...
CDSS_609634
CDSS
#include <stdio.h> int main() { int a; scanf("%d", &a); if (a == 7 || a == 5 || a == 3) printf("YES\n"); else printf("NO\n"); }
128
memory_bytes
{'s_id': 's348930375', 'p_id': 'p03210', 'u_id': 'u967106822', 'date': '1543802503', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '160'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int a;\n scanf(\"%d\", &a);\n if (a == 7 || a == 5 || a == 3)\n printf(\"YES\\n\...
CDSS_647565
CDSS
#include<stdio.h> int main(void) { char str[4]; scanf("%s",str); int i,add=0; for(i=0;i<3;++i) if(str[i]=='o') ++add; printf("%d\n",700+100*add); return 0; }
128
memory_bytes
{'s_id': 's408940044', 'p_id': 'p03369', 'u_id': 'u823380722', 'date': '1524508199', '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>\nint main(void)\n{\nchar str[4];\nscanf(\"%s\",str);\n\nint i,add=0;\nfor(i=0;i<3;++i)\n\tif(str[i]=='o') ++add;\n\n...
CDSS_537704
CDSS
#include <stdio.h> #include <stdlib.h> int asc(const void *a,const void *b){ return *(int *)a-*(int *)b; } int main(void){ int i; int n; scanf("%d",&n); int v[n]; for(i=0;i<n;i++){ scanf("%d",&v[i]); } qsort(v,n,sizeof(int),asc); double ans=v[0]; for(i=1;i<n;i++){ ans=(ans+v[i])/2; ...
128
memory_bytes
{'s_id': 's793118097', 'p_id': 'p02935', 'u_id': 'u997368585', 'date': '1566177493', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '361'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 asc(const void *a,const void *b){\n return *(int *)a-*(int *)b;\n}\n\nint main(void){\...
CDSS_105365
CDSS
n,x,y;main(i){for(;~scanf("%d",&y);x=--i%2?x=~-(x<y?x:y)%3+49,~i&&puts(&x):y)n?y=y>n/2?n-y:y:(n=y+1);}
0
memory_bytes
{'s_id': 's925433337', 'p_id': 'p00479', 'u_id': 'u399107199', 'date': '1297867314', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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:\nn,x,y;main(i){for(;~scanf(\"%d\",&y);x=--i%2?x=~-(x<y?x:y)%3+49,~i&&puts(&x):y)n?y=y>n/2?n-y:y:(n=y+1);}\nPredict its memory footprint...
CDSS_745796
CDSS
#include <stdio.h> #include <stdbool.h> int n; /* 商品の金額 */ int k; /* 嫌いな数字の個数を指定 */ int k_array[10]; /* 嫌いな数を指定する */ bool num_chcek(int n){ while(n > 0){ /* 0より大きい間ループ */ for(int i = 0; i < k; i++){ if(n%10 == k_array[i]){ /* n/10の剰余 */ return false; /* 0 */ }...
128
memory_bytes
{'s_id': 's260545855', 'p_id': 'p04045', 'u_id': 'u600805285', 'date': '1592185068', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '740'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 <stdbool.h>\n\nint n; /* 商品の金額 */\nint k; /* 嫌いな数字の個数を指定 */\nint k_array[10]; /* 嫌いな数を指定する */\n\nbool n...
CDSS_84562
CDSS
#include <stdio.h> typedef struct{ char class[16]; int before; int after; }data; typedef struct{ int all_enter; int all_money; }output; int main(){ data pro; output Out; int i; for(i=0;i<9;i++){ scanf("%s %d %d",pro.class,&pro.before,&pro.after); Out.all_enter = pro.b...
596
memory_bytes
{'s_id': 's516488992', 'p_id': 'p00173', 'u_id': 'u284889485', 'date': '1373176276', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '523'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\ntypedef struct{\n char class[16];\n int before;\n int after;\n}data;\ntypedef struct{\n int all_enter;...
CDSS_165852
CDSS
#include<stdio.h> int main() { int n, i, j; int tmp; int A[1000]; int flag = 1; scanf("%d", &n); for (i = 0; i < n; i++) scanf("%d", &A[i]); i = 0; while (flag) { flag = 0; for (j = n - 1; j > 0; j--) { if (A[j] < A[j - 1]) { tmp = A[j]; A[j] = A[j - 1]; A[j - 1] = tmp; flag = 1; ...
608
memory_bytes
{'s_id': 's304995270', 'p_id': 'p02259', 'u_id': 'u980351766', 'date': '1479790357', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '472'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 n, i, j;\n\tint tmp;\n\tint A[1000];\n\tint flag = 1;\n\n\tscanf(\"%d\", &n);\n\n\tfor (i = 0...
CDSS_563187
CDSS
#include <stdio.h> #define min(a, b) ((a) < (b) ? (a) : (b)) int main(int argc, char *argv[]) { int p, q, r; scanf("%d %d %d", &p, &q, &r); int a, b, c; a = p + q; b = r + q; c = r + p; int ans = min(a, min(b, c)); printf("%d\n", ans); return 0; }
128
memory_bytes
{'s_id': 's839489344', 'p_id': 'p03011', 'u_id': 'u801102476', 'date': '1560129174', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '271'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 min(a, b) ((a) < (b) ? (a) : (b))\n\nint\nmain(int argc, char *argv[])\n{\n int p, q, r;\n scanf(\"%d %d...
CDSS_373102
CDSS
#include <stdio.h> #define ll int //next_permutation void nexp(ll*a,int cnt){ int l=cnt-1,r=cnt-1; ll t; while(--l>=0&&a[l]>a[l+1]); if(l>=0){ while(a[l]>a[r])r--; t=a[l];a[l]=a[r];a[r]=t; } for(l++,r=cnt-1;l<r;l++,r--)t=a[l],a[l]=a[r],a[r]=t; } int a[10]; int main(){ int n; scanf("%d",&n); if(n==1){ p...
2,112
memory_bytes
{'s_id': 's607914149', 'p_id': 'p02449', 'u_id': 'u409832240', 'date': '1563620078', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '700'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 ll int\n\n//next_permutation\nvoid nexp(ll*a,int cnt){\n\tint l=cnt-1,r=cnt-1;\n\tll t;\n\twhile(--l>=0&&a...
CDSS_734847
CDSS
#include<stdio.h> int main(){ int N,K; scanf("%d %d",&N,&K); int i; int num = K; for(i=1;i<=N-1;i++) num = num *(K-1); printf("%d",num); }
128
memory_bytes
{'s_id': 's816130146', 'p_id': 'p03963', 'u_id': 'u362444129', 'date': '1553381720', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '141'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\nint N,K;\nscanf(\"%d %d\",&N,&K);\nint i;\nint num = K;\nfor(i=1;i<=N-1;i++)\n num = num *(K-1);\np...
CDSS_558559
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> typedef struct{ long long a; long long b; long long rest; } task_t; task_t task[200010]; int strsort(const void *A, const void *B){ long long R=((task_t*)A)->rest-((task_t*)B)->rest; long long Q=((tas...
9,596
memory_bytes
{'s_id': 's423127613', 'p_id': 'p02996', 'u_id': 'u750028862', 'date': '1561236330', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '77', 'memory': '9596', 'code_size': '1044'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 <stdbool.h>\n#include <math.h>\n\ntypedef struct{\n long lon...
CDSS_226240
CDSS
#include <stdio.h> int parent(int i){ return i/2; } int left(int i){ return 2*i; } int right(int i){ return 2*i+1; } int main(){ int H, i, A[10000]; scanf("%d",&H); for(i=1; i<=H; i++){ scanf("%d",&A[i]); } for(i=1; i<=H; i++){ printf("node %d: key = %d, ", i, A[i]); if(parent(i)>=1){ ...
608
memory_bytes
{'s_id': 's269842187', 'p_id': 'p02287', 'u_id': 'u832816623', 'date': '1466647565', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '564'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 parent(int i){\n return i/2;\n}\nint left(int i){\n return 2*i;\n}\nint right(int i){\n return 2*i+1;\n}\...
CDSS_239658
CDSS
#include <stdio.h> int main(void) { int i = 0; scanf("%d", &i); printf("%d\n", i*i*i); return 0; }
2,108
memory_bytes
{'s_id': 's887923272', 'p_id': 'p02388', 'u_id': 'u617613474', 'date': '1531111991', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '105'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 i = 0;\n\tscanf(\"%d\", &i);\n\tprintf(\"%d\\n\", i*i*i);\n\n\treturn 0;\n}\n\nPredict ...
CDSS_660504
CDSS
#include <stdio.h> int main (void){ int x,a,b; scanf("%d",&x); scanf("%d",&a); scanf("%d",&b); printf("%d",((x-a)%b)); return 0; }
128
memory_bytes
{'s_id': 's517066191', 'p_id': 'p03447', 'u_id': 'u678003735', 'date': '1517191396', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '179'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main (void){\n int x,a,b;\n scanf(\"%d\",&x);\n scanf(\"%d\",&a);\n scanf(\"%d\",&...
CDSS_183063
CDSS
#include<stdio.h> #include<string.h> typedef struct proces{ char eee[10]; int rrr; int time; }def; int head,n,ta; def o[100000]; void aaa(def s){ o[ta]=s; ta=(ta+1)%100000; } def deq(){ def sd=o[head]; head=(head+1)%100000; return sd; } int min(int k,int l){ if(k>l) return l; else return k; } ...
3,640
memory_bytes
{'s_id': 's727420293', 'p_id': 'p02264', 'u_id': 'u190593946', 'date': '1530246371', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '3640', 'code_size': '772'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\ntypedef struct proces{\n char eee[10];\n int rrr;\n int time;\n}def;\n\nint head,n,ta;\nde...
CDSS_155581
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> int isPrime(int x){ int i; if(x == 2) return 1; else if(x < 2 || x%2 ==0) return 0; i = 3; while(i <= sqrt(x)){ if(x % i == 0) return 0; i = i +2; } return 1; } int main(void){ int n,x,i,count=0; scanf("%d",&n); for(i=0; i < n; i++...
596
memory_bytes
{'s_id': 's423498734', 'p_id': 'p02257', 'u_id': 'u258796943', 'date': '1461089538', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '596', 'code_size': '415'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n\nint isPrime(int x){\n int i;\n if(x == 2) return 1;\n else if(x < 2 |...
CDSS_704028
CDSS
#include<stdio.h> int main(void){ long long int N,A,B; long long int i; long long int h[100000]; long long int K; long long int left,right; long long int sum; scanf("%lld %lld %lld",&N,&A,&B); //printf("%d\n", N); for(i=0;i<N;++i){ scanf("%lld",&h[i]); //printf("h[%lld]=%lld\n", i,h[i]); ...
896
memory_bytes
{'s_id': 's432302217', 'p_id': 'p03700', 'u_id': 'u763534217', 'date': '1497071969', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '48', 'memory': '896', 'code_size': '815'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 long long int N,A,B;\n long long int i;\n long long int h[100000];\n long long int K;\n lo...
CDSS_527039
CDSS
#include <stdio.h> typedef struct { int key, id; } data; typedef struct { data obj[200001]; int size; } max_heap; void push(data x, max_heap* h) { int i = h->size; data tmp; h->obj[(h->size)++] = x; while (1) { if (i == 0) break; else if (h->obj[i].key > h->obj[(i-1)/2].key) { tmp = h->obj[(i-1)/2]; ...
5,588
memory_bytes
{'s_id': 's548468605', 'p_id': 'p02904', 'u_id': 'u943800443', 'date': '1595854522', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '50', 'memory': '5588', 'code_size': '1666'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\tint key, id;\n} data;\n\ntypedef struct {\n\tdata obj[200001];\n\tint size;\n} max_heap;\n\n...
CDSS_402827
CDSS
#include<stdio.h> int main(void){ int a,b,i; int num; scanf("%d%d",&a,&b); num=a*4; for(i=0;i<a;i++){ if(num==b) break; num-=2; } if(num==b) printf("Yes\n"); else printf("No\n"); return 0; }
1,636
memory_bytes
{'s_id': 's733455471', 'p_id': 'p02640', 'u_id': 'u399080687', 'date': '1592331676', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1636', 'code_size': '243'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int a,b,i;\n int num;\n scanf(\"%d%d\",&a,&b);\n num=a*4;\n for(i=0;i<a;i++){\n ...
CDSS_303903
CDSS
#include <stdio.h> int main(void){ int x, y; while (1) { scanf("%d%d", &x, &y); if (x == 0 && y == 0) break; if (x >= y) printf("%d %d", y, x); else printf("%d %d", x, y); printf("\n"); } return 0; }
2,040
memory_bytes
{'s_id': 's171588997', 'p_id': 'p02397', 'u_id': 'u059999661', 'date': '1532578712', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', '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>\nint main(void){\n int x, y;\n while (1) {\n scanf(\"%d%d\", &x, &y);\n if (x == 0 && y == 0) b...
CDSS_198960
CDSS
#include<stdio.h> #include<stdlib.h> #define N 2000 int n,A[N]; int solve(int,int); int main(){ int m,q,i; while(1){ scanf("%d",&n); if(n<=20) break; } for(i=0;i<n;i++){ scanf("%d",&A[i]); } scanf("%d",&q); for(i=0;i<q;i++){ scanf("%d",&m); if(m<1||m>2000) exit(2); if(solv...
2,108
memory_bytes
{'s_id': 's276142985', 'p_id': 'p02271', 'u_id': 'u915088497', 'date': '1545368472', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '430', 'memory': '2108', 'code_size': '540'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#define N 2000\n\nint n,A[N];\n\nint solve(int,int);\n\n\nint main(){\n int m,q,i;\n\n while(...
CDSS_290625
CDSS
#include<stdio.h> int main(void) { int w,h,x,y,r,f; scanf("%d %d %d %d %d",&w,&h,&x,&y,&r); f=0; if(x+r>w)f=1; if(y+r>h)f=1; if(r>x)f=1; if(r>y)f=1; if(f==0)printf("Yes\n"); else printf("No\n"); return 0; }
580
memory_bytes
{'s_id': 's029146816', 'p_id': 'p02394', 'u_id': 'u252415092', 'date': '1473860131', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '211'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\nint w,h,x,y,r,f;\n\nscanf(\"%d %d %d %d %d\",&w,&h,&x,&y,&r);\n\nf=0;\nif(x+r>w)f=1;\nif(y+r>h...
CDSS_335193
CDSS
#include<stdio.h> int main(void) { int a, b, i, j, k; for (i = 0; ; i++) { scanf("%d %d", &a, &b); if (a == 0 && b == 0) return 0; for (j = 0; j < a; j++) { for (k = 0; k < b; k++) { if (j == 0 || k == 0 || k == b - 1 || j == a - 1) printf("#"); else printf("."); } printf("\n"); ...
2,044
memory_bytes
{'s_id': 's287799865', 'p_id': 'p02404', 'u_id': 'u800226589', 'date': '1538451156', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '357'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint a, b, i, j, k;\n\tfor (i = 0; ; i++) {\n\t\tscanf(\"%d %d\", &a, &b);\n\t\tif (a == 0 && b...
CDSS_318645
CDSS
#include <stdio.h> int main (void) { int a, b; char op; while (1){ scanf("%d %c %d", &a, &op, &b); if (op == '?')break; else if (op == '+'){ printf("%d\n", a + b); } else if (op == '-'){ printf("%d\n", a - b); } else if (op == '*'){ printf("%d\n", a * b); } else { printf("%d\n", ...
600
memory_bytes
{'s_id': 's538505320', 'p_id': 'p02401', 'u_id': 'u634185955', 'date': '1474878372', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '354'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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;\n\tchar op;\n\n\twhile (1){\n\t\tscanf(\"%d %c %d\", &a, &op, &b);\n\n\t\tif (op...
CDSS_248481
CDSS
#include <stdio.h> int main(){ int x; scanf("%d",&x); printf("%d\n",x*x*x); return 0; }
2,040
memory_bytes
{'s_id': 's039223103', 'p_id': 'p02388', 'u_id': 'u208991958', 'date': '1591603068', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '110'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n int main(){\n int x;\n scanf(\"%d\",&x);\n printf(\"%d\\n\",x*x*x);\n return 0;\n\n }\n\n\nPredict ...
CDSS_604368
CDSS
#include <stdio.h> #include <stdlib.h> int calculate_dp(int *DP, int k, int *a, int N) { if (DP[k] != 0) return DP[k]; for (int i = N; i >= 1; i--) { if (k >= a[i]) { if (calculate_dp(DP, k - a[i], a, N) == 1) { //printf("相手が負ける選び方(k:%d, a[%d]): %d:", k, i, a[i]); ...
8,320
memory_bytes
{'s_id': 's599043565', 'p_id': 'p03170', 'u_id': 'u619677540', 'date': '1589841592', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '19', 'memory': '8320', 'code_size': '805'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint calculate_dp(int *DP, int k, int *a, int N) {\n if (DP[k] != 0)\n return DP[k...
CDSS_581386
CDSS
#include<stdio.h> #include<string.h> int main(void) { char tiles[100000]=""; int i = 0; int n = 0; int count = 0; scanf("%s", tiles); n = strlen(tiles); if (tiles[0]-'0' == 1) { for (i = 0; i < n;) { if (tiles[i] - '0' == 1 && tiles[i+1] - '0' == 0) { i= i + 2; } else { if (tiles[i] - '...
256
memory_bytes
{'s_id': 's439288355', 'p_id': 'p03073', 'u_id': 'u281961328', 'date': '1564736183', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '718'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\n\nint main(void) {\n\tchar tiles[100000]=\"\";\n\tint i = 0;\n\tint n = 0;\n\tint count = 0;\...
CDSS_128844
CDSS
#if 0 cat <<EOF >mistaken-paste #endif // thx Ebi-chan! // #pragma GCC optimize("unroll-loops") // #pragma GCC optimize("O3") #pragma GCC diagnostic ignored "-Wincompatible-pointer-types" #define _USE_MATH_DEFINES #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #in...
2,108
memory_bytes
{'s_id': 's846378630', 'p_id': 'p02205', 'u_id': 'u612181412', 'date': '1577171614', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '7881'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#if 0\ncat <<EOF >mistaken-paste\n#endif\n// thx Ebi-chan!\n\n// #pragma GCC optimize(\"unroll-loops\")\n// #pragma GCC optimize(\"O3\...
CDSS_105187
CDSS
#include <stdio.h> #include <string.h> /** Application main entry point. */ int main ( int argc, char * argv[ ] ) { char s[ 11 ]; int res = 0; int n; scanf ( "%s %d", s, &n ); while ( n-- ) { char d[ 21 ]; scanf ( " %s", d ); memcpy ( d + 10, d, 10 ); d[ 20 ] = '\0'; res +...
0
memory_bytes
{'s_id': 's719826917', 'p_id': 'p00478', 'u_id': 'u009961299', 'date': '1324392766', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '402'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\n/** Application main entry point. */\nint main (\n int argc,\n char * argv[ ]\n )\n...
CDSS_370588
CDSS
#include <stdio.h> int main(void) { char in[201], tmp[201]; int m, n, i, j; while (1) { scanf("%200s ", in); if (in[0] == '-') break; scanf("%d ", &m); while (m--) { scanf("%d ", &n); for (i = 0; in[i+n] != '\0'; i++) { tmp[i] = in[i+n]; } for (j = 0; j < n; j++) { tmp[i+j] = in[j];...
2,044
memory_bytes
{'s_id': 's529630663', 'p_id': 'p02420', 'u_id': 'u500197648', 'date': '1530322932', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '441'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include <stdio.h>\nint main(void) {\n\tchar in[201], tmp[201];\n\tint m, n, i, j;\n\n\twhile (1) {\n\t\tscanf(\"%200s \", in);\n\t\...
CDSS_508957
CDSS
main () { unsigned long long n, count, d; scanf("%llu", &n); if (n % 2 == 1) { puts("0"); return 0; } count = n / 10, d = 5; n /= 10; while (1) { if (n / d == 0) break; count += n / d; d *= 5; } printf("%llu\n", count); }
128
memory_bytes
{'s_id': 's257687069', 'p_id': 'p02833', 'u_id': 'u013469585', 'date': '1577068335', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '306'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nmain () {\n unsigned long long n, count, d;\n\n scanf(\"%llu\", &n);\n\n if (n % 2 == 1) {\n puts(\"0\");\n ret...
CDSS_216967
CDSS
#include<stdio.h> #define MAX 100005 #define NIL -1 struct Node_struct{int p, l, r;}; /*p: 親(parent), l: 一番左の子(left child), r:右の兄弟(right sibling)*/ typedef struct Node_struct Node; Node T[MAX]; int D[MAX]; void print(int u){ int i, c; printf("node %d: parent = %d, depth = %d, ", u, T[u].p, D[u]); if(D[u]==0) pr...
6,408
memory_bytes
{'s_id': 's197519084', 'p_id': 'p02279', 'u_id': 'u450016531', 'date': '1547174036', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '6408', 'code_size': '1542'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 100005\n#define NIL -1\nstruct Node_struct{int p, l, r;};\n/*p: 親(parent), l: 一番左の子(left child), r:右の兄弟...
CDSS_113124
CDSS
#include<stdio.h> int main() { int r,c; while(scanf("%d%d",&r,&c)!=EOF&&(r||c)) { if(r%2&&c%2) printf("no\n"); else printf("yes\n"); } return 0; }
0
memory_bytes
{'s_id': 's902766073', 'p_id': 'p00657', 'u_id': 'u011621222', 'date': '1313988714', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '226'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n #include<stdio.h>\n \n int main()\n {\n int r,c;\n while(scanf(\"%d%d\",&r,&c)!=EOF&&(r||c))\n {\n if(r%2&&c%2)\n pri...
CDSS_65018
CDSS
#include<stdio.h> int main(){ double a; while(scanf("%lf\n",&a)!=EOF){ if(a<=48.00){ printf("light fly\n"); } else if(a<=51.00){ printf("fly\n"); } else if(a<=54.00){ printf("bantam\n"); } else if(a<=57.00){ printf("feather\n"); } else if(a<=60.00){ printf("light\n"); } else if(a<=64.00){ printf("light welter\n"); } el...
1,864
memory_bytes
{'s_id': 's675042051', 'p_id': 'p00048', 'u_id': 'u222399748', 'date': '1542094935', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1864', 'code_size': '534'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\ndouble a;\nwhile(scanf(\"%lf\\n\",&a)!=EOF){\nif(a<=48.00){\nprintf(\"light fly\\n\");\n}\nelse if(a<=...
CDSS_195941
CDSS
#include <stdio.h> #include <string.h> #define N 1000000 int judge_char(char); int key_data(char *); void insert(char *); int find(char *); char str[N][15]; int main(){ int i; int n; int judge; int count=0; char order[10]; char data[15]; char ans[N][5]; scanf("%d",&n); for(i=0;i<...
19,304
memory_bytes
{'s_id': 's907068690', 'p_id': 'p02269', 'u_id': 'u570606765', 'date': '1494392062', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '230', 'memory': '19304', 'code_size': '1536'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n \n#define N 1000000\n\nint judge_char(char);\nint key_data(char *);\nvoid insert(char *); ...
CDSS_288220
CDSS
#include <stdio.h> int a, b, c; int main(){ scanf("%d %d %d", &a, &b, &c); if (a <= b && b <= c){ printf("%d %d %d\n", a, b, c);} else if (a <= b && b >= c && a >= c){ printf ("%d %d %d\n", c, a, b);} else if (a >= b && b >= c){ printf ("%d %d %d\n", c, b, a);} else if (a >= b && b <= c && a >= c){ print...
2,088
memory_bytes
{'s_id': 's381748718', 'p_id': 'p02393', 'u_id': 'u877181703', 'date': '1572850178', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2088', 'code_size': '508'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 a, b, c;\n\nint main(){\n\tscanf(\"%d %d %d\", &a, &b, &c);\n\tif (a <= b && b <= c){\n\t\tprintf(\"%d %d %d...
CDSS_286086
CDSS
#include<stdio.h> int main(){ int a[3],i,j; for(i=0;i<3;i++){ scanf("%d",&a[i]); } for(i=0;i<3;i++){ for(j=i+1;j<3;j++){ if(a[i]>a[j]){ int temp = a[i]; a[i] = a[j]; a[j] = temp; } } } for(i=0;i<3;i++){ printf("%d",a[i]); if(i <2){ printf(" "); }else{ printf("\n"); } ...
1,752
memory_bytes
{'s_id': 's085366092', 'p_id': 'p02393', 'u_id': 'u001711939', 'date': '1507831576', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1752', 'code_size': '337'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tint a[3],i,j;\n\t\n\tfor(i=0;i<3;i++){\n\t\tscanf(\"%d\",&a[i]);\n\t}\n\t\n\tfor(i=0;i<3;i++){\n\t...
CDSS_89738
CDSS
#include <stdio.h> #include <stdlib.h> typedef struct { int time; int weight; } EVENT; int compare(const void *a, const void *b) { EVENT *x, *y; x = (EVENT *)a; y = (EVENT *)b; if (x->time != y->time){ return (x->time - y->time); } return (x->weight - y->weight);...
0
memory_bytes
{'s_id': 's300295093', 'p_id': 'p00231', 'u_id': 'u032763525', 'date': '1326183296', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '1176'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\ntypedef struct {\n int time;\n int weight;\n} EVENT;\n\nint compare(const void *a, co...
CDSS_176200
CDSS
#include <stdio.h> #define MAX_N 1000000 #define MAX_M 100 #define min(a,b) a < b ? a : b void shellSort(int*,int); void insertionSort(int*,int,int); void print(int*,int*,int,int); int cnt; int main(){ int N,i,a[MAX_N]; scanf("%d" ,&N); for(i = 0 ; i < N ; i++){ scanf("%d" ,&a[i]); } shellSort(a,N); ...
4,508
memory_bytes
{'s_id': 's712798510', 'p_id': 'p02262', 'u_id': 'u881100444', 'date': '1397816227', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '370', 'memory': '4508', 'code_size': '1086'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define MAX_N 1000000\n#define MAX_M 100\n#define min(a,b) a < b ? a : b\n\nvoid shellSort(int*,int);\nvoid inse...
CDSS_388041
CDSS
#include <stdio.h> int main(){ int x; scanf("%d",&x); printf("%d\n",8-(x-400)/200); return 0; }
1,736
memory_bytes
{'s_id': 's904517934', 'p_id': 'p02600', 'u_id': 'u337657882', 'date': '1595725412', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1736', 'code_size': '110'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int x;\n\n scanf(\"%d\",&x);\n printf(\"%d\\n\",8-(x-400)/200);\n return 0;\n}\n\nPredict ...
CDSS_151247
CDSS
#include <stdio.h> int main() { long long int x, y, num1, num2, keep; scanf("%lld %lld", &x, &y); num1 = x; num2 = y; while(num2 != 0){ keep = num2; num2 = num1 % num2; num1 = keep; } printf("%lld\n", num1); return 0; }
596
memory_bytes
{'s_id': 's997782348', 'p_id': 'p02256', 'u_id': 'u902851676', 'date': '1463546143', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '286'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 long long int x, y, num1, num2, keep;\n \n scanf(\"%lld %lld\", &x, &y);\n num1 = x;...
CDSS_512157
CDSS
#include <stdio.h> int main() { char str[3]; gets(str); if(str[0] == 'M'){ printf("6\n"); } else if(str[0] == 'T' && str[1] == 'U'){ printf("5\n"); } else if(str[0] == 'W'){ printf("4\n"); } else if(str[1] == 'H'){ printf("3\n"); } else if(str...
1,488
memory_bytes
{'s_id': 's243673100', 'p_id': 'p02847', 'u_id': 'u816631826', 'date': '1595474251', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1488', 'code_size': '493'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n char str[3];\n gets(str);\n if(str[0] == 'M'){\n printf(\"6\\n\");\n }\n e...
CDSS_737042
CDSS
#include<stdio.h> int main(void){ int a, b, c; scanf("%d %d %d", &a, &b, &c); printf("%d\n", ((a + b) * c) / 2); return 0; }
128
memory_bytes
{'s_id': 's032829967', 'p_id': 'p03997', 'u_id': 'u224085427', 'date': '1585623710', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '140'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int a, b, c;\n scanf(\"%d %d %d\", &a, &b, &c);\n printf(\"%d\\n\", ((a + b) * c) / 2);\...
CDSS_554579
CDSS
#include<stdio.h> int main() { int n; scanf("%d",&n); int i,count = 0,ar[n]; for(i = 0;i<n;i++) { scanf("%d",&ar[i]); } for(i = 1;i<n-1;i++) { if(ar[i-1]<ar[i] && ar[i]<ar[i+1] || ar[i-1]>ar[i] && ar[i]>ar[i+1]) { count++; } } printf("%d\n",coun...
1,728
memory_bytes
{'s_id': 's750792424', 'p_id': 'p02988', 'u_id': 'u018679195', 'date': '1600789133', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1728', 'code_size': '347'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int n;\n scanf(\"%d\",&n);\n int i,count = 0,ar[n];\n for(i = 0;i<n;i++)\n {\n ...
CDSS_242463
CDSS
/*201604270716*/ #include<stdio.h> main(void){ int x; scanf("%d",&x); printf("%d\n",x*x*x); return 0; }
596
memory_bytes
{'s_id': 's965441734', 'p_id': 'p02388', 'u_id': 'u751410502', 'date': '1461709097', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '112'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*201604270716*/\n\n\n\n#include<stdio.h>\n\nmain(void){\n\nint x;\nscanf(\"%d\",&x);\nprintf(\"%d\\n\",x*x*x);\n\n\n\n\nreturn 0;\n}\...
CDSS_363527
CDSS
#include <stdio.h> int main() { char number[1001]; int sum, i; while (1) { sum = 0; scanf("%s", number); if (number[0] == '0') break; for (i = 0; number[i] != '\0'; i++) sum += number[i] - '0'; printf("%d\n", sum); } return 0; }
536
memory_bytes
{'s_id': 's339959585', 'p_id': 'p02416', 'u_id': 'u865699521', 'date': '1465215559', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '536', 'code_size': '254'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n\tchar number[1001];\n\tint sum, i;\n\n\twhile (1) \n\t{\n\t\tsum = 0;\n\t\tscanf(\"%s\", number);...
CDSS_86291
CDSS
#include <stdio.h> int main(void) { int x, y, t, i; while (scanf("%ld %ld", &x, &y), x || y){ if (x < y){ t = x; x = y; y = t; } i = 0; while (y){ t = x % y; x = y; y = t; i++; } printf("%ld %ld\n", x, i); } return (0); }
600
memory_bytes
{'s_id': 's806263551', 'p_id': 'p00197', 'u_id': 'u192770095', 'date': '1459232923', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '267'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int x, y, t, i;\n\t\n\twhile (scanf(\"%ld %ld\", &x, &y), x || y){\n\t\tif (x < y){\n\t\...
CDSS_112633
CDSS
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #define REP(i,m,n) for(i=(m);i<((int)(n));i++) #define rep(i,n) REP(i,0,n) #define INFTY (1<<21) #define LLINFTY (1LL<<53) typedef long long ll; typedef unsigned long long ull; int n,a[20],res; int s1[111111],s2[111111],s3[111111]; int ab(int ...
424
memory_bytes
{'s_id': 's653220292', 'p_id': 'p00631', 'u_id': 'u756656224', 'date': '1321189266', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '424', 'code_size': '894'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <math.h>\n#include <stdlib.h>\n#define REP(i,m,n) for(i=(m);i<((int)(n));i++)\n#defi...
CDSS_490797
CDSS
#include<stdio.h> #include<string.h> int main(){ int i,j; char s[100]; scanf("%s",s); i=strlen(s); for(j=0;j<i;j++){ printf("x"); } }
128
memory_bytes
{'s_id': 's345728519', 'p_id': 'p02778', 'u_id': 'u521028221', 'date': '1581284307', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '152'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nint main(){\n int i,j;\n char s[100];\n\n scanf(\"%s\",s);\n i=strlen(s);\n\n for(j=0;j<...
CDSS_201323
CDSS
#include <stdio.h> int i, m, n; int S[100]; int res; solve (i,m) { if (m == 0) { return 1; } if (i >= n) { return 0; } res = solve(i + 1, m) || solve(i + 1, m - S[i]); return res; } int main (void) { int q, i, x; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &S[i]); } scanf("%d", &q); f...
2,136
memory_bytes
{'s_id': 's057466001', 'p_id': 'p02271', 'u_id': 'u832768753', 'date': '1542719219', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '480', 'memory': '2136', 'code_size': '462'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 i, m, n;\nint S[100];\nint res;\n\nsolve (i,m) {\n\tif (m == 0) {\n\t\treturn 1;\n\t}\n\tif (i >= n) {\n\t\t...
CDSS_369103
CDSS
#include <stdio.h> #include <string.h> #include <ctype.h> int main(void) { char word[11]; char text[1001]; int i; int cnt = 0; scanf("%s", word); for(i = 0; i < strlen(word); i++) word[i] = tolower(word[i]); while(1) { scanf(" %s", text); if (strcmp(text, "END_OF_TEXT") == 0) b...
552
memory_bytes
{'s_id': 's260514986', 'p_id': 'p02419', 'u_id': 'u295649290', 'date': '1487483972', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '552', 'code_size': '488'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <ctype.h>\n\nint main(void)\n{\n char word[11];\n char text[1001];\n int i;\n in...
CDSS_120656
CDSS
#include <stdio.h> int main(void) { int d, w; while (scanf("%d%d", &d, &w) == 2 && (d|w) != 0) { int e[10][10]; int i, j, k, l; int answer = 0; for (i = 0; i < d; i++) { for (j = 0; j < w; j++) { if (scanf("%d", &e[i][j]) != 1) return 1; } } for (i = 0; i < d; i++) { for (j = 0; j < w; j++) ...
2,108
memory_bytes
{'s_id': 's445593323', 'p_id': 'p01103', 'u_id': 'u543521645', 'date': '1579541188', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '934'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint d, w;\n\twhile (scanf(\"%d%d\", &d, &w) == 2 && (d|w) != 0) {\n\t\tint e[10][10];\n\t\ti...
CDSS_152105
CDSS
#include<stdio.h> int main() { int x, y, gcd, box; scanf("%d %d", &x, &y); box = 0; while(1){ if (x < y){ box = x; x = y; y = box; } x %= y; if (x == 0){ break; } } printf("%d\n", y); }
1,796
memory_bytes
{'s_id': 's352033212', 'p_id': 'p02256', 'u_id': 'u753667032', 'date': '1508294885', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1796', 'code_size': '248'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int x, y, gcd, box;\n scanf(\"%d %d\", &x, &y); \n box = 0;\n while(1){\n if (x < y){\n ...
CDSS_296601
CDSS
#include <stdio.h> int main(void){ int a,x; x = 1; scanf("%d", &a); while (a != 0){ printf("Case %d: %d\n",x,a); x++; scanf("%d",&a); } return 0; }
600
memory_bytes
{'s_id': 's116021947', 'p_id': 'p02396', 'u_id': 'u073465484', 'date': '1494608199', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '206'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,x;\n x = 1;\n scanf(\"%d\", &a);\n \n while (a != 0){\n prin...
CDSS_317111
CDSS
#include<stdio.h> #define pi 3.141592653589793 int main() { double r; scanf("%lf",&r); printf("%0.6lf %0.6lf",pi*r*r,2*pi*r); return 0; }
2,004
memory_bytes
{'s_id': 's258217460', 'p_id': 'p02400', 'u_id': 'u909168595', 'date': '1590996753', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2004', '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#define pi 3.141592653589793\nint main()\n{\n \n double r;\n scanf(\"%lf\",&r);\n printf(\"%0.6lf %0.6...
CDSS_677875
CDSS
#include <stdio.h> #include <math.h> int main() { int n,m; scanf("%d %d", &n,&m); printf("%d\n",(int)pow(2,m)*(1800*m+100*n)); return 0; }
128
memory_bytes
{'s_id': 's417997702', 'p_id': 'p03549', 'u_id': 'u693691111', 'date': '1510502777', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '146'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\nint main() {\n int n,m;\n scanf(\"%d %d\", &n,&m);\n printf(\"%d\\n\",(int)pow(2,m)*(1800*m+...
CDSS_420338
CDSS
#include <stdio.h> int main(void) { int A = 0; int B = 0; int C = 0; int K = 0; long int num = 0; scanf("%d %d %d %d", &A, &B, &C, &K); int j; int count = 0; for(j=1; j<=A; j++) { count++; if(count > K) { break; } num = num + 1; } for(j=1; j<=B; j++) { count++; if(count > K) { break;...
1,732
memory_bytes
{'s_id': 's917898213', 'p_id': 'p02682', 'u_id': 'u416534245', 'date': '1589165717', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1262', 'memory': '1732', 'code_size': '451'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 = 0;\n\tint B = 0;\n\tint C = 0;\n\tint K = 0;\n\tlong int num = 0;\n\n\tscanf(\"%d %d...
CDSS_29245
CDSS
b,c;char *m[2]={"NO","YES"};main(a){for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c);printf("%s\n",m[!!(a*a+b*b-c*c)+!!(a*a-b*b+c*c)+!!(a*a-b*b-c*c)<3]));return 0;}
580
memory_bytes
{'s_id': 's253322091', 'p_id': 'p00003', 'u_id': 'u858885710', 'date': '1408992612', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '158'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nb,c;char *m[2]={\"NO\",\"YES\"};main(a){for(scanf(\"%*d\");~scanf(\"%d%d%d\",&a,&b,&c);printf(\"%s\\n\",m[!!(a*a+b*b-c*c)+!!(a*a-b*b+c...
CDSS_607493
CDSS
#include <stdio.h> int main(void) { int d; scanf("%d", &d); switch(d) { case 25: printf("Christmas"); break; case 24: printf("Christmas Eve"); break; case 23: printf("Christmas Eve Eve"); break; case 22:...
128
memory_bytes
{'s_id': 's925315375', 'p_id': 'p03206', 'u_id': 'u455317716', 'date': '1548276212', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '392'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 d;\n scanf(\"%d\", &d);\n switch(d) {\n case 25:\n printf(\"C...
CDSS_314076
CDSS
#include <stdio.h> #include<math.h> int main(void) { double r; scanf("%lf",&r); printf("%f %f\n",M_PI*r*r,2*M_PI*r); return 0; }
648
memory_bytes
{'s_id': 's808873832', 'p_id': 'p02400', 'u_id': 'u826975654', 'date': '1463727299', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '132'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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(void)\n{\n\tdouble r;\n\tscanf(\"%lf\",&r);\n\tprintf(\"%f %f\\n\",M_PI*r*r,2*M_PI*r);\...