identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_350330
CDSS
#include <stdio.h> int main(void){ int t[4][3][10]={0}; int b,f,r,v,i,j,k,n; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d%d%d%d",&b,&f,&r,&v); t[b-1][f-1][r-1]=t[b-1][f-1][r-1]+v; } for(i=0;i<4;i++){ for(j=0;j<3;j++){ for(k=0;k<10;k++){ printf(" %d",t[i][j][k]); } ...
2,112
memory_bytes
{'s_id': 's586768259', 'p_id': 'p02409', 'u_id': 'u529337794', 'date': '1533167567', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', '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:\n#include <stdio.h>\nint main(void){\n int t[4][3][10]={0};\n int b,f,r,v,i,j,k,n;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\n sca...
CDSS_46458
CDSS
float x1,y1,x2,y2,x3,y3,xp,yp; float det,xe,ye; main() { while(~scanf("%f%f%f%f%f%f%f%f",&x1,&y1,&x2,&y2,&x3,&y3,&xp,&yp)){ x1-=x3; y1-=y3; x2-=x3; y2-=y3; xp-=x3; yp-=y3; det=x1*y2-x2*y1; xe=(xp*y2-yp*x2)/det; ye=(yp*x1-xp*y1)/det; puts(xe>0&&ye>0&&xe+ye<1?"YES":"NO"); } }
0
memory_bytes
{'s_id': 's376347155', 'p_id': 'p00012', 'u_id': 'u399107199', 'date': '1287924846', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '296'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nfloat x1,y1,x2,y2,x3,y3,xp,yp;\nfloat det,xe,ye;\nmain()\n{\n\twhile(~scanf(\"%f%f%f%f%f%f%f%f\",&x1,&y1,&x2,&y2,&x3,&y3,&xp,&yp)){\n\...
CDSS_659110
CDSS
#include<stdio.h> #include<stdlib.h> #include<math.h> typedef long long int int64; #define MAX(a,b) ((a)>(b)?(a):(b)) #define MIN(a,b) ((a)<(b)?(a):(b)) #define ABS(a) ((a)>(0)?(a):-(a)) #define POS(i,j)((i)*3+(j)) void run(void){ int c[9]; int i; for(i=0;i<9;i++) scanf("%d",c+i); for(i=1;i<3;i++){ int...
128
memory_bytes
{'s_id': 's646602491', 'p_id': 'p03435', 'u_id': 'u425248533', 'date': '1523553671', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '759'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\ntypedef long long int int64;\n\n#define MAX(a,b) ((a)>(b)?(a):(b))\n#define...
CDSS_320855
CDSS
#include<stdio.h> int main(){ int a, b; char op; int ans; while(1){ scanf("%d %c %d", &a, &op, &b); if(op == '?'){ break; } if(op == '+'){ ans = a + b; } else if(op == '-'){ ans = a - b; } else if(op == '*'){ ans = a * b; } else if(op == '/'){ ...
2,036
memory_bytes
{'s_id': 's772358088', 'p_id': 'p02401', 'u_id': 'u674330859', 'date': '1530762081', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', '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(){\n int a, b;\n char op;\n int ans;\n\n while(1){\n scanf(\"%d %c %d\", &a, &op, &b);\n\n if(...
CDSS_556891
CDSS
#include <stdio.h> int main() { char str[4]; int i; scanf("%s", str,5); if (str[0] == str[1] || str[1] == str[2] || str[2] == str[3] || str[3] == str[4]) { printf("Bad\n"); }else if(str[0] == str[1] && str[1] == str[2] || str[2] == str[3] && str[3] == str[4]) { printf("Bad\n"); }else if(str[0] ==...
128
memory_bytes
{'s_id': 's940307649', 'p_id': 'p02993', 'u_id': 'u852988862', 'date': '1561253625', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '473'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 \nint main()\n{\n\tchar str[4];\n\tint i;\n\t\n\t\tscanf(\"%s\", str,5);\n\t\n\tif (str[0] == str[1] || str...
CDSS_534862
CDSS
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <math.h> #include <limits.h> #define Max(a, b) ((a) > (b) ? (a) : (b)) #define Min(a, b) ((a) > (b) ? (b) : (a)) #define abs(x) ((x) > 0 ? (x) : -(x)) #define MOD (ll)1000000007 //10^9 + 7 #define endl printf("\n") typedef long lon...
128
memory_bytes
{'s_id': 's827225309', 'p_id': 'p02924', 'u_id': 'u801102476', 'date': '1567365436', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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#include <stdlib.h>\n#include <stdbool.h>\n#include <string.h>\n#include <math.h>\n#include <limits.h>\n#define Ma...
CDSS_368858
CDSS
#include <stdio.h> #include <string.h> #include <ctype.h> int main(void) { int i, w=0; char s[1000],b[10]; scanf("%s",b); for(i=0;i<10;i++){ b[i]=tolower(b[i]); } while(1){ scanf("%s",s); if(strcmp(s,"END_OF_TEXT") == 0){ break; } for(i=0; i< 1000; i++){ s[i] =tolower(s[i]); } if(strcmp(s,b) ...
552
memory_bytes
{'s_id': 's435024250', 'p_id': 'p02419', 'u_id': 'u192066404', 'date': '1460296142', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '552', 'code_size': '378'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tint i, w=0;\n\tchar s[1000],b[10];\n\tscanf(\"%s\",...
CDSS_192551
CDSS
#include<stdio.h> #define S 100000 #define T 50000 int main(){ int s[S],t[T],n,q,i,j=0,count=0,k,r,l,m; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&s[i]); } scanf("%d",&q); for(i=0;i<q;i++){ scanf("%d",&t[i]); } for(i=0;i<q;i++){ k=t[i]; l=0; r=n; while(1){ m=(l+r)/2; ...
1,184
memory_bytes
{'s_id': 's218279244', 'p_id': 'p02268', 'u_id': 'u926937043', 'date': '1494387610', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '1184', '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#define S 100000\n#define T 50000\nint main(){\n int s[S],t[T],n,q,i,j=0,count=0,k,r,l,m;\n scanf(\"%d\",&n);\n ...
CDSS_148875
CDSS
#include<stdio.h> int main(){ int i,j,v,n; int A[100]; scanf("%d",&n); for(i = 0 ; i < n ; i++){ scanf("%d",&A[i]); } for(i = 0 ; i < n ; i++){ v = A[i]; j = i - 1; while(j >= 0 && A[j] > v){ A[j+1] = A[j]; j--; } A[j+1] = v; for(j = 0 ; j < n ; j++){ ...
2,064
memory_bytes
{'s_id': 's761134512', 'p_id': 'p02255', 'u_id': 'u128532549', 'date': '1529385859', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '466'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int i,j,v,n;\n int A[100];\n\n scanf(\"%d\",&n);\n for(i = 0 ; i < n ; i++){\n scanf(\"%d\",...
CDSS_238005
CDSS
#include <stdio.h> typedef struct { short surf[6]; short top; short top_add; short front; short front_add; } dice; int main(void){ dice dice1 = {0,0}; short q; register short i,j; for(i = 0;i < 6;i++){ scanf("%d",&dice1.surf[i]); } scanf("%d",&q); for(i = 0;i < q;i++){ scanf("%d",&dice1.top); for...
596
memory_bytes
{'s_id': 's378206734', 'p_id': 'p02384', 'u_id': 'u548668974', 'date': '1430120938', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '2614'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tshort surf[6];\n\tshort top;\n\tshort top_add;\n\tshort front;\n\tshort front_add;\n} dice;\...
CDSS_512842
CDSS
#include <stdio.h> int main() { int n; scanf("%d",&n); char s[10000 + 1]; scanf("%s",&s); int i; i = 0; while (s[i]) { s[i] += n; if (s[i] > 'Z') { s[i] = s[i] - 'Z' + 'A' - 1; } i++; } printf("%s",s); }
128
memory_bytes
{'s_id': 's997637326', 'p_id': 'p02848', 'u_id': 'u827935538', 'date': '1588390655', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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{\n int n;\n scanf(\"%d\",&n);\n char s[10000 + 1];\n scanf(\"%s\",&s);\n int i;\n i = 0;\n w...
CDSS_100686
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int i, j; int sum, max; int n, k; int *ary; int tmp; while(1) { scanf("%d %d", &n, &k); if(n==0 && k==0) break; if( (ary = (int*)calloc(n, sizeof(int))) == NULL ) return 1; for(i=0; i<n; i++) { scanf("%d", ary + i); } sum = 0; for(i=...
1,004
memory_bytes
{'s_id': 's261954278', 'p_id': 'p00439', 'u_id': 'u572424947', 'date': '1376894664', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '1004', 'code_size': '530'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tint i, j;\n\tint sum, max;\n\tint n, k;\n\tint *ary;\n\tint tmp;\n\n\twhil...
CDSS_513705
CDSS
#include<stdio.h> #define ll long long #define min(a,b) ((a)>(b)?(b):(a)) int main(){ ll n, a[222222], s = 0; scanf("%lld",&n); for(int i=0;i<n;i++){ scanf("%lld",&a[i]); s += a[i]; } int i=0; ll t=a[i]; while(2*t < s){ i++; t += a[i]; } printf("%lld\n",min(2*t-s,s-2*(t-a[i]))); retu...
1,792
memory_bytes
{'s_id': 's357959032', 'p_id': 'p02854', 'u_id': 'u244203620', 'date': '1581066501', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '25', 'memory': '1792', 'code_size': '327'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 long long\n#define min(a,b) ((a)>(b)?(b):(a))\nint main(){\n ll n, a[222222], s = 0;\n scanf(\"%lld\",...
CDSS_532686
CDSS
/* ============================================================================ Name : AtCoder3.c Author : Version: Copyright: Your copyright notice Description : Hello World in C, Ansi - style ============================================================================ */ #pragma warning(disable:4996) #include...
128
memory_bytes
{'s_id': 's157947078', 'p_id': 'p02922', 'u_id': 'u918599282', 'date': '1587330866', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '2218'}
[ { "content": "Your task is to predict the memory 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============================================================================\nName : AtCoder3.c\nAuthor :\nVersion:\nCopyri...
CDSS_342137
CDSS
#include <stdio.h> int main(){ int a[100],n; do{ scanf("%d",&n); printf(""); }while(!(n>=0 && n<=100)); int t; for(t=0;t<n;t++){ scanf("%d ",&a[t]); } for(t=n-1;t>=0;t--){ if(t==0){ printf("%d",a[t]); }else{ printf("%d ",a[t]); } } printf("\n"); return 0; }
604
memory_bytes
{'s_id': 's051352190', 'p_id': 'p02407', 'u_id': 'u672048969', 'date': '1479450324', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', '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>\nint main(){\n\tint a[100],n;\n\tdo{\n\t\tscanf(\"%d\",&n);\n\t\tprintf(\"\");\n\t}while(!(n>=0 && n<=100));\n\tint...
CDSS_103972
CDSS
#include <stdio.h> int main(void) { int map[1000]; int dx, now; int n, m; int i, j; int ans; while (1){ scanf("%d%d", &n, &m); if (n + m == 0){ break; } for (i = 0; i < n; i++){ scanf("%d", &map[i]); } ...
0
memory_bytes
{'s_id': 's055286552', 'p_id': 'p00467', 'u_id': 'u032763525', 'date': '1323436633', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '600'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 map[1000];\n int dx, now;\n int n, m;\n int i, j;\n int ans;\n \n w...
CDSS_548834
CDSS
#include <stdio.h> #include <stdlib.h> int compare_int(const void *a,const void *b){ if(*(int*)a > *(int*)b) return 1; return -1; } int max(int a,int b){ if(a > b){ return a; } return b; } int main(void){ int N; scanf("%d", &N); int A[N], B[N]; for (int i = 0; i < N; i++) { scanf("%d", &A[...
3,116
memory_bytes
{'s_id': 's343250072', 'p_id': 'p02971', 'u_id': 'u812973725', 'date': '1563671301', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '68', 'memory': '3116', 'code_size': '518'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 if(*(int*)a > *(int*)b) return 1;\n retur...
CDSS_468249
CDSS
#include <stdio.h> #include <string.h> int main(void) { char s[6]; int i, j = 0; scanf("%s", s) ; if((s[2]==s[3])&&(s[4]==s[5])) j++; if(j==1) puts("Yes"); else puts("No") ; return 0; }
128
memory_bytes
{'s_id': 's097007043', 'p_id': 'p02723', 'u_id': 'u816631826', 'date': '1589934796', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '238'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint main(void)\n{\n char s[6];\n int i, j = 0;\n scanf(\"%s\", s) ;\n if((s[2]==s...
CDSS_613220
CDSS
#include<stdio.h> #include<string.h> int main() { char a[5]; int l; gets(a); l=strlen(a); if(l==2) puts(a); else { putchar(a[2]); putchar(a[1]); putchar(a[0]);} }
128
memory_bytes
{'s_id': 's609325935', 'p_id': 'p03227', 'u_id': 'u676323984', 'date': '1540689121', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '185'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main()\n{\n char a[5];\n int l;\n gets(a);\n l=strlen(a);\n if(l==2)\n puts(a);\n el...
CDSS_239687
CDSS
#include <stdio.h> int main(void){ int n; scanf("%d",&n); printf("%d\n",n*n*n); return 0; }
2,104
memory_bytes
{'s_id': 's231374795', 'p_id': 'p02388', 'u_id': 'u778920139', 'date': '1531706194', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '108'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int n;\n scanf(\"%d\",&n);\n printf(\"%d\\n\",n*n*n);\n return 0;\n}\n\nPredict its ...
CDSS_364552
CDSS
#include <stdio.h> #include <string.h> int main() { int i, j; int sum[10000] = {}; char st[1000]; for( i = 0 ; ; i++ ) { sum[i] = 0; scanf("%s", st); if( st[0] == '0' ) break; for( j = 0 ; j < strlen(st) ; j++ ) { sum[i] = sum[i] + st[j] - '0'; } } for( j = 0 ; j < i...
2,064
memory_bytes
{'s_id': 's317761367', 'p_id': 'p02416', 'u_id': 'u716631227', 'date': '1528657150', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '360'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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{\n int i, j;\n int sum[10000] = {};\n char st[1000];\n\n for( i = 0 ; ; i+...
CDSS_505310
CDSS
#include <stdio.h> #include <limits.h> #include <math.h> int main(void) { int n, i, j, flag=0; scanf("%d", &n); for (i = n; i < 100200; i++) { for (j = 2; j <=sqrt(n); j++) { if (i % j == 0) { flag = 1; break; } } if (flag == 0) { printf("%d", i); return 0; } flag = 0; } }
128
memory_bytes
{'s_id': 's816503818', 'p_id': 'p02819', 'u_id': 'u034323841', 'date': '1587129508', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '314'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <limits.h>\n#include <math.h>\n\nint main(void)\n{\n\tint n, i, j, flag=0;\n\t\n\tscanf(\"%d\", &n);\n\t\...
CDSS_48198
CDSS
#include <stdio.h> int main ( void ) { int d,i,men=0,syoki; while(scanf("%d",&d)!=EOF){ syoki=600-d; for(i=syoki;i>0;i=i-d){ men=(i*i)*d+men; } printf("%d\n",men); men=0; } return 0; }
596
memory_bytes
{'s_id': 's356106237', 'p_id': 'p00014', 'u_id': 'u724424933', 'date': '1353154004', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '252'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 d,i,men=0,syoki;\n while(scanf(\"%d\",&d)!=EOF){\n syoki=600-d;\n fo...
CDSS_474207
CDSS
#include <stdio.h> char s[102][102]; int t[101][101]; int h, w; void dfs(char flag, int i, int j, int cost) { t[i][j] = cost; if (i < h && j + 1 < w) { if (s[i][j+1] == flag) { if (cost < t[i][j+1]) { dfs(flag, i, j+1, cost); } } else { if (cost + 1 < t[i][j+1]) { dfs(s[i...
256
memory_bytes
{'s_id': 's054630247', 'p_id': 'p02735', 'u_id': 'u871116581', 'date': '1584844565', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '256', 'code_size': '1107'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nchar s[102][102];\nint t[101][101];\nint h, w;\n\nvoid dfs(char flag, int i, int j, int cost) {\n t[i][j] = cos...
CDSS_695661
CDSS
#include <stdio.h> int main() { int A, B; scanf("%d %d", &A, &B); if(A % 3 == 0 || B % 3 == 0 || (A + B) % 3 == 0) { puts("Possible"); } else { puts("Impossible"); } return(0); }
128
memory_bytes
{'s_id': 's839896732', 'p_id': 'p03657', 'u_id': 'u383361456', 'date': '1500332321', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '197'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main()\n{\n\tint A, B;\n\t\n\tscanf(\"%d %d\", &A, &B);\n \n\tif(A % 3 == 0 || B % 3 == 0 || (A + B) % 3 ==...
CDSS_602588
CDSS
#include <stdio.h> #include <stdlib.h> int main(void) { long n,k; scanf("%ld %ld", &n, &k); long h[n]; for (long i = 0; i < n; i++) { scanf("%ld", &h[i]); } long min[n]; min[0] = 0; long cost; long current; for (long i = 1; i < n; i++) { current = -1; for (long j = i-k; j < i; j++) { ...
1,664
memory_bytes
{'s_id': 's917152255', 'p_id': 'p03161', 'u_id': 'u581816556', 'date': '1587376973', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '33', 'memory': '1664', 'code_size': '550'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 long n,k;\n scanf(\"%ld %ld\", &n, &k);\n long h[n];\n for (long i...
CDSS_695335
CDSS
#include<stdio.h> int main() { int a,b,c; scanf("%d%d",&a,&b); c=a+b; if(a%3==0){ printf("Possible"); } else if(b%3==0){ printf("Possible"); } else if(c%3==0){ printf("Possible"); } else { printf("Impossible"); } return 0; }
128
memory_bytes
{'s_id': 's730063183', 'p_id': 'p03657', 'u_id': 'u816631826', 'date': '1527757308', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '305'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int a,b,c;\n scanf(\"%d%d\",&a,&b);\n c=a+b;\n if(a%3==0){\n printf(\"Possible\"...
CDSS_415102
CDSS
#include<stdio.h> int main(){ int n; scanf("%d", &n); if(n % 10 == 3){ puts("bon"); } else if(n % 10 == 0 ||n % 10 == 1 ||n % 10 == 6 ||n % 10 == 8){ puts("pon"); } else puts("hon"); return 0; }
1,664
memory_bytes
{'s_id': 's023754910', 'p_id': 'p02675', 'u_id': 'u976260915', 'date': '1589764162', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1664', 'code_size': '213'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tint n;\n\t\n\tscanf(\"%d\", &n);\n\t\n\tif(n % 10 == 3){\n\t\tputs(\"bon\");\n\t}\n\telse if(n % 1...
CDSS_311465
CDSS
#include <stdio.h> int main(void) { int a,b,d,r; double f; scanf("%d",&a); scanf("%d",&b); scanf("%d",&d); scanf("%d",&r); scanf("%lf",&f); d=a/b; r=a%b; f=1.0*a/b; printf("%d %d %.5f\n",d,r,f); return 0; }
2,104
memory_bytes
{'s_id': 's797054155', 'p_id': 'p02399', 'u_id': 'u784371084', 'date': '1526344970', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '281'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void) \n{\n int a,b,d,r;\n double f;\n \n scanf(\"%d\",&a);\n scanf(\"%d\",&b);\n scanf...
CDSS_95965
CDSS
#include <stdio.h> int main(void) { int N,C,p[100]={},i,goukei=0,ans=0; scanf("%d %d",&N,&C); for(i=0;i<C;i++){ scanf("%d",&p[i]); goukei=goukei+p[i]; } ans=goukei/(N+1); if(goukei%(N+1)!=0){ printf("%d\n",ans+1); }else{ printf("%d\n",ans); } return 0; }
2,112
memory_bytes
{'s_id': 's916673588', 'p_id': 'p00377', 'u_id': 'u494540791', 'date': '1568275187', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '275'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint N,C,p[100]={},i,goukei=0,ans=0;\n\tscanf(\"%d %d\",&N,&C);\n\tfor(i=0;i<C;i++){\n\t\tsc...
CDSS_678128
CDSS
#include <stdio.h> int main(void) { int i,c=0; char s[4],t[4]; scanf("%s%s",s,t); for(i=0;i<3;i++) if(s[i]==t[2-i])c++; if(c==3)printf("YES\n"); else printf("NO\n"); return 0; }
1,660
memory_bytes
{'s_id': 's849854352', 'p_id': 'p03555', 'u_id': 'u048036733', 'date': '1594220039', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1660', 'code_size': '252'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int i,c=0;\n char s[4],t[4];\n\n scanf(\"%s%s\",s,t);\n for(i=0;...
CDSS_569017
CDSS
#include<stdio.h> int main(void){ int r, D; int x[11]; scanf("%d %d %d", &r, &D, &x[0]); for(int i = 1; i < 11; i++){ x[i] = r*x[i-1] - D; printf("%d\n", x[i]); } return 0; }
128
memory_bytes
{'s_id': 's669807209', 'p_id': 'p03036', 'u_id': 'u423656246', 'date': '1558832949', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '214'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int r, D;\n int x[11];\n scanf(\"%d %d %d\", &r, &D, &x[0]);\n for(int i = 1; i < 11;...
CDSS_589722
CDSS
#include<stdio.h> #include<stdlib.h> int main(void){ int N,M,C; scanf("%d %d %d",&N,&M,&C); int i,j; int **A, *B; 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<M;i++){ scanf("%d",...
128
memory_bytes
{'s_id': 's911886912', 'p_id': 'p03102', 'u_id': 'u308460366', 'date': '1552783308', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '632'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\nint main(void){\n int N,M,C;\n scanf(\"%d %d %d\",&N,&M,&C);\n int i,j;\n int **A, ...
CDSS_362049
CDSS
#include <stdio.h> int main(void) { char str; int i=0; for(i=0;i<1200;i++){ scanf("%c",&str); if(str >= 'A' && str <= 'Z'){ str = str + 32; } else if (str >= 'a' && str <= 'z'){ str = str - 32; } if(str == '\n' || str == '\0'){ break; } printf("%c",str); } printf("\n");...
524
memory_bytes
{'s_id': 's195376419', 'p_id': 'p02415', 'u_id': 'u247033742', 'date': '1494996684', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', '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>\n\nint main(void) {\n\tchar str;\n\tint i=0;\n\t\n\t\n\tfor(i=0;i<1200;i++){\n\t\tscanf(\"%c\",&str);\n\t\t\n\t\tif...
CDSS_505411
CDSS
#include <stdio.h> #include <string.h> int p[200100]; void sieve() { memset(p, 1, sizeof(p)); p[0] = p[1] = 0; for (int i = 2; i * i <= 200000; i++) { if (p[i]) { for (int j = i * i; j <= 200000; j += i) p[j] = 0; } } } int main() { int x; scanf("%d", &x); siev...
896
memory_bytes
{'s_id': 's169682407', 'p_id': 'p02819', 'u_id': 'u543921019', 'date': '1578874457', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '896', '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#include <string.h>\n\nint p[200100];\n\nvoid sieve() {\n memset(p, 1, sizeof(p));\n p[0] = p[1] = 0;\n f...
CDSS_298278
CDSS
#include <stdio.h> int main(void) { int i, x; for(i = 1; i>=0; i++){ scanf("%d", &x); if(x==0){ break; } printf("Case %d: %d\n", i, x); } return 0; }
2,044
memory_bytes
{'s_id': 's199429131', 'p_id': 'p02396', 'u_id': 'u929447360', 'date': '1526949398', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '168'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 i, x;\n\tfor(i = 1; i>=0; i++){\n\t\tscanf(\"%d\", &x);\n\t\t\n\t\tif(x==0){\n\t\t\tbreak...
CDSS_516025
CDSS
#include<stdio.h> #include<math.h> int check[8]={0}; double length(int a,int b,int c,int d){ return sqrt((a-b)*(a-b) + (c-d)*(c-d)); } int fact(int n) { int ans; if(n==1) return 1; ans=n*fact(n-1); return ans; } double ans[40320]={0}; int root[8]={0}; int num = 0; int x[8],y[8]; void calc(...
512
memory_bytes
{'s_id': 's536947772', 'p_id': 'p02861', 'u_id': 'u243407720', 'date': '1573958160', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '512', 'code_size': '1014'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 check[8]={0};\ndouble length(int a,int b,int c,int d){\n return sqrt((a-b)*(a-b) + (c-d)*(...
CDSS_219088
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #define MAX 100000 #define NIL -1 struct node{ int parent,left,right; }; struct node T[MAX]; int n, D[MAX], H[MAX]; void setdepth(int, int); int setheight(int); int getsibling(int); void print(int); int main(){ int i, v, l, r; int root = 0; scanf(...
2,108
memory_bytes
{'s_id': 's850246276', 'p_id': 'p02280', 'u_id': 'u808202712', 'date': '1547095651', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '1692'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\n#define MAX 100000\n#define NIL -1\n\nstruct node{\n int parent,left,...
CDSS_653499
CDSS
#include <stdio.h> int main(void) { int a, b, c; scanf("%d%d%d", &a, &b, &c); if(c <= (a+b)){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }
128
memory_bytes
{'s_id': 's304504100', 'p_id': 'p03407', 'u_id': 'u462078169', 'date': '1524232788', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '186'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int a, b, c;\n\n scanf(\"%d%d%d\", &a, &b, &c);\n\n if(c <= (a+b)){\n printf(\"Ye...
CDSS_627632
CDSS
#include<stdio.h> int main(void){ int n,i,j,cnt=0; scanf("%d",&n); for(i=0;i<=n/7;i++){ for(j=0;j<=n/4;j++){if(n==7*i+4*j){cnt=1;}} } printf(cnt?"Yes":"No"); return 0; }
128
memory_bytes
{'s_id': 's002410549', 'p_id': 'p03285', 'u_id': 'u075447091', 'date': '1589047696', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main(void){\n\tint n,i,j,cnt=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<=n/7;i++){\n\t\t\tfor(j=0;j<=n/4;j++){if(n==7...
CDSS_716359
CDSS
z[9999],a,b,c;f(x,y){fflush(!printf("? %d %d\n",x,y));scanf("%s",&b);b=b>78;}main(i){if(scanf("%d%d",&a,&b),a<=b){puts("Impossible");return;}for(i=a+=b;~--i;)!c||f(i,z[c-1])?(z[c++]=i):c--;for(c=*z,i=a;~--i;)z[i]=f(c,i);for(printf("! "),i=0;i<a;)printf("%d",z[i++]);}
788
memory_bytes
{'s_id': 's876871976', 'p_id': 'p03784', 'u_id': 'u280667879', 'date': '1489937953', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '296', 'memory': '788', '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:\nz[9999],a,b,c;f(x,y){fflush(!printf(\"? %d %d\\n\",x,y));scanf(\"%s\",&b);b=b>78;}main(i){if(scanf(\"%d%d\",&a,&b),a<=b){puts(\"Imposs...
CDSS_122879
CDSS
// AOJ 2113 Electrophoretic // 2018.3.11 bal4u #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define QMAX 10000 typedef struct { int s; double t; } QUE; QUE que[QMAX]; int qsize; #define PARENT(i) ((i)>>1) #define LEFT(i) ((i)<<1) #define RIGHT(i) (((i)<<1)+1) void min_heapify(int ...
3,488
memory_bytes
{'s_id': 's010046610', 'p_id': 'p01235', 'u_id': 'u847467233', 'date': '1520781909', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '3488', 'code_size': '5869'}
[ { "content": "Your task is to predict the memory 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 2113 Electrophoretic\n// 2018.3.11 bal4u\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n\n...
CDSS_530624
CDSS
#include<stdio.h> int main() { int N,A[60],B[60],C[60],i,sum=0; scanf("%d", &N); for(i=0;i<N;i++){ scanf("%d", &A[i]); } for(i=0;i<N;i++){ scanf("%d", &B[i]); } for(i=0;i<N-1;i++){ scanf("%d", &C[i]); } for(i=0,sum=0;i<N;i++){ if((A[i]-A[i-1])==1&&A[i...
128
memory_bytes
{'s_id': 's584128574', 'p_id': 'p02916', 'u_id': 'u018679195', 'date': '1587163879', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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 N,A[60],B[60],C[60],i,sum=0;\n scanf(\"%d\", &N);\n for(i=0;i<N;i++){\n scanf...
CDSS_738409
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #define MOD 1000000007LL #define max(x,y) ((x)>(y))?(x):(y) #define min(x,y) ((x)>(y))?(y):(x) long long factinv[900010], fact[900010]; void factorial(void) { int i, j; long long P, Q, R, EXP; fact[0] = 1; factinv[0] = 1; for (i=1;i<=900000;i++) { fac...
14,208
memory_bytes
{'s_id': 's168939986', 'p_id': 'p04004', 'u_id': 'u677149117', 'date': '1473957882', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '442', 'memory': '14208', 'code_size': '1385'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\n#define MOD 1000000007LL\n#define max(x,y) ((x)>(y))?(x):(y)\n#define ...
CDSS_216386
CDSS
#include <stdio.h> #define N 100000 typedef struct{ int id; int parent; int left; int right; } Node; int n; Node in[N]; void init(); int depth(int); int type(int); int main(){ int i, j, id2, a, d, k, temp; init(); scanf("%d", &n); for(i = 0; i < n; i++){ scanf("%d %d", &id2, &d); ...
1,980
memory_bytes
{'s_id': 's798286304', 'p_id': 'p02279', 'u_id': 'u215737801', 'date': '1339676926', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '110', 'memory': '1980', 'code_size': '1466'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define N 100000\n\ntypedef struct{\n\n int id;\n int parent;\n int left;\n int right;\n\n} Node;\n\nint n;\nN...
CDSS_560712
CDSS
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #include <ctype.h> #define MOD 1000000007 #define MAX(a,b) (a>b?a:b) #define MAX3(a,b,c) MAX(a,MAX(b,c)) #define MIN(a,b) (a<b?a:b) #define MIN3(a,b,c) MIN(a, MIN(b,c)) typedef long long lli; typedef struct { int tate; int yoko; } lamp...
128
memory_bytes
{'s_id': 's188799280', 'p_id': 'p03000', 'u_id': 'u543173665', 'date': '1560712246', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '583'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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#include <ctype.h>\n#define MOD 1000000007\n#define M...
CDSS_335921
CDSS
#include <stdio.h> int main(void) { int h, w; int i, j; scanf("%d%d", &h, &w); while(h||w){ for(i=0; i<h; i++){ for(j=0; j<w; j++){ if((i+j)%2==0){ printf("#"); } else{ printf("."); ...
572
memory_bytes
{'s_id': 's696452853', 'p_id': 'p02405', 'u_id': 'u829799608', 'date': '1478673024', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '473'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 h, w;\n int i, j;\n \n scanf(\"%d%d\", &h, &w);\n \n while(h||w){\n ...
CDSS_696013
CDSS
#include<stdio.h> #include<stdlib.h> int compare(const void *a,const void *b){ return *(int*)b-*(int*)a; } int main(){ int n,m; scanf("%d%d",&n,&m); int a[n]; for(int i=0;i<n;i++){ scanf("%d",&a[i]); } qsort(a,n,sizeof(int),compare); int cnt=0,ans=0; while(cnt<m){ ans+=a[...
128
memory_bytes
{'s_id': 's707480395', 'p_id': 'p03658', 'u_id': 'u993046043', 'date': '1543617046', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '382'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 compare(const void *a,const void *b){\n return *(int*)b-*(int*)a;\n}\nint main(){\n i...
CDSS_346026
CDSS
#include<stdio.h> int main() { int j, i, n, a[4][13], o; char s; for (j = 0; j < 4; j++) { for (i = 0; i < 13; i++) { a[j][i] = 0; } } scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%s %d", &s, &o); if (s == 'S'){ a[0][o - 1] = 1; } else if (s == 'H'){ a[1][o - 1] = 1; } else if (...
596
memory_bytes
{'s_id': 's358484306', 'p_id': 'p02408', 'u_id': 'u504760777', 'date': '1498466610', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '716'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint j, i, n, a[4][13], o;\n\tchar s;\n\tfor (j = 0; j < 4; j++)\n\t{\n\t\tfor (i = 0; i < 13; i++)...
CDSS_70709
CDSS
#include <stdio.h> #include <string.h> int main(void) { char str[101]; int i, j; while (scanf("%s", str) != EOF){ for (i = 0; i < strlen(str); i++){ if (str[i] == '@'){ for (j = 0; j < str[i+1] - '0'; j++){ printf("%c", str[i+2]); } i += 2; } else { printf("%c", str[i]); } } ...
524
memory_bytes
{'s_id': 's920590003', 'p_id': 'p00077', 'u_id': 'u334031393', 'date': '1409231644', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '350'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void)\n{\n\tchar str[101];\n\tint i, j;\n\t\n\twhile (scanf(\"%s\", str) != EOF){\...
CDSS_302847
CDSS
#include<stdio.h> int main(){ int x,y; while(1){ scanf("%d %d",&x,&y); if(x + y == 0) break; if(x > y){ printf("%d %d\n",y,x); }else{ printf("%d %d\n",x,y); } } return 0; }
2,048
memory_bytes
{'s_id': 's155371146', 'p_id': 'p02397', 'u_id': 'u414147590', 'date': '1526890283', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '222'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int x,y;\n\n while(1){\n scanf(\"%d %d\",&x,&y);\n\n if(x + y == 0) break;\n\n if(x > y)...
CDSS_120852
CDSS
#include <stdio.h> int main(void){ int i,j; int count; int map[21][21]; int n,m; int x,y; int jx,jy; int l; char d; while(1){ count=0; x=10; y=10; for(i=0;i<21;i++){ for(j=0;j<21;j++){ map[i][j]=0; } } scanf("%d",&n); if(n == 0){ break; } else{ for(i=0;i<n;i++){ scanf(...
584
memory_bytes
{'s_id': 's807605515', 'p_id': 'p01125', 'u_id': 'u583163141', 'date': '1453883207', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '838'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\tint i,j;\n\tint count;\n\tint map[21][21];\n\tint n,m;\n\tint x,y;\n\tint jx,jy;\n\tint l;\n\...
CDSS_238600
CDSS
#include<stdio.h> #include<string.h> void N(int dice[]); void E(int dice[]); void S(int dice[]); void W(int dice[]); void turn(int dice[]); int main(void){ int dice1[6],dice2[6],dice3[6]; int i,j,flag=0; scanf("%d %d %d %d %d %d",&dice1[0],&dice1[1],&dice1[2],&dice1[3],&dice1[4],&dice1[5]); scanf("%d %d %d %d %d %d...
580
memory_bytes
{'s_id': 's233367596', 'p_id': 'p02385', 'u_id': 'u670231642', 'date': '1447970435', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '1586'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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>\nvoid N(int dice[]);\nvoid E(int dice[]);\nvoid S(int dice[]);\nvoid W(int dice[]);\nvoid turn(i...
CDSS_362433
CDSS
#include <stdio.h> #include <string.h> #define rep(i, a) for(int i = 0; i < a; ++i) int main(void) { char s[1500]; int i, j = 0; while(scanf("%s", s) != EOF) { if(j) printf(" "); else j = 1; rep(i, strlen(s)) { if(s[i] >= 'a' && s[i] <= 'z') printf("%c", s[i] + 'A' - 'a'); else if(s[i] >...
2,044
memory_bytes
{'s_id': 's931961296', 'p_id': 'p02415', 'u_id': 'u949483624', 'date': '1525963580', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '445'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 rep(i, a) for(int i = 0; i < a; ++i)\n \nint main(void) {\n char s[1500];\n int i, ...
CDSS_411378
CDSS
#include <stdio.h> int main() { long long A; double B; scanf("%lld %lf", &A, &B); printf("%lld\n", A * (int)(B * 100 + 0.5) / 100); }
1,744
memory_bytes
{'s_id': 's958410298', 'p_id': 'p02659', 'u_id': 'u347640436', 'date': '1590987893', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1744', '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\tlong long A;\n\tdouble B;\n\n\tscanf(\"%lld %lf\", &A, &B);\n\tprintf(\"%lld\\n\", A * (int)(B *...
CDSS_395437
CDSS
#include <stdio.h> #include <string.h> int main(){ char input1[200001], input2[200001]; int diff = 0, len; gets(input1); gets(input2); for(int i = 0; i < strlen(input1); i++) if(input1[i] != input2[i]) diff++; printf("%d\n", diff); return 0; }
2,012
memory_bytes
{'s_id': 's841269034', 'p_id': 'p02622', 'u_id': 'u172444704', 'date': '1598803172', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '2012', 'code_size': '261'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tchar input1[200001], input2[200001];\n\tint diff = 0, len;\n\n\tgets(input1)...
CDSS_428630
CDSS
#include<stdio.h> long int x, N, f, A, B; int main(){ scanf("%ld%ld%ld",&A, &B, &N); if(N<B-1){ f=A*N/B; }else{ f=A*(B-1)/B; } printf("%ld",f); return 0; }
1,684
memory_bytes
{'s_id': 's954850408', 'p_id': 'p02696', 'u_id': 'u902343589', 'date': '1588483766', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1684', 'code_size': '175'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nlong int x, N, f, A, B;\nint main(){\n scanf(\"%ld%ld%ld\",&A, &B, &N);\n if(N<B-1){\n f=A*N/B;\n }else{\n ...
CDSS_515377
CDSS
#include <stdio.h> #include <stdlib.h> typedef char string[101]; int main() { int N, A = 0, B = 0; string S; scanf("%d", &N); scanf("%s", S); if (N % 2 != 0) { printf("No\n"); exit(0); } for (int i = 0; i < N / 2; i++) { A += S[i]; B += S[i + N / 2]; } ...
256
memory_bytes
{'s_id': 's150377251', 'p_id': 'p02860', 'u_id': 'u357630630', 'date': '1574271282', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '379'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 char string[101];\n\nint main() {\n int N, A = 0, B = 0;\n string S;\n sca...
CDSS_116007
CDSS
#include <stdio.h> #define N_MAX 100 #define S_MAX 100+1 int main(void) { int n, m, t1, t2, s1[N_MAX], s2[N_MAX], i; int x1, x2; while(1){ scanf("%d %d",&n,&m); if(n+m==0) return 0; t1 = t2 = 0; x1 = x2 = S_MAX; for(i=0; i<n; i++) scanf("%d",s1+i), t1+=s1[i]; for(i=0; i<m; i...
0
memory_bytes
{'s_id': 's089928115', 'p_id': 'p00734', 'u_id': 'u655658530', 'date': '1342065019', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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 N_MAX 100\n#define S_MAX 100+1\n\nint main(void)\n{\n int n, m, t1, t2, s1[N_MAX], s2[N_MAX], i;\n ...
CDSS_473337
CDSS
#include<stdio.h> #include<string.h> int main() { int l; int i; double max; scanf("%d",&l); max=(l/3.0)*(l/3.0)*(l/3.0); printf("%f\n",max); return 0; }
128
memory_bytes
{'s_id': 's646642029', 'p_id': 'p02731', 'u_id': 'u530411589', 'date': '1584928966', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '172'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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{\n int l;\n int i;\n double max;\n\n scanf(\"%d\",&l);\nmax=(l/3.0)*(l/3.0)*...
CDSS_253014
CDSS
#include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); int area = a*b; int perimeter = 2*a + 2*b; printf("%d %d\n", area, perimeter); return 0; }
596
memory_bytes
{'s_id': 's427410572', 'p_id': 'p02389', 'u_id': 'u347010700', 'date': '1474256576', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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\nmain()\n{\n\tint a, b;\n\tscanf(\"%d %d\", &a, &b);\n\n\tint area = a*b;\n\tint perimeter = 2*a + 2*b;...
CDSS_434222
CDSS
#include <stdio.h> int main(int argc, char **argv) { int a, b, c, d ; scanf("%d %d %d %d", &a, &b, &c, &d) ; while(1){ c -= b ; if (c <= 0){ printf("Yes\n") ; break ; } a -= d ; if (a <= 0){ printf("No\n") ; break ; ...
1,664
memory_bytes
{'s_id': 's494371894', 'p_id': 'p02700', 'u_id': 'u705531158', 'date': '1587950235', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1664', 'code_size': '351'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 **argv) {\n int a, b, c, d ;\n scanf(\"%d %d %d %d\", &a, &b, &c, &d) ;\n\n whi...
CDSS_336005
CDSS
#include <stdio.h> int main(void) { int H, W; int i, j; while (1) { scanf("%d %d", &H, &W); if (H == 0 && W == 0) { break; } for (i = 1; i <= H; i++) { for (j = 1; j <= W; j++) { if ((i + j) % 2 == 0) { printf("#"); } else { printf("."); } } printf("\n"); } printf...
572
memory_bytes
{'s_id': 's881106475', 'p_id': 'p02405', 'u_id': 'u627448076', 'date': '1491921367', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '343'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void) {\n\tint H, W;\n\tint i, j;\n\n\twhile (1) {\n\t\tscanf(\"%d %d\", &H, &W);\n\n\t\tif (H == 0 && W ...
CDSS_601524
CDSS
#include <stdio.h> int main(void) { int n,h,w; scanf("%d",&n); scanf("%d",&h); scanf("%d",&w); printf("%d\n",(n-h+1)*(n-w+1)); }
128
memory_bytes
{'s_id': 's141312032', 'p_id': 'p03155', 'u_id': 'u692704469', 'date': '1547325872', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', '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\nint main(void)\n{\n int n,h,w;\n\tscanf(\"%d\",&n);\n\tscanf(\"%d\",&h);\n scanf(\"%d\",&w);\n \n\tprintf(\...
CDSS_84253
CDSS
#include<stdio.h> int main(void){ int i; int climbway[30]; int stair; climbway[0]=1; climbway[1]=2; climbway[2]=4; for(i=3;i<30;i++){ climbway[i]= climbway[i-1] +climbway[i-2] +climbway[i-3]; } for(i=0;i<30;i++){ if(climbway[i]%3650==0){ climbway[i]/=3650; }else{...
0
memory_bytes
{'s_id': 's084882650', 'p_id': 'p00168', 'u_id': 'u846661244', 'date': '1324440811', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '500'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int i;\n int climbway[30];\n int stair;\n\n climbway[0]=1;\n climbway[1]=2;\n climbway[2]...
CDSS_722088
CDSS
sz; k; char x[18],buf[2200000]; A,B,p,T; long ans; main() { sz=read(0,buf,2200000); sz-=2; while(1) { A=B=0; p=1; while(1) { k=buf[sz--]; if(k<'0')break; B+=(k-'0')*p; p*=10; } p=1; if(sz<0)break; while(1) { k=buf[sz--]; if(k<'0')break; A+=(k-'0')*p; p*=10; } T=(-A-ans)...
2,304
memory_bytes
{'s_id': 's124578808', 'p_id': 'p03821', 'u_id': 'u657913472', 'date': '1573075758', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '2304', 'code_size': '430'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nsz;\nk;\nchar x[18],buf[2200000];\nA,B,p,T;\nlong ans;\nmain()\n{\n\tsz=read(0,buf,2200000);\n\tsz-=2;\n\twhile(1)\n\t{\n\t\tA=B=0;\n\...
CDSS_303344
CDSS
#include<stdio.h> int main(){ int num1, num2; while(1) { scanf("%d%d", &num1,&num2); if(num1==0 && num2==0){ break; } int max,min; if(num1 > num2){ max = num1; min = num2; }else{ max = num2; min = num1; } printf("%d %d\n",min,max); } return 0; }
600
memory_bytes
{'s_id': 's936391522', 'p_id': 'p02397', 'u_id': 'u193025715', 'date': '1394468990', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '319'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int num1, num2;\n while(1) {\n scanf(\"%d%d\", &num1,&num2);\n if(num1==0 && num2==0){\n ...
CDSS_712181
CDSS
#include <stdio.h> int main() { int a,b,c,tm,tm2; scanf("%d%d%d",&a,&b,&c); tm=b-a; tm2=c-b; if(tm==tm2) printf("YES\n"); else printf("NO\n"); return 0; }
128
memory_bytes
{'s_id': 's573666410', 'p_id': 'p03759', 'u_id': 'u089230684', 'date': '1531852029', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\n\nint main()\n{\n int a,b,c,tm,tm2;\n scanf(\"%d%d%d\",&a,&b,&c);\n tm=b-a;\n tm2=c-b;\n if(tm==tm2...
CDSS_513508
CDSS
#include <float.h> #include <inttypes.h> #include <limits.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> #include <math.h> #ifdef __cplusplus #include <bits/stdc++.h> #endif #define getchar getchar #define putchar putchar int...
2,008
memory_bytes
{'s_id': 's278970351', 'p_id': 'p02852', 'u_id': 'u292252214', 'date': '1592865245', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '19', 'memory': '2008', 'code_size': '1362'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <float.h>\n#include <inttypes.h>\n#include <limits.h>\n#include <stdbool.h>\n#include <stdint.h>\n#include <stdio.h>\n#includ...
CDSS_92254
CDSS
#include <stdio.h> int main(void) { int i; int n; scanf("%d", &n); for (i = 0; i < n; i++){ int x, y, b, p; int sum = 0; scanf("%d %d %d %d", &x, &y, &b, &p); sum = x * b + y * p; if (b >= 5 && p >= 2){ sum *= 0.8; } else { if (b < 5){ b = 5; } if (p < 2){ p = 2; } ...
600
memory_bytes
{'s_id': 's815382341', 'p_id': 'p00273', 'u_id': 'u958626383', 'date': '1408350750', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '439'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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;\n\tint n;\n\t\n\tscanf(\"%d\", &n);\n\t\n\tfor (i = 0; i < n; i++){\n\t\tint x, y, b...
CDSS_322468
CDSS
#include<stdio.h> int main(){ int n,i,max,min,a[10000]; long long int sum; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a[i]); } max=a[0]; min=a[0]; for(i=0;i<n;i++){ if(min>a[i]){ min=a[i]; } if(max<a[i]){ max=a[i]; } sum+=a[i]; } printf("%d %d %lld\n",min,ma...
636
memory_bytes
{'s_id': 's563426316', 'p_id': 'p02402', 'u_id': 'u427146077', 'date': '1454832930', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '343'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\n int n,i,max,min,a[10000];\n long long int sum;\n \n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\n ...
CDSS_129945
CDSS
#include<stdio.h> int n, F[45]; int fibonacci(int n){ if(n == 0 || n == 1) return F[n] = 1; if(F[n] != -1) return F[n]; return F[n] = fibonacci(n - 2) + fibonacci(n - 1); } int main(){ int i; for(i = 0; i < 45; i++) F[i] = -1; scanf("%d", &n); printf("%d\n", fibonacci(n)); return 0;...
596
memory_bytes
{'s_id': 's390577563', 'p_id': 'p02233', 'u_id': 'u277993562', 'date': '1467780670', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '322'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint n, F[45];\n\nint fibonacci(int n){\n if(n == 0 || n == 1) return F[n] = 1;\n if(F[n] != -1) return...
CDSS_68262
CDSS
#include <stdio.h> int main(void) { char str[16]; int i, last; while (~scanf("%s", str)){ last = 9; while (last > 0){ for (i = 0; i < last; i++){ str[i] = ((str[i] - '0') + (str[i + 1] - '0')) % 10 + '0'; } last--; } printf("%c\n", *str); } return (0); }
540
memory_bytes
{'s_id': 's608587411', 'p_id': 'p00062', 'u_id': 'u490032117', 'date': '1403087559', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '540', 'code_size': '283'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tchar str[16];\n\tint i, last;\n\n\twhile (~scanf(\"%s\", str)){\n\t\tlast = 9;\n\t\twhile (...
CDSS_383114
CDSS
#include <stdio.h> int main() { int i, N, A[6001]; scanf("%d", &N); for (i = 1; i <= N * 3; i++) scanf("%d", &(A[i])); int j, k = 1; char dp[2001][2001] = {}, tmp[2001], count[2001] = {}, flag[2001][2001] = {}, tmp_flag[2001]; dp[1][A[1]]++; dp[1][A[2]]++; for (i = 1; i < N; i++) { if (A[i*3] == A[i*3+1] &...
9,584
memory_bytes
{'s_id': 's135104579', 'p_id': 'p02581', 'u_id': 'u943800443', 'date': '1599116840', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '35', 'memory': '9584', 'code_size': '10576'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 i, N, A[6001];\n\tscanf(\"%d\", &N);\n\tfor (i = 1; i <= N * 3; i++) scanf(\"%d\", &(A[i]))...
CDSS_551550
CDSS
#include <stdio.h> #include <math.h> int main(void) { int n, d, ans = 0; int x[10][10]; int i, j, k; double cal; scanf("%d %d", &n, &d); for (i = 0; i < n; i++) { for (j = 0; j < d; j++) { scanf("%d", &x[i][j]); } } for (i = 0; i < n; i++) { for (j = 0; j < n; j++) { if (i == j) continue; ...
128
memory_bytes
{'s_id': 's462354910', 'p_id': 'p02982', 'u_id': 'u846686917', 'date': '1562557155', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '518'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tint n, d, ans = 0;\n\tint x[10][10];\n\tint i, j, k;\n\tdouble cal;\n\t\...
CDSS_443301
CDSS
#include<stdio.h> int main() { long int n,t,i,sum=0,a[10005]; scanf("%ld %ld",&n,&t); for(i=0; i<t; i++) { scanf("%ld",&a[i]); sum=sum+a[i]; } if(n>=sum){ printf("%ld\n",n-sum); } else { printf("-1\n"); } return 0; }
1,788
memory_bytes
{'s_id': 's295742621', 'p_id': 'p02706', 'u_id': 'u772221236', 'date': '1587348466', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1788', 'code_size': '290'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n long int n,t,i,sum=0,a[10005];\n \n scanf(\"%ld %ld\",&n,&t);\n for(i=0; i<t; i++)\n ...
CDSS_579831
CDSS
#include <stdio.h> int main(){ int a,b; scanf("%d%d", &a, &b); int ans; if(a == b){ ans = 2 * a; }else if(a > b){ ans = 2 * a - 1; }else{ ans = 2 * b - 1; } printf("%d\n", ans); return 0; }
128
memory_bytes
{'s_id': 's529814466', 'p_id': 'p03071', 'u_id': 'u858642242', 'date': '1555328413', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '218'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int a,b;\n scanf(\"%d%d\", &a, &b);\n int ans;\n if(a == b){\n ans = 2 * a;\n }else if(a > b)...
CDSS_532516
CDSS
#include<stdio.h> int main(void){ int A,B,n=1,x; scanf("%d %d",&A,&B); if(B==1){ printf("0"); return 0; } x=A; while(x<B){ x=x+A-1; n+=1; } printf("%d\n",n); return 0; }
1,720
memory_bytes
{'s_id': 's134603202', 'p_id': 'p02922', 'u_id': 'u517660694', 'date': '1595620979', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1720', '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>\n\nint main(void){\n int A,B,n=1,x;\n scanf(\"%d %d\",&A,&B);\n if(B==1){\n printf(\"0\");\n return 0;\n }...
CDSS_86260
CDSS
#include <stdio.h> #include <math.h> #include <stdlib.h> int i,j,k,n,x,point[15][2],order[15]; char team[15]; void swap (int* x,int* y){ int z; z=*x; *x=*y; *y=z; } int main(){ while(scanf("%d",&n)*n){ for(i=0;i<n;i++){ scanf("\n%c",&team[i]); order[i]=i; point[i][0]=0; point[i][1]=0; for(j=1;j...
600
memory_bytes
{'s_id': 's071522573', 'p_id': 'p00196', 'u_id': 'u263489624', 'date': '1375679909', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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#include <math.h>\n#include <stdlib.h>\n\nint i,j,k,n,x,point[15][2],order[15];\nchar team[15];\n\nvoid swap (int*...
CDSS_168083
CDSS
#include<stdio.h> #include<stdlib.h> void bubbleSort(int *A,int N); int main(){ int *A,i,N; scanf("%d\n",&N); A=(int *)malloc(N*sizeof(int)); for(i=0;i<N;i++){ scanf("%d",&A[i]); } bubbleSort(A,N); return 0; } void bubbleSort(int *A,int N){ int flag=1,i,count=0,j,v; while(flag){ flag=0; fo...
2,144
memory_bytes
{'s_id': 's461878237', 'p_id': 'p02259', 'u_id': 'u563626345', 'date': '1529548390', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '555'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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>\nvoid bubbleSort(int *A,int N);\nint main(){\n int *A,i,N;\n scanf(\"%d\\n\",&N);\n A=(int *)...
CDSS_305277
CDSS
#include <stdio.h> int main(void) { // 1_3-A Print Many Hello World int a,b,c; int i,ans = 0; scanf("%d %d %d",&a,&b,&c); for(i=1; i<=c; i++){ if(c%i==0){ if(a<=i && i<=b){ ans++; } } } printf("%d\n",ans); return 0; }
596
memory_bytes
{'s_id': 's016585454', 'p_id': 'p02398', 'u_id': 'u525266810', 'date': '1471321379', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '251'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n\nint main(void) {\n\n\t// 1_3-A Print Many Hello World\n\n\tint a,b,c;\n\tint i,ans = 0;\n\tscanf(\"%d %d %d\",...
CDSS_165239
CDSS
#include <stdio.h> int main(){ int i,N,j,A[100],flag,tmp,count=0; scanf("%d",&N); for(i = 0; i < N; i++){ scanf("%d",&A[i]); } for(j = 0; j < N-1; j++){ for(i = N-1; i >= 1+j; i--){ if(A[i] < A[i-1]){ tmp = A[i]; A[i] = A[i-1]; A[i-1] = tmp; count++; } } } for(i = 0; i < N-1; i...
600
memory_bytes
{'s_id': 's056896370', 'p_id': 'p02259', 'u_id': 'u096341170', 'date': '1460600078', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '413'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int i,N,j,A[100],flag,tmp,count=0;\n scanf(\"%d\",&N);\n for(i = 0; i < N; i++){\n scanf(\"%d\...
CDSS_544662
CDSS
#include<stdio.h> #include<stdlib.h> int main() { int a,b,nd=0,x,y,z=1,i,X,sum=0; scanf("%d",&a); int A[a]; for(i=0;i<a;i++){ scanf("%d",&A[i]); } for(i=0;i<a;i++,z++) { if(A[i]!=z) sum++; } if(sum<=2)printf("YES\n"); else printf("NO\n"); re...
1,640
memory_bytes
{'s_id': 's123333981', 'p_id': 'p02958', 'u_id': 'u913919241', 'date': '1600432553', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1640', 'code_size': '332'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\n\nint main()\n{\n\n int a,b,nd=0,x,y,z=1,i,X,sum=0;\n\n scanf(\"%d\",&a);\n\n int A[...
CDSS_628483
CDSS
#include<stdio.h> int main() { int n; scanf("%d", &n); int ans[1000]; int i = 0; if (n == 0) { printf("0\n"); return 0; } while (n != 0) { if (n % 2 == 0) ans[i] = 0; else { ans[i] = 1; n--; } ...
128
memory_bytes
{'s_id': 's067891472', 'p_id': 'p03286', 'u_id': 'u600300412', 'date': '1534102963', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '445'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 ans[1000];\n int i = 0;\n if (n == 0)\n {\n ...
CDSS_642134
CDSS
#include <stdio.h> int main() { int A, B; scanf("%d %d", &A, &B); int ADD = A+B; int SUB = A-B; int MLT = A*B; if (MLT >= ADD) { if (ADD >= SUB) printf("%d", MLT); else if (MLT >= SUB) printf("%d", MLT); else printf("%d", SUB); } else if (ADD >= SUB) { if (SUB >= ML...
128
memory_bytes
{'s_id': 's653719706', 'p_id': 'p03337', 'u_id': 'u601062465', 'date': '1528408213', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '613'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n int A, B;\n scanf(\"%d %d\", &A, &B);\n int ADD = A+B;\n int SUB = A-B;\n int MLT = A*B;\n ...
CDSS_49344
CDSS
#include <stdio.h> #include <string.h> int main(void) { int n, i, j, len, s, c; char f[90], f2[90], t[90], t2[90], ans[90]; scanf("%d", &n); for (i = 0; i < n; i++){ for (j = 0; j < 90; j++){ t[j] = '0'; t2[j] = '0'; } sca...
584
memory_bytes
{'s_id': 's050043119', 'p_id': 'p00015', 'u_id': 'u135535121', 'date': '1380182671', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '1413'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n \nint main(void)\n{\n int n, i, j, len, s, c;\n char f[90], f2[90], t[90], t2[90], ans...
CDSS_317373
CDSS
#include <stdio.h> #include <math.h> int main() { double r; scanf("%lf", &r); printf("%lf %lf\n", r*r*M_PI, 2*r*M_PI); return 0; }
2,100
memory_bytes
{'s_id': 's644844838', 'p_id': 'p02400', 'u_id': 'u187982575', 'date': '1558172043', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '136'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tdouble r;\n\tscanf(\"%lf\", &r);\n\tprintf(\"%lf %lf\\n\", r*r*M_PI, 2*r*M_PI...
CDSS_484255
CDSS
#include<stdio.h> int main() { int n,r,d; scanf("%d %d",&n,&r); if(n>=10) { printf("%d\n",r); } else { d=r+(100*(10-n)); printf("%d\n",d); } return 0; }
128
memory_bytes
{'s_id': 's181871251', 'p_id': 'p02765', 'u_id': 'u323981871', 'date': '1586932722', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '204'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int n,r,d;\n scanf(\"%d %d\",&n,&r);\n if(n>=10)\n {\n printf(\"%d\\n\",r);\n ...
CDSS_201857
CDSS
#include <stdio.h> #include <stdlib.h> void merge(int[],int,int,int); void Sort(int[],int,int); int count = 0; int main() { int i,n,S[500000]; scanf("%d",&n); for(i = 0;i < n;i++) { scanf("%d",&S[i]); } Sort(S,0,n); for(i = 0;i < n;i++) { if(i >0) printf(" "); printf("%d",S[...
5,456
memory_bytes
{'s_id': 's774448932', 'p_id': 'p02272', 'u_id': 'u005337603', 'date': '1545633239', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '120', 'memory': '5456', 'code_size': '1158'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nvoid merge(int[],int,int,int);\nvoid Sort(int[],int,int);\n\n\nint count = 0;\n\nint main...
CDSS_479063
CDSS
#include<stdio.h> int main() { long n,a,b,l,m; scanf("%ld%ld%ld",&n,&a,&b); l=a+b; if(n%l==0) m=a*(n/l); else if(n%l>=a) m=a*(n/l)+a; else m=a*(n/l)+n%l; printf("%ld",m); return 0; }
128
memory_bytes
{'s_id': 's495931042', 'p_id': 'p02754', 'u_id': 'u596813883', 'date': '1586832604', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '198'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tlong n,a,b,l,m;\n\n\tscanf(\"%ld%ld%ld\",&n,&a,&b);\n\tl=a+b;\n\tif(n%l==0)\n\t\tm=a*(n/l);\n\te...
CDSS_468904
CDSS
#include <stdio.h> int main() { char p[6]; for(int i=1;i<=6;i++) { scanf("%s", &p[i]);} if((p[3]==p[4])&&(p[5]==p[6])) { printf("Yes"); } else{ printf("No");} return 0; }
128
memory_bytes
{'s_id': 's612507770', 'p_id': 'p02723', 'u_id': 'u218046008', 'date': '1585444529', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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 main()\n{\n char p[6];\n for(int i=1;i<=6;i++)\n {\n scanf(\"%s\", &p[i]);}\n if((p[3]==p...
CDSS_720862
CDSS
#include<stdio.h> int main(void){ int x; scanf("%d",&x); if(x<1200){ printf("ABC\n"); }else{ printf("ARC\n"); } return 0; }
128
memory_bytes
{'s_id': 's746598450', 'p_id': 'p03813', 'u_id': 'u699796231', 'date': '1498933844', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '166'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int x;\n scanf(\"%d\",&x);\n if(x<1200){\n printf(\"ABC\\n\");\n }else{\n ...
CDSS_46150
CDSS
#include<stdio.h> #include<stdlib.h> #include<time.h> int change(int *); int main(void) { int w,n,i; int amida[100]; scanf("%d %d",&w,&n);//縦棒と横棒の数 for(i = 0;i <= w;i ++){ amida[i] = (i + 1); } for(i = 0;i < n;i ++){ change(amida); } for(i = 0;i < w;i ++){ printf("%d\n",amida[i]); } return 0; } ...
592
memory_bytes
{'s_id': 's367042125', 'p_id': 'p00011', 'u_id': 'u783707634', 'date': '1397974551', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '547'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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<time.h>\n\nint change(int *); \nint main(void)\n{\n\tint w,n,i;\n\tint amida[100];\n\n...
CDSS_112821
CDSS
double D,px,py,vx,vy,a,p,l; main(){ for(;scanf("%lf",&D),D;){ scanf("%lf%lf%lf%lf",&px,&py,&vx,&vy); p=px*vx+py*vy; a=hypot(px,py); l=D+1; if(fabs(px*vy-py*vx)<1e-9) l=p<0?a:2-a; if(D>=l) printf("%.8f\n",l); else puts("impossible"); } exit(0); }
0
memory_bytes
{'s_id': 's348155979', 'p_id': 'p00639', 'u_id': 'u399107199', 'date': '1296316978', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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:\ndouble D,px,py,vx,vy,a,p,l;\nmain(){\n\tfor(;scanf(\"%lf\",&D),D;){\n\t\tscanf(\"%lf%lf%lf%lf\",&px,&py,&vx,&vy);\n\t\tp=px*vx+py*vy;\...
CDSS_693209
CDSS
#include <stdio.h> int n; void zjq() { printf("ABC%d\n",n); } void mzy() { scanf("%d",&n); zjq(); } int main() { mzy(); return 0; }
128
memory_bytes
{'s_id': 's292219950', 'p_id': 'p03643', 'u_id': 'u247366051', 'date': '1535817904', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', '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>\nint n;\nvoid zjq()\n{\n printf(\"ABC%d\\n\",n);\n}\nvoid mzy()\n{\n scanf(\"%d\",&n);\n zjq();\n}\nint ma...
CDSS_309288
CDSS
#include <stdio.h> int main(void) { int a,b; scanf("%d",&a); scanf("%d",&b); printf("%d %d %.5lf\n",a/b,a%b,(double)a/(double)b); return 0; }
640
memory_bytes
{'s_id': 's997817723', 'p_id': 'p02399', 'u_id': 'u102411741', 'date': '1464085849', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '147'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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;\n\tscanf(\"%d\",&a);\n\tscanf(\"%d\",&b);\n\tprintf(\"%d %d %.5lf\\n\",a/b,a%b,(dou...
CDSS_625284
CDSS
#include <stdio.h> int main(){ int a, b, luas; scanf("%d",&a); scanf("%d",&b); luas=(a-1)*(b-1); printf("%d", luas); return 0; }
128
memory_bytes
{'s_id': 's748942623', 'p_id': 'p03280', 'u_id': 'u018679195', 'date': '1535907729', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '159'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\n int a, b, luas;\n\n scanf(\"%d\",&a);\n scanf(\"%d\",&b);\n\n luas=(a-1)*(b-1);\n\n ...
CDSS_506729
CDSS
#include<stdio.h> int main() { int A, B; scanf("%d %d", &A, &B); if((A==1)&&(B==2)) printf("3\n"); else if((A==1)&&(B==3)) printf("2\n"); else if((A==2)&&(B==3)) printf("1\n"); else if((A==3)&&(B==2)) printf("1\n"); else if((A==3)&&(B==1)) printf("2\n"...
128
memory_bytes
{'s_id': 's506916879', 'p_id': 'p02829', 'u_id': 'u353919145', 'date': '1581301781', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '433'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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;\n scanf(\"%d %d\", &A, &B);\n if((A==1)&&(B==2))\n printf(\"3\\n\");\n ...
CDSS_264505
CDSS
#include<stdio.h> int main( ) { int n,h,m,s; scanf("%d",&n); h = n/3600; m = (n-h*3600)/60; s = n-h*3600-m*60; printf("%d:%d:%d\n" ,h,m,s); return 0; }
2,084
memory_bytes
{'s_id': 's218932017', 'p_id': 'p02390', 'u_id': 'u361746555', 'date': '1568805869', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2084', 'code_size': '165'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main( )\n{\n\tint n,h,m,s;\n\tscanf(\"%d\",&n);\n\th = n/3600;\n\tm = (n-h*3600)/60;\n\ts = n-h*3600-m*60;\n ...
CDSS_744213
CDSS
#include<stdio.h> int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); if( a==5&&b==5&&c==7 ||a==7&&b==5&&c==5 ||a==5&&b==7&&c==5) printf("YES"); else printf("NO"); return 0; }
128
memory_bytes
{'s_id': 's227129132', 'p_id': 'p04043', 'u_id': 'u816631826', 'date': '1580537878', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '204'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int a,b,c;\n scanf(\"%d %d %d\",&a,&b,&c);\n if( a==5&&b==5&&c==7 ||a==7&&b==5&&c==5 ||a==...