identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_427676
CDSS
#include <stdio.h> #include <limits.h> int main(void) { signed long long int a; signed long long int total=100; int count=0; scanf("%lld",&a); while(total <= a) { total = total * 1.01; count++; /** printf("%ld\n",total); **/ if(total >= a) { printf("%d",count); ...
1,736
memory_bytes
{'s_id': 's061763470', 'p_id': 'p02694', 'u_id': 'u991012502', 'date': '1588473399', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1736', 'code_size': '356'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <limits.h>\nint main(void)\n{\n signed long long int a;\n signed long long int total=100;\n int count=...
CDSS_374029
CDSS
main(t){for(scanf("%d",&t);t--;)printf("ACL");}
1,700
memory_bytes
{'s_id': 's380559021', 'p_id': 'p02534', 'u_id': 'u607642775', 'date': '1601169914', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1700', 'code_size': '47'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nmain(t){for(scanf(\"%d\",&t);t--;)printf(\"ACL\");}\nPredict its memory footprint.", "role": "user" }, { "content": "1700....
CDSS_369887
CDSS
#include <stdio.h> #include <string.h> #include <ctype.h> int main(void) { char w[11]; char t[1001]; int i = 0; int count = 0; char end[] = "END_OF_TEXT"; scanf("%s", w); while(1) { scanf("%s", t); if(strcmp(t, end) == 0) break; i = 0; while(t[i]) { t[i] = tolower(t[i]); ...
2,104
memory_bytes
{'s_id': 's168070813', 'p_id': 'p02419', 'u_id': 'u617677485', 'date': '1544511329', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', '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#include <string.h>\n#include <ctype.h>\n\nint main(void) {\n char w[11];\n char t[1001];\n int i = 0;\n int c...
CDSS_289935
CDSS
#include<stdio.h> int main(void){ int W, H, x , y, r ; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(x-r>=0 && x+r<=W){ if(y-r>=0 && y+r<=H){ printf("Yes\n"); }else{ printf("No\n"); } }else{ printf("No\n"); } return 0; }
584
memory_bytes
{'s_id': 's529447013', 'p_id': 'p02394', 'u_id': 'u505794128', 'date': '1461567703', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '240'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\nint W, H, x , y, r ;\n\nscanf(\"%d %d %d %d %d\",&W,&H,&x,&y,&r);\n\nif(x-r>=0 && x+r<=W){\n\n...
CDSS_601750
CDSS
#include<stdio.h> int min(int a, int b) { if (a < b) return a; else return b; } int main() { int n, a, b; scanf("%d%d%d", &n, &a, &b); int i; int ans[3] = {}; int p; for (i = 0; i < n; i++) { scanf("%d", &p); if (p <= a)ans[0]++; else if (p <= ...
128
memory_bytes
{'s_id': 's661729378', 'p_id': 'p03156', 'u_id': 'u600300412', 'date': '1547323624', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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:\n#include<stdio.h>\nint min(int a, int b)\n{\n if (a < b)\n return a;\n else\n return b;\n}\nint main()\n{\n int...
CDSS_612235
CDSS
#include<stdio.h> typedef struct{ double t; int num; } hight; int main() { int n, i; scanf("%d\n", &n); hight h[n]; double t, a, tempar; scanf("%lf%lf", &t, &a); for(i = 0; i < n; ++i){ h[i].num = i+1; scanf("%lf", &h[i].t); tempar = t - h[i].t * 0.006; h[i].t = a - tempar; if(h[i]...
128
memory_bytes
{'s_id': 's213539143', 'p_id': 'p03220', 'u_id': 'u200849592', 'date': '1541470220', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '572'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 double t;\n int num;\n} hight;\n\nint main()\n{\n int n, i;\n scanf(\"%d\\n\", &n);\n high...
CDSS_477975
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> typedef long long ll; int main() { char s[3]; scanf("%s",s); if(s[0]==s[1]) { if(s[1]==s[2]) { printf("No\n"); } else { printf("Yes\n"); } } else ...
128
memory_bytes
{'s_id': 's744390341', 'p_id': 'p02753', 'u_id': 'u727569092', 'date': '1591211821', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '376'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n#include<math.h>\ntypedef long long ll;\n\n\nint main()\n{\n char s[3];\...
CDSS_680370
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <ctype.h> int main(){ int n,k,soma=1; scanf("%d %d",&n,&k); for(int i=0;i<n;i++){ if(soma*2<=soma+k){ soma=soma*2; }else if(soma+k<=soma*2){ soma=soma+k; } } printf("%d\n",soma); ...
128
memory_bytes
{'s_id': 's950119308', 'p_id': 'p03564', 'u_id': 'u109867600', 'date': '1575694682', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '335'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#include <ctype.h>\n\nint main(){\n\n\n int n,k,soma=1;\n\n scanf(\"...
CDSS_733816
CDSS
#include <stdio.h> int max(int ary[100], int t, int prev); int main (int argc, char *argv[]) { int k, t; scanf("%d", &k); scanf("%d", &t); int i = 0; int a[100]; int b[100]; int scanned = 1; while (i < 100 && scanned == 1) { scanned = scanf("%d", &a[i]); if (scanned == ...
256
memory_bytes
{'s_id': 's624254203', 'p_id': 'p03958', 'u_id': 'u837808005', 'date': '1477274635', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '256', 'code_size': '1098'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 max(int ary[100], int t, int prev);\n\nint main (int argc, char *argv[]) {\n int k, t;\n scanf(\"%d\",...
CDSS_549830
CDSS
#include <stdio.h> int main(void) { int n,i,k,t=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&k); t^=k; } if(t==0) printf("Yes"); else printf("No"); return 0; }
128
memory_bytes
{'s_id': 's354982298', 'p_id': 'p02975', 'u_id': 'u997390882', 'date': '1563158184', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', '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(void)\n{\n\tint n,i,k,t=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<n;i++){\n\t\tscanf(\"%d\",&k);\n\t\tt^=k;\n\...
CDSS_735498
CDSS
#include<stdio.h> int main(void){ char top; int turn, score = 0; scanf("%c", &top); for(turn = 0; top != '\n'; turn++){ if(turn % 2 == 0) score--; if(top == 'g') score++; scanf("%c", &top); } printf("%ld\n", score); return 0; }
256
memory_bytes
{'s_id': 's128110980', 'p_id': 'p03967', 'u_id': 'u898331860', 'date': '1476580908', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '256', 'code_size': '300'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n char top;\n int turn, score = 0;\n \n scanf(\"%c\", &top);\n \n for(turn = 0;...
CDSS_17626
CDSS
#include <stdio.h> int main(){ int i,j; for(i=1;i<10;i++){ for(j=1;j<10;j++){ printf("%dx%d=%d\n",i,j,i*j); } } return 0; }
520
memory_bytes
{'s_id': 's457602854', 'p_id': 'p00000', 'u_id': 'u826647986', 'date': '1412781540', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '520', '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\t\nint main(){\n\tint i,j;\n\tfor(i=1;i<10;i++){\n\t\tfor(j=1;j<10;j++){\n\t\t\tprintf(\"%dx%d=%d\\n\",i,j,i*j);\...
CDSS_593265
CDSS
#include <stdio.h> #include <string.h> int main(void) { int year, month, date; int heisei = 2019*365+3*30+30; if (scanf("%4d/%2d/%2d", &year, &month, &date) != EOF) { if (year*365+(month-1)*30+date <= heisei) { printf("Heisei"); } else { printf("TBD"); } ...
128
memory_bytes
{'s_id': 's707211570', 'p_id': 'p03109', 'u_id': 'u015617182', 'date': '1554993877', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '368'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void) {\n int year, month, date;\n int heisei = 2019*365+3*30+30;\n if (s...
CDSS_364359
CDSS
#include <stdio.h> #include <ctype.h> #include <string.h> int main(void){ int i,sum,len,ix[1001]={}; char x[1001]={}; for(;;){ sum=0; scanf("%s",x); len=strlen(x); if(len==1 && x[0]=='0')break; for(i=0;i<len;i++){ if(x[i]!=0){ ix[i]=x[i]-'0...
1,852
memory_bytes
{'s_id': 's637214227', 'p_id': 'p02416', 'u_id': 'u638444351', 'date': '1515692997', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1852', 'code_size': '435'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <ctype.h>\n#include <string.h>\nint main(void){\n int i,sum,len,ix[1001]={};\n char x[1001]={};\n ...
CDSS_470252
CDSS
#include<stdio.h> int main(void){ int k,n; scanf("%d%d",&k,&n); int a[n]; for(int i=0;i<n;i++){ scanf("%d",&a[i]); } int d[n],max=0; for(int i=0;i<n-1;i++){ d[i]=a[i+1]-a[i]; if(d[i]>max)max=d[i]; } d[n-1]=a[0]+k-a[n-1]; if(d[n-1]>max)max=d[n-1]; printf("%d",k-max); return 0; }
1,664
memory_bytes
{'s_id': 's924891158', 'p_id': 'p02725', 'u_id': 'u073336549', 'date': '1591435162', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '22', 'memory': '1664', '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>\nint main(void){\n int k,n;\n scanf(\"%d%d\",&k,&n);\n int a[n];\n for(int i=0;i<n;i++){\n\tscanf(\"%d\",&a[i]);...
CDSS_592764
CDSS
#include<stdio.h> #include<string.h> int main(void){ char S[100000]; int i,j,N,cou0=0,cou1=0; scanf("%s",S); N=strlen(S); for(i=0;i<N;i++){ if(S[i]=='0'){ cou0++; }else if(S[i]=='1'){ cou1++; } } if(cou0>cou1){ pri...
256
memory_bytes
{'s_id': 's388558089', 'p_id': 'p03107', 'u_id': 'u635508156', 'date': '1551648228', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', '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>\n#include<string.h>\nint main(void){\n char S[100000];\n int i,j,N,cou0=0,cou1=0;\n scanf(\"%s\",S);\n N...
CDSS_492928
CDSS
#include<stdio.h> int main(void){ int a,b; scanf("%d%d",&a,&b); if(a % b != 0){ printf("%d",(a / b) + 1); }else{ printf("%d",a / b); } return 0; }
128
memory_bytes
{'s_id': 's667933440', 'p_id': 'p02783', 'u_id': 'u224740009', 'date': '1589909178', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '169'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n \tint a,b;\n scanf(\"%d%d\",&a,&b);\n if(a % b != 0){\n \tprintf(\"%d\",(a / b) + 1);\n }e...
CDSS_108584
CDSS
#include <stdio.h> int main(){ int i,n,m,t,data[1000],data2[1000],data3[1000],max,u,r=1; scanf("%d %d",&n,&m); for(i=0;i<n;i++){ scanf("%d",&data[i]); } for(i=0;i<m;i++){ scanf("%d",&data2[i]); } for(i=0;i<n;i++){ data3[i]=0; } for(i=0;i<m;i++){ for(t...
608
memory_bytes
{'s_id': 's443234200', 'p_id': 'p00516', 'u_id': 'u294598779', 'date': '1447875081', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', '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 i,n,m,t,data[1000],data2[1000],data3[1000],max,u,r=1;\n scanf(\"%d %d\",&n,&m);\n for...
CDSS_199179
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> int main(int argc, char *argv[]) { int n, q, m, i, j; int *A; int sum[40000], p, bits, tmp; scanf("%d", &n); A = (int *)malloc(sizeof(int) * n); for (i = 0; i < n; i++) scanf("%d", &A[i]); for (i = 0; i < 40000; i++) sum[i] = 0; p = (int)pow(2...
776
memory_bytes
{'s_id': 's994449724', 'p_id': 'p02271', 'u_id': 'u656314902', 'date': '1423247742', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '50', 'memory': '776', 'code_size': '658'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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(int argc, char *argv[])\n{\n int n, q, m, i, j;\n int *A;\n ...
CDSS_342184
CDSS
#include <stdio.h> int main(void){ int i,n; scanf("%d",&n); int num[100]; for(i=1;i<=n;i++) scanf("%d",&num[i]); for(i=0;i<n;i++){ if(i==n-1) printf("%d",num[n-i]); else printf("%d "...
600
memory_bytes
{'s_id': 's075645050', 'p_id': 'p02407', 'u_id': 'u363403517', 'date': '1485303586', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '386'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(void){\n int i,n;\n scanf(\"%d\",&n);\n int num[100];\n for(i=1;i<=n;i++)\...
CDSS_474779
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int A[33]={0,1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int K; scanf("%d",&K); printf("%d",A[K]); return 0; }
128
memory_bytes
{'s_id': 's475462033', 'p_id': 'p02741', 'u_id': 'u252733270', 'date': '1584234565', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '240'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main()\n{\n int A[33]={0,1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5...
CDSS_542561
CDSS
#include <stdio.h> int max(int a,int b){ if(a>b) return a; else return b; } int main(void) { int N; scanf("%d",&N); int a[N+1]; for(int i=1;i<=N;i++) scanf("%d",&a[i]); int m[N+1]; for(int i=0;i<=N;i++) m[i] = 0; for(int i=1;i<=N;i++) m[i] = max(a[i],m[i-1]); int count = 0; for(int i=1;i<=N;i++) if(m[i]...
896
memory_bytes
{'s_id': 's921512763', 'p_id': 'p02953', 'u_id': 'u170126526', 'date': '1576206223', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '14', 'memory': '896', 'code_size': '407'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 max(int a,int b){\n\tif(a>b) return a;\n\telse return b;\n}\n\nint main(void) {\n\tint N; scanf(\"%d\",&N);\...
CDSS_391622
CDSS
#pragma GCC optimize("Ofast") #include<stdio.h> int main(void) { int n = 0; char c=getchar_unlocked(); while(c<='9'&&c>='0') {n = (n << 1) + (n << 3) + c - '0'; c=getchar_unlocked();} n %= 1000; if(n) { printf("%d", 1000 - n); return 0; } puts("0"); return 0; }
1,604
memory_bytes
{'s_id': 's825173028', 'p_id': 'p02612', 'u_id': 'u004311543', 'date': '1594018365', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1604', 'code_size': '310'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#pragma GCC optimize(\"Ofast\")\n#include<stdio.h>\nint main(void)\n{\n int n = 0;\n char c=getchar_unlocked();\n while(c<='9...
CDSS_534815
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define input_i(x) scanf("%d", &x) #define input_lli(x) scanf("%lld", &x) #define input_s(x) scanf("%s", x) #define BUFSIZE 100000 int main(int argc, char const *argv[]) { long long int i, buf= 0, ans= 0; long long int N; input_...
128
memory_bytes
{'s_id': 's715086965', 'p_id': 'p02924', 'u_id': 'u571146948', 'date': '1567366746', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '619', 'memory': '128', 'code_size': '424'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n\n#define input_i(x) scanf(\"%d\", &x)\n#define input...
CDSS_722667
CDSS
#include <stdio.h> #include <stdlib.h> int main(int argc, char const* argv[]) { int a,b,c,d; scanf("%d%d%d%d", &a, &b, &c, &d); printf("%d\n", (a*b > c*d ? a*b : c*d)); return 0; }
128
memory_bytes
{'s_id': 's857406082', 'p_id': 'p03826', 'u_id': 'u796269639', 'date': '1536764988', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '202'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(int argc, char const* argv[])\n{\n int a,b,c,d;\n scanf(\"%d%d%d%d\", &a, &b...
CDSS_468691
CDSS
#include<stdio.h> int main() { char s[100]; gets(s); if(s[2] == s[3] && s[4] == s[5]) { printf("Yes"); } else{ printf("No"); } }
128
memory_bytes
{'s_id': 's470480741', 'p_id': 'p02723', 'u_id': 'u349155070', 'date': '1585449308', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '189'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\n char s[100];\n\n gets(s);\n if(s[2] == s[3] && s[4] == s[5])\n {\n pr...
CDSS_695455
CDSS
#include<stdio.h> int main(void) { int A,B,C; scanf("%d %d",&A,&B); C=A+B; if(A%3 == 0 || B%3 == 0 || C%3 == 0){ printf("Possible\n"); } else { printf("Impossible\n"); } return 0; }
128
memory_bytes
{'s_id': 's095798251', 'p_id': 'p03657', 'u_id': 'u671395265', 'date': '1512350210', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '253'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n int main(void)\n {\n int A,B,C;\n scanf(\"%d %d\",&A,&B);\n C=A+B;\n if(A%3 == 0 || B%3 ...
CDSS_709435
CDSS
#include<stdio.h> #include<stdlib.h> #include<stdbool.h> #include<string.h> #include<math.h> #include<ctype.h> typedef long long ll; ll gcd(ll a, ll b) { if (b == 0) return a; return gcd(b, a % b); } ll lcm(ll a, ll b) { return a / gcd(a, b) * b; } ll max(ll a, ll b) { return (a > b) ? a : b; } ll min(ll a, ll b) ...
2,104
memory_bytes
{'s_id': 's682702962', 'p_id': 'p03730', 'u_id': 'u189521276', 'date': '1594851053', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '2104', 'code_size': '699'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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<ctype.h>\n\ntypedef long lo...
CDSS_141960
CDSS
#include<stdio.h> #include<stdbool.h> #define N 8 #define F -1 #define NF 1 int row[N],iro[N],dpos[2*N-1],dneg[2*N-1]; bool X[N][N]; void init(){ int i; for(i=0;i<N;i++){row[i]=F,iro[i]=F;} for(i=0;i<2*N-1;i++){dpos[i]=F;dneg[i]=F;} } void pB(){ int i,j; for(i=0;i<N;i++){ for(j=0;j<N;j++){ if(X[...
572
memory_bytes
{'s_id': 's355031832', 'p_id': 'p02244', 'u_id': 'u091060200', 'date': '1501123419', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '1053'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdbool.h>\n\n#define N 8\n#define F -1\n#define NF 1\n\nint row[N],iro[N],dpos[2*N-1],dneg[2*N-1];\nbool ...
CDSS_678396
CDSS
#include<stdio.h> int main(){ char s1[3], s2[3]; scanf("%s %s", s1, s2); if(s1[0] == s2[2] && s1[1] == s2[1] && s1[2] == s2[0]){ printf("YES\n"); } else { printf("NO\n"); } return 0; }
128
memory_bytes
{'s_id': 's997670452', 'p_id': 'p03555', 'u_id': 'u313578168', 'date': '1542500033', '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>\n\nint main(){\n char s1[3], s2[3];\n \n scanf(\"%s %s\", s1, s2);\n \n if(s1[0] == s2[2] && s1[1] == s2[1] && ...
CDSS_491020
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> int main(void) { char S[101]; int s; scanf("%s", S); s = strlen(S); for(int i = 0; i < s; i++) { printf("x"); } printf("\n"); return 0; }
128
memory_bytes
{'s_id': 's068274834', 'p_id': 'p02778', 'u_id': 'u623759422', 'date': '1581278895', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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#include<stdlib.h>\n#include<string.h>\n\nint main(void)\n{\n\tchar S[101];\n\tint s;\n\tscanf(\"%s\", S);\n\ts = s...
CDSS_129879
CDSS
#include<stdio.h> #include<stdlib.h> int fib(int); int *F; int main(){ int n,i; scanf("%d",&n); F=(int *)malloc(sizeof(int)*(n+1)); for(i=0;i<=n;i++) F[i]=-1; printf("%d\n",fib(n)); free(F); return 0; } int fib(int n){ if(F[n]== -1){ if(n==0||n==1) return F[n]= 1; return F[n]= fib(n-1)+fi...
596
memory_bytes
{'s_id': 's742558523', 'p_id': 'p02233', 'u_id': 'u592080174', 'date': '1467772871', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '356'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint fib(int);\nint *F;\n\nint main(){\n int n,i;\n\n scanf(\"%d\",&n);\n F=(int *)malloc(s...
CDSS_67361
CDSS
#include<stdio.h> int main(){ int i, n, sum; while(scanf("%d", &n) != EOF){ for(i=1, sum=1; i<=n; i++) sum += i; printf("%d\n", sum); } return 0; }
0
memory_bytes
{'s_id': 's148402334', 'p_id': 'p00057', 'u_id': 'u278606251', 'date': '1326351739', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '173'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, n, sum;\n\n while(scanf(\"%d\", &n) != EOF){\n for(i=1, sum=1; i<=n; i++)\n sum +=...
CDSS_414181
CDSS
#include <stdio.h> int main() { int x; scanf("%d", &x); x %= 10; switch(x) { case 3: puts("bon"); break; case 0: case 1: case 6: case 8: puts("pon"); break; default: puts("hon"); break; } }
1,644
memory_bytes
{'s_id': 's000867981', 'p_id': 'p02675', 'u_id': 'u803684095', 'date': '1593478140', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1644', 'code_size': '237'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int x;\n scanf(\"%d\", &x);\n x %= 10;\n switch(x) {\n case 3:\n puts(\"bon\");\n bre...
CDSS_656484
CDSS
#include<stdio.h> #include <stdlib.h> int main(void) { int N; scanf("%d", &N); int x = 1; int y; int i; char *S; int a[4] = {0}; S = (char *)malloc(N * sizeof(char)); for(i=0; i<N; i++) { scanf("%s", &S[i]); } for(i=0; i < N; i++) { switch(S[i]) { case('P'): a[0] = 1; break; case('W...
128
memory_bytes
{'s_id': 's538282369', 'p_id': 'p03424', 'u_id': 'u772371023', 'date': '1559083654', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '610'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include <stdlib.h>\n\nint main(void) {\n int N;\n scanf(\"%d\", &N);\n\tint x = 1;\n\tint y;\n\tint i;\n\tchar *...
CDSS_138491
CDSS
#include <stdio.h> #define MAX_NUM 100000 int CC[MAX_NUM] = {0}; void init() { int i; for (i = 0; i < MAX_NUM; ++i) { CC[i] = i; } } int find(int a) { if (a == CC[a]) { return a; } return CC[a] = find(CC[a]); } int isSame(int a, int b) { if (find(a) == find(b)) { return 1; } else { return 0; } } ...
972
memory_bytes
{'s_id': 's054768739', 'p_id': 'p02240', 'u_id': 'u897660790', 'date': '1485874417', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '972', 'code_size': '763'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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_NUM 100000\nint CC[MAX_NUM] = {0};\n\nvoid init() {\n\tint i;\n\tfor (i = 0; i < MAX_NUM; ++i) {\n\t...
CDSS_702848
CDSS
#include<stdio.h> int main() { int a,b; scanf("%d %d",&a,&b); int sum=a+b; if(sum>=10){ printf("error"); }else{ printf("%d",sum); } return 0; }
128
memory_bytes
{'s_id': 's219068838', 'p_id': 'p03697', 'u_id': 'u767591769', 'date': '1499798433', '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 int a,b;\n scanf(\"%d %d\",&a,&b);\n int sum=a+b;\n if(sum>=10){\n printf(\"er...
CDSS_169056
CDSS
#include <stdio.h> int main(void) { int N; int i, j, x,count=0, flag=1; scanf("%d", &N); int a[N]; for(i=0; i<N; i++){ scanf("%d", &a[i]); } while(flag==1){ flag=0; for(j=1;j<N;j++){ if(a[j]<a[j-1]){ x=a[j]; a[j]=a[j-1]; a[j-1]=x; count++; flag=1; } } } for(i=0; i<N-1; i+...
2,100
memory_bytes
{'s_id': 's758581309', 'p_id': 'p02259', 'u_id': 'u657006217', 'date': '1570171844', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '414'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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;\n\tint i, j, x,count=0, flag=1;\n\tscanf(\"%d\", &N);\n\tint a[N];\n\tfor(i=0; i<N; ...
CDSS_743435
CDSS
#include <stdio.h> int main() { int i, N, M, x[100001], y[100001]; scanf("%d %d", &N, &M); for (i = 1; i <= M; i++) scanf("%d %d", &(x[i]), &(y[i])); int flag[100001] = {-1, 1}, num[100001] = {-1}, ans = 0; for (i = 1; i <= M; i++) { if (flag[x[i]] == 1) { if (num[x[i]] == 0) flag[x[i]] = 0; flag[y[i]] ...
1,664
memory_bytes
{'s_id': 's515459646', 'p_id': 'p04034', 'u_id': 'u943800443', 'date': '1589982687', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '19', 'memory': '1664', 'code_size': '457'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, M, x[100001], y[100001];\n\tscanf(\"%d %d\", &N, &M);\n\tfor (i = 1; i <= M; i++) sca...
CDSS_386012
CDSS
#include <stdio.h> int main(void) { int i, temp; scanf("%d", &temp); if (temp >= 30) printf("Yes\n"); else printf("No\n"); return 0; }
1,664
memory_bytes
{'s_id': 's275606497', 'p_id': 'p02594', 'u_id': 'u989494871', 'date': '1596416696', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1664', 'code_size': '157'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int i, temp;\n\n scanf(\"%d\", &temp);\n\n if (temp >= 30)\n printf(\"Yes\\n\");\n el...
CDSS_43588
CDSS
#include <stdio.h> #include <math.h> main(){ int n, i, j, k, p, count; int data[100000]; k=1; data[0]=2; for(i=3;i<1000000;i+=2){ p=0; if(i%2==0) continue; for(j=3;j<=(int)sqrt(i);j+=2){ if(i%j==0){ p=1; break; } } if(p==1) continue; data[k]=i; k++; } data[k]=-...
592
memory_bytes
{'s_id': 's887341097', 'p_id': 'p00009', 'u_id': 'u622083648', 'date': '1278598364', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '380', 'memory': '592', 'code_size': '535'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\n\nmain(){\n int n, i, j, k, p, count;\n int data[100000];\n k=1;\n data[0]=2;\n for(i=3;...
CDSS_490343
CDSS
#include<stdio.h> int main() { int a,b,i,f,g,cnt=0,j; char c[20],d[20],e[20]; scanf("%s%s",c,d); scanf("%d%d",&a,&b); scanf("%s",e); f=strlen(c); g=strlen(e); if(f==g) { for(i=0;i<f;i++) { if(c[i]==e[i]) cnt++; } } if(cnt==f...
128
memory_bytes
{'s_id': 's708979955', 'p_id': 'p02777', 'u_id': 'u984942085', 'date': '1581279110', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '414'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,i,f,g,cnt=0,j;\n char c[20],d[20],e[20];\n scanf(\"%s%s\",c,d);\n scanf(\"%d%d\...
CDSS_129291
CDSS
#include <stdio.h> #include <stdlib.h> int fibonacci(int ); static int F[100] = {}; int main() { int number; scanf("%d",&number); printf("%d\n",fibonacci(number)); } int fibonacci(int n) { if(n==0 || n==1) return F[n] = 1; if(F[n] != 0) return F[n]; return F[n] = fibonacci(n-2) + fibonacci(n-1);...
2,112
memory_bytes
{'s_id': 's148670009', 'p_id': 'p02233', 'u_id': 'u739446992', 'date': '1532063542', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '324'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 fibonacci(int );\n\nstatic int F[100] = {};\n\nint main() {\n int number;\n\n scanf(\...
CDSS_370224
CDSS
#include <stdio.h> #include <string.h> int main(void){ char w[201],t[201]; int m,h,l,i; while(1){ scanf("%s",w); if(strcmp(w,"-")==0) break; l=strlen(w); scanf("%d",&m); while(m--){ scanf("%d",&h); for(i=0;i<l;i++){ t[i]=w[(i+h)%l]; } t[l]='\0'; strcpy(w,t); } printf("%s\n",t); }...
592
memory_bytes
{'s_id': 's329839288', 'p_id': 'p02420', 'u_id': 'u505651850', 'date': '1469331381', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '333'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tchar w[201],t[201];\n\tint m,h,l,i;\n\twhile(1){\n\t\tscanf(\"%s\",w);\n\t...
CDSS_732868
CDSS
#include <stdio.h> int main(void){ int count = 0; char str[100001], c; scanf("%s", str); c = str[0]; for(int i=1; str[i]; i++) { if(c != str[i]) { c = str[i]; count++; } } printf("%d", count); return 0; }
256
memory_bytes
{'s_id': 's144202574', 'p_id': 'p03945', 'u_id': 'u132602393', 'date': '1585868628', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '246'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 count = 0;\n\tchar str[100001], c;\n\n\tscanf(\"%s\", str);\n\n\tc = str[0];\n\tfor(int i...
CDSS_111298
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> #define BUFF_SIZE 1024 char buffer[1024 * 1024]; int pos = 0; int end = 0; int mygetchar(){ if(pos == end){ end = read(0, buffer, sizeof(buffer)); pos = 0; } return buffer[pos++]; } int getInt(){ int ret = 0, c; c = mygetchar(); while(!isdig...
1,384
memory_bytes
{'s_id': 's070773492', 'p_id': 'p00594', 'u_id': 'u609255173', 'date': '1307789485', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '1384', 'code_size': '800'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 BUFF_SIZE 1024\nchar buffer[1024 * 1024];\nint pos = 0;\nint end ...
CDSS_472140
CDSS
#include<stdio.h> int main(){ int n, m, ans; scanf("%d %d", &n, &m); ans = n*(n-1)/2 + m*(m-1)/2; printf("%d", ans); return 0; }
128
memory_bytes
{'s_id': 's651402457', 'p_id': 'p02729', 'u_id': 'u865456985', 'date': '1584925415', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '138'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tint n, m, ans;\n\n\tscanf(\"%d %d\", &n, &m);\n\n\tans = n*(n-1)/2 + m*(m-1)/2;\n\tprintf(\"%d\", ...
CDSS_522334
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { int i; int N; char S[100000]; char top; int ans = 0; scanf("%d", &N); scanf("%s", &S); for (i = 0; i < N - 1; i++) { if (S[i] == S[i + 1]) { S[i] = 'A'; top = S[i + 1]; } } for (i = 0; i < N; i++) { if (S[i] != 'A') { an...
256
memory_bytes
{'s_id': 's106077181', 'p_id': 'p02887', 'u_id': 'u491330513', 'date': '1571534985', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '366'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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>\nint main() {\n\tint i;\n\tint N;\n\tchar S[100000];\n\tchar top;\n\tint ...
CDSS_585753
CDSS
#include <stdio.h> int main(void){ char b[1]; scanf("%s", b); if(b[0] == 'A'){ printf("T"); }else if(b[0] == 'C'){ printf("G"); }else if(b[0] == 'G'){ printf("C"); }else if(b[0] == 'T'){ printf("A"); } return 0; }
128
memory_bytes
{'s_id': 's961748956', 'p_id': 'p03085', 'u_id': 'u313317027', 'date': '1578806515', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '253'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n char b[1];\n \n scanf(\"%s\", b);\n \n if(b[0] == 'A'){\n printf(\"T\");\n }else if(b...
CDSS_361072
CDSS
#include<stdio.h> #include <stdlib.h> #include <string.h> void inputAnyNumsValue(unsigned int value[], unsigned int num); void picNumtoStr(char str[], unsigned int value[], unsigned int num) ; int main() { unsigned int n=0,m=0,l=0; scanf("%d %d %d",&n,&m,&l); unsigned int matrixA[n][m],matrixB[m][l]; memset(matr...
2,112
memory_bytes
{'s_id': 's708225714', 'p_id': 'p02414', 'u_id': 'u495242521', 'date': '1586841105', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '1984'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nvoid inputAnyNumsValue(unsigned int value[], unsigned int num);\nvoid p...
CDSS_372650
CDSS
#include <stdio.h> int main() { const int pow2[] = { 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 4194304, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824}; char buf[64]; buf[63]=0; buf[62]='\...
2,104
memory_bytes
{'s_id': 's095940860', 'p_id': 'p02429', 'u_id': 'u800534567', 'date': '1558659162', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '2104', 'code_size': '1287'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 const int pow2[] = { 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 3276...
CDSS_292228
CDSS
#include <stdio.h> int main(void){ int W,H,x,y,r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(x-r>=0 && x+r<=W && y-r>=0 && y+r<=H){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
1,812
memory_bytes
{'s_id': 's114627942', 'p_id': 'p02394', 'u_id': 'u539201509', 'date': '1507094503', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1812', '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(void){\n\n\tint W,H,x,y,r;\n\n\tscanf(\"%d %d %d %d %d\",&W,&H,&x,&y,&r);\n\n\tif(x-r>=0 && x+r<=W && y...
CDSS_406658
CDSS
#include <stdio.h> int main() { int s,w; scanf("%d %d",&s,&w); printf("%d\n",s*w); return 0; }
1,732
memory_bytes
{'s_id': 's267556166', 'p_id': 'p02657', 'u_id': 'u353919145', 'date': '1591909542', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1732', 'code_size': '111'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int s,w;\n scanf(\"%d %d\",&s,&w);\n printf(\"%d\\n\",s*w);\n return 0;\n}\nPredict i...
CDSS_557372
CDSS
#include<stdio.h> int main(){ int n,l,m,sum=0; scanf("%d%d",&n,&l); m=l; for(int i=1;i<=n;i++){ sum+=m; m++; } for(int i=1;i<=n;i++){ if(l>=0){ printf("%d",sum-l); return 0; } l++; } printf("%d",sum-l+1); return 0; }
128
memory_bytes
{'s_id': 's710671494', 'p_id': 'p02994', 'u_id': 'u097182283', 'date': '1561485631', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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\nint main(){\n\tint n,l,m,sum=0;\n scanf(\"%d%d\",&n,&l);\n m=l;\n for(int i=1;i<=n;i++){\n sum+=m;\n m++;\n ...
CDSS_249444
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': 's440336752', 'p_id': 'p02388', 'u_id': 'u171377572', 'date': '1461822269', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '101'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 x;\n\tscanf(\"%d\", &x);\n\tprintf(\"%d\\n\", x*x*x);\n\treturn 0;\n}\n\nPredict its me...
CDSS_470124
CDSS
#include<stdio.h> int main(){ int k,n,i,max; scanf("%d %d",&k,&n); int a[n]; for(i=0;i<n;i++)scanf("%d",&a[i]); for(i=1,max=a[1]-a[0];i<n-1;i++){ if(max<a[i+1]-a[i])max=a[i+1]-a[i]; } if(max<k-a[n-1]+a[0])max=k-a[n-1]+a[0]; printf("%d",k-max); return 0; }
2,508
memory_bytes
{'s_id': 's433370663', 'p_id': 'p02725', 'u_id': 'u951437531', 'date': '1598731537', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '33', 'memory': '2508', 'code_size': '278'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 k,n,i,max;\n scanf(\"%d %d\",&k,&n);\n int a[n];\n for(i=0;i<n;i++)scanf(\"%d\",&a[i]);\n fo...
CDSS_527258
CDSS
#include<stdio.h> #include<string.h> int main(void){ char c; scanf("%c", &c); if(c=='S'){ printf("Cloudy"); }else if(c=='C'){ printf("Rainy"); }else if(c=='R'){ printf("Sunny"); } return 0; }
128
memory_bytes
{'s_id': 's218238726', 'p_id': 'p02909', 'u_id': 'u863544548', 'date': '1589045558', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '221'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nint main(void){\n char c;\n scanf(\"%c\", &c);\n if(c=='S'){\n printf(\"Cloudy\");\n }...
CDSS_234196
CDSS
#include <stdio.h> #include<math.h> int main(void){ double x1,x2,y1,y2, a; scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2); a=(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2); a=sqrt(a); printf("%f", a); return 0; }
2,104
memory_bytes
{'s_id': 's113596430', 'p_id': 'p02379', 'u_id': 'u378491233', 'date': '1528160322', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '211'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include<math.h>\nint main(void){\n double x1,x2,y1,y2, a;\n scanf(\"%lf %lf %lf %lf\",&x1,&y1,&x2,&y2);\n a...
CDSS_224589
CDSS
#include<stdio.h> #include<stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL Node root; Node treeMinimum(Node x){ while( x->left != NIL ) x = x->left; return x; } Node treeMaximum(Node x){ while( x->right != NIL )...
19,364
memory_bytes
{'s_id': 's403132137', 'p_id': 'p02285', 'u_id': 'u053403551', 'date': '1498101285', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '390', 'memory': '19364', 'code_size': '2419'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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_598618
CDSS
#include <stdio.h> #include <stdlib.h> /* int asc(int a, int b) { if (a < b) { return -1; } else if (a > b) { return 1; } else { return 0; } } */ int desc(const void *a, const void *b) { return *(int *)b - *(int *)a; } int main() { int n, m; scanf("%d%d", &n, &m); int x[m]; int i, j, k; for (i = 0; i...
1,268
memory_bytes
{'s_id': 's922900256', 'p_id': 'p03137', 'u_id': 'u390581401', 'date': '1549249961', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '29', 'memory': '1268', 'code_size': '1049'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n/*\nint asc(int a, int b)\n{\n\tif (a < b) {\n\t\treturn -1;\n\t} else if (a > b) {\n\t\tretu...
CDSS_74073
CDSS
#include <stdio.h> int main(void) { int a, b; double s; scanf("%d%d", &a, &b); s=a*b/3.305785; printf("%f",s); return 0; }
632
memory_bytes
{'s_id': 's291716888', 'p_id': 'p00094', 'u_id': 'u896419811', 'date': '1408068221', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '632', 'code_size': '139'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int a, b;\n double s;\n\n scanf(\"%d%d\", &a, &b);\n\n s=a*b/3.305785;\n\n printf(\"%f\...
CDSS_86944
CDSS
#define M 1000001 T[M],t[M],a;main(m,n,x,i,j){ for(i=2;i<M;i++)if(!T[i])for(j=i*2;j<M;j+=i)T[j]=1; for(;scanf("%d%d",&n,&x),n;printf(m?"%d\n":"NA\n",m)){ for(memset(t,0,sizeof(t)),t[0]=1,m=i=0;i<n;i++){ for(scanf("%d",&a),j=0;j+a<=x;j++)if(t[j])if(t[j+a]=1,!T[j+a]&&m<j+a)m=j+a; } } exit(0);}
8,420
memory_bytes
{'s_id': 's541723381', 'p_id': 'p00202', 'u_id': 'u300645821', 'date': '1351577213', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '750', 'memory': '8420', 'code_size': '302'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define M 1000001\nT[M],t[M],a;main(m,n,x,i,j){\n\tfor(i=2;i<M;i++)if(!T[i])for(j=i*2;j<M;j+=i)T[j]=1;\n\tfor(;scanf(\"%d%d\",&n,&x),n...
CDSS_286932
CDSS
#include<stdio.h> int main() { int a, b, c, x, y; scanf("%d %d %d",&a ,&b, &c); if(a > b){ x = a; a = b; b = x; } if(b > c){ y = b; b = c; c = y; } if(a > b){ x = a; a = b; b = x; } printf("%d %d %d\n",a, b, c); return 0; }
2,056
memory_bytes
{'s_id': 's742432414', 'p_id': 'p02393', 'u_id': 'u570556771', 'date': '1525565347', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '242'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 a, b, c, x, y;\nscanf(\"%d %d %d\",&a ,&b, &c);\nif(a > b){\n x = a;\n a = b;\n b = x;\n}\nif...
CDSS_317759
CDSS
#include<stdio.h> int main(void){ int a,b,an; char op; for(;;){ scanf("%d %c %d",&a,&op,&b); if(op=='?') break; switch(op){ case '+': an=a+b; break; case '-': an=a-b; break; case '*':...
600
memory_bytes
{'s_id': 's755018928', 'p_id': 'p02401', 'u_id': 'u414351000', 'date': '1408267692', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '495'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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,an;\n char op;\n for(;;){\n scanf(\"%d %c %d\",&a,&op,&b);\n if(...
CDSS_320644
CDSS
#include <stdio.h> int main(void) { int a; int b; int i; int idx = 0; int ans[100]; char op; while (1) { scanf("%d %c %d", &a, &op, &b); if (op == '+') ans[idx] = a + b; else if (op == '-') ans[idx] = a - b; else if (op == '*') ans[idx] = a * b; else if (op == '/') ans[idx] = a / b; els...
2,104
memory_bytes
{'s_id': 's875136748', 'p_id': 'p02401', 'u_id': 'u161165739', 'date': '1573609174', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '415'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint\nmain(void)\n{\n\tint a;\n\tint b;\n\tint i;\n\tint idx = 0;\n\tint ans[100];\n\tchar op;\n\n\twhile (1) {\n...
CDSS_153990
CDSS
#include <stdio.h> #include <stdlib.h> int euclidian(int a, int b) { int tmp = -1; int i = 0; while (tmp != 0) { if ((i % 2) == 0) { tmp = a % b; a = tmp; } else { tmp = b % a; b = tmp; } i++; } if ((i % 2) == 0) return a; else return b; } int main() { int a = 0, b = 0; scan...
2,132
memory_bytes
{'s_id': 's121261919', 'p_id': 'p02256', 'u_id': 'u739964394', 'date': '1564756852', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2132', 'code_size': '388'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 euclidian(int a, int b)\n{\n\tint tmp = -1;\n\tint i = 0;\n\n\twhile (tmp != 0)\n\t{\n\...
CDSS_581246
CDSS
#include<stdio.h> int main() { int i,n,count=0,flag=0; char s[100000]; gets(s); for(n=0;s[n]!='\0';n++); for(i=0;i<n;i+=2) if(s[i]!='0') count++; for(i=1;i<n;i+=2) if(s[i]!='1') count++; for(i=0;i<n;i+=2) if(s[i]!='1') flag++; for(i=1;i<n;i...
256
memory_bytes
{'s_id': 's068380064', 'p_id': 'p03073', 'u_id': 'u089230684', 'date': '1572483604', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', '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>\nint main()\n{\n int i,n,count=0,flag=0;\n char s[100000];\n gets(s);\n for(n=0;s[n]!='\\0';n++);\n f...
CDSS_412548
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define max(a, b) ((a) > (b) ? (a) : (b)) #define min(a, b) ((a) < (b) ? (a) : (b)) typedef long long ll; ll prime[100000] = {0}, cnt = 0; ll prime_factorization(ll a) { ll i, sq; if (a % 2 == 0) ...
2,156
memory_bytes
{'s_id': 's164523781', 'p_id': 'p02660', 'u_id': 'u032004842', 'date': '1591123731', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '2156', 'code_size': '1187'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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#define rep(i, n) for (int i = 0; i < (int)(n); i++)\n#define max(a, b) ((...
CDSS_184264
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> struct node{ unsigned int key; struct node *next; struct node *prev; }; typedef struct node * NodePointer; NodePointer nil; NodePointer listSearch(int key){ NodePointer cur = nil->next; while(cur != nil && cur->key != key){ cur = cur->next; } ...
32,992
memory_bytes
{'s_id': 's869310263', 'p_id': 'p02265', 'u_id': 'u916841654', 'date': '1545389734', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '220', 'memory': '32992', 'code_size': '1630'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nstruct node{\n unsigned int key;\n struct node *next;\n struct node *p...
CDSS_280304
CDSS
#include<stdio.h> int main(void) { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a < b && b < c) puts("Yes"); else puts("No"); return 0; }
580
memory_bytes
{'s_id': 's646321849', 'p_id': 'p02392', 'u_id': 'u473691854', 'date': '1398262315', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '162'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint a,b,c;\n\n\tscanf(\"%d %d %d\",&a,&b,&c);\n\n\tif(a < b && b < c)\n\t puts(\"Yes\");\n ...
CDSS_472450
CDSS
#include <stdio.h> typedef long long int lld; int check(char *s, int len) { for (int i = 0; i < len / 2; i++) { if (s[i] != s[len - i - 1]) { return 0; } } return 1; } int main(void) { char s[99]; int l = 0; for (l = 0; l < 99; l++) { scanf("%c", &s[l]); if (s[l] == '\n') { bre...
256
memory_bytes
{'s_id': 's283671015', 'p_id': 'p02730', 'u_id': 'u028073448', 'date': '1586266215', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '436'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 int lld;\n\nint check(char *s, int len) {\n for (int i = 0; i < len / 2; i++) {\n if (s[i] !...
CDSS_580537
CDSS
#include<stdio.h> int main(){ int N; int H[100]; int X; int i; int max=0; scanf("%d",&N); for(i=1;i<=N;i++){ scanf("%d",&H[i]); } for(i=1;i<=N;i++){ if(max<=H[i]){ max=H[i]; X++; } } printf("%d",X); return 0; }
256
memory_bytes
{'s_id': 's844966016', 'p_id': 'p03072', 'u_id': 'u374197327', 'date': '1557402684', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '256', '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>\nint main(){\nint N;\nint H[100];\nint X;\nint i;\nint max=0;\n\n \n scanf(\"%d\",&N);\nfor(i=1;i<=N;i++){\nscanf(...
CDSS_79285
CDSS
#include<stdio.h> #include <string.h> int main(){ double a, b; while(scanf("%lf %lf", &a, &b) != EOF){ if(a < 35.5 && b < 71) printf("AAA\n"); else if(a < 37.5 && b < 77) printf("AA\n"); else if(a < 40 && b < 83) printf("A\n"); else if(a < 43 && b < 89) printf("B\n"); else if(a < 50 && b < 105) printf("C\n...
608
memory_bytes
{'s_id': 's357300545', 'p_id': 'p00123', 'u_id': 'u145643522', 'date': '1373840188', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '450'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include <string.h>\n\nint main(){\n\tdouble a, b;\n\twhile(scanf(\"%lf %lf\", &a, &b) != EOF){\n\t\tif(a < 35.5 &&...
CDSS_473108
CDSS
#include<stdio.h> int main(){ int L; scanf("%d",&L); printf("%lf",(double)L*L*L/27); return 0; }
128
memory_bytes
{'s_id': 's455003982', 'p_id': 'p02731', 'u_id': 'u808043578', 'date': '1585727208', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '106'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 L;\n scanf(\"%d\",&L);\n printf(\"%lf\",(double)L*L*L/27);\n return 0;\n}\n\nPredict its me...
CDSS_563834
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> int main(){ int i, n, t, s1, s2, min = -1; scanf("%d", &n); int w[n]; for(i = 0; i < n; i++) scanf("%d", &w[i]); for(t = 0; t < n - 1; t++){ s1 = 0; s2 = 0; for(i = 0; i <= t; i++) s1 += w[i]; for(i = t + 1; i < n;...
128
memory_bytes
{'s_id': 's371012273', 'p_id': 'p03012', 'u_id': 'u523969266', 'date': '1560129124', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '475'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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#include <math.h>\n\nint main(){\n\t\n\tint i, n, t, s1, s2, min = -1;\n...
CDSS_149875
CDSS
#include<stdio.h> int main(void) { int N; int i,j,k,v; scanf("%d",&N); int a[N]; for(i = 0; i < N; i++) { scanf("%d",&a[i]); } for(i = 0; i < N; i++) { if(i != N - 1){printf("%d ",a[i]);} else{printf("%d",a[i]);} } printf("\n"); for(i = 1; i < N; i++) { v = a[i]; ...
2,036
memory_bytes
{'s_id': 's841319883', 'p_id': 'p02255', 'u_id': 'u625632471', 'date': '1569566288', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '574'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n int N;\n\t\n\tint i,j,k,v;\n\t\n\tscanf(\"%d\",&N);\n\tint a[N];\n\t\n\tfor(i = 0; i < N; ...
CDSS_201854
CDSS
#include<stdio.h> #define MAX 500000 #define SENTINEL 2000000000 void merge(int [],int,int,int); void mergeSort(int [],int,int); int cnt,n; int L[MAX/2+2],R[MAX/2+2]; int main() { int S[MAX],i; cnt=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&S[i]); } mergeSort(S,0,n); for(i=0;i<n;i++){ i...
5,704
memory_bytes
{'s_id': 's913503402', 'p_id': 'p02272', 'u_id': 'u262227492', 'date': '1545632535', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '5704', 'code_size': '1004'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define MAX 500000\n#define SENTINEL 2000000000\nvoid merge(int [],int,int,int);\nvoid mergeSort(int [],int,int);\n...
CDSS_149690
CDSS
#include <stdio.h> int main(){ int A[1000],N,i,j,k,v; scanf("%d",&N); for(i=0;i<N;i++){ scanf("%d",&A[i]); } for(i=0;i<N;i++){ printf("%d",A[i]); if(i == N-1) break; printf(" "); } printf("\n"); for(i=1;i<N;i++){ v = A[i]; j = i - 1; while(j >= 0 && A[j] > v){ ...
2,044
memory_bytes
{'s_id': 's777028877', 'p_id': 'p02255', 'u_id': 'u087575580', 'date': '1575877354', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '525'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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[1000],N,i,j,k,v;\n scanf(\"%d\",&N);\n\n for(i=0;i<N;i++){\n scanf(\"%d\",&A[i]);\n ...
CDSS_84352
CDSS
#include <stdio.h> int main(void) { int sum; int nownum; int onenum; int i; char nextcode; sum=0; onenum=0; while(1) { scanf("%d%c",&nownum,&nextcode); if(nownum>10)nownum=10; sum+=nownum; if(nownum==1)onenum++; if(nextcode=='\n') { if(sum==0)break; for(i=0;i<onenum;i++) { if(sum+10<=21)sum...
0
memory_bytes
{'s_id': 's960110233', 'p_id': 'p00169', 'u_id': 'u543521645', 'date': '1313885879', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '416'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 sum;\n\tint nownum;\n\tint onenum;\n\tint i;\n\tchar nextcode;\n\tsum=0;\n\tonenum=0;\n\...
CDSS_609817
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> int main() { char s[12]; fgets(s, 12, stdin); int length = strlen(s); s[length] = '\0'; int min = 1000; for (int i=0; i<length-3; i++) { int buf = 100 * (s[i] - '0') + 10 * (s[i+1] - '0') + s[i+2] - '0'; int buf2 = abs(b...
128
memory_bytes
{'s_id': 's615793037', 'p_id': 'p03211', 'u_id': 'u324549724', 'date': '1557288422', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '414'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nint main() {\n char s[12];\n fgets(s, 12, stdin);\n int lengt...
CDSS_340436
CDSS
#include <stdio.h> int main(){ int n; scanf("%d",&n); int i; ; for(i=1;i<=n;i++){ if(i%3==0) printf(" %d",i); else if(i%10==3||(i/10)%10==3||(i/100)%10==3||(i/1000)%10==3) printf(" %d",i); } printf("\n"); return 0; }
2,084
memory_bytes
{'s_id': 's257748305', 'p_id': 'p02406', 'u_id': 'u344125944', 'date': '1528803808', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2084', '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 int n;\n scanf(\"%d\",&n);\n int i;\n ;\n for(i=1;i<=n;i++){\n if(i%3==0)\n ...
CDSS_420681
CDSS
#include<stdio.h> int main(){ long int a,b,c,k; scanf("%ld %ld %ld %ld",&a,&b,&c,&k); if(a>k){ printf("%ld",k); return 0; } else if(a+b>=k){ printf("%ld",a); return 0; } else printf("%ld",a+(k-(a+b))*(-1)); }
1,732
memory_bytes
{'s_id': 's261802974', 'p_id': 'p02682', 'u_id': 'u878093302', 'date': '1589160797', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1732', 'code_size': '241'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tlong int a,b,c,k;\n scanf(\"%ld %ld %ld %ld\",&a,&b,&c,&k);\n if(a>k){\n printf(\"%ld\",k);\n ...
CDSS_96076
CDSS
// AOJ Vol3-0383 Heat Strokes // 2018.12.25 //#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main() { int A, B, ans; scanf("%d%d", &A, &B); ans = B / A; if (B % A) ans++; printf("%d\n", ans); return 0; }
2,104
memory_bytes
{'s_id': 's410252873', 'p_id': 'p00387', 'u_id': 'u847467233', 'date': '1545725946', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', '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// AOJ Vol3-0383 Heat Strokes\n// 2018.12.25\n \n//#define _CRT_SECURE_NO_WARNINGS\n#include <stdio.h>\n\nint main()\n{\n\tint A, B, a...
CDSS_723372
CDSS
#include <stdio.h> int is_prine(int m) { if(m <= 1) return 0; for(int i = 2;i<m;i++){ if(m % i == 0) return 0; } return m; } void so(int m,int b[],int a[]) { int i = 0; while(m != 1){ if(b[i] == 0 ) break; if(m % b[i] == 0){ ...
256
memory_bytes
{'s_id': 's134594895', 'p_id': 'p03828', 'u_id': 'u184031112', 'date': '1486854822', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '985'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 is_prine(int m)\n{\n if(m <= 1)\n return 0;\n for(int i = 2;i<m;i++){\n if(m % i == 0)\...
CDSS_635629
CDSS
#include <stdio.h> #include <stdlib.h> int main(){ char a[10], count=0, sn=0; printf("%s", (scanf("%s", a), (a[count]?sn+=a[count++]-'0':0), (a[count]?sn+=a[count++]-'0':0), (a[count]?sn+=a[count++]-'0':0), (a[count]?sn+=a[count++]-'0':0), (a[count]?sn+=a[count++]-'0':0), (a[count]?sn+=a[count++]-'0':0), (a[count]?sn...
128
memory_bytes
{'s_id': 's885896920', 'p_id': 'p03316', 'u_id': 'u194206730', 'date': '1544048402', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '478'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\nint main(){\n\tchar a[10], count=0, sn=0;\n\tprintf(\"%s\", (scanf(\"%s\", a), (a[count]?sn+=...
CDSS_273965
CDSS
#include <stdio.h> int main() { int a, b; scanf("%d%d", &a, &b); if ( a < b ) { printf("a < b\n"); } else if (a > b) { printf("a > b\n"); } else { printf("a == b\n"); } return 0; }
2,032
memory_bytes
{'s_id': 's835949357', 'p_id': 'p02391', 'u_id': 'u230310520', 'date': '1587393641', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2032', 'code_size': '202'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n\tint a, b;\n\n\tscanf(\"%d%d\", &a, &b);\n\n\tif ( a < b ) {\n\t\tprintf(\"a < b\\n\");\n\t}\n\te...
CDSS_553540
CDSS
#include<stdio.h> int main() { char s[4]; scanf("%s",s); if(s[0]==s[1]&&s[0]==s[2]&&s[0]==s[3]){ printf("No\n"); } else if(s[0]==s[1]&&s[2]==s[3]||s[0]==s[2]&&s[1]==s[3]||s[0]==s[3]&&s[1]==s[2]){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }
1,632
memory_bytes
{'s_id': 's822710828', 'p_id': 'p02987', 'u_id': 'u785727223', 'date': '1597870607', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1632', 'code_size': '265'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tchar s[4];\n\tscanf(\"%s\",s);\n\tif(s[0]==s[1]&&s[0]==s[2]&&s[0]==s[3]){\n\t\tprintf(\"No\\n\");\...
CDSS_378771
CDSS
#include <stdio.h> int main(void) { char s[1001], t[1001]; int count, k, ans, s_len, t_len; scanf("%s %s", s,t); s_len = strlen(s); t_len = strlen(t); ans = t_len; for (int i = 0; i < (s_len - t_len + 1); i++) { count = 0; for (int j = 0, k = i; j < t_len; j++, k++) { if (s[k] != t[j]) cou...
1,712
memory_bytes
{'s_id': 's918296284', 'p_id': 'p02571', 'u_id': 'u804566868', 'date': '1600094963', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1712', 'code_size': '412'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tchar s[1001], t[1001];\n\tint count, k, ans, s_len, t_len;\n \n\tscanf(\"%s %s\", s,t...
CDSS_708761
CDSS
#include <stdio.h> int main(void) { int a,b,c; char x[11]; char y[11]; char z[11]; scanf("%s",x); scanf("%s",y); scanf("%s",z); for(a=0;x[a]!='\0';a++); for(b=0;y[b]!='\0';b++); for(c=0;z[c]!='\0';c++); if((x[a-1]==y[0])&&(y[b-1]==z[0])){ printf("YES\n"); }else{ printf("NO\n"); } ret...
1,628
memory_bytes
{'s_id': 's785326268', 'p_id': 'p03729', 'u_id': 'u237968950', 'date': '1592942150', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1628', '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(void)\n{\n int a,b,c;\n char x[11];\n char y[11];\n char z[11];\n scanf(\"%s\",x);\n scanf(\"%s\",y...
CDSS_595692
CDSS
#include<stdio.h> int gdc(int a, int b){ if(a==0 || b==0){ return (a+b); } if(a>b){ return gdc(a%b, b); }else{ return gdc(a, b%a); } } int main(){ int N; int A[100000]; int i, j; int a,b; scanf("%d", &N); for(i=0; i<N; i++){ scanf("%d", &A...
512
memory_bytes
{'s_id': 's167336674', 'p_id': 'p03127', 'u_id': 'u235231201', 'date': '1557887571', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '14', 'memory': '512', 'code_size': '449'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 gdc(int a, int b){\n if(a==0 || b==0){\n return (a+b); \n }\n if(a>b){\n return gdc(a%...
CDSS_147045
CDSS
void insertionSort(int A[], const int N) { int i, j; for( i = 0; i < N; ++i ){ int tmp = A[i]; for( j = i-1; -1 < j && tmp < A[j]; --j ){ A[j+1] = A[j]; } A[j+1] = tmp; //出力 for( j = 0; j < N; ++j ){ printf("%d", A[j]); if( j ...
2,052
memory_bytes
{'s_id': 's321959136', 'p_id': 'p02255', 'u_id': 'u367105872', 'date': '1518952679', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', '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:\nvoid insertionSort(int A[], const int N)\n{\n int i, j;\n\n for( i = 0; i < N; ++i ){\n int tmp = A[i];\n for( j =...
CDSS_238589
CDSS
#include<stdio.h> struct dice{ int d[6],tmp[6]; }; struct dice dice1; struct dice dice2; void init1(int n[6]){ int i; for(i=0;i<6;i++){ dice1.d[i]=n[i]; } } void init2(int n[6]){ int i; for(i=0;i<6;i++){ dice2.d[i]=n[i]; } } void rooldice(char c){ int i; for(i=0;i<...
580
memory_bytes
{'s_id': 's065528556', 'p_id': 'p02385', 'u_id': 'u845340937', 'date': '1445910184', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '2331'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include<stdio.h>\n\nstruct dice{\n int d[6],tmp[6];\n};\nstruct dice dice1;\nstruct dice dice2;\n\nvoid init1(int n[6]){\n in...
CDSS_98668
CDSS
#include <stdio.h> int main(void){ int a,b,c,d,s; scanf("%d %d %d %d",&a,&b,&c,&d); s=a+b+c+d; int e,f,g,h,t; scanf("%d %d %d %d %d",&e,&f,&g,&h); t=e+f+g+h; if(s>t) printf("%d\n",s); else printf("%d\n",t); return 0; }
2,104
memory_bytes
{'s_id': 's724170756', 'p_id': 'p00433', 'u_id': 'u455395909', 'date': '1531719125', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '244'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int a,b,c,d,s;\n scanf(\"%d %d %d %d\",&a,&b,&c,&d);\n s=a+b+c+d;\n int e,f,g,h,t;\n s...
CDSS_426210
CDSS
#include<stdio.h> int main() { int K,A,B,i,C,d=0; scanf("%d%d%d",&K,&A,&B); for(i=1; i<=B; i++) { C=K*i; if(A<=C && C<=B) { printf("OK"); d++; break; } } if(d==0) printf("NG"); return 0; }
1,648
memory_bytes
{'s_id': 's164305398', 'p_id': 'p02693', 'u_id': 'u931220432', 'date': '1588474793', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1648', '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>\nint main()\n{\n int K,A,B,i,C,d=0;\n\n scanf(\"%d%d%d\",&K,&A,&B);\n for(i=1; i<=B; i++)\n {\n C...
CDSS_497085
CDSS
#include<stdio.h> int main() { int n,m; scanf("%d%d",&n,&m); if(m>=n) printf ("Yes"); else printf("No"); return 0; }
128
memory_bytes
{'s_id': 's914786879', 'p_id': 'p02789', 'u_id': 'u763695695', 'date': '1579464293', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '137'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,m;\n scanf(\"%d%d\",&n,&m);\n if(m>=n) printf (\"Yes\");\n else printf(\"No\");\n...
CDSS_717245
CDSS
#include <stdio.h> int main() { int n; const int largeN = 1000000000 + 7; scanf("%d", &n); long int ans = 1; for (int i = 1; i <= n; i++) { ans = ans * i; ans = ans % largeN; } printf("%d\n", ans); return 0; }
128
memory_bytes
{'s_id': 's360933556', 'p_id': 'p03796', 'u_id': 'u589100520', 'date': '1591953823', '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\n\nint main()\n{\n int n;\n const int largeN = 1000000000 + 7;\n \n scanf(\"%d\", &n);\n\n long in...
CDSS_367963
CDSS
#include<stdio.h> int main() { //変数の宣言 char m1[101], m2[101]; int i, j, n1=0, n2=0, t; //入力 scanf("%s %s", m1, m2); //処理 while (m1[n1] != '\0') { n1++; } while (m2[n2] != '\0') { n2++; } for (i=0; i<n1; i++) { t = 1; for (j=0; j...
2,108
memory_bytes
{'s_id': 's005722847', 'p_id': 'p02418', 'u_id': 'u521798769', 'date': '1527057112', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '1871'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 m1[101], m2[101];\n int i, j, n1=0, n2=0, t;\n \n //入力\n scanf(\"...
CDSS_398127
CDSS
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define max(a, b) ((a) > (b) ? (a) : (b)) #define min(a, b) ((a) < (b) ? (a) : (b)) typedef long long int ll; int read_int() { int a; scanf("%d", &a); return a; } int read_lint() { ll a; scanf("%lld", &a); return a;...
1,708
memory_bytes
{'s_id': 's437353163', 'p_id': 'p02624', 'u_id': 'u295946532', 'date': '1594231557', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '95', 'memory': '1708', 'code_size': '711'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <math.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#define max(a, b) ((a) > (b) ? (a) : (b))\n#define ...
CDSS_715802
CDSS
#include<stdio.h> int main(){ int W,a,b; scanf("%d%d%d",&W,&a,&b); printf("%d\n",-(W-=(b=(a-=b)>>31)^a+b)&W>>31); }
128
memory_bytes
{'s_id': 's885744187', 'p_id': 'p03778', 'u_id': 'u017744950', 'date': '1490108510', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '121'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 W,a,b;\n scanf(\"%d%d%d\",&W,&a,&b);\n printf(\"%d\\n\",-(W-=(b=(a-=b)>>31)^a+b)&W>>31);\n}\nP...
CDSS_295189
CDSS
#include<stdio.h> int main(void) { int i; for(i=1;;i++){ int a; scanf("%d",&a); if(a==0)break; printf("Case %d: %d\n",i,a); } return 0; }
600
memory_bytes
{'s_id': 's082197966', 'p_id': 'p02396', 'u_id': 'u993897373', 'date': '1460451642', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '188'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n\n int i;\n for(i=1;;i++){\n int a;\n scanf(\"%d\",&a);\n if(a==0)b...