identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_490510
CDSS
#include <stdio.h> char s[101]; int main(void){ int i; scanf("%s", s); for(i = 0; s[i]; i++){ printf("x"); } return 0; }
1,660
memory_bytes
{'s_id': 's686496345', 'p_id': 'p02778', 'u_id': 'u818573308', 'date': '1593010573', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1660', 'code_size': '164'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nchar s[101];\nint main(void){\n int i;\n \n scanf(\"%s\", s);\n \n for(i = 0; s[i]; i++){\n ...
CDSS_70161
CDSS
#include<stdio.h> int main(){ int hour, minute, second, allsecond1, allsecond2; int hour1, minute1, second1; int hour2, minute2, second2; while(1){ scanf("%d %d %d", &hour, &minute, &second); if(hour == -1 && minute == -1 && second == -1) break; allsecond1 = 7200 - (3600 * hour + 60 * minute + se...
0
memory_bytes
{'s_id': 's803880166', 'p_id': 'p00074', 'u_id': 'u278606251', 'date': '1322370211', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '1070'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 hour, minute, second, allsecond1, allsecond2;\n int hour1, minute1, second1;\n int hour2, mi...
CDSS_673882
CDSS
#include<stdio.h> int main() { int n,m,k; while(~scanf("%d %d %d",&n,&m,&k)) { int s; s=n*m; if(s<k) printf("%d\n",s); else printf("%d\n",k); } return 0; }
128
memory_bytes
{'s_id': 's042521979', 'p_id': 'p03501', 'u_id': 'u540636572', 'date': '1512353655', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '174'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,m,k;\n\twhile(~scanf(\"%d %d %d\",&n,&m,&k))\n\t{\n\t\tint s;\n\t\ts=n*m;\n\t\tif(s<k)\n\t\t...
CDSS_264525
CDSS
#include<stdio.h> int main(void) { int S,h,m,s; scanf("%d",&S); h=S/3600; S=S%3600; m=S/60; s=S%60; printf("%d:%d:%d\n",h,m,s); return 0; }
2,136
memory_bytes
{'s_id': 's565134260', 'p_id': 'p02390', 'u_id': 'u724466764', 'date': '1566804961', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2136', 'code_size': '148'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\tscanf(\"%d\",&S);\n\th=S/3600;\n\tS=S%3600;\n\tm=S/60;\n\ts=S%60;\n\tprintf(\"...
CDSS_700448
CDSS
#include<stdio.h> int main(){ int i,j,max=0,min=1e9,c; char s[100010]; scanf("%s",s); for(i=0;i<26;i++){ max=0; c=0; for(j=0;s[j];j++){ if(s[j]=='a'+i){ if(max<c)max=c; c=0; } else c++; }//printf("%c:%d\n",i+'a',max); if(max<c)max=c; if(min>max)min=max; } printf("...
128
memory_bytes
{'s_id': 's689105263', 'p_id': 'p03687', 'u_id': 'u121922047', 'date': '1509579372', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '349'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,j,max=0,min=1e9,c;\n char s[100010];\n scanf(\"%s\",s);\n for(i=0;i<26;i++){\n max=0;\n ...
CDSS_354640
CDSS
#include<stdio.h> int main(){ int n,x,i,j,k,count=0; while(1){ scanf("%d %d",&n,&x); if(n==0 && x==0) break; for(i=1; i<=n; i++){ for(j=i+1; j<=n; j++){ for(k=j+1; k<=n; k++){ if(i+j+k==x ) count++; }}} printf("%d\n",count); count=0; } return 0; }
600
memory_bytes
{'s_id': 's869639547', 'p_id': 'p02412', 'u_id': 'u196669489', 'date': '1461568017', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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\n\tint n,x,i,j,k,count=0;\n\t\n\twhile(1){\n\tscanf(\"%d %d\",&n,&x);\n\tif(n==0 && x==0) break;\n\n\...
CDSS_188930
CDSS
#include<stdio.h> int search(int A[],int n,int key){ int i=0; A[n]=key; while(A[i]!=key)i++; return i!=n; } int main(){ int i,n,A[10000+1],q,key,sum=0; scanf("%d",&n); for(i=0;i<n;i++) scanf("%d",&A[i]); scanf("%d",&q); for(i=0;i<q;i++){ scanf("%d",&key); if(search(A,n,key))sum++; } pr...
636
memory_bytes
{'s_id': 's831774780', 'p_id': 'p02267', 'u_id': 'u667513402', 'date': '1494470633', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', '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>\nint search(int A[],int n,int key){\n int i=0;\n A[n]=key;\n while(A[i]!=key)i++;\n return i!=n;\n}\nint main(){...
CDSS_60283
CDSS
#include <stdio.h> int main(){ int in, i, j, weight[] = {1, 2, 4, 8, 16, 32, 64, 128, 256, 512}, result[10]; while(scanf("%d", &in) != EOF){ j = 0; for(i = 9;i >= 0;i--){ if(in == 0) break; if(in >= weight[i]){ in -= weight[i]; result[j++] = weight[i]; } } for(i = j - 1;i >= ...
612
memory_bytes
{'s_id': 's275398735', 'p_id': 'p00031', 'u_id': 'u709185111', 'date': '1392125182', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', '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>\n\nint main(){\n int in, i, j, weight[] = {1, 2, 4, 8, 16, 32, 64, 128, 256, 512}, result[10];\n\n while(scanf(\"...
CDSS_606913
CDSS
#include <stdio.h> #include <math.h> #include <string.h> #include <stdlib.h> #define llong long long #define fr(i,l,r) for(i=(l);i<(r);i++) #define min(p,q) ((p)<(q)?(p):(q)) #define max(p,q) ((p)>(q)?(p):(q)) #define INF 1000000000000//10^12 int main(void) { //変数の宣言 int n; char s[200010]; //よく使う変数 int i,j,k...
384
memory_bytes
{'s_id': 's555381815', 'p_id': 'p03200', 'u_id': 'u705931757', 'date': '1544926012', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '384', 'code_size': '906'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 <string.h>\n#include <stdlib.h>\n\n#define llong long long\n#define fr(i,l,r) for(i=(l...
CDSS_356703
CDSS
#include <stdio.h> int main() { int i, j, k, s, t, a; while (1) { scanf("%d %d", &s, &t); if (s == 0 && t == 0) break; a = 0; for (i = 1; i <= s; i++) { for (j = i + 1; j <= s; j++) { for (k = j + 1; k <= s; k++) { if (i + j + k == t) a++; } } } printf("%d\n", a); } return 0;...
2,088
memory_bytes
{'s_id': 's616970265', 'p_id': 'p02412', 'u_id': 'u152417176', 'date': '1554879681', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2088', 'code_size': '325'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, j, k, s, t, a;\n\n\twhile (1) {\n\t\tscanf(\"%d %d\", &s, &t);\n\t\tif (s == 0 && t == 0...
CDSS_361202
CDSS
/* ITP1_7_D:Matrix Multiplication */ /* 20181123 AOJ */ #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main(void) { int n, m, l; int i, j, k; int A[100][100], B[100][100]; long long C[100][100] = {0}; scanf("%d %d %d", &n, &m, &l); for(i = 0; i < n; i++) { for(j = 0; j < m; j++) { scanf("%d", &A[i...
2,112
memory_bytes
{'s_id': 's833400251', 'p_id': 'p02414', 'u_id': 'u761232808', 'date': '1542961785', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '687'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* ITP1_7_D:Matrix Multiplication */\n/* 20181123 AOJ */\n\n#define _CRT_SECURE_NO_WARNINGS\n#include <stdio.h>\n\nint main(void) {\n\...
CDSS_224773
CDSS
#include<stdio.h> #include<stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL Node root; Node treeMinimum(Node x){ while(x->left != NIL){ x = x->left; } return x; } Node treeSearch(Node u, int k){ while((u ...
9,844
memory_bytes
{'s_id': 's184751561', 'p_id': 'p02285', 'u_id': 'u065806587', 'date': '1340188199', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '500', 'memory': '9844', 'code_size': '2487'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nstruct node{\n struct node *right;\n struct node *left;\n struct node *parent;\n int key;...
CDSS_289762
CDSS
#include<stdio.h> int main(){ int w,h,x,y,r; scanf("%d %d %d %d %d",&w,&h,&x,&y,&r); if(x>=r&&x<=(w-r)&&y>=r&&y<=(h-r)){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
584
memory_bytes
{'s_id': 's019166059', 'p_id': 'p02394', 'u_id': 'u652375714', 'date': '1452821161', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', '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>\nint main(){\n\tint w,h,x,y,r;\n\tscanf(\"%d %d %d %d %d\",&w,&h,&x,&y,&r);\n\t\n\tif(x>=r&&x<=(w-r)&&y>=r&&y<=(h-r)...
CDSS_401765
CDSS
#include <stdio.h> int main(){ int x1,x2,x3,x4,x5; scanf("%d %d %d %d %d",&x1, &x2, &x3, &x4, &x5); if(x1 == 0){ printf("1"); } else if(x2 == 0){ printf("2"); } else if(x3 == 0){ printf("3"); } else if(x4 == 0){ printf("4"); } else{ printf("5"); } }
1,592
memory_bytes
{'s_id': 's718810049', 'p_id': 'p02639', 'u_id': 'u998225658', 'date': '1593233006', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1592', 'code_size': '294'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 x1,x2,x3,x4,x5;\n scanf(\"%d %d %d %d %d\",&x1, &x2, &x3, &x4, &x5);\n if(x1 == 0){\n pr...
CDSS_744469
CDSS
#include <stdio.h> int main(void) { int A[3],N5=0,N7=0; int i=0; for(i=0;i<3;i++) { scanf("%d",&A[i]); if(A[i]==5){ N5++; } else if (A[i]==7) { N7++; } } if(N5==2 && N7==1) { printf("YES\n"); } else { printf("NO\n"); } }
128
memory_bytes
{'s_id': 's660614053', 'p_id': 'p04043', 'u_id': 'u301811731', 'date': '1568128668', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '258'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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[3],N5=0,N7=0;\n\tint i=0;\n\n\tfor(i=0;i<3;i++) {\n\t\tscanf(\"%d\",&A[i]);\n\t\tif(A[...
CDSS_283121
CDSS
#include<stdio.h> int main(void) { int a,b,c,x; scanf("%d %d %d",&a,&b,&c); if(a>b){ x=a; a=b; b=x; } if(a>c){ x=a; a=c; c=x; } if(b>c){ x=b; b=c; c=x; } printf("%d %d %d\n",a,b,c); return 0; }
596
memory_bytes
{'s_id': 's201741906', 'p_id': 'p02393', 'u_id': 'u062527889', 'date': '1462440672', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '215'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n\n{\n\nint a,b,c,x;\n\nscanf(\"%d %d %d\",&a,&b,&c);\n\nif(a>b){\n\nx=a;\n\na=b;\n\nb=x;\n\n}\n\n...
CDSS_106590
CDSS
#include <stdio.h> #include <string.h> // AOJ 0568 // Title:Pasta // @kankichi573 int N,K,A,B; char plan[101]; struct memo_st { char first; char second; char str[101]; char len; int size; } memo[10000]; int memoindex; void register_memo(char first,char second,char * ptr,char...
672
memory_bytes
{'s_id': 's313065394', 'p_id': 'p00491', 'u_id': 'u708993917', 'date': '1380941526', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '672', 'code_size': '2167'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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// AOJ 0568\n// Title:Pasta\n// @kankichi573\nint N,K,A,B;\nchar plan[101];\n\nstruct memo_st...
CDSS_384235
CDSS
#include <float.h> #include <inttypes.h> #include <limits.h> #include <signal.h> #include <stdarg.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 #pragma GCC ...
1,608
memory_bytes
{'s_id': 's548455370', 'p_id': 'p02583', 'u_id': 'u292252214', 'date': '1597518774', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1608', 'code_size': '1993'}
[ { "content": "Your task is to predict the memory footprint (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 <signal.h>\n#include <stdarg.h>\n#include <stdbool.h>\n#inclu...
CDSS_83439
CDSS
#include <stdio.h> int main(){ long long int n, c; while(scanf("%lld", &n) && n){ c = 0; while(n != 1){ n = n % 2 == 0 ? n / 2: n * 3 + 1; c++; } printf("%lld\n", c); } return 0; }
600
memory_bytes
{'s_id': 's218724048', 'p_id': 'p00158', 'u_id': 'u709185111', 'date': '1393657536', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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>\n\nint main(){\n long long int n, c;\n while(scanf(\"%lld\", &n) && n){\n c = 0;\n while(n != 1){\n n ...
CDSS_64902
CDSS
/* AOJ 0048 * * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0048 * */ #include <stdio.h> typedef struct TData Data; struct TData { char* fName; float fWeight; }; Data cat[] = { {"light fly", 0.00,}, {"fly", 48.00,}, {"bantam", 51.00,}, {"feather", 54.00,}, {"light", 57.0...
0
memory_bytes
{'s_id': 's191334329', 'p_id': 'p00048', 'u_id': 'u599161451', 'date': '1337812416', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '797'}
[ { "content": "Your task is to predict the memory 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 0048\n *\n * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0048\n *\n */\n\n#include <stdio.h>\n\ntypedef struct TDa...
CDSS_636605
CDSS
#include <stdio.h> int main() { int n, k; scanf("%d %d", &n, &k); int a[n+1]; int i; int position1; for(i=1;i<=n;i++){ scanf("%d", &a[i]); if(a[i]==1) position1 = i; } int len = 0; len += (position1-1)+(n-position1); if(len%(k-1)==0) printf("%d", len/(k-1));...
512
memory_bytes
{'s_id': 's658034483', 'p_id': 'p03317', 'u_id': 'u025235255', 'date': '1529803766', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '512', '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#include <stdio.h>\n\nint main()\n{\n int n, k;\n scanf(\"%d %d\", &n, &k);\n int a[n+1];\n int i;\n int position1;\n ...
CDSS_684018
CDSS
#include <stdio.h> int main() { int N,A,s,j; scanf("%d",&N); scanf("%d",&A); s=N*N; j=s-A; printf("%d",j); return 0; }
128
memory_bytes
{'s_id': 's052171336', 'p_id': 'p03597', 'u_id': 'u018679195', 'date': '1509584548', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', '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{\n\tint N,A,s,j;\n\tscanf(\"%d\",&N);\n\tscanf(\"%d\",&A);\n\ts=N*N;\n\tj=s-A;\n\tprintf(\"%d\",j);\n...
CDSS_433991
CDSS
#include <stdio.h> int main() { int A,B,C,D; int judge; //勝利判定 int count; //ターンカウント scanf("%d %d %d %d",&A, &B, &C, &D); judge = 0; count = 2; while(judge == 0){ if(count % 2 == 0) //高橋の攻撃 { C = C - B; if(C <= 0) judge = 1; } else //青木の攻撃 { A = A - D; if(A <= 0) judge = 2; ...
1,664
memory_bytes
{'s_id': 's020628764', 'p_id': 'p02700', 'u_id': 'u608492334', 'date': '1587951595', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1664', 'code_size': '506'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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,D;\n int judge;\t//勝利判定\n int count;\t//ターンカウント\n\n scanf(\"%d %d %d %d\",&A, &B, &C, ...
CDSS_431836
CDSS
/* * main.c * * Created on: 2020/03/28 * Author: family */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define MAX(a,b) (a > b ? a : b) #define MIN(a,b) (a > b ? b : a) typedef long long int ll; typedef unsigned long long int ull; int sort_inc(const void *a, const void *b) ...
1,660
memory_bytes
{'s_id': 's830012787', 'p_id': 'p02699', 'u_id': 'u898925304', 'date': '1587949343', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1660', 'code_size': '1384'}
[ { "content": "Your task is to predict the memory 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 * main.c\n *\n * Created on: 2020/03/28\n * Author: family\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <strin...
CDSS_615225
CDSS
#include <stdio.h> int main(){ int n,t,i; scanf("%d %d",&n,&t); int a[n],b[n]; int low = 1001; for(i = 0;i < n;i++){ scanf("%d %d",&a[n],&b[n]); if(b[n] <= t && low > a[n]) low = a[n]; } if(low == 1001) printf("TLE"); else printf("%d",low); return 0; }
128
memory_bytes
{'s_id': 's510167490', 'p_id': 'p03239', 'u_id': 'u981457522', 'date': '1538874824', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '256'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\nint n,t,i;\nscanf(\"%d %d\",&n,&t);\nint a[n],b[n];\nint low = 1001;\nfor(i = 0;i < n;i++){\nscanf(...
CDSS_255624
CDSS
/* -*- C -*- */ #include <stdio.h> area(int x,int y){ return x*y; } perimeter(int x,int y){ return 2*x+2*y; } int main() { int length,breadth; scanf("%d %d",&length,&breadth); while(length<1 || breadth>100){ scanf("%d %d",&length,&breadth); } printf("%d %d\n",area(leng...
1,860
memory_bytes
{'s_id': 's421107137', 'p_id': 'p02389', 'u_id': 'u449172525', 'date': '1512554184', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1860', 'code_size': '380'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* -*- C -*- */\n\n#include <stdio.h>\n\n\narea(int x,int y){\n return x*y;\n}\n\nperimeter(int x,int y){\n return 2*x+2*y;\n}\n...
CDSS_734404
CDSS
#include <stdio.h> int color[105]; int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); color[a]++; color[b]++; color[c]++; int i; int ans=0; for(i=1;i<=100;i++){ if(color[i]>0){ans++;} } printf("%d\n",ans); return 0; }
128
memory_bytes
{'s_id': 's823297417', 'p_id': 'p03962', 'u_id': 'u305950321', 'date': '1534220249', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '239'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint color[105];\n\nint main(){\n\n\tint a,b,c;\n\n\tscanf(\"%d %d %d\",&a,&b,&c);\n\n\tcolor[a]++;\n\tcolor[b]++...
CDSS_26733
CDSS
#include <stdio.h> int main() { int a, b, sum, i = 1; while (scanf("%d %d", &a, &b) != EOF) { i = 1; sum = a + b; while (sum / 10 != 0) { sum = sum / 10; i++; } printf("%d\n", i); } return 0; }
600
memory_bytes
{'s_id': 's006786061', 'p_id': 'p00002', 'u_id': 'u467541030', 'date': '1466738745', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '217'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n\tint a, b, sum, i = 1;\n\n\twhile (scanf(\"%d %d\", &a, &b) != EOF) {\n\t\ti = 1;\n\t\tsum = a + ...
CDSS_715380
CDSS
#include <stdio.h> int main() { char a,b,h=72,d=68; scanf("%c %c",&a,&b); if (a==h) printf("%c\n",b==h?h:d); else printf("%c\n",b==h?d:h); return 0; }
128
memory_bytes
{'s_id': 's960193046', 'p_id': 'p03777', 'u_id': 'u842913477', 'date': '1498493830', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main()\n{\n char a,b,h=72,d=68;\n scanf(\"%c %c\",&a,&b);\n if (a==h) printf(\"%c\\n\",b==h?h:d);\n ...
CDSS_586705
CDSS
#include <stdio.h> int main(void) { char s[11]; scanf("%s", s); int i = 0; int j; int ans = 0; while (s[i] != '\0') { if (s[i] == 'A' || s[i] == 'C' || s[i] == 'G' || s[i] == 'T') { j = 0; while ((s[i + j] == 'A' || s[i + j] == 'C' || s[i + j] == 'G' || s[i + j] == 'T') && s[i + j]...
128
memory_bytes
{'s_id': 's896752204', 'p_id': 'p03086', 'u_id': 'u904924517', 'date': '1587084197', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '464'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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[11];\n scanf(\"%s\", s);\n \n int i = 0;\n int j;\n int ans = 0;\n while (s[i]...
CDSS_159478
CDSS
#include <stdio.h> #include <math.h> #define N 10000 int sosu(int *,int); int count=0; int main(){ int i,n; int array[N]; scanf("%d",&n); for(i=0;i<=n-1;i++){ scanf("%d",&array[i]); } count=sosu(array,n); printf("%d\n",count); return 0; } int sosu(int *array,int n){ int i,j,flag=0; for(i=0...
2,048
memory_bytes
{'s_id': 's658216463', 'p_id': 'p02257', 'u_id': 'u882462216', 'date': '1577081865', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2048', 'code_size': '622'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n#define N 10000\n\nint sosu(int *,int);\nint count=0;\n\nint main(){\n int i,n;\n int array[N...
CDSS_716849
CDSS
#include <stdio.h> int main() { int n, x, y; scanf("%i", &n); x = 800 * n; y = (n / 15) * 200; printf("%d", x - y); return 0; }
128
memory_bytes
{'s_id': 's702997770', 'p_id': 'p03795', 'u_id': 'u353919145', 'date': '1572597307', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '155'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, x, y;\n\n scanf(\"%i\", &n);\n\n x = 800 * n;\n y = (n / 15) * 200;\n\n pri...
CDSS_596262
CDSS
#include <stdio.h> int main(void) { int N, K; char c; scanf("%d%c%d", &N, &c, &K); if(N+1 < K*2) { printf("NO\n"); } else { printf("YES\n"); } //system("pause"); return 0; }
128
memory_bytes
{'s_id': 's932167642', 'p_id': 'p03129', 'u_id': 'u154944817', 'date': '1549767473', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '264'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 char c;\n \n \n scanf(\"%d%c%d\", &N, &c, &K);\n \n \n i...
CDSS_717583
CDSS
#include <stdio.h> int main(void) { long long nx,np,n1; np=1; scanf("%lld",&n1); for (nx=1;nx<=n1;nx++){ np=(np*nx)%1000000007; } printf("%d",np); return 0; }
128
memory_bytes
{'s_id': 's660001021', 'p_id': 'p03796', 'u_id': 'u658934869', 'date': '1493162016', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '171'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tlong long nx,np,n1;\n\n\tnp=1;\n\tscanf(\"%lld\",&n1);\n\tfor (nx=1;nx<=n1;nx++){\n\t\tnp=(...
CDSS_630639
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main() { //int A, B, C, X, Y; char s[101]={}; // int a, b, c; int a[20000]={}; int i,j,k; int flag=0; int tmp=0; int min=101; int max=0; long cnt =0; long long A_temp; // int k=0; // scanf("%d", &a); // A_tem...
256
memory_bytes
{'s_id': 's789140304', 'p_id': 'p03292', 'u_id': 'u301843562', 'date': '1532223200', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '527'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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 \nint main()\n\n{\n //int A, B, C, X, Y;\n char s[...
CDSS_613242
CDSS
#include <stdio.h> int main(){ char S[4]; char mem[4]; gets(S); if(S[2] != '\0'){ mem[0]=S[2]; mem[1]=S[1]; mem[2]=S[0]; mem[3]='\0'; puts(mem); }else{ puts(S); } return 0; }
128
memory_bytes
{'s_id': 's507137204', 'p_id': 'p03227', 'u_id': 'u369436268', 'date': '1540688739', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '203'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\tchar S[4];\n\tchar mem[4];\n\t\n\tgets(S);\n\t\n\tif(S[2] != '\\0'){\n\t\tmem[0]=S[2];\n\t\tmem[1...
CDSS_354384
CDSS
#include <stdio.h> int main(){ int n,x,count,sum,i,j,k; count=0; while(1){ count=0; scanf("%d%d",&n,&x); if(n==0 && x==0)break; for(i=1;i<=n;i++){ for(j=i+1;j<=n;j++){ for(k=j+1;k<=n;k++){ sum=i+j+k; if(sum==x)count += 1; } } } printf("%d\n",count); sum=0; } r...
600
memory_bytes
{'s_id': 's529069970', 'p_id': 'p02412', 'u_id': 'u073302075', 'date': '1430383175', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '330'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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,count,sum,i,j,k;\n count=0;\n while(1){\n count=0;\n scanf(\"%d%d\",&n,&x);\n ...
CDSS_169851
CDSS
#include <stdio.h> #define N 100 int main() { int i, j, n, minj, A[N], temp, ccount=0; scanf("%d",&n); for(i = 0 ; i < n ; i++) { scanf("%d",&A[i]); } for(i = 0 ; i < n ; i++) { minj=i; for(j = i ; j < n ; j++) { if(A[j] < A[minj]) { minj=j; } } if(A[i]!...
600
memory_bytes
{'s_id': 's154154600', 'p_id': 'p02260', 'u_id': 'u149941997', 'date': '1460611778', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '568'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define N 100\nint main()\n{\n int i, j, n, minj, A[N], temp, ccount=0;\n scanf(\"%d\",&n);\n for(i = 0 ; i < n...
CDSS_344402
CDSS
#include <stdio.h> int main(void) { int card[4][13]; int n, num; char pic; //二次元配列を0で初期化する for(int i = 0; i < 4; i++) { for(int j = 0; j < 13; j++) { card[i][j] = 0; } } //持っているカードの枚数を入力する scanf("%d", &n); for(int i = 0; i < n; i++) { scanf("%c %d", &pic, &num); //該当する箇所の値を1にす...
2,048
memory_bytes
{'s_id': 's266880223', 'p_id': 'p02408', 'u_id': 'u835803784', 'date': '1545870600', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '1360'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 card[4][13];\n\tint n, num;\n\tchar pic;\n\t\n\t//二次元配列を0で初期化する\n\tfor(int i = 0; i < 4;...
CDSS_27711
CDSS
b; main(a){ for(;~scanf("%d%d",&a,&b);) { a+=b; for(b=0;a>0;b++) a/=10; printf("%d\n",b); } exit(0); }
0
memory_bytes
{'s_id': 's684078512', 'p_id': 'p00002', 'u_id': 'u752673456', 'date': '1284605448', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '133'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nb;\nmain(a){\n for(;~scanf(\"%d%d\",&a,&b);)\n {\n a+=b;\n for(b=0;a>0;b++)\n\ta/=10;\n printf(\"%d\\n\",b);\n }...
CDSS_744861
CDSS
#include<stdio.h> int array[3], max, min, i; int main() { scanf("%d %d %d",&array[0],&array[1],&array[2]); max = array[0]; min = array[0]; for (i = 0; i <=2 ; i++){ if ( max < array[i]) max = array[i]; if ( min > array[i]) min = array[i]; } if ( (array...
128
memory_bytes
{'s_id': 's656300345', 'p_id': 'p04043', 'u_id': 'u312666321', 'date': '1505967649', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '443'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint array[3], max, min, i;\n\nint main()\n {\n scanf(\"%d %d %d\",&array[0],&array[1],&array[2]);\n \n ...
CDSS_389404
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> int main(void) { int sum=0; int l,r,d; scanf("%d %d %d",&l,&r,&d); for(int i=l;i<=r;i++) { if(i%d==0) sum++; } printf("%d\n",sum); return 0; }
1,724
memory_bytes
{'s_id': 's908494505', 'p_id': 'p02606', 'u_id': 'u410159888', 'date': '1594515895', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1724', 'code_size': '225'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n\nint main(void)\n{\n int sum=0;\n int l,r,d;\n scanf(\"%d %d %d\",&l,&...
CDSS_510252
CDSS
#include<stdio.h> #include<string.h> int main(){ char str[101]; scanf("%s",str); int lengh = strlen(str); //printf("%d\n",lengh); int count = 0; if(lengh % 2 == 0){ for(int i = 0;i < lengh / 2;i++){ if(str[i] != str[lengh - 1 - i]){ count++; } ...
128
memory_bytes
{'s_id': 's512771782', 'p_id': 'p02836', 'u_id': 'u491343140', 'date': '1577065100', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '527'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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 char str[101];\n scanf(\"%s\",str);\n int lengh = strlen(str);\n //pr...
CDSS_80079
CDSS
#include<stdio.h> #include<string.h> int main(void) { int a, b, c, d, e, f; char zyunkai[1023] = {0}; char train[27]={0}; char X[27]={0}; while (scanf("%d", &a) != EOF) { for (b = 0; b < a; b++) { scanf("%s", &zyunkai); train[0] = zyunkai[0]; d = 1; for (c = 3; ; c += 3) { if (strchr(train,...
608
memory_bytes
{'s_id': 's173126919', 'p_id': 'p00130', 'u_id': 'u069649871', 'date': '1361070613', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '879'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tint a, b, c, d, e, f;\n\tchar zyunkai[1023] = {0};\n\tchar train[27]={0};\...
CDSS_41088
CDSS
/* http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0008 Sum of 4 Integers */ #include <stdio.h> int main(void) { int n,a,b,c,d,sum,count; while (scanf("%d",&n) != EOF){ count = 0; /* ??????????????????????????? */ for (a = 0; a <= 9; ++a){ b = 0; for (b = 0; b <= 9; ++b){ c = 0; for (c ...
596
memory_bytes
{'s_id': 's735704829', 'p_id': 'p00008', 'u_id': 'u303141383', 'date': '1481870046', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '541'}
[ { "content": "Your task is to predict the memory 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\thttp://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0008\n\tSum of 4 Integers\n*/\n\n#include <stdio.h>\nint main(void)\n{\...
CDSS_640428
CDSS
#include <stdio.h> int main() { int a, b, diff, tower1 = 0; scanf("%d%d", &a, &b); diff = b - a; for (int i = 1; i < diff; i++){ tower1 += i; } printf("%d", tower1 - a); }
128
memory_bytes
{'s_id': 's989243425', 'p_id': 'p03328', 'u_id': 'u695857481', 'date': '1544482947', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '194'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, diff, tower1 = 0;\n \tscanf(\"%d%d\", &a, &b);\n \tdiff = b - a;\n \tfor (int i = ...
CDSS_742942
CDSS
#include<stdio.h> #define min(a,b) ((a)<(b)?(a):(b)) #define INF 2000000000 int main(){ int n,i,j,a[100]; long ans=INF; scanf("%d",&n); for(i=0;i<n;i++)scanf("%d",&a[i]); for(i=-100;i<=100;i++){ long tmp=0; for(j=0;j<n;j++)tmp+=(a[j]-i)*(a[j]-i); ans=min(ans,tmp); } printf("%ld\n",ans); re...
128
memory_bytes
{'s_id': 's938663752', 'p_id': 'p04031', 'u_id': 'u946810083', 'date': '1546981421', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '330'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n#define min(a,b) ((a)<(b)?(a):(b))\n#define INF 2000000000\n\nint main(){\n\t\tint n,i,j,a[100];\n\t\tlong ans=IN...
CDSS_633040
CDSS
#include<stdio.h> int main(void) { int num; char str[16]; fgets(str,sizeof(str),stdin); sscanf(str,"%d",&num); if(num%2 == 0) { printf("%d\n",num); }else { printf("%d\n",2*num); } return 0; }
128
memory_bytes
{'s_id': 's977390094', 'p_id': 'p03307', 'u_id': 'u298244614', 'date': '1572545655', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '228'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 num;\n char str[16];\n \n fgets(str,sizeof(str),stdin);\n sscanf(str,\"%d\",&num);\n ...
CDSS_555224
CDSS
#include <stdio.h> #include <stdlib.h> int asc(const void *a,const void *b){ return *(int*)a-*(int*)b; } int main(void){ int n,i; scanf("%d",&n); int a[n]; for(i=0;i<n;i++) scanf("%d",&a[i]); qsort(a,n,sizeof(int),asc); printf("%d",a[n/2]-a[n/2-1]); return 0; }
892
memory_bytes
{'s_id': 's997035431', 'p_id': 'p02989', 'u_id': 'u592248346', 'date': '1590103783', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '23', 'memory': '892', 'code_size': '293'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 asc(const void *a,const void *b){\n return *(int*)a-*(int*)b;\n}\nint main(void){\n ...
CDSS_283639
CDSS
#include <stdio.h> int main(void) { int a,b,c,x=0; scanf("%d %d %d",&a,&b,&c); if(a>b){ x=a; a=b; b=x; } if(a>c){ x=a; a=c; c=x; } if(b>c){ x=b; b=c; c=x; } printf("%d %d %d\n",a,b,c); return 0; }
596
memory_bytes
{'s_id': 's980736784', 'p_id': 'p02393', 'u_id': 'u553895720', 'date': '1468391133', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '306'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n\n{\n\n int a,b,c,x=0;\n\n scanf(\"%d %d %d\",&a,&b,&c);\n\n if(a>b){\n\n x=a;\n\...
CDSS_161004
CDSS
#include<stdio.h> int main(){ int j, n, t, R[200000], max, min; scanf("%d", &n); for (t=0;t<n;t++){ scanf("%d", &R[t]); } min=R[0]; max=R[1]-R[0]; for(j=1;j<n;j++){ if(max < R[j]-min){ max = R[j] - min; } else if(max > R[j]-min){ max = max; } if(min > R[j]){ min = R[j]; } else if(min < R...
1,376
memory_bytes
{'s_id': 's852939272', 'p_id': 'p02258', 'u_id': 'u358859406', 'date': '1463016047', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '1376', 'code_size': '382'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\nint j, n, t, R[200000], max, min;\nscanf(\"%d\", &n);\nfor (t=0;t<n;t++){\n scanf(\"%d\", &R[t]);\n...
CDSS_419235
CDSS
#include<stdio.h> int main(){ int i,ss=0,tt=0,e=0; char s[1000],t[1000]; scanf("%s",s); scanf("%s",t); for(i=0;i<=11;i++){ if(s[i]=='\0'){ ss=i; break; } if(i==11){e=1;} } for(i=0;i<=11;i++){ if(t[i]=='\0'){ tt=i; break; } if(i==11){e=1;} } if(ss+1==tt){...
1,648
memory_bytes
{'s_id': 's122406767', 'p_id': 'p02681', 'u_id': 'u838152098', 'date': '1589161384', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1648', '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 int i,ss=0,tt=0,e=0;\n char s[1000],t[1000];\n scanf(\"%s\",s);\n scanf(\"%s\",t);\n for(i=0;i<=...
CDSS_154065
CDSS
#include<stdio.h> void gcd(int, int); int main(){ int x, y; scanf("%d %d",&x, &y); gcd(x,y); return 0; } void gcd(int x, int y){ int d; if(x < y){ d = x; x = y; y = d; } while(y > 0){ d = x % y; x = y; y = d; } printf("%d\n",x); }
2,052
memory_bytes
{'s_id': 's962695629', 'p_id': 'p02256', 'u_id': 'u633309931', 'date': '1544346877', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '284'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 gcd(int, int);\n\nint main(){\n int x, y;\n\n scanf(\"%d %d\",&x, &y);\n\n gcd(x,y);\n\n return 0;\n}\n\...
CDSS_401523
CDSS
#include <stdio.h> int main() { int a, b, c, d, e; scanf("%d %d %d %d %d", &a, &b, &c, &d, &e); if (a == 0) printf("1\n"); else if (b == 0) printf("2\n"); else if (c == 0) printf("3\n"); else if (d == 0) printf("4\n"); else printf("5\n"); fflush(stdout); return 0; }
1,664
memory_bytes
{'s_id': 's455233190', 'p_id': 'p02639', 'u_id': 'u943800443', 'date': '1597603607', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1664', 'code_size': '276'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, c, d, e;\n\tscanf(\"%d %d %d %d %d\", &a, &b, &c, &d, &e);\n\tif (a == 0) printf(\"1\...
CDSS_303745
CDSS
#include <stdio.h> #define MAX 3000 int main(void){ int x = 0; int y = 0; int i; for (i = 0; i < MAX; i++){ scanf("%d %d", &x, &y); if (x == 0 && y == 0) break; else if(x < y) printf("%d %d\n", x, y); else printf("%d %d\n", y, x); ...
2,024
memory_bytes
{'s_id': 's714746087', 'p_id': 'p02397', 'u_id': 'u059825901', 'date': '1558186249', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2024', 'code_size': '341'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define MAX 3000\n\nint main(void){\n int x = 0;\n int y = 0;\n int i;\n for (i = 0; i < MAX; i++){\...
CDSS_68655
CDSS
#include<stdio.h> int main() { int n,sum = 0; while (scanf("%*[^0123456789]%d",&n) != EOF) { sum += n; } printf("%d\n",sum); return 0; }
544
memory_bytes
{'s_id': 's621170022', 'p_id': 'p00064', 'u_id': 'u902207865', 'date': '1495255276', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '544', 'code_size': '151'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main() \n{\n\tint n,sum = 0;\n\n\twhile (scanf(\"%*[^0123456789]%d\",&n) != EOF)\n\t{\n\t\tsum += n;\n\t}\n\n...
CDSS_702900
CDSS
#include<stdio.h> int main() { int A=0, B=0; scanf("%d", &A); scanf("%d", &B); if(A+B >= 10) { printf("error\n"); } else { printf("%d\n", A+B); } return 0; }
128
memory_bytes
{'s_id': 's944513092', 'p_id': 'p03697', 'u_id': 'u089230684', 'date': '1497043545', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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 int A=0, B=0;\n \n scanf(\"%d\", &A);\n scanf(\"%d\", &B);\n\n if(A+B >= 10)\n ...
CDSS_94815
CDSS
#include<stdio.h> int main() { int n ,m ; scanf( "%d %d" ,&n ,&m ) ; n += m ; if( n < 0 ) { puts( "-1" ) ; } else if( n > 0 ) { puts( "1" ) ; } else { puts( "0" ) ; } return 0 ; }
1,820
memory_bytes
{'s_id': 's461825103', 'p_id': 'p00331', 'u_id': 'u556423701', 'date': '1504880891', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1820', '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\n\n\nint main()\n{\n\tint n ,m ;\n\tscanf( \"%d %d\" ,&n ,&m ) ;\n\n\n\tn += m ;\n\n\n\tif( n < 0 )\n\t{\n\t\tputs...
CDSS_250763
CDSS
#include <stdio.h> int main(){ int a,b,c,d; scanf("%d %d",&a,&b); c=a*b; d=2*a+2*b; printf("%d %d\n",c,d); return 0; }
596
memory_bytes
{'s_id': 's221132636', 'p_id': 'p02389', 'u_id': 'u446975338', 'date': '1436204335', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '148'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int a,b,c,d;\n scanf(\"%d %d\",&a,&b);\n c=a*b;\n d=2*a+2*b;\n printf(\"%d %d\\n\",...
CDSS_210127
CDSS
#include<stdio.h> #define MAX 2000000 void CountingSort( int A[] , int B[] , int k , int n ){ int i , j; int C[MAX]; for( i = 0; i <= k + 1; i++ ){ C[i] = 0; } for( j = 1; j <= n; j++ ){ C[A[j]]++; } for( i = 1; i <= k + 1; i++ ){ C[i] = C[i] + C[i - 1 ]; } for( j = n; j >= 1; j-- ){ B[C[A[...
17,356
memory_bytes
{'s_id': 's507198128', 'p_id': 'p02275', 'u_id': 'u839873872', 'date': '1571985646', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '240', 'memory': '17356', 'code_size': '794'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n#define MAX 2000000\n\nvoid CountingSort( int A[] , int B[] , int k , int n ){\n\t\n\tint i , j;\n\tint C[MAX];\n...
CDSS_488722
CDSS
#include<stdio.h> int main() { int j,i,A[101],d=0,c=0; scanf("%d",&j); for(i=1;i<=j;i++) { scanf("%d",&A[i]); if(A[i]%2==0){ c=c+1; } } for(i=1;i<=j;i++) { if(A[i]%2==0&&(A[i]%3==0||A[i]%5==0)) { d=d+1; } } if(c==d) printf("APPROVED"); else printf("DENIED"); retu...
128
memory_bytes
{'s_id': 's060534471', 'p_id': 'p02772', 'u_id': 'u457287850', 'date': '1581891342', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '328'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 j,i,A[101],d=0,c=0;\nscanf(\"%d\",&j);\n\nfor(i=1;i<=j;i++)\n {\n scanf(\"%d\",&A[i]);\n ...
CDSS_644359
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <stdbool.h> #define PI 3.141592653589793238462643383279 int a,b,c,d; void change(int *x, int *y){ int z; z = *x; *x = *y; *y = z; } int compare_int(const void *a, const void *b){ return *(int*)a - *(int*)b; } int main(void){ scanf("%d %d %d %d",...
128
memory_bytes
{'s_id': 's566841167', 'p_id': 'p03351', 'u_id': 'u824196989', 'date': '1526174555', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '447'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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 <stdbool.h>\n#define PI 3.141592653589793238462643383279\n\nint a...
CDSS_503708
CDSS
#include<stdio.h> #include<string.h> int main() { char a[100],b[100]; scanf("%s%s",a,b); printf("%s%s\n",b,a); }
128
memory_bytes
{'s_id': 's434431184', 'p_id': 'p02817', 'u_id': 'u353919145', 'date': '1579941740', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '125'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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[100],b[100];\n scanf(\"%s%s\",a,b);\n printf(\"%s%s\\n\",b,a);\...
CDSS_710367
CDSS
#include<stdio.h> #include<ctype.h> int main(void) { char s1[10],s2[10],s3[10]; char S1,S2,S3; scanf("%s %s %s",s1,s2,s3); S1= toupper(s1[0]); S2= toupper(s2[0]); S3= toupper(s3[0]); printf("%c%c%c\n",S1,S2,S3); return 0; }
128
memory_bytes
{'s_id': 's967490283', 'p_id': 'p03737', 'u_id': 'u670199931', 'date': '1590794489', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '274'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n #include<stdio.h>\n #include<ctype.h>\n int main(void)\n {\n char s1[10],s2[10],s3[10];\n char S1,S2,S3;\n\n scanf(\"%s %...
CDSS_182439
CDSS
#include <stdio.h> #include <string.h> #define LEN 100005 typedef struct pp { char chName[10]; int nTime; } Pair; Pair PIn[LEN]; int nHead, nTail, n; Pair dequeue() { Pair PTemp = PIn[nHead]; nHead = (nHead + 1) % (n + 2); return PTemp; } void enqueue(Pair in) { PIn[nTail] = in; nTail = (nTail + 1) % (n + 2...
2,512
memory_bytes
{'s_id': 's092664072', 'p_id': 'p02264', 'u_id': 'u609578509', 'date': '1523191601', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2512', 'code_size': '729'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\n#define LEN 100005\n\ntypedef struct pp\n{\n\tchar chName[10];\n\tint nTime;\n} Pair;\n\nPa...
CDSS_192209
CDSS
#include<stdio.h> int A[1000000],n; int serch(int key){ int left = 0,right,mid=0; right = n; while(left<right){ mid = (left + right) / 2; if(key == A[mid]) return 1; if(key > A[mid])left = mid + 1; else if(key < A[mid])right = mid; } return 0; } int main(){ int i,...
988
memory_bytes
{'s_id': 's687721405', 'p_id': 'p02268', 'u_id': 'u686005629', 'date': '1464083797', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '988', 'code_size': '534'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint A[1000000],n;\n\nint serch(int key){\n int left = 0,right,mid=0;\n right = n;\n \n while(left<right){\n ...
CDSS_605382
CDSS
#include <stdio.h> int main() { int A, B, C; scanf("%d%d%d", &A, &B, &C); printf("%d\n", C <= A+B ? B+C : A+B+B+1); return 0; }
128
memory_bytes
{'s_id': 's170983092', 'p_id': 'p03186', 'u_id': 'u674122790', 'date': '1550521024', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '161'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n int A, B, C;\n scanf(\"%d%d%d\", &A, &B, &C);\n printf(\"%d\\n\", C <= A+B ? B+C\n ...
CDSS_154001
CDSS
#include <stdio.h> int gcd(int x, int y){ if(x == 0 || y == 0) return x + y; if(x >= y) return gcd(y, x % y); else return gcd(y, x); } int main(int argc, char *argv[]) { int a, b; scanf("%d %d", &a, &b); printf("%d\n", gcd(a, b)); return 0; }
2,108
memory_bytes
{'s_id': 's395318744', 'p_id': 'p02256', 'u_id': 'u489961099', 'date': '1561089167', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '260'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 x, int y){\n if(x == 0 || y == 0) return x + y;\n if(x >= y) return gcd(y, x % y);\n else return ...
CDSS_64767
CDSS
#include <stdio.h> #include <math.h> int main(void){ double a; while(scanf("%lf",&a) != EOF){ if(a<=48){ printf("light fly\n"); } else if(a<=51){ printf("fly\n"); } else if(a<=54){ printf("bantam\n"); } else if(a<=57){ printf("feather\n"); } else if(a<=60){ printf("light\n"); }...
608
memory_bytes
{'s_id': 's794079891', 'p_id': 'p00048', 'u_id': 'u214278145', 'date': '1435480040', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '623'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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\tdouble a;\n\twhile(scanf(\"%lf\",&a) != EOF){\n\t\tif(a<=48){\n\t\t\tprint...
CDSS_669834
CDSS
#include <stdio.h> #include <math.h> int main(){ int a, b; scanf("%d%d", &a, &b); printf("%d\n", (a + b + 1) / 2); return 0; }
128
memory_bytes
{'s_id': 's063467818', 'p_id': 'p03485', 'u_id': 'u605917063', 'date': '1548019458', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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#include <math.h>\n\nint main(){\n int a, b;\n scanf(\"%d%d\", &a, &b);\n printf(\"%d\\n\", (a + b + 1) /...
CDSS_214315
CDSS
#include<stdio.h> #include<stdlib.h> typedef struct Node{ int id; int k; struct Node *p; struct Node *c; }node; int getdepth(node); char* gettype(node); void drowchildren(node); int main(){ int i,j; int a,n; int id,k; //input scanf("%d",&n); node tree[n]; for(i=0;i<n;i++){ tree[i].p=NULL; ...
9,352
memory_bytes
{'s_id': 's168857212', 'p_id': 'p02279', 'u_id': 'u953426798', 'date': '1531122890', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '9352', 'code_size': '1501'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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>\ntypedef struct Node{\n int id;\n int k;\n struct Node *p;\n struct Node *c;\n}node;\n\nint ...
CDSS_110346
CDSS
#include<stdio.h> int main(){ int n,x[101],m,a,i,j; scanf("%d",&n); for(i=0;i<n;i++)scanf("%d",&x[i]); x[n]=0; scanf("%d",&m); for(i=0;i<m;i++){ scanf("%d",&a); if(x[a-1]!=2019&&x[a-1]+1!=x[a])x[a-1]++; } for(i=0;i<n;i++)printf("%d\n",x[i]); return 0; }
2,052
memory_bytes
{'s_id': 's811024902', 'p_id': 'p00576', 'u_id': 'u822467561', 'date': '1556595532', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '267'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tint n,x[101],m,a,i,j;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<n;i++)scanf(\"%d\",&x[i]);\n\tx[n]=0;\n\tsca...
CDSS_656425
CDSS
#include <stdio.h> int main() { int n; char s; scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%c ", &s); if (s == 'Y') { printf("Four\n"); return 0; } } printf("Three\n"); return 0; }
128
memory_bytes
{'s_id': 's931952773', 'p_id': 'p03424', 'u_id': 'u030504180', 'date': '1586227394', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', '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>\nint main() {\n\tint n;\n\tchar s;\n\tscanf(\"%d\", &n);\n\tfor (int i = 0; i < n; i++) {\n\t\tscanf(\"%c \", &s);\...
CDSS_429603
CDSS
#include <stdio.h> int main(void){ int S,W; scanf("%d %d",&S,&W); if(S>W){ printf("safe\n"); } else{ printf("unsafe\n"); } return 0; }
1,648
memory_bytes
{'s_id': 's448462507', 'p_id': 'p02699', 'u_id': 'u625145093', 'date': '1597111740', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1648', 'code_size': '156'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 S,W;\n scanf(\"%d %d\",&S,&W);\n if(S>W){\n printf(\"safe\\n\");\n }\n else{\n pr...
CDSS_431323
CDSS
#include<stdio.h> int main() { int sheep,wolves; scanf("%d",&sheep); scanf("%d",&wolves); if(wolves>=sheep) { printf("unsafe"); } else { printf("safe"); } return 0; }
1,728
memory_bytes
{'s_id': 's487369184', 'p_id': 'p02699', 'u_id': 'u867045157', 'date': '1587949525', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1728', 'code_size': '175'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\nint sheep,wolves;\nscanf(\"%d\",&sheep);\nscanf(\"%d\",&wolves);\nif(wolves>=sheep)\n{\n printf(\...
CDSS_357793
CDSS
#include<stdio.h> #include<stdlib.h> int main(){ int i,j,k,r,c,sum; int **hyou; scanf("%d%d",&r,&c); hyou=malloc(r*sizeof(int *)); for(i=0;i<r;i++){ hyou[i]=malloc(c*sizeof(int));} for(i=0;i<r;i++){ for(j=0;j<c;j++){ scanf("%d",&hyou[i][j]);} } for(i=0;i<r;i++){ for(j=0;j<c;j++){ ...
640
memory_bytes
{'s_id': 's408420449', 'p_id': 'p02413', 'u_id': 'u339587940', 'date': '1493088556', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '708'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 int i,j,k,r,c,sum;\n int **hyou;\n scanf(\"%d%d\",&r,&c);\n hyou=malloc(r...
CDSS_204275
CDSS
#include<stdio.h> #define N 500000 #define INF 1000000000 int n,count=0; void merge(int a[],int left,int mid,int right); void mergeSort(int a[],int left,int right); int main() { int i,A[N]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&A[i]); } mergeSort(A,0,n); for(i=0;i<n;i++){ if(i) printf(" ")...
5,624
memory_bytes
{'s_id': 's608439022', 'p_id': 'p02272', 'u_id': 'u586150550', 'date': '1577369020', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '5624', 'code_size': '1010'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 500000\n#define INF 1000000000\nint n,count=0;\nvoid merge(int a[],int left,int mid,int right);\nvoid mer...
CDSS_551316
CDSS
#include <stdio.h> #include <math.h> int main(){ int N,D,i,j,k; double l; scanf("%d %d",&N,&D); int x[N][D]; for(i=0;i<N;i++){ for(j=0;j<D;j++) scanf("%d",&x[i][j]); } // printf("%d",x[0][1]); x[][]に数値は入っている int c=0; for(i=0;i<N-1;i++){ for(j=i+1;j<N;j++){ int n=0; for(k=0;k<...
128
memory_bytes
{'s_id': 's405199846', 'p_id': 'p02982', 'u_id': 'u899589706', 'date': '1582930786', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '493'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\nint main(){\n int N,D,i,j,k;\n double l;\n scanf(\"%d %d\",&N,&D);\n int x[N][D];\n \n fo...
CDSS_745273
CDSS
#include<stdio.h> #include<string.h> int main(){ int N,L; scanf("%d%d",&N,&L); int i,j; char s[N][L+1]; char tmp[L+1]; char str[10001]; for(i=0;i<N;i++){ scanf("%s",s[i]); } //printf("%s\n",s[0]); for(i=1;i<N;i++){ for(j=1;j<N;j++){ if(strcmp(s[j-1],s[j])>0){ strcpy(tmp,s[j-...
128
memory_bytes
{'s_id': 's936493993', 'p_id': 'p04044', 'u_id': 'u052185335', 'date': '1587748962', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '501'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\n\n\nint main(){\n int N,L;\n scanf(\"%d%d\",&N,&L);\n int i,j;\n char s[N][L+1];\n char ...
CDSS_245204
CDSS
#include<stdio.h> int main(void){ int x; scanf("%d",&x); printf("%d\n",x*x*x); return 0; }
596
memory_bytes
{'s_id': 's823769024', 'p_id': 'p02388', 'u_id': 'u360943149', 'date': '1495101172', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '104'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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 printf(\"%d\\n\",x*x*x);\n\n\nreturn 0;\n}\nPredict its mem...
CDSS_706709
CDSS
#include <stdio.h> int main(void) { int A, B, C; scanf("%d", &A); scanf("%d", &B); scanf("%d", &C); if (C >= A && C <= B) puts("Yes"); else puts("No"); //else printf("%d\n", A + B); return 0; }
128
memory_bytes
{'s_id': 's551692887', 'p_id': 'p03719', 'u_id': 'u469161009', 'date': '1500408286', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '284'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n #include <stdio.h>\n \n int main(void)\n {\n int A, B, C;\n \n scanf(\"%d\", &A);\n scanf(\"%d\", &B);\n...
CDSS_728262
CDSS
#include <stdio.h> int main (void){ int loop1,loop2,loop3; int takasa,yoko; scanf("%d%d\n",&takasa,&yoko); char data[yoko+1]; for(loop1=0;loop1<takasa;loop1++){ for(loop2=0;loop2<yoko;loop2++){ scanf("%c",&data[loop2]); } for(loop2=0;loop2<2;loop2++){ ...
128
memory_bytes
{'s_id': 's579205966', 'p_id': 'p03853', 'u_id': 'u926548116', 'date': '1481987335', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '487'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 loop1,loop2,loop3;\n int takasa,yoko;\n scanf(\"%d%d\\n\",&takasa,&yoko);\n cha...
CDSS_501982
CDSS
#include<stdio.h> int main() {int X,K; scanf("%d %d",&K,&X); if(500*K>=X) printf("Yes"); else printf("No"); return 0;}
128
memory_bytes
{'s_id': 's687238506', 'p_id': 'p02811', 'u_id': 'u657864222', 'date': '1579300424', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '120'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 X,K;\nscanf(\"%d %d\",&K,&X);\nif(500*K>=X)\n\tprintf(\"Yes\");\nelse\n\tprintf(\"No\");\nreturn 0...
CDSS_545857
CDSS
#include <stdio.h> int main(void) { int i, n; long long int a[100005], b, c = 0, sum = 0; scanf("%d", &n); for (i = 1; i <= n + 1; i++) scanf("%lld", &a[i]); for (i = 1; i <= n; i++) { scanf("%lld", &b); if (a[i] <= b+c) { sum += a[i]; if (c >= a[i]) c = b; else c = b - (a[i] - c); } else { ...
896
memory_bytes
{'s_id': 's252864083', 'p_id': 'p02959', 'u_id': 'u924527074', 'date': '1564283399', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '25', 'memory': '896', 'code_size': '447'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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;\n\tlong long int a[100005], b, c = 0, sum = 0;\n\tscanf(\"%d\", &n);\n\tfor (i = ...
CDSS_254971
CDSS
#include <stdio.h> int main(void){ // Here your code ! int n,m; scanf("%d %d" ,&n,&m); printf("%d %d\n",n*m,2*(n+m)); return 0; }
596
memory_bytes
{'s_id': 's431097733', 'p_id': 'p02389', 'u_id': 'u864795304', 'date': '1500172728', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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>\nint main(void){\n // Here your code !\n int n,m;\n scanf(\"%d %d\" ,&n,&m);\n printf(\"%d %d\\n\",n*m,...
CDSS_397401
CDSS
#include <stdio.h> typedef long long ll; int main(void){ int n, m, k, i, j; scanf("%d %d %d", &n, &m, &k); ll a[n+1], b[m+1], ans = 0, best = 0; b[0] = a[0] = 0; for(i = 1; i <= n; i++){ a[i] = 0; scanf("%lld", &a[i]); a[i] += a[i-1]; } for(j = 1; j <= m; j++){ b[j] = 0; scanf("%ll...
4,856
memory_bytes
{'s_id': 's113384520', 'p_id': 'p02623', 'u_id': 'u242706056', 'date': '1593486879', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '54', 'memory': '4856', 'code_size': '536'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\ntypedef long long ll;\n\nint main(void){\n int n, m, k, i, j;\n scanf(\"%d %d %d\", &n, &m, &k);\n ll a[n+1], b...
CDSS_336177
CDSS
#include<stdio.h> int main(void){ int W,H; int i,j; while(W!=0 || H!=0){ scanf("%d%d",&H,&W); if(W==0 && H==0) break; for(i=0; i<H; i++){ for(j=0; j<W; j++){if ((i+j)%2==0) printf("#"); else printf(".");} printf("\n"); } printf("\n"); } return 0; }
572
memory_bytes
{'s_id': 's330776704', 'p_id': 'p02405', 'u_id': 'u634931174', 'date': '1498372872', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '270'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 W,H;\n\tint i,j;\n\t\n\twhile(W!=0 || H!=0){\n\t\tscanf(\"%d%d\",&H,&W);\n\t\tif(W==0 && H==...
CDSS_340824
CDSS
#include <stdio.h> int main(void){ int i,num,x; scanf("%d",&num); for(i=1;i<=num;i++){ x=i; if(x%3 == 0) printf(" %d",i); else{ for(;x && x%10 != 3;) x/=10; if(x%10 == 3) printf(" %d",i); } } puts("...
2,048
memory_bytes
{'s_id': 's450578308', 'p_id': 'p02406', 'u_id': 'u800408401', 'date': '1533654595', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '340'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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,num,x;\n scanf(\"%d\",&num);\n for(i=1;i<=num;i++){\n x=i;\n if(...
CDSS_199271
CDSS
#include <stdio.h> int rec(int,int); int a[2000],n; main(){ int i,j,p,q; int m[2000]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a[i]); } scanf("%d",&q); for(i=0;i<q;i++){ scanf("%d",&m[i]); } for(i=0;i<q;i++){ if(rec(0,m[i])==1)printf("yes\n"); else printf("no\n"...
588
memory_bytes
{'s_id': 's810500672', 'p_id': 'p02271', 'u_id': 'u737175927', 'date': '1431966030', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '570', 'memory': '588', 'code_size': '491'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint rec(int,int);\n \nint a[2000],n;\n \nmain(){\n int i,j,p,q;\n int m[2000];\n \n scanf(\"%d\",&n);\n f...
CDSS_264272
CDSS
#include <stdio.h> int main (void) { int a, h, m, s; scanf("%d", &a); h = a / 3600; a = a % 3600; m = a / 60; s = a % 60; printf("%d:%d:%d\n", h, m, s); return 0; }
2,056
memory_bytes
{'s_id': 's718615460', 'p_id': 'p02390', 'u_id': 'u475757579', 'date': '1586528777', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', '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>\nint main (void)\n{\n int a, h, m, s;\n scanf(\"%d\", &a);\n h = a / 3600;\n a = a % 3600;\n m = a /...
CDSS_219336
CDSS
#include <stdio.h> #include <stdlib.h> //#define DEBUG typedef struct node{ int left; int right; int parent; }node; void Preorder(int); void Inorder(int); void Postorder(int); node* tree; int n; int main(){ int i,n,id,left,right,root; scanf("%d",&n); tree = (node *)malloc(sizeof(node)*n); for(i=0;...
616
memory_bytes
{'s_id': 's761878057', 'p_id': 'p02281', 'u_id': 'u836311039', 'date': '1465466996', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '616', 'code_size': '1438'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\n//#define DEBUG\n\ntypedef struct node{\n int left;\n int right;\n int parent;\n}node;\n...
CDSS_446590
CDSS
#include <stdio.h> long calc(int max, int count) { int i; long mx = 0, mn = 0; for(i = 0;i < count;i++) { mn += i; mx += max - i; } return mx - mn + 1; } int main(void) { int n, k; scanf("%d %d", &n, &k); if(k > n) { printf("1\n"); return 0; } int i; long ret = 0; for(i = k;...
2,152
memory_bytes
{'s_id': 's721066661', 'p_id': 'p02708', 'u_id': 'u873403585', 'date': '1587475417', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '2152', '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>\n\nlong calc(int max, int count) {\n int i;\n long mx = 0, mn = 0;\n for(i = 0;i < count;i++) {\n mn += i;\n ...
CDSS_97921
CDSS
#include<stdio.h> #include<stdlib.h> #include<limits.h> #define LEFT 0 #define RIGHT 1 #define QUEUE_SIZE 150000 typedef struct{ char num; char cups[15]; }HANOI; typedef struct{ HANOI current[4]; HANOI privious[4]; int count; }QUEUE; int n,m; int min = INT_MAX; HANOI Hanoi[4]; HANOI Move_left[4], Move_right[4...
19,936
memory_bytes
{'s_id': 's703699128', 'p_id': 'p00426', 'u_id': 'u389063211', 'date': '1485761996', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '360', 'memory': '19936', 'code_size': '4346'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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<limits.h>\n\n#define LEFT 0\n#define RIGHT 1\n#define QUEUE_SIZE 150000\n\ntypedef str...
CDSS_324238
CDSS
#include <stdio.h> int main(){ int a[10000]; int i, n, max, min; long int b = 0; scanf("%d", &n); for (i = 0; i < n; i++){ scanf("%d", &a[i]); b = b + a[i]; } max = a[0]; min = a[0]; for (i = 0; i < n; i++){ if (max < a[i]){ max = a[i]; } if (m...
640
memory_bytes
{'s_id': 's429075802', 'p_id': 'p02402', 'u_id': 'u548073184', 'date': '1480471658', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '425'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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[10000];\n int i, n, max, min;\n long int b = 0;\n \n scanf(\"%d\", &n);\n for ...
CDSS_114114
CDSS
#include <stdio.h> int main(){ int n, r, p, c, i; for(;;){ int N[50]; scanf("%d %d", &n, &r); if( n == 0 && r == 0){ break; } for( i = 0; i < n; i++){ N[i] = n-i; } //cut for( ; r > ...
600
memory_bytes
{'s_id': 's165493858', 'p_id': 'p00710', 'u_id': 'u807440918', 'date': '1434344632', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '789'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int n, r, p, c, i;\n \n for(;;){\n int N[50];\n \n scanf(\"%d %d\", ...
CDSS_374150
CDSS
#include <stdio.h> #include <stdlib.h> long *tree[100010]; int main(void) { long n,m,a,b; scanf("%ld %ld", &n, &m); long tree_s[n+1]; for (long i = 1; i <= n; i++) { tree_s[i] = 0; } for (long i = 0; i < m; i++) { scanf("%ld %ld", &a, &b); tree[a] = realloc(tree[a], sizeof(long)*(tree_s[a]+1)...
7,784
memory_bytes
{'s_id': 's457840916', 'p_id': 'p02536', 'u_id': 'u581816556', 'date': '1601320343', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '46', 'memory': '7784', 'code_size': '1435'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nlong *tree[100010];\n\nint main(void) {\n\n long n,m,a,b;\n scanf(\"%ld %ld\", &n, &m);\n...
CDSS_76848
CDSS
h,s,o;main(i){for(;~scanf("%*d%s"+!!--i*3,&i);i-4?s=i?++o==3?h=o=!printf("%d\n",s>h-3?s:h-3):s:++h:++h)i%=6;}
0
memory_bytes
{'s_id': 's738435705', 'p_id': 'p00103', 'u_id': 'u399107199', 'date': '1290002811', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '109'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nh,s,o;main(i){for(;~scanf(\"%*d%s\"+!!--i*3,&i);i-4?s=i?++o==3?h=o=!printf(\"%d\\n\",s>h-3?s:h-3):s:++h:++h)i%=6;}\nPredict its memory...
CDSS_50934
CDSS
#include<stdio.h> int main(void){ int a[5],i,j,tmp; for(i=0;i<5;i++){ scanf("%d",&a[i]); } for(i=0;i<4;i++){ for(j=i+1;j<5;j++){ if(a[i]<a[j]){ tmp=a[i]; a[i]=a[j]; a[j]=tmp; } } } for(i=0;i<5;i++){ ...
600
memory_bytes
{'s_id': 's877920603', 'p_id': 'p00018', 'u_id': 'u324596395', 'date': '1433566474', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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>\nint main(void){\n int a[5],i,j,tmp;\n for(i=0;i<5;i++){\n scanf(\"%d\",&a[i]);\n }\n for(i=0;i<4...
CDSS_378797
CDSS
#include<stdio.h> int main(void) { int i,min=2000,sum; int n=0, m=0, k; char s[1001], t[1001]; scanf("%s", &s); scanf("%s",&t); for(int i=0;s[i]!='\0';i++) n++; for(int i=0;t[i]!='\0';i++) m++; for(int i=0;i<n-m+1;i++){ sum=0; for(int j=0;j<m;j++){ if(s[i+j]!=t[j]){ sum++; } } if(sum<min) min...
1,708
memory_bytes
{'s_id': 's709008486', 'p_id': 'p02571', 'u_id': 'u231484984', 'date': '1599743427', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1708', '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 \nint main(void)\n{\n\tint i,min=2000,sum;\n\tint n=0, m=0, k;\n\tchar s[1001], t[1001];\n \n\tscanf(\"%s\", &s);\...
CDSS_583266
CDSS
#include <stdio.h> int main() { int a[5], k; int i, j, tmp; for ( i = 0; i < 5; i++ ) { scanf("%d", &a[i]); } scanf("%d", &k); if ( a[4] - a[0] > k ) { printf(":(\n"); } else { printf("Yay!\n"); } }
128
memory_bytes
{'s_id': 's878418007', 'p_id': 'p03075', 'u_id': 'u006180579', 'date': '1554578272', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '235'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n int a[5], k;\n int i, j, tmp;\n \n for ( i = 0; i < 5; i++ ) {\n scanf(\"%d\", &a[i]);\n ...