identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_20274
CDSS
main(i,j,k){for(i=0;j=i/9+1,k=i%9+1,i<81;i++)printf("%dx%d=%d\n",j,k,j*k);}
0
memory_bytes
{'s_id': 's567739273', 'p_id': 'p00000', 'u_id': 'u862297061', 'date': '1299245252', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '75'}
[ { "content": "Your task is to predict the 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(i,j,k){for(i=0;j=i/9+1,k=i%9+1,i<81;i++)printf(\"%dx%d=%d\\n\",j,k,j*k);}\nPredict its memory footprint.", "role": "user" }...
CDSS_528507
CDSS
#include <stdio.h> #include <string.h> int main(){ char S[101]; int num; /* Sの文字数 */ int i, flag=0; scanf("%s", S); for( num=0; S[num] !='\0'; num++ ); for( int i=0; i<num; i++ ){ /* 奇数のとき */ if( (i%2 == 0) && (S[i] == 'L' )){ flag = 1; } ...
128
memory_bytes
{'s_id': 's145331476', 'p_id': 'p02910', 'u_id': 'u182786055', 'date': '1568599501', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '809'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(){\n\n char S[101];\n int num; /* Sの文字数 */\n int i, flag=0;\n\n sca...
CDSS_282256
CDSS
#include<stdio.h> int main(void){ int a,b,c,d; scanf("%d %d %d",&a,&b,&c); if(a>c){ d=c; c=a; a=d; } if(b>c){ d=b; b=c; c=d; } if(a>b){ d=a; a=b; b=d; } printf("%d %d %d\n",a,b,c); return 0; }
596
memory_bytes
{'s_id': 's409328365', 'p_id': 'p02393', 'u_id': 'u547669593', 'date': '1444554788', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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(void){\n\n int a,b,c,d;\n\n scanf(\"%d %d %d\",&a,&b,&c);\n\n if(a>c){\n d=c;\n c=a;\...
CDSS_594464
CDSS
#include<stdio.h> int main() { int a,b; scanf("%d%d",&a,&b); if(b%a==0){ printf("%d",a+b); }else{ printf("%d",b-a); } }
128
memory_bytes
{'s_id': 's197484896', 'p_id': 'p03125', 'u_id': 'u018679195', 'date': '1576919894', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '129'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n\tint a,b;\n\tscanf(\"%d%d\",&a,&b);\n\tif(b%a==0){\n\t\tprintf(\"%d\",a+b);\n\t}else{\n\t\tprintf...
CDSS_232538
CDSS
#include<stdio.h> int MIN(int a,int b){return a<b?a:b;} int M=2147483647; int a[400010]; int f(int x,int y,int i,int l,int r){ if(r<=x||y<=l)return M; if(x<=l&&r<=y)return a[i]; return MIN(f(x,y,i*2,l,(l+r)/2),f(x,y,i*2+1,(l+r)/2,r)); } int main(){ int n,t,q,x,y,i,m; scanf("%d %d",&n,&m); for(t=1;t<n;t*=2...
2,800
memory_bytes
{'s_id': 's988589040', 'p_id': 'p02345', 'u_id': 'u141038857', 'date': '1510986219', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '50', 'memory': '2800', 'code_size': '533'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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){return a<b?a:b;}\nint M=2147483647;\nint a[400010];\nint f(int x,int y,int i,int l,int r){\n ...
CDSS_73328
CDSS
#define max(a,b)(a>b?a:b) #define min(a,b)(a<b?a:b) char s[1001];D[2][1001];main(n,i,j,k,l,x,M){ for(;scanf("%d",&n),n;printf("%d\n",M)) for(memset(D,0,sizeof(D)),M=i=0;i<n;i++){ scanf("%s",s); for(j=1;j<=n;j++)if(s[j-1]=='*')D[1][j]=-1; for(j=1;j<=n;j++)D[1][j]=D[1][j]!=-1?min(D[0][j-1],min(D[0][j],D[1][j-...
612
memory_bytes
{'s_id': 's057347744', 'p_id': 'p00092', 'u_id': 'u300645821', 'date': '1347134647', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '612', 'code_size': '427'}
[ { "content": "Your task is to predict the memory 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 max(a,b)(a>b?a:b)\n#define min(a,b)(a<b?a:b)\nchar s[1001];D[2][1001];main(n,i,j,k,l,x,M){\n\tfor(;scanf(\"%d\",&n),n;printf(\...
CDSS_293766
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(0<=x-r && 0<=y-r && x+r<=w && y+r<=h) printf("Yes\n"); else printf("No\n"); return 0; }
2,108
memory_bytes
{'s_id': 's355711429', 'p_id': 'p02394', 'u_id': 'u984420110', 'date': '1548034806', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', '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\n\nint main(void)\n{\n \n\tint w,h,x,y,r;\n \n\n\tscanf(\"%d%d%d%d%d\",&w,&h,&x,&y,&r);\n \n\n\tif(0<=x-r &&...
CDSS_305777
CDSS
#include <stdio.h> int main() { int a, b, c, count; scanf("%d %d %d\n", &a, &b, &c); for(a; a <= b; a++) { if(c % a == 0) { count++; } } printf("%d\n", count); return 0; }
600
memory_bytes
{'s_id': 's061850323', 'p_id': 'p02398', 'u_id': 'u166299946', 'date': '1491189221', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '205'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n\n int a, b, c, count;\n scanf(\"%d %d %d\\n\", &a, &b, &c);\n for(a; a <= b; a++)\n {\n if(c...
CDSS_159944
CDSS
#include <stdio.h> #include <math.h> #define N 10000 int main(){ int i ,j ,m ,l ,a=0 ,b=0 ,c=0 ,n[N]; double v; scanf("%d",&m); for(i=0;i<m;i++){ scanf("%d",&n[i]); if(n[i]==2 || n[i]==3 || n[i]==5) b++; else { v=n[i]; v=sqrt(v); for(j=2;j<=v;j++){ if(n[i]%2==0) break; c++; ...
2,048
memory_bytes
{'s_id': 's164610208', 'p_id': 'p02257', 'u_id': 'u806882997', 'date': '1533453860', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '80', 'memory': '2048', 'code_size': '448'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 main(){\n int i ,j ,m ,l ,a=0 ,b=0 ,c=0 ,n[N];\n double v;\n\n scanf(...
CDSS_630951
CDSS
#include<stdio.h> #include<string.h> int main() { char a[101],b[101]; int i,j,c=0; char *p,*p1,p2,tm; scanf("%s",a); scanf("%s",b); for(i=0;i<strlen(a);i++) { if((strcmp(a,b))==0) { c++; break; } p2=a[0]; ...
128
memory_bytes
{'s_id': 's197434181', 'p_id': 'p03293', 'u_id': 'u816631826', 'date': '1558244779', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '483'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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[101],b[101];\n int i,j,c=0;\n char *p,*p1,p2,tm;\n\n scanf(\...
CDSS_190989
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))...
2,100
memory_bytes
{'s_id': 's143544818', 'p_id': 'p02267', 'u_id': 'u314656908', 'date': '1573808136', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', '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\n//線形探索\n\nint search(int A[], int n, int key){\n\tint i=0;\n\tA[n] = key;\n\twhile( A[i] != key ) i++;\n\treturn ...
CDSS_286540
CDSS
#include <stdio.h> int main(void) { int a,b,c; int min,mid,max; scanf("%d%d%d",&a,&b,&c); if(a<=b&&a<=c){ min = a; if(b<=c){ mid = b; max = c; }else { mid = c; max = b; } }else if(b<=a&& b<=c){ min = b; if(a<=c){ mid = a; max = c; }else { ...
1,848
memory_bytes
{'s_id': 's890725953', 'p_id': 'p02393', 'u_id': 'u492700760', 'date': '1514908876', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1848', '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\nint main(void)\n{\n int a,b,c;\n int min,mid,max;\n\n scanf(\"%d%d%d\",&a,&b,&c);\n if(a<=b&&a<=c){\n min...
CDSS_405058
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> int main(void) { char s[21]; scanf("%s",s); for(int i=0;i<3;i++) { printf("%c",s[i]); } printf("\n"); return 0; }
1,660
memory_bytes
{'s_id': 's252916773', 'p_id': 'p02645', 'u_id': 'u410159888', 'date': '1592097733', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1660', 'code_size': '192'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 char s[21];\n\n scanf(\"%s\",s);\n\n for(int i=0;...
CDSS_508610
CDSS
#include <stdio.h> int main(void){ int n, i, count = 0, now = 1; scanf("%d", &n); int b[n]; for(i = 0; i < n; i++) scanf("%d", &b[i]); for(i = 0; i < n; i++){ if(b[i] != now) count++; else now++; } if(now == 1) count = -1; printf("%d\n", count); return 0; }
896
memory_bytes
{'s_id': 's485874782', 'p_id': 'p02832', 'u_id': 'u420073655', 'date': '1577079965', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '22', 'memory': '896', '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\nint main(void){\n int n, i, count = 0, now = 1;\n scanf(\"%d\", &n);\n int b[n];\n for(i = 0; i < n; i++) sc...
CDSS_563527
CDSS
#include <stdio.h> #include <stdlib.h> int min(int a,int b){ if(a < b){ return a; } return b; } int main(void){ int N; scanf("%d",&N); int W[N]; for (int i = 0; i < N; i++) { scanf("%d",&W[i]); } int sum[N+1]; sum[0] = 0; for (int i = 0; i < N; i++) { sum[i+1] = sum[i]+W[i]; } ...
128
memory_bytes
{'s_id': 's561828301', 'p_id': 'p03012', 'u_id': 'u812973725', 'date': '1560867408', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '452'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 min(int a,int b){\n if(a < b){\n return a;\n }\n return b;\n}\n\nint main(void){\...
CDSS_190236
CDSS
#include <stdio.h> #define N 10000 #define Q 500 int search(int [],int [],int,int); int main(void){ int n,q; int S[N]; int T[Q]; int i; int count; scanf("%d",&n); for(i=0;i<n;i++) scanf("%d",&S[i]); scanf("%d",&q); for(i=0;i<q;i++) scanf("%d",&T[i]); count = search(S,T,n,q); print...
640
memory_bytes
{'s_id': 's432241327', 'p_id': 'p02267', 'u_id': 'u196155867', 'date': '1366132065', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '542'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 10000\n#define Q 500\n\nint search(int [],int [],int,int);\n\nint main(void){\n\n int n,q;\n int S[N];...
CDSS_137782
CDSS
#include <stdio.h> #include <stdlib.h> #define INF -1 typedef struct{ int d; int f; }timestamp; typedef struct{ int u; int k; int *v; }graph; graph g[110]; timestamp t[110]; int mytime = 0; int q[110]; void bfs(void); int main(void){ int i,j,n; scanf("%d", &n); for(i = 0; i <= n; i++){ q[i]...
600
memory_bytes
{'s_id': 's893633971', 'p_id': 'p02239', 'u_id': 'u655231957', 'date': '1468389874', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '1030'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 INF -1\n\ntypedef struct{\n int d;\n int f;\n}timestamp;\n\ntypedef struct{\n in...
CDSS_111011
CDSS
#include<stdio.h> int main(){ int a, b; while( scanf("%d %d", &a, &b) != EOF ){ printf("%d\n", a + b); } return 0; }
600
memory_bytes
{'s_id': 's454044361', 'p_id': 'p00586', 'u_id': 'u677239009', 'date': '1497006736', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '142'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int a, b;\n while( scanf(\"%d %d\", &a, &b) != EOF ){\n printf(\"%d\\n\", a + b);\n ...
CDSS_279228
CDSS
#include <stdio.h> int main (void) { int a, b, c; scanf("%d %d %d", &a, &b, &c); if (a < b ){ if (b < c){ printf("Yes\n"); } else { printf("No\n"); } } else{ printf("No\n"); } return 0; }
2,044
memory_bytes
{'s_id': 's271532314', 'p_id': 'p02392', 'u_id': 'u185695941', 'date': '1521504027', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '216'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\tif (a < b ){\n\t\tif (b < c){\n\t\t\tp...
CDSS_229327
CDSS
#include <stdio.h> struct heap{ int id, k; }; struct heap A[500000]; int size; void maxHeapify(int); void print(){ int i; for(i = 1; i <= size; i++){ printf(" %d", A[i].k); } printf("\n"); } void buildMaxHeap(){ int i; for(i = size/2; i>0; i--){ maxHeapify(i); } } vo...
4,504
memory_bytes
{'s_id': 's696603196', 'p_id': 'p02288', 'u_id': 'u931176983', 'date': '1403680518', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '4504', 'code_size': '944'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nstruct heap{\n int id, k;\n};\n \nstruct heap A[500000];\n \nint size;\nvoid maxHeapify(int);\n \nvoid print()...
CDSS_667165
CDSS
#include<stdio.h> #include<string.h> int main(void){ int a,b,i; scanf("%d %d",&a,&b); char code[11]; scanf("%s",code); if(strlen(code)!=a+b+1){ printf("No"); return 0; } for(i=0;i<strlen(code);i++){ if(i==a){ if(code[a]!='-'){ printf("No"); return 0; } }else{ ...
128
memory_bytes
{'s_id': 's159534103', 'p_id': 'p03474', 'u_id': 'u993037852', 'date': '1585372063', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '446'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 int a,b,i;\n scanf(\"%d %d\",&a,&b);\n char code[11];\n scanf(\"%s\",code...
CDSS_433071
CDSS
#include <stdio.h> int main(void){ int a, b, c, d; scanf("%d %d %d %d", &a, &b, &c, &d); for(;;){ c = c - b; if(c < 1){ printf("Yes\n"); break; } a = a - d; if(a < 1){ printf("No\n"); break; } } ...
1,580
memory_bytes
{'s_id': 's087633445', 'p_id': 'p02700', 'u_id': 'u818573308', 'date': '1595265745', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1580', '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>\nint main(void){\n int a, b, c, d;\n \n scanf(\"%d %d %d %d\", &a, &b, &c, &d);\n \n for(;;){\n ...
CDSS_299395
CDSS
#include<stdio.h> int main(){ int n; for(int i=1 ; ; i++){ scanf("%d",&n); if(n==0){ break; } else{ printf("Case %d: %d\n",i,n); } } return 0; }
1,912
memory_bytes
{'s_id': 's175557592', 'p_id': 'p02396', 'u_id': 'u517413861', 'date': '1543238045', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1912', 'code_size': '251'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\t\n\tint n;\n for(int i=1 ; ; i++){\n scanf(\"%d\",&n);\n if(n==0){\n b...
CDSS_726230
CDSS
#include<stdio.h> int main() { int a,b,sum; char ch; scanf("%d %c %d",&a,&ch,&b); if(ch=='+') sum=a+b; else sum=a-b; printf("%d\n",sum); return 0; }
128
memory_bytes
{'s_id': 's954596510', 'p_id': 'p03844', 'u_id': 'u353919145', 'date': '1559328125', '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 int a,b,sum;\n char ch;\n scanf(\"%d %c %d\",&a,&ch,&b);\n if(ch=='+')\n sum=a+b;\n ...
CDSS_110551
CDSS
#include<stdio.h> int main() { int a, b; while( scanf("%d %d", &a, &b) != EOF ){ printf("%d\n", a + b); } return 0; }
600
memory_bytes
{'s_id': 's775382924', 'p_id': 'p00586', 'u_id': 'u011621222', 'date': '1464626520', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '141'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int a, b;\n while( scanf(\"%d %d\", &a, &b) != EOF ){\n printf(\"%d\\n\", a + b);\n ...
CDSS_582373
CDSS
#include <stdio.h> int main() { int a, b, c, d, e; int k; scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); scanf("%d",&d); scanf("%d",&e); scanf("%d",&k); if(e-a<=k) printf("Yay!\n"); else printf(":(\n"); return 0; }
1,632
memory_bytes
{'s_id': 's508073161', 'p_id': 'p03075', 'u_id': 'u500731720', 'date': '1597383168', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1632', '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()\n{\n int a, b, c, d, e;\n int k;\n \n scanf(\"%d\",&a);\n scanf(\"%d\",&b);\n scanf(\"%d\",&c);...
CDSS_595147
CDSS
#include<stdio.h> int cnt[100000]; int main() { int n,m,a,b,max=0,j,i; scanf("%d%d",&n,&m); for(i=0;i<n;i++) { scanf("%d",&a); for(j=0;j<a;j++) { scanf("%d",&b); cnt[b]++; if(max<b)max=b; } } int sum=0; for(i=0;i<=max;i++) ...
128
memory_bytes
{'s_id': 's671937870', 'p_id': 'p03126', 'u_id': 'u816631826', 'date': '1580065735', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '399'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint cnt[100000];\nint main()\n{\n int n,m,a,b,max=0,j,i;\n scanf(\"%d%d\",&n,&m);\n for(i=0;i<n;i++)\n ...
CDSS_639172
CDSS
#include <stdio.h> int main(void){ int a,b[10000],i,c; c=0; scanf("%d",&a); for(i=0;i<a;i++){ scanf("%d",&b[i]); for(b[i];b[i]>0;b[i]=b[i]/2){ if(b[i]%2==0){ c=c+1; } else { b[i]=0; } } } printf("%d\n",c); return 0; }
256
memory_bytes
{'s_id': 's436137043', 'p_id': 'p03325', 'u_id': 'u384161668', 'date': '1564015110', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '250'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\tint a,b[10000],i,c;\n\tc=0;\n\tscanf(\"%d\",&a);\n\tfor(i=0;i<a;i++){\n\t\tscanf(\"%d\",&b[i]...
CDSS_654949
CDSS
#include <stdio.h> int main (){ int A = 0 , B = 0 , number = 0 ; int answer = 0; int D[5]; scanf("%d %d",&A,&B); for (int i = A; i <= B ; ++i ){ number = i; for (int j = 4; j >= 0;--j){ D[j] = number % 10; number /= 10; } if (D[0] == D[...
128
memory_bytes
{'s_id': 's473200333', 'p_id': 'p03416', 'u_id': 'u560152497', 'date': '1572487569', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '409'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 = 0 , B = 0 , number = 0 ;\n int answer = 0;\n int D[5];\n\n\n scanf(\"%d %d\",...
CDSS_334767
CDSS
#include <stdio.h> #define P printf int main(void){int h,w,i,j;for(;;){scanf("%d %d",&h,&w);if(h+w==0)return 0;for(i=h;i>0;--i){for(j=w;j>0;--j)P(i==h||i==1||j==w||j==1?"#":".");P("\n");}P("\n");}}
588
memory_bytes
{'s_id': 's439488393', 'p_id': 'p02404', 'u_id': 'u309428289', 'date': '1382295769', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '588', 'code_size': '197'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define P printf\nint main(void){int h,w,i,j;for(;;){scanf(\"%d %d\",&h,&w);if(h+w==0)return 0;for(i=h;i>0;--i){fo...
CDSS_507955
CDSS
#include<stdio.h> int gcd(int s,int t){ if(s<t){ int w=s; s=t; t=w; } if(s%t!=0)return gcd(t,s%t); else return t; } int main(void){ int a,b; scanf("%d%d",&a,&b); int x=gcd(a,b); //printf("%d\n",x); long long ans=(long long)a/x*b; printf("%lld",ans); return 0; }
128
memory_bytes
{'s_id': 's585724826', 'p_id': 'p02831', 'u_id': 'u073336549', 'date': '1586857144', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '295'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 gcd(int s,int t){\n if(s<t){\n int w=s;\n \ts=t;\n t=w;\n }\n if(s%t!=0)return gcd(t,s%t);\n else r...
CDSS_92918
CDSS
#include<stdio.h> int main(){ int d,c,t; scanf("%d%d",&d,&c); t=d*c; printf("%d\n",t); return 0; }
596
memory_bytes
{'s_id': 's771128166', 'p_id': 'p00290', 'u_id': 'u849340810', 'date': '1431146069', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '112'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\n int d,c,t;\n\n scanf(\"%d%d\",&d,&c);\n t=d*c;\n printf(\"%d\\n\",t);\n\n return 0;\n}\nPred...
CDSS_90807
CDSS
#include <stdio.h> int main(void){ int a,b,c; a=0; for(b=1;b<11;b++){ scanf("%d",&c); a=a+c; } printf("%d\n",a); return 0; }
2,052
memory_bytes
{'s_id': 's946978075', 'p_id': 'p00251', 'u_id': 'u188961355', 'date': '1579662346', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', '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:\n#include <stdio.h>\nint main(void){\n\tint a,b,c;\n\ta=0;\n\tfor(b=1;b<11;b++){\n\tscanf(\"%d\",&c);\n\ta=a+c;\n\t}\n\tprintf(\"%d\\n\...
CDSS_729873
CDSS
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <inttypes.h> #include <ctype.h> #include <stdint.h> #include <string.h> #include <wchar.h> #define N_MAX (100) #define P_MAX (100) #define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1) #define MIN(a, b) ((a) < (b) ? (a) : (b)) #define MAX(a, b) ((a) > (b) ...
128
memory_bytes
{'s_id': 's673874017', 'p_id': 'p03861', 'u_id': 'u615782628', 'date': '1552808793', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1277'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdbool.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <inttypes.h>\n#include <ctype.h>\n#include <stdint.h>\n#includ...
CDSS_643209
CDSS
#include <stdio.h> int main(){ int N; char S[500000]; int W[500000],E[500000],w=0,e=0; int min=500000; scanf("%d",&N); scanf("%s",S); for(int i=0;i<N;i++) if(S[i]=='W') W[i]=w++; else W[i]=w; for(int i=N-1;i>=0;i--) if(S[i]=='E') E[i]=e++; else E[i]=e; fo...
4,480
memory_bytes
{'s_id': 's489427122', 'p_id': 'p03341', 'u_id': 'u618608862', 'date': '1527383604', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '4480', 'code_size': '422'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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;\n char S[500000];\n int W[500000],E[500000],w=0,e=0;\n int min=500000;\n \n scanf(\"%...
CDSS_561687
CDSS
#include<stdio.h> int main(){ double W,H,x,y; double ans; int line=0; scanf("%lf %lf %lf %lf",&W,&H,&x,&y); ans=W*H/2; if(x==W/2&&y==H/2)line=1; printf("%.9f %d",ans,line); return 0; }
128
memory_bytes
{'s_id': 's194117140', 'p_id': 'p03001', 'u_id': 'u588198811', 'date': '1560713060', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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 double W,H,x,y;\n double ans;\n int line=0;\n scanf(\"%lf %lf %lf %lf\",&W,&H,&x,&y);\n...
CDSS_401436
CDSS
#include <stdio.h> long long arr[] = {0,1,1,437833367,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,387222020,30,40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,...
1,756
memory_bytes
{'s_id': 's910778305', 'p_id': 'p02634', 'u_id': 'u959888075', 'date': '1597218250', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1756', 'code_size': '6456'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 long arr[] = {0,1,1,437833367,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,38...
CDSS_515539
CDSS
#include <stdio.h> #include <string.h> int main(void){ int n; scanf("%d",&n ); int half,tmp=0; char s[101]; char half1[51],half2[51]; scanf("%s",s); if(n%2!=0){ printf("No\n"); }else{ half=n/2; for (int i = 0; i < half; i++) { half1[i]=s[i]; //printf("%c",half1[i] ); } ...
128
memory_bytes
{'s_id': 's357317356', 'p_id': 'p02860', 'u_id': 'u503686316', 'date': '1573959827', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '621'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\n\nint main(void){\n int n;\n scanf(\"%d\",&n );\n\n int half,tmp=0;\n char s[101];\n c...
CDSS_664112
CDSS
#include <limits.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> // 内部定数 #define D_SIZE_MAX 1000 // 最大1辺サイズ #define D_COLOR_WHITE 'W' // 白 // 内部変数 static int siSize; // 1辺サイズ static int si2Mass[D_SIZE_MAX * 2 + 5][D_SIZE_MAX + 5]; // 希望す...
8,064
memory_bytes
{'s_id': 's112095062', 'p_id': 'p03458', 'u_id': 'u088333128', 'date': '1530630322', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '64', 'memory': '8064', 'code_size': '4247'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <limits.h>\n#include <math.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <time.h>\n\n// 内部定数\n#d...
CDSS_716922
CDSS
main(a){scanf("%d",&a);printf("%d",800*a-a/15*200);}
128
memory_bytes
{'s_id': 's214296286', 'p_id': 'p03795', 'u_id': 'u751488284', 'date': '1552600081', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '52'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nmain(a){scanf(\"%d\",&a);printf(\"%d\",800*a-a/15*200);}\nPredict its memory footprint.", "role": "user" }, { "content": "...
CDSS_605621
CDSS
#include<stdio.h> int main(){ char s[9]; scanf("%s",s); int ans=0; for(int i=0;i<4;i++)if(s[i]=='2')ans++; printf("%d",ans); }
128
memory_bytes
{'s_id': 's859179100', 'p_id': 'p03192', 'u_id': 'u382163500', 'date': '1590698710', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '131'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tchar s[9];\n\tscanf(\"%s\",s);\n\tint ans=0;\n\tfor(int i=0;i<4;i++)if(s[i]=='2')ans++;\n\tprintf(\"...
CDSS_561522
CDSS
#include <stdio.h> int main(int argc, char *argv[]) { double w, h, x, y; scanf("%lf %lf %lf %lf", &w, &h, &x, &y); printf("%lf ", w * (h / 2)); if(x == w / 2 && y == h / 2) printf("1\n"); else printf("0\n"); return 0; }
128
memory_bytes
{'s_id': 's709319110', 'p_id': 'p03001', 'u_id': 'u801102476', 'date': '1560714837', '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\nmain(int argc, char *argv[])\n{\n double w, h, x, y;\n scanf(\"%lf %lf %lf %lf\", &w, &h, &x, &y);\n\n p...
CDSS_522824
CDSS
#include<stdio.h> int main(void) { int n; int l[5001]; scanf("%d", &n); int i, j, k; int count = 0; for (i = 0; i < n; i++) { scanf("%d", &l[i]); } for(i = 2; i < n; i++) { for (j = 1; j < i; j++) { for(k = 0; k < j; k++) { if (l[k] < l[j] + l[i]) { if (l[j] < l[k] + l[i]) { if (l[i] < l[...
128
memory_bytes
{'s_id': 's989933916', 'p_id': 'p02888', 'u_id': 'u375541480', 'date': '1571535463', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '446', 'memory': '128', 'code_size': '422'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void) {\n\tint n;\n\tint l[5001];\n\tscanf(\"%d\", &n);\n\tint i, j, k;\n\tint count = 0;\n\tfor (i = 0;...
CDSS_477469
CDSS
#include <stdio.h> int main(void) { int A, B, M; scanf("%d %d %d", &A, &B, &M); int a[A+1];int b[B+1]; int x, y, c, m; int mina = 200003;int minb = 200003; int minm, i; for (i = 1; i <= A; i++) { scanf("%d", &a[i]); if (mina > a[i]) mina = a[i]; } for (i = 1; i <= ...
896
memory_bytes
{'s_id': 's388118503', 'p_id': 'p02748', 'u_id': 'u392029857', 'date': '1587871397', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '45', 'memory': '896', 'code_size': '601'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, M;\n scanf(\"%d %d %d\", &A, &B, &M);\n\n int a[A+1];int b[B+1];\n int ...
CDSS_701166
CDSS
#include<stdio.h> int main(void){ int a,r, g, b; scanf("%d %d %d", &r, &g, &b); a = r*100 + g*10 + b; a %= 4; if (a==0){ printf("YES"); } else{ printf("NO"); } return 0; }
128
memory_bytes
{'s_id': 's943596346', 'p_id': 'p03693', 'u_id': 'u243458685', 'date': '1497470294', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '184'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,r, g, b;\n\tscanf(\"%d %d %d\", &r, &g, &b);\n\ta = r*100 + g*10 + b;\n\ta %= 4;\n\tif (a=...
CDSS_230486
CDSS
#include<stdio.h> #define MAX 2000000 #define INF (1<<30) int h=0; void maxHeapify(int *Heap,int i){ int l=2*i; int r=2*i+1; int largest; int tmp; if(l<=h && Heap[l]>Heap[i]) largest=l; else largest=i; if(r<=h && Heap[r]>Heap[largest]) largest = r; if(largest!=i){ tmp=Heap[i]; Heap[i]=Heap[large...
5,128
memory_bytes
{'s_id': 's706920176', 'p_id': 'p02289', 'u_id': 'u903981312', 'date': '1502192854', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '470', 'memory': '5128', 'code_size': '1013'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define MAX 2000000\n#define INF (1<<30)\nint h=0;\nvoid maxHeapify(int *Heap,int i){\n int l=2*i;\n int r=2*i+1;...
CDSS_589613
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> #define MAX(p,q) (p>q)?p:q #define MIN(p,q) (p<q)?p:q #define REP(i,n) for(i=0;i<n;i++) int main(void) { int i,j; int n,m,c; scanf("%d%d%d",&n,&m,&c); int b[m]; int a[n][m]; REP(i,m) scanf("%d",&b[i]); REP(i,n) { REP(j,m) scanf("%d",&a[i][j]...
128
memory_bytes
{'s_id': 's435352123', 'p_id': 'p03102', 'u_id': 'u779216084', 'date': '1558290206', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '497'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 MAX(p,q) (p>q)?p:q\n#define MIN(p,q) (p<q)?p:q\n\n#define REP(i,n...
CDSS_638638
CDSS
#include <stdio.h> int main(){ int d,n; scanf("%d %d",&d,&n); if(n == 100)n=101; switch(d){ case 0: printf("%d\n",n); break; case 1: printf("%d\n",n*100); break; case 2: printf("%d\n",n*10000); break; } return 0; }
128
memory_bytes
{'s_id': 's367904234', 'p_id': 'p03324', 'u_id': 'u303854313', 'date': '1530132645', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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 int d,n;\n scanf(\"%d %d\",&d,&n);\n if(n == 100)n=101;\n switch(d){\n case 0:\n print...
CDSS_649908
CDSS
#include <stdio.h> #include <stdlib.h> struct asumisu { int X; int idx; }; int mimorinn(const void* yukachi, const void* ayachi) { int mikisinn = ((const struct asumisu*)yukachi)->X, hayaminn = ((const struct asumisu*)ayachi)->X; return mikisinn < hayaminn ? -1 : mikisinn > hayaminn; } int N; struct asumisu mizu...
4,472
memory_bytes
{'s_id': 's819223868', 'p_id': 'p03379', 'u_id': 'u646118499', 'date': '1578899141', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '73', 'memory': '4472', 'code_size': '821'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 asumisu {\n\tint X;\n\tint idx;\n};\n\nint mimorinn(const void* yukachi, const void*...
CDSS_238523
CDSS
#include <stdio.h> #include <string.h> void diceb(int[],int,int,int,int); int main(void) { int i,j,dice[10]={},dice2[10]={}; for(i=0;i<6;i++){ scanf("%d",&dice[i]); } for(i=0;i<6;i++){ scanf("%d",&dice2[i]); } for(i=0;i<8;i++){ if(memcmp(dice,dice2,sizeof(dice))==0)br...
2,052
memory_bytes
{'s_id': 's056283460', 'p_id': 'p02385', 'u_id': 'u548147510', 'date': '1556731707', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '927'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nvoid diceb(int[],int,int,int,int);\n\nint main(void)\n{\n int i,j,dice[10]={},dice2[10]=...
CDSS_271880
CDSS
#include <stdio.h> int main(void){ 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; }
1,796
memory_bytes
{'s_id': 's339450851', 'p_id': 'p02391', 'u_id': 'u638444351', 'date': '1511159815', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1796', 'code_size': '234'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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;\n scanf(\"%d %d\",&a,&b);\n if(a==b){\n printf(\"a == b\\n\");\n }\n...
CDSS_416733
CDSS
/* kadai4_2 Saikyo_Kazune */ #include <stdio.h> #include <math.h> int main(void){ //πを定数として宣言 const double PI = 3.14159265358; //int型 hour_hand_length,min_hand_length,hour,min宣言 int hour_hand_length,min_hand_length,hour,min; //標準入力から受け取り scanf("%d %d %d %d",&hour_hand_length,&min_hand_length,&hou...
2,588
memory_bytes
{'s_id': 's693336084', 'p_id': 'p02677', 'u_id': 'u901282405', 'date': '1590690236', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '2588', 'code_size': '857'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* kadai4_2\n Saikyo_Kazune\n*/\n#include <stdio.h>\n#include <math.h>\nint main(void){\n //πを定数として宣言\n const double PI = 3.14...
CDSS_39152
CDSS
#include<stdio.h> #include<string.h> int main(){ char m[21]; int i,n; scanf("%s",m); n=strlen(m)-1; for(i=n;i>=0;i--){ printf("%c",m[i]); } printf("\n"); return 0; }
524
memory_bytes
{'s_id': 's179222452', 'p_id': 'p00006', 'u_id': 'u011621222', 'date': '1396564092', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '205'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main(){\n char m[21];\n int i,n;\n scanf(\"%s\",m);\n n=strlen(m)-1;\n for(i...
CDSS_118941
CDSS
D[13][3]={{1,0,0},{0,1,0},{0,0,1},{1,1,0},{1,0,1},{0,1,1},{1,-1,0},{1,0,-1},{0,1,-1},{1,1,1},{-1,1,1},{1,-1,1},{1,1,-1}}; M[9][9][9],q[2];main(n,m,p,I,x,y,z,j,c,d){for(;scanf("%d%d%d",&n,&m,&p),n;){ for(memset(M,I=0,sizeof(M)),c=1;I++<p;c*=-1){ for(scanf("%d%d",&x,&y),z=1;;z++)if(!M[x][y][z]){M[x][y][z]=c;break;} ...
612
memory_bytes
{'s_id': 's854689191', 'p_id': 'p00828', 'u_id': 'u300645821', 'date': '1364066768', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '612', 'code_size': '598'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nD[13][3]={{1,0,0},{0,1,0},{0,0,1},{1,1,0},{1,0,1},{0,1,1},{1,-1,0},{1,0,-1},{0,1,-1},{1,1,1},{-1,1,1},{1,-1,1},{1,1,-1}};\nM[9][9][9],...
CDSS_669984
CDSS
#include <stdio.h> #include <math.h> int main(){ int a,b,c; scanf("%d %d",&a,&b); c=ceil((a+b)/2.0); printf("%d\n",c); return 0; }
128
memory_bytes
{'s_id': 's375970951', 'p_id': 'p03485', 'u_id': 'u089230684', 'date': '1516433735', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '152'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(){\n int a,b,c;\n scanf(\"%d %d\",&a,&b);\n c=ceil((a+b)/2.0);\n printf(...
CDSS_191978
CDSS
#include <stdio.h> #define N 100000 #define Q 50000 int S[N],T[Q],n,l,r,m; int main(){ int i,q,Sum=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&S[i]); } scanf("%d",&q); for(i=0;i<q;i++){ scanf("%d",&T[i]); } for(i=0;i<q;i++){ if(Binary(T[i])) Sum++; } printf("%d\n",Sum); ...
1,184
memory_bytes
{'s_id': 's157135271', 'p_id': 'p02268', 'u_id': 'u751964979', 'date': '1461822764', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '1184', 'code_size': '509'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define N 100000\n#define Q 50000\nint S[N],T[Q],n,l,r,m;\nint main(){\n int i,q,Sum=0;\n scanf(\"%d\",&n);\n f...
CDSS_378974
CDSS
#include <stdio.h> int main(void) { char s[1001],t[1001]; int nos,not,i,j,same,ans=1001; scanf("%s%s",&s,&t); nos = strlen(s); not = strlen(t); for(i=0;i<=nos-not;i++){ same = 0; for(j=0;j<not;j++){ if(s[j+i]!=t[j]) same++; } if(ans>same) ans = same; } printf("%d",ans); return 0; }
1,732
memory_bytes
{'s_id': 's934089386', 'p_id': 'p02571', 'u_id': 'u163511878', 'date': '1598733683', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', 'code_size': '303'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tchar s[1001],t[1001];\n\tint nos,not,i,j,same,ans=1001;\n\tscanf(\"%s%s\",&s,&t);\n\tnos = ...
CDSS_531418
CDSS
#include <stdio.h> int main() { int N; int B[101]; int S[101]; int tmp=0; scanf("%d\n",&N); for (int i = 0; i < N-1; i++) { scanf("%d",&B[i]); } //ここまで入力 S[0]=B[0]; S[N-1]=B[N-2]; if (N>2) { for (int i = 1; i < N-1; i++) { if (B[i]>=B[i-1]) { S[i]=B[i-1]; }else{ ...
128
memory_bytes
{'s_id': 's066813601', 'p_id': 'p02917', 'u_id': 'u847969825', 'date': '1567908001', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '450'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n int N;\n int B[101];\n int S[101];\n int tmp=0;\n scanf(\"%d\\n\",&N);\n for (int i = 0; i ...
CDSS_299410
CDSS
#include <stdio.h> int main(void){ // Your code here! // https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/all/ITP1_3_B int i=0,x=0; while(1){ scanf("%d",&x); i++; if(x==0)break; printf("Case %d: %d\n",i,x); } }
1,904
memory_bytes
{'s_id': 's076064419', 'p_id': 'p02396', 'u_id': 'u738622739', 'date': '1542373079', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1904', '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>\nint main(void){\n // Your code here!\n // https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/all/ITP1_3_...
CDSS_95818
CDSS
#include<stdio.h> #include<stdlib.h> #define FOR(n) for(int i=0;i<n;i++) #define FORJ(n) for(int j=0;j<n;j++) #define PRN(n) printf("%d\n",n) int compare(const void *a, const void *b){ return *(int*)a - *(int*)b; } int main(void){ int n,cnt=0,max=0,ans=0; scanf("%d",&n); PRN(n/2-15); return 0; }
2,080
memory_bytes
{'s_id': 's376987607', 'p_id': 'p00375', 'u_id': 'u029152603', 'date': '1566731913', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2080', 'code_size': '309'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#define FOR(n) for(int i=0;i<n;i++)\n#define FORJ(n) for(int j=0;j<n;j++)\n#define PRN(n) print...
CDSS_82432
CDSS
#include<stdio.h> int isprime(int n){ int i; for(i = 2; i * i <= n; i ++ ){ if(n % i == 0)return 0; } return 1; } int main(void){ const int NUM = 10001; int i,n,prime[NUM],p1,q1; for(i = 2; i < NUM; i ++ ){ prime[i] = isprime(i); } while(1){ scanf("%d",&n...
640
memory_bytes
{'s_id': 's634076674', 'p_id': 'p00150', 'u_id': 'u978794529', 'date': '1449228117', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '611'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 isprime(int n){\n int i;\n for(i = 2; i * i <= n; i ++ ){\n if(n % i == 0)return 0;\n }\n re...
CDSS_689942
CDSS
#include<stdio.h> int main(void){ int N,a,b; scanf("%d",&N); a = N/100; b = N%10; if(a==b){ puts("Yes"); }else{ puts("No"); } return 0; }
128
memory_bytes
{'s_id': 's589806553', 'p_id': 'p03631', 'u_id': 'u234985935', 'date': '1502586139', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '163'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int N,a,b;\n scanf(\"%d\",&N);\n a = N/100;\n b = N%10;\n if(a==b){\n puts(\"Yes\");\n ...
CDSS_127766
CDSS
#include <stdio.h> int main(void) { int N, M, T; int i; int answer = 0; int a, pa = -1; if (scanf("%d%d%d", &N, &M, &T) != 3) return 1; for (i = 0; i < N; i++) { if (scanf("%d", &a) != 1) return 1; if (i == 0) { if (a >= M) answer += a - M; } else { if (a - pa >= M + M) answer += (a - pa) - (M + M); ...
596
memory_bytes
{'s_id': 's627550216', 'p_id': 'p01840', 'u_id': 'u543521645', 'date': '1482653358', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '418'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint N, M, T;\n\tint i;\n\tint answer = 0;\n\tint a, pa = -1;\n\tif (scanf(\"%d%d%d\", &N, &M...
CDSS_425160
CDSS
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #define F(i,a,n) for(int i=a; i<n; i++) #define INF 100000000000 // long only int compare(const void *b1, const void *b2){ // 昇順 if((long)b1 > b2) return 1; else if(b1 < b2) return -1; else return 0; } int cmp(long *b1, long *b2){ /...
7,796
memory_bytes
{'s_id': 's062814890', 'p_id': 'p02691', 'u_id': 'u110006361', 'date': '1588999064', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '71', 'memory': '7796', 'code_size': '1043'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n#include<string.h>\n#define F(i,a,n) for(int i=a; i<n; i++)\n#define INF 1000...
CDSS_39400
CDSS
#include <stdio.h> int main(void) { int n; int temp; int i; int MONEY; MONEY = 100000; scanf("%d", &n); for (i = 0; i < n; i++){ temp = MONEY * 0.05; MONEY += temp; if (MONEY % 1000 > 0){ temp = MONEY % 1000; MONEY -= temp; MONEY += 1000; } } printf("%d\n", MONEY); return 0; }
592
memory_bytes
{'s_id': 's856785964', 'p_id': 'p00007', 'u_id': 'u374098633', 'date': '1410250657', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '313'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 temp;\n\tint i;\n\tint MONEY;\n\t\n\tMONEY = 100000;\n\t\n\tscanf(\"%d\", &n)...
CDSS_518399
CDSS
/* ex3_4 fmuacshai */ #include<stdio.h> int main(void){ //整数n、割る数m、商l int n,m,l; //nの入力 scanf("%d",&n); //mの初期設定 m=9; //余りが出ないまで計算 while(n%m>0){ m=m-1; } //商の計算 l=n/m; //商が10未満ならYes、10以上ならNoと出力 if(l<10){ printf("Yes\n"); }else{ pr...
128
memory_bytes
{'s_id': 's885204532', 'p_id': 'p02880', 'u_id': 'u255811486', 'date': '1590030962', '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/* ex3_4\n fmuacshai */\n\n#include<stdio.h>\n\nint main(void){\n //整数n、割る数m、商l\n int n,m,l;\n //nの入力\n scanf(\"%d\...
CDSS_455924
CDSS
#include<stdio.h> int main(void){ int n; scanf("%d",&n); int i; int j; int a[n]; j=0; unsigned long sum=0; for(i=1;i<=n;++i){ if(i%3!=0 && i%5!=0){ sum+=i; } } printf("%lu\n",sum); return 0; }
1,732
memory_bytes
{'s_id': 's968956108', 'p_id': 'p02712', 'u_id': 'u689923097', 'date': '1586742341', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1732', '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>\nint main(void){\n int n;\n scanf(\"%d\",&n);\n int i;\n int j;\n int a[n];\n j=0;\n unsigned l...
CDSS_632776
CDSS
#include<stdio.h> #include<stdlib.h> #include<math.h> typedef long long int int64; #define MAX(a,b) ((a)>(b)?(a):(b)) #define MIN(a,b) ((a)<(b)?(a):(b)) #define ABS(a) ((a)>(0)?(a):-(a)) typedef struct dnode{ int v; int64 val; } node; int cmp(node *a,node *b){ return a->val<=b->val?1:0; } void swap(node *a,n...
7,748
memory_bytes
{'s_id': 's088624940', 'p_id': 'p03305', 'u_id': 'u425248533', 'date': '1531023577', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '96', 'memory': '7748', 'code_size': '2508'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n\ntypedef long long int int64;\n\n#define MAX(a,b) ((a)>(b)?(a):(b))\n#define...
CDSS_60124
CDSS
n;main(k){for(;k=n||~scanf("%d",&n);printf("%d%c",k,(n-=k=n&-n)?32:10));}
0
memory_bytes
{'s_id': 's347993761', 'p_id': 'p00031', 'u_id': 'u647134562', 'date': '1319013590', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '73'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nn;main(k){for(;k=n||~scanf(\"%d\",&n);printf(\"%d%c\",k,(n-=k=n&-n)?32:10));}\nPredict its memory footprint.", "role": "user" },...
CDSS_719034
CDSS
#include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); if (a == 1) { a += 13; } if (b == 1) { b += 13; } if (a > b) { printf("Alice\n"); } else if (a < b) { printf("Bob\n"); } else { printf("Draw\n"); } return 0; }
128
memory_bytes
{'s_id': 's579933063', 'p_id': 'p03803', 'u_id': 'u177280335', 'date': '1546005839', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '314'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n int a, b;\n\n scanf(\"%d %d\", &a, &b);\n\n if (a == 1) {\n a += 13;\n }\n ...
CDSS_733704
CDSS
#include <stdio.h> #include <string.h> int main(void) { int i, l, c=0; char s[111]; scanf("%s", s); l=strlen(s); for(i=0;i<l;i++){ if(s[i]=='C') c++; if(c!=0){ if(s[i]=='F'){ printf("Yes\n"); return 0; } } } printf("No\n"); return 0; }
128
memory_bytes
{'s_id': 's595655642', 'p_id': 'p03957', 'u_id': 'u313517218', 'date': '1477271525', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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#include <string.h>\n\nint main(void) {\n\tint i, l, c=0;\n\tchar s[111];\n\t\n\tscanf(\"%s\", s);\n\t\n\tl=strlen...
CDSS_706299
CDSS
#include<stdio.h> int main() { int A,B,C; scanf("%d %d %d",&A,&B,&C); if(A<=B&&C<=B) { printf("Yes\n"); } else printf("No\n"); }
128
memory_bytes
{'s_id': 's600544563', 'p_id': 'p03719', 'u_id': 'u353919145', 'date': '1586845271', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '212'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n int main()\n {\n int A,B,C;\n scanf(\"%d %d %d\",&A,&B,&C);\n if(A<=B&&C<=B)\n {...
CDSS_294473
CDSS
#include<stdio.h> int main(void){ int i,x; for(i = 1;;i++){ scanf("%d",&x); if (x == 0)break; printf("Case %d: %d\n",i,x); } return 0; }
600
memory_bytes
{'s_id': 's349463003', 'p_id': 'p02396', 'u_id': 'u278501900', 'date': '1429778142', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '158'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n\n int i,x;\n\n for(i = 1;;i++){\n scanf(\"%d\",&x);\n if (x == 0)break;\n printf(\"Cas...
CDSS_670403
CDSS
#include<stdio.h> #include<string.h> void i_sort(char a[],int b){ int i,j,temp; for(i=1;i<b;i++){ for(j=i;j>0&&a[j]<a[j-1];j--){ temp=a[j]; a[j]=a[j-1]; a[j-1]=temp; } } } void i2_sort(char a[],int b){ int i,j,temp; for(i=1;i<b;i++){ for(j=...
128
memory_bytes
{'s_id': 's148053887', 'p_id': 'p03486', 'u_id': 'u626695505', 'date': '1534097932', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '777'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nvoid i_sort(char a[],int b){\n int i,j,temp;\n for(i=1;i<b;i++){\n for(j=i;j>0&&a[...
CDSS_520742
CDSS
#include<stdio.h> int main(void){ int a, b, ans; scanf("%d %d", &a, &b); ans = a - 2 * b; if (ans >= 0){ printf("%d", ans); } else{ printf("0"); } }
128
memory_bytes
{'s_id': 's113654815', 'p_id': 'p02885', 'u_id': 'u772461792', 'date': '1584739000', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '159'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n\tint a, b, ans;\n\tscanf(\"%d %d\", &a, &b);\n\tans = a - 2 * b;\n\tif (ans >= 0){\n\t\tprintf(\"...
CDSS_501189
CDSS
#include <stdio.h> #include <string.h> #define N 20 #define M 20 int di[] = { -1, 0, 1, 0 }; int dj[] = { 0, 1, 0, -1 }; char cc[N][M + 1]; int n, m; int bfs(int i1, int j1, int i2, int j2) { static int dd[N][M], qu[N * M]; int i, i_, j, j_, ij, d, h, head, cnt; head = cnt = 0; for (i = 0; i < n; i++) for (j...
256
memory_bytes
{'s_id': 's475198199', 'p_id': 'p02803', 'u_id': 'u000120715', 'date': '1579105286', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '721', 'memory': '256', 'code_size': '1209'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\n#define N 20\n#define M 20\n\nint di[] = { -1, 0, 1, 0 };\nint dj[] = { 0, 1, 0, -1 };\n\nc...
CDSS_316553
CDSS
// // main.c // ITP1_4_B // // Created by k16031kk on 2018/05/21. // Copyright © 2018年 AIT. All rights reserved. // #include <stdio.h> #include <math.h> int main(int argc, const char * argv[]) { // insert code here... double r; scanf("%lf", &r); printf("%lf %lf\n", r*r*M_PI, 2*r*M_PI); return ...
2,044
memory_bytes
{'s_id': 's373336976', 'p_id': 'p02400', 'u_id': 'u175726508', 'date': '1526888714', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '329'}
[ { "content": "Your task is to predict the memory 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// ITP1_4_B\n//\n// Created by k16031kk on 2018/05/21.\n// Copyright © 2018年 AIT. All rights reserved.\n//\n\n#incl...
CDSS_333464
CDSS
#include <stdio.h> int main (void) { int H,W,i,a; while(1){ scanf("%d%d",&H,&W); if( H==0 && W==0){ break; } for( i=0 ; i<H ; i++){ for( a=0 ; a<W ; a++){ if(a==0 || a==W-1){ printf("#"); }else if(i==0||i==H-1){ printf("#"); }else{ printf("."); } } printf("\n");...
572
memory_bytes
{'s_id': 's337946850', 'p_id': 'p02404', 'u_id': 'u565812827', 'date': '1464181690', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '359'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 H,W,i,a;\n\t\n\twhile(1){\n\t\tscanf(\"%d%d\",&H,&W);\n\t\tif( H==0 && W==0){\n\t\t\tb...
CDSS_735999
CDSS
#include <stdio.h> int n, i; int a, b; char s[200001], c; int main(void){ while((c=getchar())!=10){s[n++]=c;} scanf("%s",&s); for(i=0; i<n; i++){ if(b>0){ if(s[i]=='S'){ b++; }else{ b--; } }else{ if(s[i]=='T'){ a++; }else{ b++; } } ...
384
memory_bytes
{'s_id': 's072781887', 'p_id': 'p03986', 'u_id': 'u292252214', 'date': '1555634177', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '384', 'code_size': '347'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint n, i;\nint a, b;\nchar s[200001], c;\nint main(void){\n while((c=getchar())!=10){s[n++]=c;}\n scanf(\"%s\",&...
CDSS_726494
CDSS
#include<stdio.h> int main() { int a,b; char op; scanf("%d %c %d",&a,&op,&b); if(op=='+') printf("%d",a+b); else printf("%d",a-b); return 0; }
128
memory_bytes
{'s_id': 's918242938', 'p_id': 'p03844', 'u_id': 'u089230684', 'date': '1525812876', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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()\n{\n\tint a,b;\n\tchar op;\n\tscanf(\"%d %c %d\",&a,&op,&b);\n\tif(op=='+') printf(\"%d\",a+b);\n\telse ...
CDSS_727095
CDSS
#include<stdio.h> const int MOD = 1000000007; int main(void){ int N; scanf("%d",&N); int S = (N-1)/2 + 1; int cnts[100005] = {0}; int arg; for(int i = 0; i < N; i++){ scanf("%d", &arg); if(arg%2 == N%2){ printf("%d",0); return 0; }else{ //printf("%d\n",arg/2); cnts[arg...
512
memory_bytes
{'s_id': 's050012426', 'p_id': 'p03846', 'u_id': 'u333945892', 'date': '1564456303', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '512', 'code_size': '784'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nconst int MOD = 1000000007;\n\n\nint main(void){\n int N;\n scanf(\"%d\",&N);\n\n int S = (N-1)/2 + 1;\n int cn...
CDSS_674391
CDSS
#include<stdio.h> #include<math.h> #include<stdlib.h> int main(){ int N,X,sum,count,i; int a[10]; scanf("%d",&N); X=N; count=0; sum=0; while(N!=0){ a[count]=N%10; N = (N-a[count])/10; count++; } for(i=0;i<count;i++)sum+=a[i]; if(X%sum==0)printf("Yes\n"); else printf("No\n"); return...
128
memory_bytes
{'s_id': 's331460034', 'p_id': 'p03502', 'u_id': 'u440061288', 'date': '1512353986', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '326'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n#include<stdlib.h>\n\nint main(){\n int N,X,sum,count,i;\n int a[10];\n scanf(\"%d\",&N);\n X...
CDSS_458527
CDSS
#include <stdio.h> int gcd(int p,int q){ int r=p%q; while(r>0){ p=q; q=r; r=p%q; } return q; } int main(){ int a,b,c,K,S=0; scanf("%d",&K); for(int a=1;a<=K;a++){ for(int b=1;b<=K;b++){ for(int c=1;c<=K;c++){ S+=gcd(gcd(a,b),c); } } } printf("%d\n",S); retur...
1,684
memory_bytes
{'s_id': 's851604348', 'p_id': 'p02713', 'u_id': 'u347116006', 'date': '1593574631', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '174', 'memory': '1684', 'code_size': '326'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint gcd(int p,int q){\n int r=p%q;\n while(r>0){\n p=q;\n q=r;\n r=p%q;\n }\n return q;\n}\n\nint m...
CDSS_681942
CDSS
// Ver19.03 #include <math.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #define INF 1 << 29 #define LLINF 4545454545454545454 #define MOD 1000000007 #define ll long long #define ull unsigned long long #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define MIN(a, b) ((a) < (b) ? (a) : (b)) int upll(const voi...
128
memory_bytes
{'s_id': 's310863168', 'p_id': 'p03574', 'u_id': 'u883325972', 'date': '1553035785', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1335'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// Ver19.03\n#include <math.h>\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#define INF 1 << 29\n#define LLINF 45454...
CDSS_248468
CDSS
#include <stdio.h> int main(int argc, const char * argv[]) { int x; // printf("x? "); scanf("%d", &x); printf("%d\n", x*x*x); return 0; }
2,040
memory_bytes
{'s_id': 's954210938', 'p_id': 'p02388', 'u_id': 'u784674363', 'date': '1592549645', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', '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>\n\nint main(int argc, const char * argv[]) {\n \n int x;\n \n// printf(\"x? \");\n scanf(\"%d\", &x)...
CDSS_649376
CDSS
#include <stdio.h> int main(void) { int a, b, c; scanf("%d %d %d",&a,&b,&c); if (a<=c && a + b >= c) { puts("YES"); } else { puts("NO"); } }
128
memory_bytes
{'s_id': 's964571918', 'p_id': 'p03377', 'u_id': 'u986434826', 'date': '1523757135', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '180'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 scanf(\"%d %d %d\",&a,&b,&c);\n if (a<=c && a + b >= c)\n {\n ...
CDSS_505565
CDSS
#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> int primes[] = { 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 21...
128
memory_bytes
{'s_id': 's174238557', 'p_id': 'p02819', 'u_id': 'u154591433', 'date': '1577670603', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '66040'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdint.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <unistd.h>\n\nint primes[] = {\n2, 3, 5, 7...
CDSS_303786
CDSS
#include <stdio.h> int main(void) { int x,y,t,i; do{ scanf("%d%d",&x,&y); if(x>y){ t=x; x=y; y=t; } if(x==0 && y==0){break;} printf("%d %d\n",x,y); }while(1); return 0; }
2,052
memory_bytes
{'s_id': 's933419303', 'p_id': 'p02397', 'u_id': 'u548147510', 'date': '1553720721', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '269'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int x,y,t,i;\n \n do{\n scanf(\"%d%d\",&x,&y);\n if(x>y){\n ...
CDSS_393009
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main() { int n,a,ac=0,wa=0,tle=0,re=0,z; char s[4]; scanf("%d",&n); for(a=1;a<=n;a++) { scanf(" %s",s); if(!strcmp(s,"AC")) ac++; if(!strcmp(s,"WA")) wa++; if(!str...
1,732
memory_bytes
{'s_id': 's655296190', 'p_id': 'p02613', 'u_id': 'u892103871', 'date': '1593999501', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '1732', 'code_size': '485'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 int n,a,ac=0,wa=0,tle=0,re=0,z;\...
CDSS_83280
CDSS
#include <stdio.h> int main(void) { int n, i; while (1){ i = 0; scanf("%d", &n); if (n == 0){ break; } while (n != 1){ if (n % 2 == 0){ n /= 2; } else { n = n * 3 + 1; } i++; } printf("%d\n", i); } return (0); }
596
memory_bytes
{'s_id': 's142287111', 'p_id': 'p00158', 'u_id': 'u334031393', 'date': '1406077335', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '272'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint n, i;\n\t\n\twhile (1){\n\t\ti = 0;\n\t\t\n\t\tscanf(\"%d\", &n);\n\t\t\n\t\tif (n == 0...
CDSS_474484
CDSS
#include<stdio.h> int main() { int arr []= {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\n",arr[k-1]); }
128
memory_bytes
{'s_id': 's031868952', 'p_id': 'p02741', 'u_id': 'u353919145', 'date': '1588315026', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main()\n{\n int arr []= {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, ...
CDSS_394178
CDSS
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <math.h> int main(void) { int a; double p_a; int ans; scanf("%d", &a); p_a = (double)a; ans = (int) (p_a + pow(p_a, 2) + pow(p_a, 3)); printf("%d", ans); return 0; }
2,556
memory_bytes
{'s_id': 's263270696', 'p_id': 'p02621', 'u_id': 'u942702267', 'date': '1599090806', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '2556', 'code_size': '243'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n\n#include <stdio.h>\n#include <math.h>\n\nint main(void)\n{\n\n\tint a;\n\tdouble p_a;\n\tint ans;\n...
CDSS_302979
CDSS
#include <stdio.h> int main(void) { int x,y; for(int a=1; ;a++){ scanf("%d%d",&x,&y); if(x==0&&y==0) break; if(x>y) printf("%d %d\n",y,x); else printf("%d %d\n",x,y); } return 0; }
1,976
memory_bytes
{'s_id': 's252261908', 'p_id': 'p02397', 'u_id': 'u569462250', 'date': '1527753134', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1976', 'code_size': '207'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n int x,y;\n for(int a=1; ;a++){\n scanf(\"%d%d\",&x,&y);\n if(x==0&&y==0)\n break;\n i...
CDSS_479667
CDSS
#include <stdio.h> #include <stdlib.h> int main() { long long int n,a,b,sum,q,r; scanf("%lld%lld%lld",&n,&a,&b); sum=a+b; q=n/sum; r=n%sum; if(r<a){ printf("%lld\n",(a*q)+r); } else if(r>=a) printf("%lld\n",(a*q)+a); }
128
memory_bytes
{'s_id': 's600197304', 'p_id': 'p02754', 'u_id': 'u452767432', 'date': '1583637103', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '268'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 long long int n,a,b,sum,q,r;\n scanf(\"%lld%lld%lld\",&n,&a,&b);\n ...
CDSS_316274
CDSS
#include <math.h> #include <stdio.h> main() { double a; scanf("%lf", &a); printf("%f %f", a * a * M_PI, 2 * a * M_PI); }
2,040
memory_bytes
{'s_id': 's859120656', 'p_id': 'p02400', 'u_id': 'u493988062', 'date': '1523862371', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '122'}
[ { "content": "Your task is to predict the memory footprint (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>\nmain() {\ndouble a;\nscanf(\"%lf\", &a);\nprintf(\"%f %f\", a * a * M_PI, 2 * a * M_PI);\n}\n\...
CDSS_104708
CDSS
#include <stdio.h> int main(){ int a,i,j,sum=0,M,S; for(i=0;i<4;i++){ scanf("%d",&a); sum+=a; } S=sum%60; M=0; while(1){ if(sum-S==60*M){ break; } M++; } printf("%d\n%d\n",M,S); return 0; }
596
memory_bytes
{'s_id': 's672547484', 'p_id': 'p00477', 'u_id': 'u568230574', 'date': '1445911511', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '216'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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,i,j,sum=0,M,S;\n\t\n\tfor(i=0;i<4;i++){\n\t\tscanf(\"%d\",&a);\n\t\tsum+=a;\n\t}\n\tS=sum%6...
CDSS_609337
CDSS
#include <stdio.h> int main (void){ int x; scanf("%d",&x); if(x==3||x==5||x==7){ printf("YES\n"); }else{ printf("NO\n"); } return 0; }
128
memory_bytes
{'s_id': 's482243662', 'p_id': 'p03210', 'u_id': 'u825753732', 'date': '1545971890', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '159'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main (void){\n int x;\n scanf(\"%d\",&x);\n if(x==3||x==5||x==7){\n printf(\"YES\\n\");\n }else{\n ...
CDSS_127874
CDSS
#include<stdio.h> int main(){ int n,m; scanf("%d%d",&n,&m); for(int i=0;i<n;i++)printf("%d%c",i<(n-1)/2?m:0,i==n-1?10:32); }
2,144
memory_bytes
{'s_id': 's914468380', 'p_id': 'p01853', 'u_id': 'u409832240', 'date': '1583814571', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '129'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tint n,m;\n\tscanf(\"%d%d\",&n,&m);\n\tfor(int i=0;i<n;i++)printf(\"%d%c\",i<(n-1)/2?m:0,i==n-1?10:...
CDSS_25133
CDSS
#include<stdio.h> int main(){ int array[15]; int max,tmp; int i,j; for(i=1; i<=10; i++){ scanf("%d",&array[i]); } for(i=1; i<=10; i++){ max = i; for(j=i; j<=10; j++){ if(array[j]>array[max]){ max=j; } } if(i!=max){ tmp=array[i]; array[i]=array[max]; ...
604
memory_bytes
{'s_id': 's519801140', 'p_id': 'p00001', 'u_id': 'u317527646', 'date': '1371111233', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '468'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 array[15];\n int max,tmp;\n int i,j;\n \n for(i=1; i<=10; i++){\n scanf(\"%d\",&array[...
CDSS_68988
CDSS
#include <stdio.h> const int DX[] = {-1, 0, 1, 0}; const int DY[] = {0, -1, 0, 1}; char map[16][16]; void blast(int y, int x) { int i; if (map[y][x] != '1'){ return; } map[y][x] = '0'; for (i = 0; i < 4; ++i){ blast(y + DY[i], x + DX[i]); } } int main(void) { int i, j; ...
540
memory_bytes
{'s_id': 's847808480', 'p_id': 'p00067', 'u_id': 'u376883550', 'date': '1481794999', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '540', 'code_size': '747'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nconst int DX[] = {-1, 0, 1, 0};\nconst int DY[] = {0, -1, 0, 1};\n\nchar map[16][16];\n\nvoid blast(int y, int x...