identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_269231
CDSS
#include <stdio.h> int main() { int a, b ; scanf ("%d %d", &a, &b ) ; if (a < b) { printf("a < b\n") ; } else if (a > b) { printf("a > b\n") ; } else if (a == b) { printf("a == b\n") ; } return 0 ; }
580
memory_bytes
{'s_id': 's267674776', 'p_id': 'p02391', 'u_id': 'u349226275', 'date': '1477449165', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '250'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 \n\n if (a < b) {\n printf(\"a < b\\n\")...
CDSS_496339
CDSS
#include<stdio.h> int main(){ int m,n; scanf("%d %d",&n,&m); if(m==n) { printf("Yes\n"); } if(m<n) { printf("No\n"); } return 0; }
1,624
memory_bytes
{'s_id': 's680931274', 'p_id': 'p02789', 'u_id': 'u816631826', 'date': '1598796258', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1624', 'code_size': '183'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int m,n;\n scanf(\"%d %d\",&n,&m);\n if(m==n)\n {\n printf(\"Yes\\n\");\n }\n ...
CDSS_136025
CDSS
int main(void) { int MM[100][100]; int n, a, b, v, i, j; scanf("%d", &n); for ( i = 0; i < n; i++ ) { for ( j = 0; j < n; j++ ) MM[i][j] = 0; } for ( i = 0; i < n; i++ ) { scanf("%d %d", &a, &b); a--; for ( j = 0; j < b; j++ ) { scanf("%d", &v); v--; ...
2,100
memory_bytes
{'s_id': 's282967478', 'p_id': 'p02237', 'u_id': 'u722747177', 'date': '1543367502', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '532'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nint main(void) {\n int MM[100][100];\n \n int n, a, b, v, i, j;\n scanf(\"%d\", &n);\n \n for ( i = 0; i < n; i++ ) {\n for ( j...
CDSS_71102
CDSS
#include <stdio.h> #include <math.h> double area3(double x1, double y1, double x2, double y2, double x3, double y3) { double a, b, c, z; a = sqrt((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2)); b = sqrt((x1-x3)*(x1-x3) + (y1-y3)*(y1-y3)); c = sqrt((x2-x3)*(x2-x3) + (y2-y3)*(y2-y3)); z = (a+b+c)/2.0; ret...
2,024
memory_bytes
{'s_id': 's563296517', 'p_id': 'p00079', 'u_id': 'u158979022', 'date': '1526879066', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2024', 'code_size': '655'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 \ndouble area3(double x1, double y1, double x2, double y2, double x3, double y3)\n{\n doubl...
CDSS_678002
CDSS
#include<stdio.h> #include<math.h> int main() { int n,m; scanf("%d %d",&n,&m); int ans=1900*m+100*(n-m); ans*=pow(2,m); printf("%d\n",ans); return 0; }
128
memory_bytes
{'s_id': 's486770529', 'p_id': 'p03551', 'u_id': 'u600300412', 'date': '1550718173', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '157'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\nint main()\n{\n\tint n,m;\n\tscanf(\"%d %d\",&n,&m);\n\tint ans=1900*m+100*(n-m);\n\tans*=pow(2,m...
CDSS_721388
CDSS
#include <stdio.h> #include <string.h> int main(){ char s[200001]; scanf("%s",s); int n=0; int m=strlen(s)-1; while(1){ if(s[n]=='A') break; n++; } while(1){ if(s[m]=='Z') break; m--; } printf("%d",m-n+1); return 0; }
384
memory_bytes
{'s_id': 's225731644', 'p_id': 'p03814', 'u_id': 'u855710796', 'date': '1485744700', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '384', 'code_size': '263'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 char s[200001];\n scanf(\"%s\",s);\n int n=0;\n int m=strlen(s)-1;\n whi...
CDSS_115627
CDSS
#include<stdio.h> #include<stdlib.h> int comp(const void *a,const void *b){ return *(int *)b - *(int *)a; } int main(){ int n,a[105],ans,i; while(1){ scanf("%d",&n); if(!n)break;ans=0; for(i=0;i<n;i++)scanf("%d",&a[i]); qsort(a,n,sizeof(int),comp); for(i=1;i<n-1;i++)ans+=a[i]; ans=ans/(n-2); printf("%d...
0
memory_bytes
{'s_id': 's297777488', 'p_id': 'p00728', 'u_id': 'u500961378', 'date': '1316383794', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '345'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\nint comp(const void *a,const void *b){\n\treturn *(int *)b - *(int *)a;\n}\nint main(){\n\tint ...
CDSS_37071
CDSS
#include <stdio.h> #include<string.h> int main(void){ char chr[20]; scanf("%s",chr); int l; l = strlen( chr ); for(int i=l-1;i>=0;i--){ printf("%c",chr[i]); } printf("\n"); return 0; }
1,920
memory_bytes
{'s_id': 's700388034', 'p_id': 'p00006', 'u_id': 'u455395909', 'date': '1531370673', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1920', 'code_size': '219'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include<string.h>\nint main(void){\n char chr[20];\n scanf(\"%s\",chr);\n int l;\n l = strlen( chr );\n ...
CDSS_727466
CDSS
#include <stdio.h> int main() { char c; char v[] = "aiueo"; scanf("%c", &c); for (int i = 0; i < 5; i++) { if (c == v[i]) { printf("vowel\n"); return 0; } } printf("consonant\n"); return 0; }
128
memory_bytes
{'s_id': 's921459546', 'p_id': 'p03852', 'u_id': 'u030504180', 'date': '1591302866', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '208'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\tchar c;\n\tchar v[] = \"aiueo\";\n\tscanf(\"%c\", &c);\n\tfor (int i = 0; i < 5; i++) {\n\t\tif (c...
CDSS_670612
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define SIZE 100100 typedef struct { int num; int cnt; } count; //global variables int N, a[SIZE]; //prototype declarations void solve(); int counter(int* base, int n, count* dst); //input int main() { int i; scanf("%d", &N); for (i =...
2,044
memory_bytes
{'s_id': 's909365211', 'p_id': 'p03487', 'u_id': 'u300968187', 'date': '1558445361', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '25', 'memory': '2044', 'code_size': '1064'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 SIZE 100100\n\ntypedef struct {\n\tint num;\n...
CDSS_720128
CDSS
#include<stdio.h> int main(void){ int n,a,ki; scanf("%d",&n); for(a=0;n>0;n--){ scanf("%d",&a); if(a%2==1){ki++;} } if(ki%2==0){printf("YES\n");}else{printf("NO\n");} return 0; }
128
memory_bytes
{'s_id': 's023225795', 'p_id': 'p03807', 'u_id': 'u483814783', 'date': '1488127780', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '128', 'code_size': '218'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int n,a,ki;\n scanf(\"%d\",&n);\n for(a=0;n>0;n--){\n scanf(\"%d\",&a);\n ...
CDSS_567523
CDSS
#include<stdio.h> int sw_state[11],sw_ans[11],sig[11]; int sw[11][11]; int sw_n,vol_n,ans; void check(int depth); int main(void){ int i,j,k,temp; scanf("%d %d",&sw_n,&vol_n); for(i=0;i<11;i++){ for(j=0;j<11;j++){ sw[i][j]=0; } } for(i=1;i<=vol_n;i++){ scanf("%d",&...
128
memory_bytes
{'s_id': 's980831360', 'p_id': 'p03031', 'u_id': 'u699796231', 'date': '1558923680', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1110'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 sw_state[11],sw_ans[11],sig[11];\nint sw[11][11];\nint sw_n,vol_n,ans;\nvoid check(int depth);\nint main(void){...
CDSS_541508
CDSS
#include <stdio.h> #include <stdlib.h> int main(void){ int a,b,c; scanf("%d %d %d", &a,&b,&c); if(a - b > 0 && c > 0){ if(a - b >= c){ c = 0; }else{ c = c - (a-b); } } printf("%d\n",c); }
128
memory_bytes
{'s_id': 's860814083', 'p_id': 'p02951', 'u_id': 'u907518238', 'date': '1564971198', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '221'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(void){\n int a,b,c;\n scanf(\"%d %d %d\", &a,&b,&c);\n if(a - b > 0 && c > 0){\n ...
CDSS_293560
CDSS
#include<stdio.h> int main(){ int W,H; int x,y,r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(x>=r){ if(x<=W-r){ if(y>=r){ if(y<=H-r){ printf("Yes\n"); }else{ printf("No\n"); } }else{ printf("No\n"); } }else{ printf("No\n"); } }else{ printf("No\n"); } return 0; }
2,092
memory_bytes
{'s_id': 's828856773', 'p_id': 'p02394', 'u_id': 'u441494556', 'date': '1572917472', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2092', 'code_size': '301'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 W,H;\n\tint x,y,r;\n\nscanf(\"%d %d %d %d %d\",&W,&H,&x,&y,&r);\n\nif(x>=r){\n\tif(x<=W-r){\n\...
CDSS_687341
CDSS
U;i;j;w[9<<14];main(k){for(;~scanf("%d",&k);)j++&&w[k]++;for(i=1e5;i;)U=fmax(w[i+1]+w[i]+w[--i],U);printf("%d",U);}
2,412
memory_bytes
{'s_id': 's728743503', 'p_id': 'p03611', 'u_id': 'u944651767', 'date': '1600392486', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '26', 'memory': '2412', 'code_size': '115'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nU;i;j;w[9<<14];main(k){for(;~scanf(\"%d\",&k);)j++&&w[k]++;for(i=1e5;i;)U=fmax(w[i+1]+w[i]+w[--i],U);printf(\"%d\",U);}\nPredict its m...
CDSS_70116
CDSS
// Aizu Vol0 0074: Videotape // 2017.7.30 #include <stdio.h> #include <stdlib.h> int main() { int T, H, S; int t; while (1) { scanf("%d%d%d", &T, &H, &S); if (T < 0) break; t = 7200 - (3600 * T + 60 * H + S); printf("%02d:%02d:%02d\n", t / 3600, (t % 3600) / 60, t % 60); t *= 3; printf("%02d:%02d:%02...
612
memory_bytes
{'s_id': 's386661707', 'p_id': 'p00074', 'u_id': 'u847467233', 'date': '1501359761', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '377'}
[ { "content": "Your task is to predict the memory 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 Vol0 0074: Videotape\n// 2017.7.30\n\n#include <stdio.h>\n#include <stdlib.h>\n\n\nint main()\n{\n\tint T, H, S;\n\tint t;\n\n...
CDSS_95653
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #define max(a, b) (((a) > (b)) ? (a) : (b)) /* 2個の値の最大値 */ #define min(a, b) (((a) < (b)) ? (a) : (b)) /* 2個の値の最小値 */ #define ENTER printf("\n") /* 改行プリント */ int DBG = 1; /* デバッグプリント 提出時は0 */ /* main **************************...
2,140
memory_bytes
{'s_id': 's783514353', 'p_id': 'p00356', 'u_id': 'u157967111', 'date': '1562339412', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '757'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 <ctype.h>\n#define max(a, b)\t(((a) > (b)) ? (a) : (b))\t\t/* 2...
CDSS_381016
CDSS
#include <stdio.h> int main(){ int N, X, T; scanf("%d", &N); scanf("%d", &X); scanf("%d", &T); int time=0; while(N>0){ time+=T; N=N-X; } printf("%d\n", time); return 0; }
2,136
memory_bytes
{'s_id': 's155975079', 'p_id': 'p02576', 'u_id': 'u548487936', 'date': '1598122983', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '2136', '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\nint main(){\n\n int N, X, T;\n\n scanf(\"%d\", &N);\n scanf(\"%d\", &X);\n scanf(\"%d\", &T);\n\n ...
CDSS_726800
CDSS
#include <stdio.h> int main() { int n, i, sum=0; scanf("%d", &n); int T[n]; for (i=0; i<n; i++) { scanf("%d", &T[i]); sum+=T[i]; } int m, p, x; scanf("%d", &m); for (i=0; i<m; i++) { scanf("%d %d", &p, &x); printf("%d\n", sum+x-T[p-1]); } return 0; }
128
memory_bytes
{'s_id': 's910119551', 'p_id': 'p03845', 'u_id': 'u930734502', 'date': '1576631384', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '128', 'code_size': '289'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, sum=0;\n scanf(\"%d\", &n);\n int T[n];\n for (i=0; i<n; i++) {\n scanf(\"%d\", ...
CDSS_130827
CDSS
#include<stdio.h> int dp[50]; int fib(int n){ if(n==0 || n==1) return dp[n]=1; if(dp[n]!=-1) return dp[n]; return dp[n]=fib(n-1)+fib(n-2); } int main(){ int n,i; for(i=0;i<50;i++) dp[i]=-1; scanf("%d",&n); printf("%d\n",fib(n)); return 0; }
2,028
memory_bytes
{'s_id': 's382774916', 'p_id': 'p02233', 'u_id': 'u893058769', 'date': '1549822390', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2028', '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\nint dp[50];\n\nint fib(int n){\n if(n==0 || n==1) return dp[n]=1;\n if(dp[n]!=-1) return dp[n];\n return dp[n]...
CDSS_137948
CDSS
#include <stdio.h> #define WHITE 1 #define GRAY 0 #define BLACK -1 #define INF 100000000 #define N 100 void bfs(int); void enqueue(int); int dequeue(void); int Q[N+1],d[N+1],c[N+1],ts,n,S[N+1][N+1],K[N+1]; int head, tail; int main() { int i,j,u,min; scanf("%d",&n); head = 0; tail = 1; for(i=0;i<n;...
636
memory_bytes
{'s_id': 's508863595', 'p_id': 'p02239', 'u_id': 'u914664045', 'date': '1501639265', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '1076'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 WHITE 1\n#define GRAY 0\n#define BLACK -1\n#define INF 100000000\n#define N 100\n \nvoid bfs(int);\nvoid e...
CDSS_659253
CDSS
#include <stdio.h> #define INF 999999999 const int d[4][2] = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}}; int H, W; char s[64][64]; int Qstart, Qend; int q[64 * 64][2]; int saitan[64][64]; int main(void) { int i, j; int count; if (scanf("%d%d", &H, &W) != 2) return 1; for (i = 1; i <= H; i++) { if (scanf("%62s", s[i...
256
memory_bytes
{'s_id': 's625553364', 'p_id': 'p03436', 'u_id': 'u646118499', 'date': '1578469428', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '1012'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 INF 999999999\n\nconst int d[4][2] = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}};\n\nint H, W;\nchar s[64][64];\n...
CDSS_362734
CDSS
#include<stdio.h> int main(void) { char moji; while(1){ scanf("%c",&moji); if(moji >= 'A' && moji <= 'Z'){ moji += 32; printf("%c",moji); } else if(moji >= 'a' && moji <= 'z'){ moji -= 32; printf("%c",moji); } else if(moji != '\n'){ ...
524
memory_bytes
{'s_id': 's324812196', 'p_id': 'p02415', 'u_id': 'u635505472', 'date': '1400397310', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '431'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 char moji;\n \n while(1){\n scanf(\"%c\",&moji);\n \n if(moji >= 'A' && moj...
CDSS_377159
CDSS
#include <stdio.h> #define MOD_BY 1000000007 int add(int a, int b) { return a + b - MOD_BY * (a + b >= MOD_BY); } int N; int memo[1234567][2][2]; int kugyu(int pos, int zero, int nine) { int answer = 0; int i; if (pos >= N) return zero && nine; if (memo[pos][zero][nine]) return ~memo[pos][zero][nine]; for (i...
95,396
memory_bytes
{'s_id': 's920994134', 'p_id': 'p02554', 'u_id': 'u646118499', 'date': '1600024073', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '206', 'memory': '95396', 'code_size': '563'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 MOD_BY 1000000007\n\nint add(int a, int b) {\n\treturn a + b - MOD_BY * (a + b >= MOD_BY);\n}\n\nint N;\...
CDSS_487841
CDSS
#include <stdio.h> int main(void){ int a, b, c; scanf("%d %d %d", &a, &b, &c); if (((a==b)&&(b!=c))||((b==c)&&(a!=b))||((a==c)&&(a!=b))) { puts("Yes"); } else { puts("No"); } return 0; }
128
memory_bytes
{'s_id': 's726567425', 'p_id': 'p02771', 'u_id': 'u754454814', 'date': '1581883646', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '202'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\tint a, b, c;\n\n\tscanf(\"%d %d %d\", &a, &b, &c);\n\n\n\tif (((a==b)&&(b!=c))||((b==c)&&(a!=...
CDSS_666796
CDSS
#include <stdio.h> int main() { int time; scanf("%d", &time); printf("%d", 48 - time); }
128
memory_bytes
{'s_id': 's314921392', 'p_id': 'p03473', 'u_id': 'u695857481', 'date': '1544554845', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '96'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 time;\n \tscanf(\"%d\", &time);\n \tprintf(\"%d\", 48 - time);\n}\nPredict its memory foo...
CDSS_704939
CDSS
#include <stdio.h> int main(void) { int group[] = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1}; int x, y; scanf("%d %d", &x, &y); puts(group[x] == group[y] ? "Yes" : "No"); return 0; }
128
memory_bytes
{'s_id': 's268482986', 'p_id': 'p03711', 'u_id': 'u874723578', 'date': '1560882856', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '188'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nmain(void)\n{\n\tint group[] = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};\n\tint x, y;\n\n\tscanf(\"%d %d\"...
CDSS_737121
CDSS
#include<stdio.h> main(){ int a,b,h; scanf("%d%d%d",&a,&b,&h); printf("%d",(a+b)*h/2); }
128
memory_bytes
{'s_id': 's218569308', 'p_id': 'p03997', 'u_id': 'u018679195', 'date': '1573797843', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '92'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nmain(){\n\tint a,b,h;\n\tscanf(\"%d%d%d\",&a,&b,&h);\n\tprintf(\"%d\",(a+b)*h/2);\n\n}\nPredict its memory footprin...
CDSS_317369
CDSS
#include <stdio.h> int main() { double r, pi, are, circ; pi = 3.141592653589; scanf("%lf", &r); circ = r * r * pi; are = 2 * pi * r; printf("%lf %lf\n", circ, are); return 0; }
2,104
memory_bytes
{'s_id': 's155218563', 'p_id': 'p02400', 'u_id': 'u420228347', 'date': '1558516696', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '207'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 double r, pi, are, circ;\n pi = 3.141592653589;\n scanf(\"%lf\", &r);\n circ = r * r ...
CDSS_377779
CDSS
#include<stdio.h> int main(void) { int d,t,s; scanf("%d %d %d",&d,&t,&s); if(s*t >= d ) printf("Yes"); else printf("No"); return 0; }
2,120
memory_bytes
{'s_id': 's187739627', 'p_id': 'p02570', 'u_id': 'u928498781', 'date': '1599487042', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '2120', 'code_size': '157'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int d,t,s;\n scanf(\"%d %d %d\",&d,&t,&s);\n if(s*t >= d )\n printf(\"Yes\");\n else\n ...
CDSS_596737
CDSS
#include <stdio.h> int main() { int k, a, b; scanf("%d%d%d", &k, &a, &b); long res1=k+1, res2=1; while (k>1) { if (res2<a) { ++res2; --k; } else { res2-=a; res2+=b; k-=2; } } res2+=k; printf("%lld\n", res...
128
memory_bytes
{'s_id': 's490389401', 'p_id': 'p03131', 'u_id': 'u503549962', 'date': '1549880464', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '650', 'memory': '128', 'code_size': '345'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int k, a, b; scanf(\"%d%d%d\", &k, &a, &b);\n long res1=k+1, res2=1;\n while (k>1) {\n ...
CDSS_77453
CDSS
#include "stdio.h" #include "string.h" #define min(a,b) (a<b?a:b) #define swap(a,b) (a^=b,b^=a,a^=b) int cmp(char const *a,char const *b){ int i; int len = min(strlen(a),strlen(b)); for(i=0;i<len;i++){ if(a[i] > b[i])return 1; else if(a[i] < b[i])return 0; } return strlen(a) > strlen(b); } int str_swap(char *a...
0
memory_bytes
{'s_id': 's609362638', 'p_id': 'p00105', 'u_id': 'u458173932', 'date': '1300132856', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '1464'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 min(a,b) (a<b?a:b)\n#define swap(a,b) (a^=b,b^=a,a^=b)\nint cmp(char const *a,cha...
CDSS_640502
CDSS
#include<stdio.h> int main(void){ int a,b; scanf("%d %d",&a,&b); int diff = b-a; int i = 1; int sum=0; while(i<diff){ sum+=i; i++; } sum -= a; printf("%d",sum); return 0; }
128
memory_bytes
{'s_id': 's426049413', 'p_id': 'p03328', 'u_id': 'u085356325', 'date': '1528770618', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '229'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int a,b;\n scanf(\"%d %d\",&a,&b);\n int diff = b-a;\n int i = 1;\n int sum=0;\n...
CDSS_265368
CDSS
#include<stdio.h> int main(void) { int a,b; scanf("%d",&a); scanf("%d",&b); if(a>b){ printf("a > b\n"); } else if(a<b){ printf("a < b\n"); } else{ printf("a == b\n"); } return 0; }
2,104
memory_bytes
{'s_id': 's139238597', 'p_id': 'p02391', 'u_id': 'u583433208', 'date': '1545205345', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '200'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint a,b;\n\tscanf(\"%d\",&a);\n\tscanf(\"%d\",&b);\n\tif(a>b){\n\t\tprintf(\"a > b\\n\");\n\t}...
CDSS_373171
CDSS
#include <stdio.h> int search(int s[],int key,int head,int tail){ if(head>tail)return -1; int mid=(head+tail)/2; if(s[mid]==key)return mid; else if(s[mid]>key)tail=mid-1; else if(s[mid]<key)head=mid+1; return search(s,key,head,tail); } int getLB(int s[],int key,int head,int tail)...
2,504
memory_bytes
{'s_id': 's755954653', 'p_id': 'p02455', 'u_id': 'u108990746', 'date': '1530752040', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1950', 'memory': '2504', 'code_size': '1455'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 s[],int key,int head,int tail){\n if(head>tail)return -1;\n \n int mid=(head+tail)/2;\n ...
CDSS_522396
CDSS
#include<stdio.h> int main() { int n; scanf("%d", &n); char s[100005]; scanf("%s", s); int i, ans = 1; for (i = 1; i < n; i++) if (s[i] != s[i - 1]) ans++; printf("%d\n", ans); return 0; }
256
memory_bytes
{'s_id': 's736652746', 'p_id': 'p02887', 'u_id': 'u600300412', 'date': '1571533575', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '201'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint n;\n\tscanf(\"%d\", &n);\n\tchar s[100005];\n\tscanf(\"%s\", s);\n\tint i, ans = 1;\n\tfor (i ...
CDSS_615575
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int n, x[100], y[100], h[100], i, j, k, H, flag; scanf("%d", &n); for (i=0; i<n; i++) { scanf("%d %d %d", &x[i], &y[i], &h[i]); } for (i=0; i<=100; i++) { for (j=0; j<=100; j++) { flag = 0; f...
128
memory_bytes
{'s_id': 's584274351', 'p_id': 'p03240', 'u_id': 'u214304095', 'date': '1539694031', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1160'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\nint main()\n{\n int n, x[100], y[100], h[100], i, j, k, H, flag;\n scanf(\"%d\", &n);\n...
CDSS_294167
CDSS
#include<stdio.h> int main() { int a,b = 1 ,c; for (;;){ scanf("%d",&a); if(a ==0 ){ break ; } else { printf("Case %d: %d\n", b , a); } b++ ; } }
2,036
memory_bytes
{'s_id': 's249915061', 'p_id': 'p02396', 'u_id': 'u011621222', 'date': '1559228606', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', '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{\n int a,b = 1 ,c;\n\n\n for (;;){\n\n\n scanf(\"%d\",&a);\n\n if(a ==0 ){\n\n break ;\n\n...
CDSS_507187
CDSS
#define _CRT_SECURE_NO_WARNINGS #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) ...
128
memory_bytes
{'s_id': 's883708836', 'p_id': 'p02829', 'u_id': 'u615782628', 'date': '1577066703', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '11408'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n\n#include <stdbool.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <inttypes.h>\n#include <lim...
CDSS_474743
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int a[33]={0,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; scanf("%d",&k); printf("%d",a[k]); return 0; }
128
memory_bytes
{'s_id': 's814891929', 'p_id': 'p02741', 'u_id': 'u779655095', 'date': '1584234971', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '208'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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{\n int a[33]={0,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...
CDSS_336014
CDSS
#include<stdio.h> int main(){ int H,W; int i,j; scanf("%d %d", &H, &W); while(H!=0 || W!=0){ for(i=0;i<H;i++){ for(j=0;j<W;j++){ if(i%2 == 0){ if(j%2 == 0) printf("#"); else printf("."); }else{ if(j%2 == 0) printf("."); ...
572
memory_bytes
{'s_id': 's377062615', 'p_id': 'p02405', 'u_id': 'u227434008', 'date': '1492128874', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '479'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\n int H,W;\n int i,j;\n\n scanf(\"%d %d\", &H, &W);\n\n while(H!=0 || W!=0){\n for(i=0...
CDSS_731062
CDSS
#include<stdio.h> #include<stdlib.h> void run(void){ int n,q; scanf("%d%d",&n,&q); int *p=(int *)calloc(n+2,sizeof(int)); p[1]=p[2]=1; int now=1; while(q--){ int a,b; scanf("%d%d",&a,&b); int s=p[a]; p[a]=p[b]; p[b]=s; if(now==a || now==b){ now^=a^b; } p[now-1]=p[now+1...
512
memory_bytes
{'s_id': 's173913795', 'p_id': 'p03894', 'u_id': 'u425248533', 'date': '1550181188', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '18', 'memory': '512', 'code_size': '440'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nvoid run(void){\n int n,q;\n scanf(\"%d%d\",&n,&q);\n int *p=(int *)calloc(n+2,sizeof(int)...
CDSS_69947
CDSS
#include <stdio.h> #include <math.h> int main(void) { double a, x, h; scanf("%lf %lf", &x, &h); while(x!=0.0 & h!=0.0) { a=x*x+2*x*sqrt(x*x/4+h*h); printf("%f\n", a); scanf("%lf %lf", &x, &h); } return 0; }
2,040
memory_bytes
{'s_id': 's705956080', 'p_id': 'p00073', 'u_id': 'u180225791', 'date': '1530508237', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '219'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(void)\n{\n\tdouble a, x, h;\n\tscanf(\"%lf %lf\", &x, &h);\n\twhile(x!=0.0 & h!=0.0)...
CDSS_119743
CDSS
#include <stdio.h> /* this is prime */ #define MOD_BY 100000007 int getInv(int x) { int nowzyou=MOD_BY-2; long long now=x; long long result=1; while(nowzyou>0) { if(nowzyou & 1)result=(result*now)%MOD_BY; now=(now*now)%MOD_BY; nowzyou>>=1; } return (int)result; } int nCr(int n,int r) { long long result=...
600
memory_bytes
{'s_id': 's336005096', 'p_id': 'p00991', 'u_id': 'u543521645', 'date': '1357040954', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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\n/* this is prime */\n#define MOD_BY 100000007\n\nint getInv(int x) {\n\tint nowzyou=MOD_BY-2;\n\tlong long now=x...
CDSS_701298
CDSS
#include <stdio.h> #include <stdlib.h> int compare_int(const void *a, const void *b){ return *(int*)a - *(int*)b; } int main(){ int n, a[100] = {0}; scanf("%d", &n); for(int i=0; i<n; i++){ scanf("%d", &a[i]); } qsort( a, n, sizeof(int), compare_int ); printf("%d", a[n-1]-a[0]); return 0; }
1,704
memory_bytes
{'s_id': 's263155171', 'p_id': 'p03694', 'u_id': 'u858806530', 'date': '1595029969', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '1704', 'code_size': '317'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint compare_int(const void *a, const void *b){\n return *(int*)a - *(int*)b;\n}\n\nint mai...
CDSS_132511
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> #define MAX 100 #define NIL -1 int n, p[MAX], m[MAX][MAX], i, j, k, l; void matrixChainMultiplication() { for (i = 1; i <= n; i++) { m[i][i] = 0; } for (l = 2; l <= n; l++) { for (i = 1; i <= n - l + 1; i++){ j = i + l - 1; m[i][j] = 1000000; ...
1,928
memory_bytes
{'s_id': 's258763114', 'p_id': 'p02234', 'u_id': 'u848284598', 'date': '1542379948', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1928', 'code_size': '679'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\n#define MAX 100\n#define NIL -1\n\nint n, p[MAX], m[MAX][MAX], i, j, k, ...
CDSS_183013
CDSS
#include <stdio.h> #include <string.h> typedef struct { char name[100]; int t; }A; A Q[1000000]; A P[1000000]; int head, tail, n; int isEmpty(){ if(head == tail)return 1; else return 0; } void queue(A x){ Q[tail] = x; tail++; } void initialize(){ head = 0; tail = n+1; } int main(){ int i, q, co...
26,012
memory_bytes
{'s_id': 's776434370', 'p_id': 'p02264', 'u_id': 'u097555122', 'date': '1530236292', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '26012', 'code_size': '878'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 {\n char name[100];\n int t;\n}A;\n\nA Q[1000000];\nA P[1000000];\nint hea...
CDSS_159822
CDSS
#include <stdio.h> #include <math.h> int isPrime(int); int main(){ int a[10000],i,count=0,N; scanf("%d",&N); for(i=0;i<N;i++){ scanf("%d",&a[i]); if( isPrime(a[i])==1) count++; } printf("%d\n",count); return 0; } int isPrime(int x){ int i; if(x == 2) return 1; else if(x < 2 || x%2 == 0)//前のifで2は...
2,128
memory_bytes
{'s_id': 's857403701', 'p_id': 'p02257', 'u_id': 'u643545292', 'date': '1544146780', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2128', 'code_size': '442'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 isPrime(int);\nint main(){\n int a[10000],i,count=0,N; \n scanf(\"%d\",&N);\n for(i=0;i<...
CDSS_229792
CDSS
#include <stdio.h> #define Max 2000000 int H,A[Max+1]; void maxHeapfy(int n){ int left,right,largest; left=2*n; right=2*n +1; if(left<=H && A[left]>A[n]) largest = left; else largest = n; if(right<=H && A[right]>A[largest]) largest = right; if(largest != n){ int x =A[n]; A[n] = A[largest];...
3,684
memory_bytes
{'s_id': 's299191202', 'p_id': 'p02288', 'u_id': 'u424947823', 'date': '1547177910', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '3684', 'code_size': '571'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define Max 2000000\n\nint H,A[Max+1];\n\n\nvoid maxHeapfy(int n){\n int left,right,largest;\n\n left=2*n;\n ri...
CDSS_186165
CDSS
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> typedef struct _DNode { int data; struct _DNode* prev; struct _DNode* next; } DNode; typedef struct _DList { size_t size; DNode* front; DNode* end; } DList; DList* DListCreate(); DNode* DNodeCreate(); void DListDestroy(DList*); bo...
36,184
memory_bytes
{'s_id': 's539681866', 'p_id': 'p02265', 'u_id': 'u633917844', 'date': '1585921357', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '300', 'memory': '36184', 'code_size': '4020'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\ntypedef struct _DNode {\n\tint data;\n\tstruct _...
CDSS_84023
CDSS
#include <stdio.h> int main(){ int n,in[1000001],cnt=0,i,j,sum; while(1){ scanf("%d",&n); if(n==0){ break; } for(i=0;i<n;i++){ scanf("%d",&in[i]); } for(i=0;i<n;i++){ for(j=0;j<n-1;j++){ if(in[j]>in[j+1]){ sum=in[j]; in[j]=in[j+1]; in[j+1]=su...
604
memory_bytes
{'s_id': 's017340867', 'p_id': 'p00167', 'u_id': 'u084540620', 'date': '1431152389', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', '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 int n,in[1000001],cnt=0,i,j,sum;\n while(1){\n scanf(\"%d\",&n);\n if(n==0){\n break;\n...
CDSS_380324
CDSS
#include<stdio.h> int main(){ int n,x,t; scanf("%d%d%d",&n,&x,&t); printf("%d",(n+x-1)/x*t); return 0; }
1,636
memory_bytes
{'s_id': 's355068893', 'p_id': 'p02576', 'u_id': 'u993046043', 'date': '1600295595', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1636', '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>\nint main(){\n\tint n,x,t;\n \tscanf(\"%d%d%d\",&n,&x,&t);\n \tprintf(\"%d\",(n+x-1)/x*t);\n \treturn 0;\n}\nPred...
CDSS_728877
CDSS
#include<stdio.h> int main(){ char s[101]; char t[101]; scanf("%s%s",s,t); printf("A%cC\n",t[0]); return 0; }
1,680
memory_bytes
{'s_id': 's289367903', 'p_id': 'p03860', 'u_id': 'u061882112', 'date': '1598318955', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1680', 'code_size': '131'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n char s[101];\n char t[101];\n scanf(\"%s%s\",s,t);\n\n printf(\"A%cC\\n\",t[0]);\n r...
CDSS_226872
CDSS
#include<stdio.h> int main(){ int h,A[251],i,j; scanf("%d",&h); for(i=1;i<=h;i++){ scanf("%d",&A[i]); } for(j=1;j<=h;j++){ if(j==1){ printf("node %d: key = %d, left key = %d, right key = %d, \n",j,A[j],A[2*j],A[2*j+1]); } else if(2*j+1<=h){ printf("node %d: key = %d, par...
596
memory_bytes
{'s_id': 's823553206', 'p_id': 'p02287', 'u_id': 'u017523606', 'date': '1498619538', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '620'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\n int h,A[251],i,j;\n\n scanf(\"%d\",&h);\n\n \n for(i=1;i<=h;i++){\n\n scanf(\"%d\",&A[i]);...
CDSS_708931
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> int main(){ char v[3][106]; for (int i = 0; i < 3; i++) { scanf("%s", v[i]); } int v1 = strlen(v[0]); int v2 = strlen(v[1]); int v3 = strlen(v[2]); if ((v[0][v1-1] == v[1][0]) && (v[1][v2-1] == v[2][0]...
128
memory_bytes
{'s_id': 's680812669', 'p_id': 'p03729', 'u_id': 'u109867600', 'date': '1571298857', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '398'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\n\nint main(){\n\n char v[3][106];\n\n for (in...
CDSS_262304
CDSS
#include<stdio.h> int main(void) { int S,h,m,s; scanf("%d",&S); h=S/3600; m=S%3600/60; s=S%3600%60; printf("%d:%d:%d\n",h,m,s); return 0; }
592
memory_bytes
{'s_id': 's655100497', 'p_id': 'p02390', 'u_id': 'u683144304', 'date': '1496991747', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', '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(void)\n{\n\tint S,h,m,s;\n\t\n\tscanf(\"%d\",&S);\n\th=S/3600;\n\tm=S%3600/60;\n\ts=S%3600%60;\n\tprintf(\...
CDSS_329451
CDSS
#include<stdio.h> int main(){ int H,W,i,j; while(1){ scanf("%d %d\n",&H,&W); if(H==0 && W==0) break; for(i=0;i<H;i++){ for(j=0;j<W;j++){ printf("#"); } printf("\n"); } printf("\n"); } return 0; }
576
memory_bytes
{'s_id': 's127349597', 'p_id': 'p02403', 'u_id': 'u196669489', 'date': '1460707984', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '576', 'code_size': '220'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 H,W,i,j;\t\n\n\twhile(1){\n\t\tscanf(\"%d %d\\n\",&H,&W);\n\t\tif(H==0 && W==0) break;\n\n\t...
CDSS_96754
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> int i,j,k; int n,a,b,ans1,ans2; int main(){ scanf("%d",&n); while(n!=0){ ans1=0;ans2=0; for(i=0;i<n;i++){ scanf("%d %d",&a,&b); if(a>b)ans1+=a+b; else if(a<b)ans2+=a+b; else if(a==b)ans1+=a,ans2+=b; } printf("%d %d\n",ans1,ans2); scanf("%...
0
memory_bytes
{'s_id': 's586275913', 'p_id': 'p00423', 'u_id': 'u435952407', 'date': '1300348925', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '345'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n\nint i,j,k;\nint n,a,b,ans1,ans2;\n\nint main(){\n\tscanf(\"%d\",&n);\n\tw...
CDSS_704270
CDSS
#include <stdio.h> void merge_sort(long long x[], int n) { static long long y[100001] = {}; if (n <= 1) return; merge_sort(&(x[0]), n/2); merge_sort(&(x[n/2]), (n+1)/2); int i, p, q; for (i = 0, p = 0, q = n/2; i < n; i++) { if (p >= n/2) y[i] = x[q++]; else if (q >= n) y[i] = x[p++]; else y[i] = (x[p] <...
4,848
memory_bytes
{'s_id': 's449518590', 'p_id': 'p03703', 'u_id': 'u943800443', 'date': '1595087311', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '174', 'memory': '4848', 'code_size': '1402'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 merge_sort(long long x[], int n)\n{\n\tstatic long long y[100001] = {};\n\tif (n <= 1) return;\n\tmerge_sor...
CDSS_227394
CDSS
#include <stdio.h> int main(){ int i,a; scanf("%d",&a); int A[a+1]; for(i=1; i<a+1; i++){ scanf("%d",&A[i]); } for(i=1; i<a+1; i++){ printf("node %d: key = %d, ",i,A[i]); if(i/2 > 0) printf("parent key = %d, ",A[i/2]); if(i*2 < a+1) printf("left key = %d, ",A[i*2]); if(i*2 + 1 < a+1) ...
2,044
memory_bytes
{'s_id': 's566035404', 'p_id': 'p02287', 'u_id': 'u927342963', 'date': '1580122825', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '399'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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,a;\n\n\tscanf(\"%d\",&a);\n\n\tint A[a+1];\n\n\tfor(i=1; i<a+1; i++){\n\t\tscanf(\"%d\",&A[...
CDSS_176912
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> int top,S[1000000]; void push(int a){ S[++top] = a; } int pop(){ top--; return S[top+1]; } int main(){ int x, y, z; top = 0; char array[100]; while(1) { if( scanf("%s", &array[0]) == EOF ) break; if ( array[0] == '+' ){...
548
memory_bytes
{'s_id': 's474804830', 'p_id': 'p02263', 'u_id': 'u485551331', 'date': '1461204416', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '670'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 top,S[1000000];\n\nvoid push(int a){\n S[++top] = a;\n}\n\nint pop()...
CDSS_423015
CDSS
#include <stdio.h> #include <stdlib.h> int main() { char s[3]; scanf("%s",&s); if(s[1]=='B') printf("ARC"); else printf("ABC"); return 0; }
1,672
memory_bytes
{'s_id': 's970357421', 'p_id': 'p02687', 'u_id': 'u740866633', 'date': '1588554304', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1672', 'code_size': '177'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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{\n char s[3];\n scanf(\"%s\",&s);\n if(s[1]=='B')\n printf(\"A...
CDSS_431402
CDSS
#include <stdio.h> int main(){ int s, w; scanf("%d %d", &s, &w); if(s<=w){ printf("unsafe"); }else{ printf("safe"); } return 0; }
1,728
memory_bytes
{'s_id': 's891973888', 'p_id': 'p02699', 'u_id': 'u607107282', 'date': '1587949479', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1728', '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 s, w;\n\t\n\tscanf(\"%d %d\", &s, &w);\n\tif(s<=w){\n\t\tprintf(\"unsafe\");\n\t}else{\n\t\tp...
CDSS_589312
CDSS
#include <stdio.h> int main(){ int H_, W_, h, w, ans=0, i, j, g; scanf("%d %d", &H_, &W_); scanf("%d %d", &h, &w); int masu[H_][W_]; for (i=0; i<H_; i++){ for (j=0; j<W_; j++){ masu[i][j] = 0; } } for (i=0; i<H_; i++){ for (j=0; j<W_; j++){ ...
128
memory_bytes
{'s_id': 's321233694', 'p_id': 'p03101', 'u_id': 'u818818531', 'date': '1552164257', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '647'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\n int H_, W_, h, w, ans=0, i, j, g;\n\n scanf(\"%d %d\", &H_, &W_);\n scanf(\"%d %d\", &h...
CDSS_570871
CDSS
#include <stdio.h> int main(void){ int N = 0; int K = 0; scanf("%d", &N); scanf("%d", &K); char line[N]; for(int i = 0; i <= N; i++){ scanf("%c", &line[i]); } line[K] = line[K] + 32; for(int i = 0; i <= N; i++){ printf("%c", line[i]); } printf("\n"); retur...
128
memory_bytes
{'s_id': 's252524173', 'p_id': 'p03041', 'u_id': 'u971089878', 'date': '1558315039', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '326'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 = 0; int K = 0;\n scanf(\"%d\", &N);\n scanf(\"%d\", &K);\n\n char line[N];\n\...
CDSS_503147
CDSS
#include <stdio.h> //素数列挙 //pには充分な要素数の配列のアドレス、返り値は個数 #include <stdbool.h> #define n0 16000 //上限/2 #define n1 180 //sqrt(上限)/2 int prime(int *p){ bool fp[n0]={}; int i,j,np=1,s; for(i=0;i<n1;i++){ if(fp[i]) continue; s=(i<<1)+3; for(j=(i+1)*3;j<n0;j+=s){ fp[j]=1; } } p[0]=2; for(i=...
640
memory_bytes
{'s_id': 's210844815', 'p_id': 'p02814', 'u_id': 'u804704438', 'date': '1587858906', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1243', 'memory': '640', 'code_size': '1306'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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//pには充分な要素数の配列のアドレス、返り値は個数\n#include <stdbool.h>\n#define n0 16000 //上限/2\n#define n1 180 //sqrt(上限)/...
CDSS_499027
CDSS
#include<stdio.h> int main() { int H,W,N,max,kai; scanf("%d", &H); scanf("%d", &W); scanf("%d", &N); max=(H>W)?H:W; kai=N/max; kai+=(N%max==0)?0:1; printf("%d\n",kai); return 0; }
128
memory_bytes
{'s_id': 's430879141', 'p_id': 'p02795', 'u_id': 'u823858817', 'date': '1579380077', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '221'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int H,W,N,max,kai;\n\n scanf(\"%d\", &H);\n scanf(\"%d\", &W);\n scanf(\"%d\", &N);\n...
CDSS_571128
CDSS
#include<stdio.h> int main(void) { char s[3]; int i,judge; scanf("%s",s); judge = 0; if(((s[0]=='0')&&(s[1]>'0'))||((s[0]=='1')&&(s[1]<='2'))){ judge = 1; if(((s[2]=='0')&&(s[3]>'0'))||((s[2]=='1')&&(s[3]<='2'))) judge = 3; } else if(((s[2]=='0')&&(s[3]>'0'))||((s[2]=='1')&&(s[3]<='2'))) ...
128
memory_bytes
{'s_id': 's048988351', 'p_id': 'p03042', 'u_id': 'u803101149', 'date': '1591159019', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '515'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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[3];\n int i,judge;\n scanf(\"%s\",s);\n\n judge = 0;\n if(((s[0]=='0')&&(s[1]>'0'...
CDSS_60312
CDSS
#include <stdio.h> void sum(int); int main(void) { int n; while (scanf("%d", &n) != EOF){ sum(n); printf("\n"); } return (0); } void sum(int n){ int i,j; int sum; int count; int w[10] = {1,2,4,8,16,32,64,128,256,512}; int num[10] = {0}; ...
2,024
memory_bytes
{'s_id': 's590480560', 'p_id': 'p00031', 'u_id': 'u213888975', 'date': '1588832663', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2024', '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\nvoid sum(int);\n\nint main(void)\n{\n int n;\n \n while (scanf(\"%d\", &n) != EOF){\n \n...
CDSS_353151
CDSS
#include "stdio.h" int main() { int m,f,r; char s; for (;;) { scanf("%d %d %d\n", &m,&f,&r); if (m==-1 && f==-1 && r==-1) break; if (m==-1 || f==-1) { s='F'; } else { if (m+f>=80) { s='A'; } if (m+f>=65 && m+f<80) { ...
2,048
memory_bytes
{'s_id': 's976659411', 'p_id': 'p02411', 'u_id': 'u968761188', 'date': '1526039325', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '701'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\n int m,f,r;\n char s;\n\n for (;;)\n {\n\n scanf(\"%d %d %d\\n\", &m,&f,&r);\n if ...
CDSS_576291
CDSS
#include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int gcd(int a, int b){ if(a==0 || b==0) return a==0?b:a; int d=0; while((a&1)==0 && (b&1)==0){a>>=1; b>>=1; d++;} while(a!=b){ if((a&1)!=0){ while((b&1)==0) b>>=1; if(a<b) b-=a; else if(a>b) a-=b; }else{ while((a&1)==0) a>>...
1,280
memory_bytes
{'s_id': 's214378308', 'p_id': 'p03061', 'u_id': 'u292252214', 'date': '1580680574', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '25', 'memory': '1280', 'code_size': '757'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <limits.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nint gcd(int a, int b){\n\tif(a==0 || b==0) return...
CDSS_113681
CDSS
main(a,b,c,p,q,r,s,i){for(;scanf("%d%d%d",&a,&b,&c),a;){ if(!c){ a==1&&b<0?printf("1 0 %d %d\n",a,b):printf("%d %d 1 0\n",a,b); continue; } for(r=1;r*r<=a;r++)if(a%r==0) for(p=a/r,s=1;s<=abs(c);s++)if(c%s==0) for(i=0;i<2;i++,s=-s)if(q=c/s,p*s+q*r==b){ if(p==r&&q<s)printf("%d %d %d %d\n",r,s,p,q); el...
612
memory_bytes
{'s_id': 's834154350', 'p_id': 'p00688', 'u_id': 'u300645821', 'date': '1363172570', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '70', '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:\nmain(a,b,c,p,q,r,s,i){for(;scanf(\"%d%d%d\",&a,&b,&c),a;){\n\tif(!c){\n\t\ta==1&&b<0?printf(\"1 0 %d %d\\n\",a,b):printf(\"%d %d 1 0\\...
CDSS_19940
CDSS
#include <stdio.h> int main() { int i,n=1,a; while(n<=9){ for(i=1; i<=9; i++){ printf("%dx%d=%d\n", n, i, n*i); } n++; } return 0; }
2,032
memory_bytes
{'s_id': 's227223526', 'p_id': 'p00000', 'u_id': 'u011621222', 'date': '1523900020', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2032', 'code_size': '170'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int i,n=1,a;\n while(n<=9){\n for(i=1; i<=9; i++){\n printf(\"%dx%d=%d\\n\", n, ...
CDSS_589078
CDSS
#include<stdio.h> int main(){ int h,w,hh,ww; scanf("%d%d%d%d",&h,&w,&hh,&ww); printf("%d",(h-hh)*(w-ww)); return 0; }
128
memory_bytes
{'s_id': 's437928928', 'p_id': 'p03101', 'u_id': 'u857484987', 'date': '1556221968', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '125'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int h,w,hh,ww;\n scanf(\"%d%d%d%d\",&h,&w,&hh,&ww);\n printf(\"%d\",(h-hh)*(w-ww));\n return 0;\n...
CDSS_152453
CDSS
#include <stdio.h> int gcd(int a, int b) { if (0 == b) return a; return gcd(b, a%b); } int main(int argc, char** argv) { int a, b; while (~scanf("%d%d", &a, &b)) { printf("%d\n", gcd(a,b)); } return 0; }
2,108
memory_bytes
{'s_id': 's203412470', 'p_id': 'p02256', 'u_id': 'u854976463', 'date': '1517982537', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '223'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 gcd(int a, int b) {\n if (0 == b) return a;\n return gcd(b, a%b);\n}\n\nint main(int argc, char** argv) {\...
CDSS_231811
CDSS
#include <stdio.h> int main() { int n, m; scanf("%d %d", &n, &m); int c[20]; int dp[50001]; for (int i = 0; i < m; i++) { scanf("%d", &c[i]); } dp[0] = 0; dp[1] = 1; for (int k = 2; k <= n; k++) { int min = 999999; //int mini = -1; for (int l = 0; l < m; l++) { if (k - c[l] >= 0) { if (min > dp...
2,104
memory_bytes
{'s_id': 's544550260', 'p_id': 'p02314', 'u_id': 'u873105409', 'date': '1558176526', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '450'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n\tint n, m;\n\tscanf(\"%d %d\", &n, &m);\n\tint c[20];\n\tint dp[50001];\n\tfor (int i = 0; i < m;...
CDSS_630320
CDSS
#include<stdio.h> int main(void) { int a,b,c,d; scanf("%d %d %d",&a,&b,&c); if(b<c){ d=b; b=c; c=d; } if (a<b){ d=a; a=b; b=d; } if(b<c){ d=b; b=c; c=d; } printf("%d",a-c); }
128
memory_bytes
{'s_id': 's320568548', 'p_id': 'p03292', 'u_id': 'u251123951', 'date': '1551299859', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '288'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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,d;\n scanf(\"%d %d %d\",&a,&b,&c);\n if(b<c){\n d=b;\n b=c;\...
CDSS_79018
CDSS
double M[12][4096],r,t;D[12],n; double dfs(p,f){if(M[p][f]<0){ int i=0; for(M[p][f]=0;i<n;i++)if(!(f&1<<i)&&(t=dfs(i,f|1<<i)+D[p]+D[i]-2*sqrt(D[p]*D[i]),M[p][f]<t))M[p][f]=t; }return M[p][f];} main(l,i,j,d){for(;~scanf("%d",&l);puts(d-r>l?"NA":"OK")){ for(d=n=0;getchar()-10;d+=D[n++]*2)scanf("%d",D+n); for(i=0;i<n;i++)...
968
memory_bytes
{'s_id': 's030379076', 'p_id': 'p00120', 'u_id': 'u300645821', 'date': '1359705259', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '968', 'code_size': '406'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\ndouble M[12][4096],r,t;D[12],n;\ndouble dfs(p,f){if(M[p][f]<0){\nint i=0;\nfor(M[p][f]=0;i<n;i++)if(!(f&1<<i)&&(t=dfs(i,f|1<<i)+D[p]+D...
CDSS_660866
CDSS
#include <stdio.h> int main(void){ int a[4]; int i,j,k; for(i=0;i<4;i++)scanf("%d",&a[i]); int temp,ans=0; for(i=0;i<=a[0];i++){ for(j=0;j<=a[1];j++){ for(k=0;k<=a[2];k++){ temp = 500*i + 100*j + 50*k; if(temp==a[3])ans++; } } } printf("%d",ans); return 0; }
128
memory_bytes
{'s_id': 's714380842', 'p_id': 'p03448', 'u_id': 'u168774513', 'date': '1555484409', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '285'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\tint a[4];\n\tint i,j,k;\n\tfor(i=0;i<4;i++)scanf(\"%d\",&a[i]);\n\tint temp,ans=0;\n\tfor(i=0...
CDSS_109041
CDSS
#include <stdio.h> int main(void) { int a, b, c, d; int p; int x = 0; int y = 0; scanf("%d %d %d %d", &a, &b, &c, &d); scanf("%d", &p); x = a * p; y = b; if (c <= p){ y += (p - c) * d; } if (x < y){ printf("%d\n", x); } else { ...
596
memory_bytes
{'s_id': 's619250688', 'p_id': 'p00531', 'u_id': 'u958626383', 'date': '1456184537', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '376'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, d;\n int p;\n int x = 0;\n int y = 0;\n \n scanf(\"%d %d %d %...
CDSS_615075
CDSS
#include<stdio.h> int main(){ int n,t; scanf("%d%d",&n,&t); int i,small=1000,a,b,flag=0; for(i=0;i<n;i++){ scanf("%d%d",&a,&b); if(b<=t){ if(a<small)small=a; flag=1; } } if(flag==0)puts("TLE"); else printf("%d",small); return 0; }
128
memory_bytes
{'s_id': 's098180455', 'p_id': 'p03239', 'u_id': 'u946810083', 'date': '1539106725', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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(){\n\t\tint n,t;\n\t\tscanf(\"%d%d\",&n,&t);\n\t\tint i,small=1000,a,b,flag=0;\n\t\tfor(i=0;i<n;i++){\n\...
CDSS_604954
CDSS
n,i; ea[2<<17],eb[2<<17],next[2<<17],first[1<<17]; long M,dp1[1<<17],dp2[1<<17],L[2<<17],R[2<<17]={1}; dfs1(u,p,id) { dp1[u]=1; id=first[u]; while(id) { if(eb[id]!=p) { dfs1(eb[id],u); dp1[u]=dp1[u]*-~dp1[eb[id]]%M; } id=next[id]; } } make(); dfs2(u,p,x,id) { dp2[u]=dp1[u]*x%M; make(first[u],p,x); ...
13,056
memory_bytes
{'s_id': 's346981572', 'p_id': 'p03181', 'u_id': 'u657913472', 'date': '1546932211', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '51', 'memory': '13056', 'code_size': '968'}
[ { "content": "Your task is to predict the 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,i;\nea[2<<17],eb[2<<17],next[2<<17],first[1<<17];\nlong M,dp1[1<<17],dp2[1<<17],L[2<<17],R[2<<17]={1};\ndfs1(u,p,id)\n{\n\tdp1[u]=1;...
CDSS_736663
CDSS
#include<stdio.h> int main() { char s[100001], *p; int k; scanf("%s", s); scanf("%d", &k); p = s; while(*p != '\0'){ if( ('z' - *p) < k && *p != 'a'){ k -= 'z'+1 - *p; *p = 'a'; } p++; if( k == 0) break; } if( k > 0 ){ p--; *p += k % 26; k = 0; } ...
384
memory_bytes
{'s_id': 's433590654', 'p_id': 'p03994', 'u_id': 'u538438162', 'date': '1504801874', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '384', '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()\n{\n char s[100001], *p;\n int k;\n\n scanf(\"%s\", s);\n scanf(\"%d\", &k);\n\n p = s;\n whil...
CDSS_128104
CDSS
// AOJ 2808: Password // 2017.10.11 bal4u@uu #include <stdio.h> #include <stdlib.h> #define MAX 400004 #define P4 531441 // 27^4 char s[MAX+10]; char f[P4+10]; int main() { int n, i, a, a1, a2, a3, a4; char *p; fgets(s, 50, stdin); n = atoi(s); while (n-- > 0) { fgets(s, MAX, stdin); p = s; a1 = a2 = a3 ...
2,544
memory_bytes
{'s_id': 's721250451', 'p_id': 'p01908', 'u_id': 'u847467233', 'date': '1507710853', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2544', 'code_size': '742'}
[ { "content": "Your task is to predict the memory 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 2808: Password\n// 2017.10.11 bal4u@uu\n\n#include <stdio.h>\n#include <stdlib.h>\n\n#define MAX 400004\n#define P4 531441\t\t...
CDSS_109692
CDSS
#include<stdio.h> int main(void) { int n, m,a[1002],i,j=1,temp; scanf("%d %d",&n,&m); for (i = 0; i < n; i++) { scanf("%d",&a[i]); } while (j != m+1) { i = 0; while (i != n-1) { if (a[i] % j > a[i + 1] % j) { temp = a[i]; a[i] = a[i + 1]; a[i + 1] = temp; } i++; } j++; } for (i =...
600
memory_bytes
{'s_id': 's719229696', 'p_id': 'p00543', 'u_id': 'u481307862', 'date': '1488206629', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '368'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 n, m,a[1002],i,j=1,temp;\n\tscanf(\"%d %d\",&n,&m);\n\tfor (i = 0; i < n; i++) {\n\t\tscan...
CDSS_290787
CDSS
#include <stdio.h> int main (void) { int W,H,x,y,r; scanf("%d",&W); scanf("%d",&H); scanf("%d",&x); scanf("%d",&y); scanf("%d",&r); if(W>=x+r&&0<=x-r) { if(H>=y+r&&0<=y-r) { printf("Yes\n"); } else { printf("No\n"); } } else { printf("No\n"); } return 0; }
584
memory_bytes
{'s_id': 's005175475', 'p_id': 'p02394', 'u_id': 'u480235023', 'date': '1479199441', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '289'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 W,H,x,y,r;\n\tscanf(\"%d\",&W);\n\tscanf(\"%d\",&H);\n\tscanf(\"%d\",&x);\n\tscanf(\"%d\...
CDSS_459520
CDSS
#include<stdio.h> #include<stdlib.h> #include<math.h> long long int gcd(int a, int b, int c) { int temp; if(a>b) { temp=a; a=b; b=temp; } while(b%a!=0) { temp=a; a=b%a; b=temp; } if(a>c) { temp=a; a=c; c=temp; ...
1,728
memory_bytes
{'s_id': 's438550611', 'p_id': 'p02713', 'u_id': 'u368566261', 'date': '1586741308', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '171', 'memory': '1728', 'code_size': '713'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nlong long int gcd(int a, int b, int c)\n{\n int temp;\n if(a>b)\n ...
CDSS_524288
CDSS
#include <stdio.h> #include <stdlib.h> int main(){ int n; double count=0.0; scanf("%d",&n); for(int i=1;i<=n;i++){ if(i%2==1){ count++; } } double b=count/n; printf("%f",b); }
128
memory_bytes
{'s_id': 's067635584', 'p_id': 'p02897', 'u_id': 'u375695365', 'date': '1570564430', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '209'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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(){\nint n;\n double count=0.0;\n scanf(\"%d\",&n);\n \n for(int i=1;i<=n;i++){\n...
CDSS_734992
CDSS
#include<stdio.h> #include<math.h> int main() { int N, K; scanf("%d %d", &N, &K); printf("%d\n", K*(int)pow(K - 1, N - 1)); return 0; }
128
memory_bytes
{'s_id': 's540924728', 'p_id': 'p03963', 'u_id': 'u698760125', 'date': '1476744179', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '142'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n\nint main() {\n\tint N, K;\n\t\n\tscanf(\"%d %d\", &N, &K);\n\tprintf(\"%d\\n\", K*(int)pow(K - ...
CDSS_350520
CDSS
#include <stdio.h> int main() { int n,m,i,j; int a,b; int A[100][100] = {0}; int B[100] = {0}; int c[100] = {0}; scanf("%d %d " ,&n,&m); for(j=0; j<n; j++) { for(i=0; i < m; i++) { scanf("%d",&a); A[j][i] = a; } } for(j=0; j<m; j++) { scanf("%d",&b); B[j] = b; } for(j=0;j<n...
648
memory_bytes
{'s_id': 's769126961', 'p_id': 'p02410', 'u_id': 'u952951927', 'date': '1429102489', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '461'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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,m,i,j;\n int a,b;\n int A[100][100] = {0};\n int B[100] = {0};\n int c[100] = {0};\n...
CDSS_651971
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", (A+C));} else if(B<=A && D<=C){printf("%d", (B+D));} else if(A<=B && D<=C){printf("%d", (A+D));} else{printf("%d", (B+C));} return 0; }
1,732
memory_bytes
{'s_id': 's670090245', 'p_id': 'p03399', 'u_id': 'u863370423', 'date': '1596065149', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', '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>\nint main()\n{ int A, B, C, D;\n scanf(\"%d%d%d%d\", &A,&B,&C,&D);\n if(A<=B && C<=D ){printf(\"%d\", (A+C))...
CDSS_362739
CDSS
#include <stdio.h> #include <ctype.h> int main(){ int g; char mozi; for(g=0; g<=1199;g++){ scanf("%c", &mozi); if(isupper(mozi) != 0){ mozi=tolower(mozi); }else{ mozi=toupper(mozi); } printf("%c", mozi); if(mozi == '\n')break; } // for(g=0;g<1000;g++){ // // } return 0; }
524
memory_bytes
{'s_id': 's171061082', 'p_id': 'p02415', 'u_id': 'u195954908', 'date': '1400834208', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '301'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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>\nint main(){\n\tint g;\n\tchar mozi;\n\tfor(g=0; g<=1199;g++){\n\t\tscanf(\"%c\", &mozi);\n\t\t...
CDSS_709945
CDSS
#include <stdio.h> int main(void) { int T,N,i,sum=0,subsum=0; scanf("%d %d", &N, &T); int t[N]; for(i=0;i<N;i++){ scanf("%d",&t[i]); } if(N==1) sum=T; else{ for(i=1;i<N;i++){ if(t[i]-t[i-1]<T){ subsum += t[i]-t[i-1];//差分を入れる ...
896
memory_bytes
{'s_id': 's492170531', 'p_id': 'p03731', 'u_id': 'u842913477', 'date': '1496956174', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '26', 'memory': '896', 'code_size': '560'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n \n int T,N,i,sum=0,subsum=0;\n \n scanf(\"%d %d\", &N, &T);\n \n int t[N];...
CDSS_653028
CDSS
#include<stdio.h> #include<math.h> int main() { int n; scanf("%d", &n); int a[100000]; int i; a[0] = 0; for (i = 1; i <= n; i++) scanf("%d", &a[i]); a[n + 1] = 0; int x; int ans; int k = 0; for (i = 0; i <= n; i++) k += abs(a[i + 1] - a[i]); for (i = 1; i ...
1,536
memory_bytes
{'s_id': 's198297773', 'p_id': 'p03401', 'u_id': 'u600300412', 'date': '1522029121', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '1536', '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<math.h>\nint main()\n{\n int n;\n scanf(\"%d\", &n);\n int a[100000];\n int i;\n a[0] = 0;\...
CDSS_172657
CDSS
#include<stdio.h> #include<string.h> #define N 100 void BubbleSort(char (*)[3],int); void SelectionSort(char (*)[3],int); int main(){ int i,j,n,temp,cnt=0,minj; char A[N][3],B[N][3],S[N][3]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%s",A[i]); strcpy(B[i],A[i]); strcpy(S[i],A[i]); } BubbleSort(...
2,048
memory_bytes
{'s_id': 's059497377', 'p_id': 'p02261', 'u_id': 'u300692662', 'date': '1530850573', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '1171'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 N 100\n\nvoid BubbleSort(char (*)[3],int);\nvoid SelectionSort(char (*)[3],int);\n\nint...
CDSS_554032
CDSS
#include<stdio.h> int main(void){ char s[5]; scanf("%s",s); if(s[0]==s[1] && s[2]==s[3] && s[0]!=s[2]){ printf("Yes\n"); }else if(s[0]==s[2] && s[1]==s[3] && s[0]!=s[1]){ printf("Yes\n"); }else if(s[0]==s[3] && s[1]==s[2] && s[0]!=s[1]){ printf("Yes\n"); }else{ p...
128
memory_bytes
{'s_id': 's212047033', 'p_id': 'p02987', 'u_id': 'u127063317', 'date': '1562615099', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '356'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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[5];\n scanf(\"%s\",s);\n if(s[0]==s[1] && s[2]==s[3] && s[0]!=s[2]){\n p...
CDSS_521431
CDSS
#include <stdio.h> int main(void){ int N; scanf("%d",&N); int arr[N]; int i; for(i=0;i<N;i++){ scanf("%d",&arr[i]); } int j,k, count=0; for(j=0;j<N;j++){ for(k=j+1;k<N;k++){ count+=arr[j]*arr[k]; } } printf("%d\n",count); return 0; }
128
memory_bytes
{'s_id': 's877784175', 'p_id': 'p02886', 'u_id': 'u776439373', 'date': '1582576314', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '274'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\n int N;\n scanf(\"%d\",&N);\n int arr[N];\n int i;\n for(i=0;i<N;i++){\n scanf(\"%d\"...
CDSS_504080
CDSS
#include<stdio.h> #include<string.h> int main(void) { char s[104],t[205]; scanf("%s%s",s,t); strcat(t,s); puts(t); return 0; }
128
memory_bytes
{'s_id': 's593936843', 'p_id': 'p02817', 'u_id': 'u801369645', 'date': '1577667779', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '149'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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{\n char s[104],t[205];\n scanf(\"%s%s\",s,t);\n\n strcat(t,s);\n p...
CDSS_561951
CDSS
#include <stdio.h> int main(void) { int n, k; scanf("%d%d", &n, &k); if(k == 1 || n == k){ printf("%d\n", 0); return 0; } printf("%d\n", n - k); return 0; }
128
memory_bytes
{'s_id': 's575140581', 'p_id': 'p03005', 'u_id': 'u785790611', 'date': '1560648045', '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>\n\nint main(void)\n{\n int n, k;\n \n scanf(\"%d%d\", &n, &k);\n\n if(k == 1 || n == k){\n print...
CDSS_454448
CDSS
#include <stdio.h> int main(){ long sum = 0; int s; scanf("%d", &s); for(int i = 0; i <= s; i++){ if(i % 3 != 0 && i % 5 != 0){ sum += i; } } printf("%lld",sum); return 0; }
1,728
memory_bytes
{'s_id': 's771517960', 'p_id': 'p02712', 'u_id': 'u816631826', 'date': '1596942613', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1728', 'code_size': '237'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 long sum = 0;\n int s;\n scanf(\"%d\", &s);\n \n\tfor(int i = 0; i <= s; i++){\n ...