identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_624650
CDSS
#include <stdlib.h> #include <stdio.h> #define min(a,b) a<b?a:b int main() { int n,k,i; long long t,ans=11451919810,x[1000001]; scanf("%d%d",&n,&k); for(i=0;i<n;i++){ scanf("%lld",&x[i]); } for(i=0;i<=n-k;i++){ t=min((abs(x[i])+abs(x[i+k-1]-x[i])),(abs(x[i+k-1])+abs(x[i+k-1]-x[i]...
2,816
memory_bytes
{'s_id': 's398879519', 'p_id': 'p03274', 'u_id': 'u993046043', 'date': '1537554417', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '2816', 'code_size': '395'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdlib.h>\n#include <stdio.h>\n#define min(a,b) a<b?a:b\nint main()\n{\n int n,k,i;\n long long t,ans=11451919810,x[10...
CDSS_535969
CDSS
#include<stdio.h> int main(void){ int a; char words[10]; scanf ("%d",&a); scanf ("%s",words); if (a < 3200){ printf("red\n"); } else{ printf ("%s\n",words); } return 0; }
128
memory_bytes
{'s_id': 's280026460', 'p_id': 'p02933', 'u_id': 'u164448353', 'date': '1569356227', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '210'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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;\n char words[10];\n scanf (\"%d\",&a);\n scanf (\"%s\",words);\n if (a < 3200)...
CDSS_386825
CDSS
#include <stdio.h> #include <unistd.h> int main() { int ans; int n; long d; long x,y; ans = 0; scanf("%d %ld", &n, &d); while (n) { scanf("%ld %ld", &x, &y); if (((x*x) + (y*y)) <= (d*d)) ans++; n--; } printf("%d", ans); }
1,732
memory_bytes
{'s_id': 's728818104', 'p_id': 'p02595', 'u_id': 'u123040782', 'date': '1596418650', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '51', 'memory': '1732', '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\n#include <stdio.h>\n#include <unistd.h>\n\nint main()\n{\n\tint\t\tans;\n\tint\t\tn;\n\tlong\td;\n\tlong\tx,y;\n\n\tans = 0;\n\tscan...
CDSS_657344
CDSS
#include <stdio.h> #include <stdlib.h> typedef struct { int x; int y; } point_t; point_t a[300*300*2]; long b[300*300*2]; inline long dist(const point_t a, const point_t b){ return labs(a.x-b.x)+labs(a.y-b.y); } int main(void){ long h, w, d; scanf("%ld %ld %ld\n", &h, &w, &d); long t; for...
2,432
memory_bytes
{'s_id': 's868573525', 'p_id': 'p03426', 'u_id': 'u188638030', 'date': '1520219022', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '43', 'memory': '2432', 'code_size': '744'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\ntypedef struct {\n int x;\n int y;\n} point_t;\npoint_t a[300*300*2];\nlong b[300*300...
CDSS_204005
CDSS
#include <stdio.h> #include <stdlib.h> #include <memory.h> #define SENTINEL (1000000001) #define putChar(c) ; *p = (char)(c); ++p; int c = 0; int S[500000]; int L[250001]; int R[250001]; char str[5500010]; char *p = str; int getNum(void) { int n = 0; while ((*p >= '0') && (*p <= '9')) { n = n * 10 + (int)(*p - '...
9,212
memory_bytes
{'s_id': 's198036635', 'p_id': 'p02272', 'u_id': 'u309428289', 'date': '1391198922', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '70', 'memory': '9212', 'code_size': '1407'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 <memory.h>\n\n#define SENTINEL (1000000001)\n#define putChar(c) ; *p = (char)(c); ++...
CDSS_258559
CDSS
#include<stdio.h> int main(void) { int a,b,c,d; scanf("%d %d",&a,&b); c=a*b; d=(2*a)+(2*b); printf("%d %d\n",c,d); }
2,048
memory_bytes
{'s_id': 's401192102', 'p_id': 'p02389', 'u_id': 'u907430566', 'date': '1533617056', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', '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<stdio.h>\nint main(void)\n{\n\tint a,b,c,d;\n\tscanf(\"%d %d\",&a,&b);\n\tc=a*b;\n\td=(2*a)+(2*b);\n\tprintf(\"%d %d\\n\",c,d...
CDSS_607315
CDSS
#include<stdio.h> int main() { int a; scanf("%d",&a); switch(a){ case 22: printf("Christmas Eve Eve Eve\n"); break; case 23: printf("Christmas Eve Eve\n"); break; case 24: printf("Christmas Eve\n"); break; default: pri...
128
memory_bytes
{'s_id': 's371047667', 'p_id': 'p03206', 'u_id': 'u863370423', 'date': '1574324319', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '364'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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;\n scanf(\"%d\",&a);\n switch(a){\n case 22:\n printf(\"Christmas ...
CDSS_240990
CDSS
#include <stdio.h> int main(void) { int a; scanf("%d",&a); printf("%d\n",a*a*a); return 0; }
596
memory_bytes
{'s_id': 's630290976', 'p_id': 'p02388', 'u_id': 'u145521511', 'date': '1442121138', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '100'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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;\n\t\n\tscanf(\"%d\",&a);\n\tprintf(\"%d\\n\",a*a*a);\n\t\n\treturn 0;\n}\nPredict its ...
CDSS_563799
CDSS
#include<stdio.h> #include<string.h> #include<stdlib.h> int main(){ int i, j, k, N, *W, min=0, left, right, kari; scanf("%d", &N); W = (int *)malloc(N * sizeof(int)); for (i = 0; i < N; i++) scanf("%d", &W[i]); for (i = 0; i < N; i++) min += W[i]; for (i = 0; i < N; i++){ left = right = 0; for (...
128
memory_bytes
{'s_id': 's403717026', 'p_id': 'p03012', 'u_id': 'u539916870', 'date': '1560129572', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '512'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\n\tint i, j, k, N, *W, min=0, left, right, kari;\t\n\t\n\ts...
CDSS_134800
CDSS
#include <stdio.h> int main(void){ int i,j,n,u,k,v; scanf("%d", &n); int g[n+2][n+2]; for(i = 0; i < n+2; i++) for(j = 0; j < n+2; j++) g[i][j] = 0; for(i = 1; i <= n; i++){ scanf("%d%d", &u, &k); for(j = 1; j <= k; j++){ scanf("%d", &v); g[u][v] = 1; } } for(i ...
636
memory_bytes
{'s_id': 's047188823', 'p_id': 'p02237', 'u_id': 'u655231957', 'date': '1468373125', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', '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(void){\n int i,j,n,u,k,v;\n\n scanf(\"%d\", &n);\n\n int g[n+2][n+2];\n for(i = 0; i < n+2; i++)\n ...
CDSS_157591
CDSS
#include <stdio.h> #include <math.h> int isPrime(int); int main() { int a[10000],i,n,c=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a[i]); if(isPrime(a[i])==1)c++; } printf("%d\n",c); return 0; } int isPrime(int x){ int i; if(x==2)return 1; if(x<2||x%2==0)return 0; i=3; while(i...
2,048
memory_bytes
{'s_id': 's421397278', 'p_id': 'p02257', 'u_id': 'u031178323', 'date': '1528085951', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '385'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 isPrime(int);\n \nint main()\n{\n int a[10000],i,n,c=0;\n scanf(\"%d\",&n);\n for(i=0...
CDSS_566299
CDSS
#include<stdio.h> int main(void){ int a,p; scanf("%d %d",&a,&p); int ans=(3*a+p)/2; printf("%d\n",ans); return 0; }
128
memory_bytes
{'s_id': 's441820737', 'p_id': 'p03029', 'u_id': 'u716903426', 'date': '1587516731', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '125'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int a,p;\n scanf(\"%d %d\",&a,&p);\n int ans=(3*a+p)/2;\n printf(\"%d\\n\",ans);\n return 0;...
CDSS_314756
CDSS
#include<stdio.h> int main(void){ double r,x,y; scanf("%lf",&r); x=3.14159265359*r*r; y=2*3.14159265359*r; printf("%lf %lf\n",x,y); return 0; }
648
memory_bytes
{'s_id': 's140668420', 'p_id': 'p02400', 'u_id': 'u883898008', 'date': '1481179200', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '151'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\ndouble r,x,y;\n\nscanf(\"%lf\",&r);\n\nx=3.14159265359*r*r;\n\ny=2*3.14159265359*r;\n\nprintf(...
CDSS_170643
CDSS
#include <stdio.h> #define N 100 void selectionSort(int*,int); int main(void){ int A[N],n; int i=0; scanf("%d",&n); for(i = 0; i < n; i++){ scanf("%d",&A[i]); } selectionSort(A,n); return 0; } void selectionSort(int *A, int n){ int i,j,swap,minj,count=0; int a; //????´??????????????????? for(i = ...
600
memory_bytes
{'s_id': 's436839354', 'p_id': 'p02260', 'u_id': 'u291427249', 'date': '1492932263', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '744'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define N 100\n\nvoid selectionSort(int*,int);\n\nint main(void){\n\n\tint A[N],n;\n\tint i=0;\n\n\tscanf(\"%d\",&...
CDSS_116079
CDSS
#define _USE_MATH_DEFINES #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <ctype.h> #include <limits.h> #define EPS 1e-10 #define sq(n) ((n)*(n)) #define rep(i,n) for(i=0;i<n;i++) #define rev(i,n) for(i=n-1;i>=0;i--) #define sort(a,n) qsort(a,n,sizeof(TYPE),cmp) #define sort_r(a,n)...
2,160
memory_bytes
{'s_id': 's690041970', 'p_id': 'p00735', 'u_id': 'u505651850', 'date': '1529822948', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '2160', 'code_size': '2367'}
[ { "content": "Your task is to predict the memory 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 _USE_MATH_DEFINES\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#include <ctype.h>\n#inclu...
CDSS_117159
CDSS
#include <stdio.h> #include <string.h> int main(void) { char s[128], stack[128]; while (fgets(s, 128, stdin)) { int n=strlen(s)-1; char* p=strchr(s, '\n'); int i, ok=1, sp=0; if (p) *p=0; if (*s=='.' && n==1) break; for(i=0;i<n;++i) { switch (s[i]) { ...
524
memory_bytes
{'s_id': 's830977033', 'p_id': 'p00754', 'u_id': 'u647134562', 'date': '1419904096', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', '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 <string.h>\nint main(void)\n{\n char s[128], stack[128];\n while (fgets(s, 128, stdin)) {\n ...
CDSS_65626
CDSS
#include <stdio.h> int main() { int i; char line[1100]; fgets(line,sizeof(line),stdin); for(i = 0; line[i+4] != 0; i++){ if(line[i] == 'a' && line[i+1] == 'p' && line[i+2] == 'p' && line[i+3] == 'l' && line[i+4] == 'e') { line[i] = 'p'; line[i+1] = 'e'; line[i+2] = 'a'; l...
524
memory_bytes
{'s_id': 's108097953', 'p_id': 'p00050', 'u_id': 'u588294115', 'date': '1387379551', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '671'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 char line[1100];\n fgets(line,sizeof(line),stdin);\n for(i = 0; line[i+4] != ...
CDSS_532598
CDSS
#include<stdio.h> int main(void){ int a,b; scanf("%d%d",&a,&b); int ans=0; int out=1; while(out<b){ out-=1; out+=a; ans+=1; } printf("%d",ans); return 0; }
128
memory_bytes
{'s_id': 's367378705', 'p_id': 'p02922', 'u_id': 'u840269340', 'date': '1590657351', '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 int a,b;\n scanf(\"%d%d\",&a,&b);\n int ans=0;\n int out=1;\n while(out<b){\n out-=1;\n ...
CDSS_398151
CDSS
#include <stdio.h> int main(void){ long n; scanf("%ld",&n); long ans=0; for (int i = 1; i<=n; i++) { ans += (n/i*(2*i+(n/i-1)*i))/2; } printf("%ld\n",ans); return 0; }
1,736
memory_bytes
{'s_id': 's673971282', 'p_id': 'p02624', 'u_id': 'u867826040', 'date': '1593556431', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '99', 'memory': '1736', 'code_size': '204'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n long n;\n scanf(\"%ld\",&n);\n long ans=0;\n for (int i = 1; i<=n; i++) {\n ...
CDSS_164992
CDSS
#include <stdio.h> #define MAX 100 int bubbleSort(int *,int); int main(void) { int array[MAX],N,i,count; scanf ("%d",&N); for (i = 0 ; i < N ; i++) scanf ("%d",&array[i]); count = bubbleSort(array,N); for (i = 0 ; i < N ; i++){ printf ("%d",array[i]); if (i < N-1) printf (" "); els...
604
memory_bytes
{'s_id': 's212584191', 'p_id': 'p02259', 'u_id': 'u368911392', 'date': '1429231339', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '702'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 100\n\nint bubbleSort(int *,int);\n\nint main(void)\n{\n int array[MAX],N,i,count;\n\n scanf (\"%d...
CDSS_698364
CDSS
#include <stdio.h> long main(){ long a[200001],b[200001]; long n,i; scanf("%ld",&n); for(i=0;i<n;i++){ scanf("%ld",&a[i]); } if(n%2==0){ for(i=n/2;i<n;i++){ b[i] = a[2*(i-n/2)]; } for(i=0;i<n/2;i++){ b[i] = a[n-2*i-1]; } } else{ for(i=0;i<n;i++){ if(i<=(n-1)/2)...
5,248
memory_bytes
{'s_id': 's633750101', 'p_id': 'p03673', 'u_id': 'u399527088', 'date': '1517367694', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '43', 'memory': '5248', 'code_size': '479'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nlong main(){\n long a[200001],b[200001];\n long n,i;\n scanf(\"%ld\",&n);\n for(i=0;i<n;i++){\n scanf(\"%...
CDSS_122127
CDSS
n,m,c,s,p;main(x){for(;scanf("%d%d%d",&n,&m,&p)*n;printf("%d\n",c?s*(100-p)/c:0))for(s=0;n--;c=--m?c:x)scanf("%d",&x),s+=x;}
0
memory_bytes
{'s_id': 's754474560', 'p_id': 'p01143', 'u_id': 'u479246559', 'date': '1331770583', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '124'}
[ { "content": "Your task is to predict the 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,m,c,s,p;main(x){for(;scanf(\"%d%d%d\",&n,&m,&p)*n;printf(\"%d\\n\",c?s*(100-p)/c:0))for(s=0;n--;c=--m?c:x)scanf(\"%d\",&x),s+=x;}\nP...
CDSS_537421
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> int cmp(const void *a, const void *b) { int x = *(float*)a; int y = *(float*)b; if(x > y) return 1; else if(x < y) return -1; else return 0; } int main(int argc, char const* argv[]) { int n, i; float a[50]; scanf("%d",&n); for(i=0; i<n; i++) { scan...
128
memory_bytes
{'s_id': 's213953037', 'p_id': 'p02935', 'u_id': 'u543173665', 'date': '1567822386', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '464'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\nint cmp(const void *a, const void *b) {\n\tint x = *(float*)a;\n\tint ...
CDSS_678015
CDSS
#include <stdio.h> #include <stdlib.h> #define int long long int power(int a, int n){ if(n == 0){ return 1; } else{ return a * power(a, n - 1); } } signed main(){ int N, M; scanf("%lld%lld", &N, &M); printf("%lld\n", (100 * N + 1800 * M) * power(2, M)); return 0; }
128
memory_bytes
{'s_id': 's422015974', 'p_id': 'p03551', 'u_id': 'u208608367', 'date': '1510452642', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '279'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 int long long\n\nint power(int a, int n){\n\tif(n == 0){\n\t\treturn 1;\n\t}\n\telse{...
CDSS_319401
CDSS
#include <stdio.h> int main(void) { int a[10000], b[10000]; char op[10000]; int soe = 0, max; while (op[soe - 1] != '?'){ scanf("%d %c %d", &a[soe], &op[soe], &b[soe]); ++soe; } max = soe - 1; soe = 0; while (soe != max){ if (op[soe] == '+'){ printf("%d\n", a[soe] + b[soe]); } ...
1,824
memory_bytes
{'s_id': 's102969301', 'p_id': 'p02401', 'u_id': 'u938437685', 'date': '1504491137', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1824', 'code_size': '538'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\t\n\tint a[10000], b[10000];\n\tchar op[10000];\n\tint soe = 0, max;\n\t\n\twhile (op[soe - ...
CDSS_212214
CDSS
#include<stdio.h> void swap(int* a,int* b){ int tmp=*a; *a=*b; *b=tmp; } int Partition(int A[],int p,int r){ int x = A[r]; int i=p-1,j; for(j=p;j<r;j++){ if(A[j]<=x){ i++; swap(&A[i],&A[j]); } } swap(&A[i+1],&A[r]); return i+1; } int main(){ int n,i,x; int A[100000]; sc...
2,112
memory_bytes
{'s_id': 's465493701', 'p_id': 'p02276', 'u_id': 'u460438982', 'date': '1571637547', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2112', 'code_size': '544'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n \nvoid swap(int* a,int* b){\n int tmp=*a;\n *a=*b;\n *b=tmp;\n}\n \nint Partition(int A[],int p,int r){\n int ...
CDSS_602422
CDSS
#include <stdio.h> #include <stdlib.h> #define min(a, b) ((a) > (b) ? (b) : (a)) #define INT_MAX 0x7fffffff int main(void) { int n; scanf("%d", &n); int *arr = malloc(sizeof(int) * n); for(int i = 0; i < n; i++) scanf("%d", &arr[i]); int dp[100001] = { [ 0 ... 100000 ] = INT_MAX...
896
memory_bytes
{'s_id': 's579606054', 'p_id': 'p03160', 'u_id': 'u518231797', 'date': '1550427917', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '896', 'code_size': '573'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 min(a, b) ((a) > (b) ? (b) : (a))\n#define INT_MAX 0x7fffffff\n\n\nint main(void) {...
CDSS_315302
CDSS
#include<stdio.h> int main(void) { double r; double p=3.141592653589; scanf("%lf",&r); printf("%lf %lf",r*r*p,2*r*p); return 0; }
648
memory_bytes
{'s_id': 's605119814', 'p_id': 'p02400', 'u_id': 'u333124620', 'date': '1495430480', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', '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>\nint main(void)\n{\n\tdouble r;\n\tdouble p=3.141592653589;\n\tscanf(\"%lf\",&r);\n\t\n\tprintf(\"%lf %lf\",r*r*p,2*...
CDSS_413097
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> int main() { int h1, m1, h2, m2, k, m, h; scanf("%d %d %d %d %d", &h1, &m1, &h2, &m2, &k); if (m1>m2) { h2--; m=60-(m1-m2); } else m=abs(m1-m2); h=abs(h1-h2); m+=(h*60)-k; printf("%d\n", m); return 0; }
1,736
memory_bytes
{'s_id': 's245858308', 'p_id': 'p02663', 'u_id': 'u409231490', 'date': '1590887958', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1736', '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#include <stdlib.h>\n#include <math.h>\n\nint main()\n{\n int h1, m1, h2, m2, k, m, h;\n scanf(\"%d %d %d %d...
CDSS_57364
CDSS
#include<stdio.h> int main(){ int hcnt,bcnt,i,j,a[4]={0},b[4]={0}; while(scanf("%d %d %d %d\n", &a[0],&a[1],&a[2],&a[3])!=EOF){ scanf("%d %d %d %d\n", &b[0],&b[1],&b[2],&b[3]); hcnt=0; bcnt=0; for(i = 0; i < 4; i++) for(j=0;j<4;j++) { if(i==j){ if(a[i] == b[j]) hcnt ...
600
memory_bytes
{'s_id': 's490196181', 'p_id': 'p00025', 'u_id': 'u895599153', 'date': '1470108241', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '464'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n \nint main(){\n \nint hcnt,bcnt,i,j,a[4]={0},b[4]={0};\n \nwhile(scanf(\"%d %d %d %d\\n\", &a[0],&a[1],&a[2],&...
CDSS_741275
CDSS
#include <stdio.h> int main() { int sum, i,N; scanf("%d",&N); sum=0; for(i = 0;i<=N;i++) { sum+=i; } printf("%d", sum); }
128
memory_bytes
{'s_id': 's595379809', 'p_id': 'p04029', 'u_id': 'u863370423', 'date': '1574029924', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '151'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int sum, i,N; \n\tscanf(\"%d\",&N);\n\tsum=0;\n\tfor(i = 0;i<=N;i++) \n {\n sum+=i; \...
CDSS_498731
CDSS
// ABC 152-D // 2020.1.19 bal4u #include <stdio.h> #define gc() getchar_unlocked() int in() { // 非負整数の入力 int n = 0, c = gc(); do n = 10 * n + (c & 0xf); while ((c = gc()) >= '0'); return n; } int f1[100], f2[100]; void calc(int n) { int k = n % 10; while (n >= 10) n /= 10; ++f1[10*k + n], ++f2[n*10 + k]; }...
128
memory_bytes
{'s_id': 's445709355', 'p_id': 'p02792', 'u_id': 'u759237395', 'date': '1579505127', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', '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// ABC 152-D\n// 2020.1.19 bal4u\n\n#include <stdio.h>\n\n#define gc() getchar_unlocked()\n\nint in() { // 非負整数の入力\n\tint n = 0, c =...
CDSS_31314
CDSS
#include <stdio.h> int main(void) { int a, b, c, n, i; while(scanf("%d",&n) != EOF){ for(i = 0;i < n;i++){ scanf("%d %d %d", &a, &b, &c); if(a * a == b * b + c * c){ printf("YES\n"); } else if(b * b == a * a + c * c){ printf("YES\n"); } else if(c * c == a * a + b * b){ printf(...
580
memory_bytes
{'s_id': 's993973543', 'p_id': 'p00003', 'u_id': 'u608342007', 'date': '1384768252', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '390'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 a, b, c, n, i;\n\t\n\twhile(scanf(\"%d\",&n) != EOF){\n\t\n\t\tfor(i = 0;i < n;i++){\n\...
CDSS_149749
CDSS
#include <stdio.h> int main() { int x,i,j,key,A[100],k; scanf("%d",&x); for(i=0;i<x;i++) scanf("%d",&A[i]); for(i=0;i<x;i++) { key = A[i]; j = i-1; while(j>=0 && A[j]>key) { A[j+1] = A[j]; j = j-1; } A[j+1] = key; for(k = 0; k < x; k++) ...
2,124
memory_bytes
{'s_id': 's184927791', 'p_id': 'p02255', 'u_id': 'u184049209', 'date': '1575532694', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2124', 'code_size': '491'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int x,i,j,key,A[100],k;\n scanf(\"%d\",&x);\n for(i=0;i<x;i++)\n scanf(\"%d\",&A[i]);\n \...
CDSS_78968
CDSS
// AOJ 0120: Patisserie // 2017.9.28 bal4u@uu #include <stdio.h> #include <string.h> #include <math.h> #define EQ(a,b) (fabs(a-b)<= 1e-7) int r[13]; double d[13][13]; // ???????????±???????????????????°´????????¢ double dp[13][4100]; // ?°´????????¢, ??´?????????????????±??????????±\??´????????? char buf[50],...
2,020
memory_bytes
{'s_id': 's040910150', 'p_id': 'p00120', 'u_id': 'u847467233', 'date': '1509522478', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2020', 'code_size': '1363'}
[ { "content": "Your task is to predict the memory 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 0120: Patisserie\n// 2017.9.28 bal4u@uu\n\n#include <stdio.h>\n#include <string.h>\n#include <math.h>\n\n#define EQ(a,b) (fabs(...
CDSS_575788
CDSS
#include <stdio.h> int main() { int N, V[20], C[20], i, value, kei = 0; scanf("%d", &N); for (i = 0; i < N; i++) { scanf("%d", &V[i]); } for (i = 0; i < N; i++) { scanf("%d", &C[i]); } for (i = 0; i < N; i++) { value = V[i] - C[i]; if (value > 0) { kei = kei + value; } } printf("%d\n", kei); ...
128
memory_bytes
{'s_id': 's699447939', 'p_id': 'p03060', 'u_id': 'u421730290', 'date': '1560352782', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '332'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n\tint N, V[20], C[20], i, value, kei = 0;\n\n\tscanf(\"%d\", &N);\n\tfor (i = 0; i < N; i++) {\n\t...
CDSS_528597
CDSS
#include <stdio.h> #include <string.h> int main(void){ char S[200]; scanf("%s",S); int i=0; int len = strlen(S); while(len != i){ //printf("S[%d] = %c\n",i,S[i]); if(i%2 == 0){ if(S[i] != 'R' && S[i] !='U'&&S[i] != 'D'){ printf("No"); return 0; } } if(i%2 == 1){ //printf("i = %d && S[i] = ...
128
memory_bytes
{'s_id': 's633968601', 'p_id': 'p02910', 'u_id': 'u492296177', 'date': '1568596855', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '128', 'code_size': '462'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 S[200];\n\tscanf(\"%s\",S);\n\tint i=0;\n\tint len = strlen(S);\n\twh...
CDSS_107718
CDSS
/* AOJ 0582 Title: @kankichi573 */ #include <stdio.h> // #include <stdlib.h> // #include <string.h> // #include <math.h> // #include <float.h> // #include <stdlib.h> istriangle(int a,int b,int c) { return(a+b>c && b+c>a && c+a>b); } isright(int a,int b,int c) { return ((a*a+b*b==c*c)|| \ ...
596
memory_bytes
{'s_id': 's417012049', 'p_id': 'p00505', 'u_id': 'u708993917', 'date': '1381234403', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '1238'}
[ { "content": "Your task is to predict the memory 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 AOJ 0582\n Title:\n @kankichi573\n*/\n#include <stdio.h>\n// #include <stdlib.h>\n// #include <string.h>\n// #include <math.h>...
CDSS_421173
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define rep(i,k,n) for(int (i)=(k);(i)<(n);(i)++) #define max(a,b) (a)>(b)?(a):(b) #define min(a,b) (a)<(b)?(a):(b) #define abs(a) (a)>0 ?(a):-(a) #define llong long long int main(){ int N,M,X; scanf("%d %d %d",&N,&M,&X); int C[N],A[N][M],...
1,736
memory_bytes
{'s_id': 's770746119', 'p_id': 'p02683', 'u_id': 'u354326404', 'date': '1589162353', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1736', 'code_size': '874'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 rep(i,k,n) for(int (i)=(k);(i)<(n);(i)++)\n...
CDSS_120415
CDSS
#include <stdio.h> int main(void) { int n, m; /* n:??????????????°, m:?????§????????? */ int max = 0; int price[1000]; int i = 0, j; while (1) { scanf("%d %d", &n, &m); if (n == 0 && m == 0) break; else { for (i = 0; i < n; i++) { scanf("%d", &price[i]); } /* printf("n = %d, m = %d\n", n, m...
616
memory_bytes
{'s_id': 's157500064', 'p_id': 'p01101', 'u_id': 'u640736814', 'date': '1502257494', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '616', 'code_size': '790'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, m;\t/* n:??????????????°, m:?????§????????? */\n\tint max = 0;\n\tint price[1000];\n...
CDSS_100309
CDSS
#include<stdio.h> int road[20][20] = {}, count = 0; int sroad(int x, int y){ if( road[x][y] == 2 ) count++; if( road[x+1][y] != 0 ) sroad(x+1,y); if( road[x][y+1] != 0 ) sroad(x,y+1); return count; } int main(void){ int a, b, n, i, j; while(1){ scanf("%d %d", &a, &b); if(a == 0 && b == 0) break; fo...
600
memory_bytes
{'s_id': 's719175742', 'p_id': 'p00438', 'u_id': 'u583384468', 'date': '1416985222', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '600', 'code_size': '676'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 road[20][20] = {}, count = 0;\n\nint sroad(int x, int y){\n\tif( road[x][y] == 2 ) count++;\n\tif( road[x+1][...
CDSS_201031
CDSS
#include<stdio.h> #include<stdbool.h> #define N 3000 bool solve(int,int); int A[N],a; int main(){ int b,z,i; scanf("%d",&a); for(i=0;i<a;i++){ scanf("%d",&A[i]); } scanf("%d",&b); for(i=0;i<b;i++){ scanf("%d",&z); if(solve(0,z)) printf("yes\n"); else printf("no\n"); } retur...
2,108
memory_bytes
{'s_id': 's744591205', 'p_id': 'p02271', 'u_id': 'u602456368', 'date': '1576737954', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '430', 'memory': '2108', 'code_size': '469'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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#define N 3000\nbool solve(int,int);\nint A[N],a;\nint main(){\n int b,z,i;\n scanf(\"%d\",&...
CDSS_635489
CDSS
#include <stdio.h> int main() { int x,s,a,b,c,d,e,f,g,h,i,j; scanf("%d",&x); s=0; a=x/1000000000; b=x/100000000%10; c=x/10000000%10; d=x/1000000%10; e=x/100000%10; f=x/10000%10; g=x/1000%10; h=x/100%10; i=x/10%10; j=x%10; s=a+b+c+d+e+f+g+h+i+j; if(x%s==0) printf("Yes"); else printf("No"); return...
128
memory_bytes
{'s_id': 's786659596', 'p_id': 'p03316', 'u_id': 'u089230684', 'date': '1572922101', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '325'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n\tint x,s,a,b,c,d,e,f,g,h,i,j;\n\tscanf(\"%d\",&x);\n\ts=0;\n\ta=x/1000000000;\n\tb=x/100000000%10;...
CDSS_681316
CDSS
#include<stdio.h> #include<string.h> char s[100001]; int main() { int l,r,res=0,i; scanf("%s",s); l=0;r=strlen(s)-1; while(l<r) { if(s[l]==s[r]) {l++,r--;} else if(s[l]=='x') {res++,l++;} else if(s[r]=='x') {res++,r--;} else { puts("-1"); return 0; } } printf("%d\n",res); return 0; }
256
memory_bytes
{'s_id': 's603897893', 'p_id': 'p03569', 'u_id': 'u622029395', 'date': '1508771321', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '314'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nchar s[100001];\nint main()\n{\n\tint l,r,res=0,i;\n\tscanf(\"%s\",s);\n\tl=0;r=strlen(s)-1;\n\...
CDSS_650180
CDSS
#include <stdio.h> #include <stdlib.h> #include <inttypes.h> #include <stdint.h> #include <string.h> uint32_t numList[100000]; int cmpfunc(const void * a, const void * b) { return *(uint32_t *)b - *(uint32_t *)a; } static uint32_t getCombDiff(const uint32_t i, const uint32_t j) { return j < i / 2 ? j : i - j; } s...
1,020
memory_bytes
{'s_id': 's414078498', 'p_id': 'p03380', 'u_id': 'u615782628', 'date': '1526253007', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '26', 'memory': '1020', 'code_size': '1285'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 <inttypes.h>\n#include <stdint.h>\n#include <string.h>\n\nuint32_t numList[100000];\...
CDSS_142325
CDSS
#include<stdio.h> #define N 8 #define FREE -1 #define NOT_FREE 1 int row[N],/*行*/ col[N]/*列*/; int dpos[2*N-1],dneg[2*N-1]; /*dpos:左下方向 dneg:右下方向*/ int X[N][N]; void Initialize(); //初期化 void PrintBoard(); void recursive(int); //再帰 int main(){ int i, j; int k, r, c; /*1行目に整数 k が与えられます。続く k 行にクイーンが配置されているマスが2...
2,104
memory_bytes
{'s_id': 's403448028', 'p_id': 'p02244', 'u_id': 'u774552146', 'date': '1548729338', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '1648'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 N 8\n#define FREE -1\n#define NOT_FREE 1\n\nint row[N],/*行*/ col[N]/*列*/;\nint dpos[2*N-1],dneg[2*N-1]; /...
CDSS_335113
CDSS
#include <stdio.h> int main(int argc, const char * argv[]) { int h, w; while (1) { scanf("%d %d", &h, &w); if (h == 0 && w == 0) { break; } for (int y=0; y<h; y++) { for (int x=0; x<w; x++) { if (y == 0 || y == h-1 || x == 0 || x...
2,048
memory_bytes
{'s_id': 's688367576', 'p_id': 'p02404', 'u_id': 'u506224871', 'date': '1557998363', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '559'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 h, w;\n \n while (1) {\n scanf(\"%d %d\", ...
CDSS_681933
CDSS
#include <stdio.h> int main (){ int i,j,k=0,l,p=0; scanf ("%d%d",&p,&l); char s[1000][1000],t[1000][1000]; for (i=0;i<p;i++){ scanf ("%s",s[i]); } for (i=0;i<p;i++){ for (j=0;j<l;j++){ if (s[i][j]=='.'){ if (s[i-1][j-1]=='#'){k++;} if (s[i][j-1]=='#'){k++;} if (s[i+1][j-1]=='#'){k++;} if (s[i-1][j]=='#'){k...
256
memory_bytes
{'s_id': 's742117324', 'p_id': 'p03574', 'u_id': 'u444555640', 'date': '1555971545', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '552'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 i,j,k=0,l,p=0;\nscanf (\"%d%d\",&p,&l);\nchar s[1000][1000],t[1000][1000];\nfor (i=0;i<p;i++){\n...
CDSS_687443
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> #include <math.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...
1,788
memory_bytes
{'s_id': 's465864890', 'p_id': 'p03611', 'u_id': 'u615782628', 'date': '1568693248', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '25', 'memory': '1788', 'code_size': '7036'}
[ { "content": "Your task is to predict the memory footprint (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_261525
CDSS
#include <stdio.h> int main(int argc, const char * argv[]) { int a, b, c; scanf("%d", &a); b = a/3600; a = a%3600; c = a/60; a = a%60; printf("%d:%d:%d\n", b,c,a); return 0; }
592
memory_bytes
{'s_id': 's227114785', 'p_id': 'p02390', 'u_id': 'u991310168', 'date': '1484035612', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '223'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(int argc, const char * argv[]) {\n \n int a, b, c;\n \n scanf(\"%d\", &a);\n b = a/3600;...
CDSS_307193
CDSS
#include <stdio.h> int main(void){ int a,b,c,i,count=0; scanf("%d %d %d",&a,&b,&c); for(i=0;i+a<b+1;i++){ if(c % (a+i) == 0){ count = count + 1; } } printf("%d\n", count); }
2,084
memory_bytes
{'s_id': 's682321986', 'p_id': 'p02398', 'u_id': 'u397720792', 'date': '1588495219', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2084', 'code_size': '223'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int a,b,c,i,count=0;\n scanf(\"%d %d %d\",&a,&b,&c);\n for(i=0;i+a<b+1;i++){\n ...
CDSS_685874
CDSS
#include <stdio.h> #include <stdlib.h> int compare(const void *a,const void *b){ int x= (*(int *)a); int y= (*(int *)b); if( x > y ) return 1; return -1; } int main () { int n; int a[112345]; scanf("%d", &n); for (int i=0; i<n; i++){ scanf("%d", &a[i]); } qsort(a,n,sizeof(int),...
892
memory_bytes
{'s_id': 's104437454', 'p_id': 'p03607', 'u_id': 'u447305329', 'date': '1577008816', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '26', 'memory': '892', 'code_size': '530'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint compare(const void *a,const void *b){\n int x= (*(int *)a);\n int y= (*(int *)b);\n ...
CDSS_559814
CDSS
#include <stdio.h> int main(void){ int n,x,g=0,c=1,l[100]; scanf("%d%d",&n,&x); for(int i=0;i<n;i++)scanf("%d",&l[i]); for(int i=0;i<n;i++){ g+=l[i]; if(g>x)break; c++; } printf("%d",c); return 0; }
1,736
memory_bytes
{'s_id': 's085429590', 'p_id': 'p03000', 'u_id': 'u242939895', 'date': '1593463701', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '1736', 'code_size': '259'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,x,g=0,c=1,l[100];\n \n scanf(\"%d%d\",&n,&x);\n for(int i=0;i<n;i++)scanf(\"%d...
CDSS_592636
CDSS
#include <stdio.h> int min(int z, int b){ if(z < b) return z; return b; } int main (void){ char s[100000]; int i, count = 0; int len = 0; scanf("%s", s); for(i = 0; s[i] != '\0'; i++){ if(s[i] == '1'){ count++; } len++; } printf("%d\n", min(count , len - count) * 2); }
256
memory_bytes
{'s_id': 's120476143', 'p_id': 'p03107', 'u_id': 'u372231379', 'date': '1553522280', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '296'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint min(int z, int b){\n\tif(z < b) return z;\n\treturn b;\n}\n\nint main (void){\n\n\tchar s[100000];\n\tint i...
CDSS_454450
CDSS
#include<stdio.h> int main() { int n; scanf("%d", &n); long long sum = 0; for (int i = 0; i <= n; i++) { if (i % 3 != 0 && i % 5 != 0) { sum += i; } } printf("%lld\n", sum); return 0; }
1,708
memory_bytes
{'s_id': 's485914376', 'p_id': 'p02712', 'u_id': 'u353919145', 'date': '1596942109', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '8', 'memory': '1708', '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{\n\tint n;\n scanf(\"%d\", &n);\n long long sum = 0;\n for (int i = 0; i <= n; i++)\n {...
CDSS_80910
CDSS
#include <stdio.h> int main(void) { int j, N, n, i; scanf("%d", &N); j = 1; while (j <= N){ scanf("%d", &n); printf("Case %d:\n", j); for (i = 0; i < 10; i++){ n = ((n * n) % 1000000) / 100; printf("%d\n", n); } j++; } return (0); }
592
memory_bytes
{'s_id': 's093589688', 'p_id': 'p00137', 'u_id': 'u145563629', 'date': '1431340200', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '262'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint j, N, n, i;\n\t\n\tscanf(\"%d\", &N);\n\tj = 1;\n\twhile (j <= N){\n\t\tscanf(\"%d\", &...
CDSS_718545
CDSS
#include <stdio.h> int main() { long long int n,m; scanf("%lld%lld",&n,&m); if(2*n<=m) { printf("%lld",n+(m-2*n)/4); } else { printf("%lld",m/2); } return 0; }
128
memory_bytes
{'s_id': 's387166484', 'p_id': 'p03799', 'u_id': 'u863370423', 'date': '1544131407', '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>\nint main()\n{\n long long int n,m;\n scanf(\"%lld%lld\",&n,&m);\n if(2*n<=m)\n {\n printf(\"%ll...
CDSS_671874
CDSS
#include <stdio.h> int main(void){ char S[3]; int ans = 0; scanf("%s",S); if(S[0] == '1') ans++; if(S[1] == '1') ans++; if(S[2] == '1') ans++; printf("%d\n",ans); return 0; }
256
memory_bytes
{'s_id': 's942134008', 'p_id': 'p03493', 'u_id': 'u812973725', 'date': '1549501965', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', '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(void){\n char S[3];\n int ans = 0;\n\n scanf(\"%s\",S);\n\n if(S[0] == '1') ans++;\n if(S[1] == '1...
CDSS_693224
CDSS
#include<stdio.h> int main() { int a; scanf("%d",&a); printf("ABC%d\n",a); return 0; }
128
memory_bytes
{'s_id': 's880762493', 'p_id': 'p03643', 'u_id': 'u018679195', 'date': '1527756341', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '102'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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;\n scanf(\"%d\",&a);\n printf(\"ABC%d\\n\",a);\n return 0;\n}\nPredict its memory...
CDSS_150467
CDSS
#include <stdio.h> int main(void) { int x, y, m, n, c; scanf("%d %d",&x,&y); m = x; n = y; while(y != 0) { c = x%y; x = y; y = c; } printf("%d\n",x); return 0; }
2,080
memory_bytes
{'s_id': 's004228671', 'p_id': 'p02256', 'u_id': 'u414655445', 'date': '1540895459', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2080', 'code_size': '177'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint x, y, m, n, c;\n\tscanf(\"%d %d\",&x,&y);\n\tm = x; n = y;\n\twhile(y != 0)\n\t{\n\t\tc...
CDSS_231382
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> #define min(p,q)((p)<(q)?(p):(q)) #define zahyoutype double typedef struct Point{zahyoutype x,y;}P; typedef struct line{P p1,p2;}L; int sgn(zahyoutype x){return x<0?-1:x>0;} double seglen(L s){return hypot(s.p2.x-s.p1.x,s.p2.y-s.p1.y);} //opとoqの内積と外積 zahyoutype...
2,088
memory_bytes
{'s_id': 's740299553', 'p_id': 'p02296', 'u_id': 'u409832240', 'date': '1564706211', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2088', 'code_size': '1945'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 min(p,q)((p)<(q)?(p):(q))\n#define zahyoutype double\n\ntypedef st...
CDSS_168870
CDSS
#include<stdio.h> int main(){ int i,j,n,s,count=0; scanf("%d",&n); int A[n]; for(i=0;i<n;i++) scanf("%d",&A[i]); for(i=0;i<n;i++){ for(j=n-1;j>=1;j--){ if(A[j] < A[j-1]){ count++; s = A[j-1]; A[j-1] = A[j]; A[j] = s; } } } for(i=0...
2,104
memory_bytes
{'s_id': 's191553624', 'p_id': 'p02259', 'u_id': 'u369896618', 'date': '1576209409', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', '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>\nint main(){\n int i,j,n,s,count=0;\n scanf(\"%d\",&n);\n int A[n];\n for(i=0;i<n;i++) scanf(\"%d\",&A[i...
CDSS_174177
CDSS
#include <stdio.h> struct Card{ char suit; int value; }; void bubble(struct Card A[],int n){ int i,j; for(i=0;i<n;i++){ for(j=n-1;j>=i+1;j--){ if(A[j].value<A[j-1].value){ struct Card t=A[j]; A[j]=A[j-1]; A[j-1]=t; } } } } void selection(struct Card A[],int n){ int i,j; for(i=0;i...
2,124
memory_bytes
{'s_id': 's982469498', 'p_id': 'p02261', 'u_id': 'u784536499', 'date': '1529386444', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2124', 'code_size': '1152'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 Card{\n char suit;\n int value;\n};\n\nvoid bubble(struct Card A[],int n){\n int i,j;\n for(i=0;i<n;i...
CDSS_577814
CDSS
#include <stdio.h> #include <stdlib.h>//random,NULL #include <string.h> #include <time.h> #include <unistd.h>//sleep() #include <math.h> #include <stdbool.h> #define rep(i,n) for(int i=0; i<((int)n); i++) #define REP(i,n) for(int i=0; i<=((int)n); i++) #define srep(i,a,n) for(int i=a; i<((int)n); i++) #define SREP(i,a...
256
memory_bytes
{'s_id': 's914674570', 'p_id': 'p03067', 'u_id': 'u885352715', 'date': '1555808601', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '256', 'code_size': '692'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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>//random,NULL\n#include <string.h>\n#include <time.h>\n#include <unistd.h>//sleep()\n#include <...
CDSS_113919
CDSS
#include<stdio.h> int main(void){ while(1){ int N,Q,R; int M,hoge; scanf("%d%d",&N,&Q); if(N+Q==0) break; int cnt[100]={0}; for(int i=0;i<N;i++){ scanf("%d",&M); for(int j=0;j<M;j++){ scanf("%d",&hoge); cnt[hoge]...
1,976
memory_bytes
{'s_id': 's885588186', 'p_id': 'p00705', 'u_id': 'u952081851', 'date': '1527778843', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1976', 'code_size': '599'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 while(1){\n int N,Q,R;\n int M,hoge;\n scanf(\"%d%d\",&N,&Q);\n if...
CDSS_182517
CDSS
#include <stdio.h> struct process_info_t { char name[11]; int time; struct process_info_t *next; }; typedef struct process_info_t ProcessInfo; int main(void) { int num, qt, i, process, living_process; ProcessInfo rrs[100001], *p, *prev; scanf("%d %d ", &num, &qt); for (i = 0; i < num; i++) { scanf("%10s %d "...
2,892
memory_bytes
{'s_id': 's761861841', 'p_id': 'p02264', 'u_id': 'u785362309', 'date': '1529633627', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2892', 'code_size': '737'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nstruct process_info_t {\n\tchar name[11];\n\tint time;\n\tstruct process_info_t *next;\n};\ntypedef struct process...
CDSS_649500
CDSS
#include<stdio.h> int main(void) { int A, B, X; scanf("%d %d %d", &A, &B, &X); if (X >= A && X <= A+B) printf("YES\n"); else printf("NO\n"); return 0; }
128
memory_bytes
{'s_id': 's865819777', 'p_id': 'p03377', 'u_id': 'u351888211', 'date': '1523754845', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '167'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, X;\n scanf(\"%d %d %d\", &A, &B, &X);\n if (X >= A && X <= A+B) printf(\"YES\\n\"...
CDSS_713034
CDSS
#include <stdio.h> #include <stdlib.h> int main(){ char odd[64]; char even[64]; char password[128]; scanf("%s", &odd); scanf("%s", &even); int i = 0; while( odd[i] != '\0' ){ password[2*i] = odd[i]; password[2*i + 1] = even[i]; i++; } password[2*i] = '\0'; printf( "%s\n", password ); ...
128
memory_bytes
{'s_id': 's892340919', 'p_id': 'p03760', 'u_id': 'u324400109', 'date': '1491700534', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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 <stdlib.h>\n\n\nint main(){\n\t\n\tchar odd[64];\n\tchar even[64];\n\tchar password[128];\n\t\n\tscanf(\"...
CDSS_583662
CDSS
#include <stdio.h> #include <stdlib.h> int main(void){ int a[5]; for(int i = 0;i < 5;i++){ scanf("%d", &a[i]); } int count = 0; int p = 10; for(int i = 0;i < 5;i++){ if(a[i] % 10 == 0)count++; else if(p > a[i] % 10){ p = a[i] % 10; } } p = p +...
128
memory_bytes
{'s_id': 's030093839', 'p_id': 'p03076', 'u_id': 'u436045956', 'date': '1556921929', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '439'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(void){\n int a[5];\n for(int i = 0;i < 5;i++){\n scanf(\"%d\", &a[i])...
CDSS_364856
CDSS
#include <stdio.h> int main () { int i,j; char n[100000] = {0}; int x[1001] = {0}; i = 0; j = 0; while(1) { scanf("%c",&n[i]); if(n[i] == '0' && n[i-1] == '\n'|| n[0] == '0') {break;} if(n[i] >= '1' && '9' >= n[i] && n[i] != '\n') { x[j] += n[i]-48; } if(n[i] == '\n') { j = j + 1; } i= i+1; } for(i=0...
2,076
memory_bytes
{'s_id': 's590606721', 'p_id': 'p02416', 'u_id': 'u460438982', 'date': '1564999801', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2076', 'code_size': '390'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main () {\nint i,j;\nchar n[100000] = {0};\nint x[1001] = {0};\n \ni = 0;\nj = 0;\n \n \nwhile(1) {\nscanf...
CDSS_505508
CDSS
#include <stdio.h> //#include <limits.h> int main(void){ int X = 0; //int Y = 0; int i = 2; int j = 0; scanf("%d",&X); for(j=0;j<1000000;j++){ while(X%i != 0){ i++; } if(X != i){ X++; i = 2; }else{ break; } ...
128
memory_bytes
{'s_id': 's291724344', 'p_id': 'p02819', 'u_id': 'u717973956', 'date': '1577683506', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '400'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n//#include <limits.h>\n\nint main(void){\n \n int X = 0;\n //int Y = 0;\n int i = 2;\n int j = 0;\n \...
CDSS_317308
CDSS
#include <math.h> int main(){ double r; scanf("%lf",&r); printf("%lf %lf\n",r*r*M_PI,2*r*M_PI); }
2,128
memory_bytes
{'s_id': 's354664382', 'p_id': 'p02400', 'u_id': 'u019521103', 'date': '1568881449', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2128', 'code_size': '110'}
[ { "content": "Your task is to predict the memory footprint (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>\nint main(){\n double r;\n scanf(\"%lf\",&r);\n printf(\"%lf %lf\\n\",r*r*M_PI,2*r*M_PI);\n}\n\nPredict its...
CDSS_104994
CDSS
//AOJ 0554 #include <stdio.h> main() { int i,t,sum; for(i=0,sum=0;i<4;i++) { scanf("%d",&t); sum += t; } printf("%d\n",sum/60); printf("%d\n",sum%60); return(0); }
596
memory_bytes
{'s_id': 's311443549', 'p_id': 'p00477', 'u_id': 'u708993917', 'date': '1380637700', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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//AOJ 0554\n#include <stdio.h>\nmain()\n{\n int i,t,sum;\n\n for(i=0,sum=0;i<4;i++)\n {\n scanf(\"...
CDSS_491445
CDSS
/* * atcode154-c */ #include <stdio.h> #include <stdlib.h> int comp_int(const void *p1, const void *p2) { int *i1 = (int *)p1; int *i2 = (int *)p2; return (*i1 > *i2); } int main(int argc, char *argv[]) { int *np; int n, i; scanf("%d", &n); np = (int *) malloc(n * sizeof (int)); for (i = 0; i < ...
1,788
memory_bytes
{'s_id': 's201884456', 'p_id': 'p02779', 'u_id': 'u198858287', 'date': '1582381492', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '51', 'memory': '1788', 'code_size': '540'}
[ { "content": "Your task is to predict the memory 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 * atcode154-c\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n\nint\ncomp_int(const void *p1, const void *p2)\n{\n int *i1 = (i...
CDSS_283873
CDSS
#include <stdio.h> int main(){ int a, b, c, t; scanf("%d %d %d", &a, &b, &c); if(a>b){ t=a; a=b; b=t; } if(b>c){ t=b; b=c; c=t; } if(a>b){ t=a; a=b; b=t; } printf("%d %d %d\n", a, b, c); return 0; }
596
memory_bytes
{'s_id': 's810439658', 'p_id': 'p02393', 'u_id': 'u252415092', 'date': '1473857047', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '307'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\nint a, b, c, t;\n scanf(\"%d %d %d\", &a, &b, &c);\n if(a>b){\n t=a;\n a=b;\n ...
CDSS_236597
CDSS
#include<stdio.h> #include<math.h> double cubicRoot( double ab ) { double cr,a; double i; if( 0==ab ) { return 0; } for( i=1; ; i+=0.00001 ) { if( ab<=(i*i*i) ) { a=i-0.00001; break; } } cr = a+(ab-(a*a*a))/(3*a*a); return cr; } int main( void ) { int n; int i; double x[1001],y[1001]; do...
672
memory_bytes
{'s_id': 's788500228', 'p_id': 'p02382', 'u_id': 'u604774382', 'date': '1425736935', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '220', 'memory': '672', 'code_size': '808'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n\ndouble cubicRoot( double ab )\n{\n\tdouble cr,a;\n\tdouble i;\n\t\n\tif( 0==ab ) { return 0; }\...
CDSS_537844
CDSS
#include<stdio.h> #include<stdlib.h> struct abc{ int fr; int to; int c; }; int compare_int(const void *a,const void *b){ struct abc A=*(struct abc*)a; struct abc B=*(struct abc*)b; return A.fr-B.fr; } long long ans[200000]; struct abc ab[400000]; int list[200000],m; int f[200000]={0}; int dfs(int now,in...
16,428
memory_bytes
{'s_id': 's141513498', 'p_id': 'p02936', 'u_id': 'u946810083', 'date': '1567457955', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '182', 'memory': '16428', 'code_size': '1085'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 abc{\n\t\tint fr;\n\t\tint to;\n\t\tint c;\n};\n\nint compare_int(const void *a,const ...
CDSS_399355
CDSS
#include<stdio.h> int main(void){ char x; scanf("%s",&x); if(x >= 'a' && x <= 'z'){ printf("a"); }else{ printf("A"); } }
1,644
memory_bytes
{'s_id': 's877400677', 'p_id': 'p02627', 'u_id': 'u382716774', 'date': '1592787747', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1644', 'code_size': '164'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n char x;\n scanf(\"%s\",&x);\n\n if(x >= 'a' && x <= 'z'){\n printf(\"a\");\n ...
CDSS_617859
CDSS
#include<stdio.h> int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); if(a<=b && c<=b){ printf("%d",10*b+a+c); }else if(b<=a && c<=a){ printf("%d",10*a+b+c); }else{ printf("%d",10*c+a+b); } return 0; }
128
memory_bytes
{'s_id': 's743023468', 'p_id': 'p03250', 'u_id': 'u353919145', 'date': '1576488714', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '224'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int a,b,c;\n scanf(\"%d%d%d\",&a,&b,&c);\n if(a<=b && c<=b){\n printf(\"%d\",10*b+a+c);\n }els...
CDSS_84784
CDSS
#include <stdio.h> #include <string.h> int main(void) { int n, i, len; char fi4[256], ans[256]; while (1){ scanf("%d", &n); if (n == -1){ break; } i = 0; if (n == 0){ printf("0\n"); continue; } while (n != 0){ fi4[i++] = n % 4 + '0'; n /= 4; if (n == 0){ fi4...
580
memory_bytes
{'s_id': 's473539925', 'p_id': 'p00175', 'u_id': 'u135535121', 'date': '1380633315', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '507'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void)\n{\n\tint n, i, len;\n\tchar fi4[256], ans[256];\n\t\n\twhile (1){\n\t\t\n\t...
CDSS_39368
CDSS
#include <stdio.h> int risi(int a){ if(a==0){ return 100000; }else{ double b=(double)risi(a-1)*1.05; if(((int)b%1000)!=0){ b-=(int)b%1000; b+=1000; } return (int)b; } } int main(){ int a; scanf("%d",&a); printf("%d\n",risi(a)); return 0; }
592
memory_bytes
{'s_id': 's820721748', 'p_id': 'p00007', 'u_id': 'u018134297', 'date': '1405840362', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '264'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint risi(int a){\n\tif(a==0){\n\t\treturn 100000;\n\t}else{\n\t\tdouble b=(double)risi(a-1)*1.05;\n\t\tif(((int)...
CDSS_276068
CDSS
#include<stdio.h> int main(){ 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; }
580
memory_bytes
{'s_id': 's041592800', 'p_id': 'p02392', 'u_id': 'u212664316', 'date': '1460689750', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', '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>\nint main(){\n int a,b,c;\n scanf(\"%d%d%d\",&a,&b,&c);\n\n if(a<b)\n { if(b<c){\n\tprintf(\"Yes\\n\");}\n ...
CDSS_168088
CDSS
#include<stdio.h> int main(){ int N,flag,sum=0,temp,i,j; int A[100]; scanf("%d",&N); for(i=0;i<N;i++){ scanf("%d",&A[i]); } for(i=0;i<(N-1);i++){ for(j=N-1;j>i;j--){ if(A[j-1]>A[j]){ temp=A[j-1]; A[j-1]=A[j]; A[j]=temp; sum++; } } } for(i=0;i<N-1;i++)...
2,124
memory_bytes
{'s_id': 's891091173', 'p_id': 'p02259', 'u_id': 'u603258229', 'date': '1529566442', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2124', '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(){\n\n int N,flag,sum=0,temp,i,j;\n int A[100];\n\n scanf(\"%d\",&N);\n for(i=0;i<N;i++){\n scanf...
CDSS_382589
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> int main() { int n; int a[200001]; long long int sum=0; int max=0; int i; scanf("%d", &n); for (i=0;i<n;i++) scanf("%d", &a[i]); for (i=0;i<n;i++){ if (a[i]>max) max=a[i]; if (max-a[i]>0) sum+=(...
2,508
memory_bytes
{'s_id': 's228389302', 'p_id': 'p02578', 'u_id': 'u264818289', 'date': '1598126141', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '39', 'memory': '2508', 'code_size': '379'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#include <string.h>\n\nint main() {\n int n;\n int a[200001];\n l...
CDSS_621168
CDSS
#include<stdio.h> #include<stdlib.h> long cmp(const void*a,const void *b){ return *(long*)a - *(long*)b; } long gcdf(long a,long b){ long p = a; long q = b; long c = 0; c = p%q; while(c != 0){ p = q; q = c; c = p%q; } return q; } int main(){ long n = 0; long x = 0; long a[100001]={}; ...
2,556
memory_bytes
{'s_id': 's050181677', 'p_id': 'p03262', 'u_id': 'u185050799', 'date': '1575089934', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '28', 'memory': '2556', 'code_size': '748'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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>\nlong cmp(const void*a,const void *b){\n return *(long*)a - *(long*)b;\n}\n\nlong gcdf(long a,l...
CDSS_149643
CDSS
#include <stdio.h> void Insertion_Sort(int *a,int n); int main(){ int i=0,n,a[100]; for(scanf("%d",&n);i<n;i++) scanf("%d",a+i); Insertion_Sort(a,n); return 0; } void Insertion_Sort(int *a,int n){ int i=0,j=0,t=0; for(i=0;i<n;i++) printf(i<n-1?"%d ":"%d\n",a[i]); for(i=1;i<n;i++){ ...
2,040
memory_bytes
{'s_id': 's232584250', 'p_id': 'p02255', 'u_id': 'u336773974', 'date': '1576290494', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '498'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nvoid Insertion_Sort(int *a,int n);\nint main(){\n int i=0,n,a[100];\n for(scanf(\"%d\",&n);i<n;i++)\n sca...
CDSS_689473
CDSS
#include <stdio.h> int main(){ char N[4]; scanf("%s",N); if(N[0]==N[2]) printf("Yes\n"); else printf("No\n"); return 0; }
1,572
memory_bytes
{'s_id': 's581342781', 'p_id': 'p03631', 'u_id': 'u347116006', 'date': '1593404185', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1572', 'code_size': '132'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 N[4];\n scanf(\"%s\",N);\n if(N[0]==N[2]) printf(\"Yes\\n\");\n else printf(\"No\\n\");\n...
CDSS_709660
CDSS
#include<stdio.h> int main() { int a,b,c,f=0; // 整数の入力 // スペース区切りの整数の入力 scanf("%d %d %d",&a,&b,&c); // 出力 for(int i=1;i<=b;i++){ if((a*i-c)%b==0){ printf("YES"); f=1; break; } } if(f==0)printf("NO"); return 0; }
128
memory_bytes
{'s_id': 's106667222', 'p_id': 'p03730', 'u_id': 'u484062444', 'date': '1535657060', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main()\n{\n int a,b,c,f=0;\n // 整数の入力\n // スペース区切りの整数の入力\n scanf(\"%d %d %d\",&a,&b,&c);\n // 出力...
CDSS_57965
CDSS
i=59,c=100,f[9],m,x,s;main(y){for(;s?++f[y*12+x+";<=0H/1GI:>T$"[--s]]:~scanf("%d,%d,%d",&x,&y,&s)?s=s*4+1:++i<178?i%12<10?m=fmax(m,f[i]),f[i]?c--:1:1:!printf("%d\n%d\n",c,m););}
0
memory_bytes
{'s_id': 's499505998', 'p_id': 'p00026', 'u_id': 'u479246559', 'date': '1321065467', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '177'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\ni=59,c=100,f[9],m,x,s;main(y){for(;s?++f[y*12+x+\";<=0H/1GI:>T$\"[--s]]:~scanf(\"%d,%d,%d\",&x,&y,&s)?s=s*4+1:++i<178?i%12<10?m=fmax(m...
CDSS_46020
CDSS
#include <stdio.h> int main() { int a[30]; int w,n,i,an,bn,nazo; scanf("%d",&w); for(i=0;i<w;i++)a[i]=i+1; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d,%d",&an,&bn); nazo=a[an-1];a[an-1]=a[bn-1];a[bn-1]=nazo;//swap } for(i=0;i<w;i++)printf("%d\n",a[i]); return 0; }
596
memory_bytes
{'s_id': 's539188605', 'p_id': 'p00011', 'u_id': 'u310759044', 'date': '1356855190', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '276'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n\tint a[30];\n\tint w,n,i,an,bn,nazo;\n\tscanf(\"%d\",&w);\n\tfor(i=0;i<w;i++)a[i]=i+1;\n\tscanf(...
CDSS_481431
CDSS
#include <stdio.h> int main(){ int N; scanf("%d",&N); printf("%d\n",(N+1)/2); return 0; }
128
memory_bytes
{'s_id': 's037436583', 'p_id': 'p02759', 'u_id': 'u347116006', 'date': '1592180871', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '98'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 scanf(\"%d\",&N);\n printf(\"%d\\n\",(N+1)/2);\n return 0;\n}\nPredict its memory foo...
CDSS_314874
CDSS
#include <stdio.h> int main() { double r, pi = 3.141592653589; scanf("%lf", &r); printf("%f %f\n", pi * r * r, 2 * r * pi); return 0; }
648
memory_bytes
{'s_id': 's247193570', 'p_id': 'p02400', 'u_id': 'u349286385', 'date': '1482477151', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '153'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 double r, pi = 3.141592653589;\n scanf(\"%lf\", &r);\n printf(\"%f %f\\n\", pi * r * r...
CDSS_40543
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> #define PI 3.14159265358979323 //void quick(int *,long long,long long); //int comp(char *a,char *b); int main(){ int i,j; scanf("%d",&i); j=100000; while(i>0){ j=(float)j*1.05-0.1; j=(j/1000+1)*1000; i--; } printf("%d\n",j); //for(i=0;i<=100000...
592
memory_bytes
{'s_id': 's115784004', 'p_id': 'p00007', 'u_id': 'u846233849', 'date': '1381756929', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '343'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#define PI 3.14159265358979323\n\n//void quick(int *,long long,long long);...
CDSS_84797
CDSS
#include <stdio.h> #define FOUR 4 long long n_base(long long n,long long num); int main(void) { long long num; while (1) { scanf("%lld",&num); if (num==-1) break; printf("%lld\n",n_base(FOUR,num)); } return 0; } long long n_base(long long n,long long num) { long long i=1,ans...
600
memory_bytes
{'s_id': 's509573862', 'p_id': 'p00175', 'u_id': 'u408260374', 'date': '1394620747', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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#define FOUR 4\nlong long n_base(long long n,long long num);\nint main(void) {\n long long num;\n while (1) ...
CDSS_394014
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main() { int D; scanf("%d", &D); int c[27]; for(int i=1;i<=26;i++){ scanf("%d", &c[i]); } int s[366][27]; int smax[366]; int smax_idx[366]; int abc[27]={0}; for(int i=1;i<=26;i++){ abc[i]=1; } for(int i=1;i...
2,192
memory_bytes
{'s_id': 's850166462', 'p_id': 'p02618', 'u_id': 'u301600230', 'date': '1593396566', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '2192', 'code_size': '796'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 int D;\n scanf(\"%d\", &D);\n int...
CDSS_664070
CDSS
#include <stdio.h> #include <stdlib.h> int main(void) { int N, *t, *x, *y; scanf("%d", &N); t = (int*)malloc(sizeof(int*) * (N+1)); x = (int*)malloc(sizeof(int*) * (N+1)); y = (int*)malloc(sizeof(int*) * (N+1)); t[0] = x[0] = y[0] = 0; for (register int i = 1; i <= N; i++) { scanf("%d %d %d", &t[i], ...
1,280
memory_bytes
{'s_id': 's113204857', 'p_id': 'p03457', 'u_id': 'u299647642', 'date': '1516588254', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '23', 'memory': '1280', 'code_size': '577'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, *t, *x, *y;\n scanf(\"%d\", &N);\n t = (int*)malloc(sizeof(int...
CDSS_226642
CDSS
#include<stdio.h> #define H 250 #define NIL -200000 int main() { int A[H], i, n; for(i = 0 ; i < H ; i++) A[i] = NIL; scanf("%d",&n); for(i = 0 ; i < n ; i++) scanf("%d",&A[i]); for(i = 0 ; i < n ; i++){ printf("node %d: ",i+1); if(2*i+1 < n){ if(i ==0 ) printf("key = %d, left key = %d, right key =...
596
memory_bytes
{'s_id': 's495057350', 'p_id': 'p02287', 'u_id': 'u550679576', 'date': '1467178991', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '793'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 H 250\n#define NIL -200000\n \nint main()\n{\n\n\nint A[H], i, n;\n\nfor(i = 0 ; i < H ; i++)\n A[i] = N...
CDSS_528720
CDSS
#include <stdio.h> #include <stdlib.h> int main () { int N, K, Q; scanf("%d", &N); scanf("%d", &K); scanf("%d", &Q); int *A = malloc((1 + Q) * sizeof(int)); int *ans_count = calloc(1+N, sizeof(int)); for (int i = 1; i <= Q; i++) { scanf("%d", &A[i]); ans_count[A[i]]++; ...
1,280
memory_bytes
{'s_id': 's285896875', 'p_id': 'p02911', 'u_id': 'u619677540', 'date': '1590876901', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '1280', 'code_size': '491'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main () {\n int N, K, Q;\n scanf(\"%d\", &N);\n scanf(\"%d\", &K);\n scanf(...
CDSS_238835
CDSS
#include <stdio.h> #include <malloc.h> #define ALLCHECK(a,b) if(allcheck(a,b)) {RIGHT} #define CHECK(a,b) if(a != b) { WRONG } #define WRONG printf("No\n");return; #define RIGHT printf("Yes\n"); return; typedef struct { int N; int E; int W; int S; int D; int Z; } Dice; void Move(char dir,Dice ...
584
memory_bytes
{'s_id': 's787208777', 'p_id': 'p02385', 'u_id': 'u731440954', 'date': '1502390855', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '4158'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 <malloc.h>\n#define ALLCHECK(a,b) if(allcheck(a,b)) {RIGHT}\n#define CHECK(a,b) if(a != b) { WRONG }\n#de...
CDSS_122255
CDSS
// AOJ 2025: Eight Princes // 2017.11.8 bal4u@uu #include <stdio.h> long long dp1[10][101][2][2]; long long dp2[10][101][3][3]; int main() { int n, i, j, k; long long ans; dp1[0][1][0][0] = dp1[1][1][1][1] = 1; for (i = 0; i < 9; i++) for (j = 1; j < 100; j++) { for (k = 0; k < 2; k++) { dp1[i][j+1][k][0] ...
1,840
memory_bytes
{'s_id': 's737085626', 'p_id': 'p01150', 'u_id': 'u847467233', 'date': '1510148731', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1840', 'code_size': '1027'}
[ { "content": "Your task is to predict the memory 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 2025: Eight Princes\n// 2017.11.8 bal4u@uu\n\n#include <stdio.h>\n\nlong long dp1[10][101][2][2];\nlong long dp2[10][101][3][3]...