identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_109320
CDSS
#include<stdio.h> int main(){ char c; int w,h,k,i; scanf("%d %d",&h,&w); while(h--){ k=-1; for(i=0;i<w;i++){ scanf(" %c",&c); if(c=='c')k=0; else if(k+1)k++; if(i)printf(" "); printf("%d",k); } printf("\n"); } return 0; }
600
memory_bytes
{'s_id': 's626522798', 'p_id': 'p00533', 'u_id': 'u731027244', 'date': '1437120885', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '279'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n char c;\n int w,h,k,i;\n scanf(\"%d %d\",&h,&w);\n while(h--){\n k=-1;\n for(i=0;i<w;i++)...
CDSS_528749
CDSS
#include <stdio.h> int main() { long long int i,j,a,b,c,s[100000],s1[1000002],k; scanf("%lld",&a); scanf("%lld",&b); scanf("%lld",&c); j=b-c; for(i=0;i<a;i++) { s[i]=0; } for(i=0;i<c;i++) {scanf("%lld",&s1[i]); s[s1[i]-1]+=1; } for(i=0;i<a;i++) {...
3,712
memory_bytes
{'s_id': 's725987993', 'p_id': 'p02911', 'u_id': 'u353919145', 'date': '1587265794', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '14', 'memory': '3712', 'code_size': '455'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n\tlong long int i,j,a,b,c,s[100000],s1[1000002],k;\n\tscanf(\"%lld\",&a);\n scanf(\"%lld\",&b...
CDSS_353711
CDSS
#include <stdio.h> int main(void) { int m, f, r; char seiseki; while (1) { scanf("%d %d %d", &m, &f, &r); if (m == -1 && f == -1 && r == -1) break; if ((0 <= m + f && m + f < 30) || m == -1 || f == -1) { seiseki = 'F'; } else if (80 <= m + f && m + f <= 100) { seiseki = 'A'; } else if ...
2,112
memory_bytes
{'s_id': 's352332650', 'p_id': 'p02411', 'u_id': 'u183363727', 'date': '1563174254', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '572'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n\n\tint m, f, r;\n\tchar seiseki;\n\twhile (1)\n\t{\n\t\tscanf(\"%d %d %d\", &m, &f, &r);\n\n...
CDSS_38810
CDSS
#include<stdio.h> int main(){ int i=0; char a[20]; while(1){ scanf("%c",&a[i]); if(a[i]=='\n')break; i++; } i--; while(i>=0){ printf("%c",a[i]); i--; } printf("\n"); return 0; }
524
memory_bytes
{'s_id': 's764883544', 'p_id': 'p00006', 'u_id': 'u068244524', 'date': '1354979473', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '192'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tint i=0;\n\tchar a[20];\n\twhile(1){\n\tscanf(\"%c\",&a[i]);\n\tif(a[i]=='\\n')break;\n\ti++;\n\...
CDSS_264733
CDSS
#include<stdio.h> int main(){ int sec,h,m,s; scanf("%d", &sec); h = (int) sec / 3600; m = (int) (sec - h * 3600 ) / 60; s = sec - h * 3600 - m * 60; printf("%d:%d:%d\n", h,m,s); return 0; }
2,108
memory_bytes
{'s_id': 's931402947', 'p_id': 'p02390', 'u_id': 'u605054962', 'date': '1545188233', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '197'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tint sec,h,m,s;\n\tscanf(\"%d\", &sec);\n\th = (int) sec / 3600;\n\tm = (int) (sec - h * 3600 ) / 6...
CDSS_212228
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define MAX 100000 int partition(int *A, int p, int r) { int x = A[r]; int i, j; int tmp; i = p - 1; for (j= p; j < r; j++) { if (A[j] <= x) { i += 1; tmp = A[i]; A...
2,244
memory_bytes
{'s_id': 's842297535', 'p_id': 'p02276', 'u_id': 'u787709210', 'date': '1563600426', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2244', 'code_size': '1010'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 MAX 100000\n\nint partition(int *A, int p...
CDSS_513127
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> #include <math.h> #define MAX(X, Y) (((X) > (Y))? (X) : (Y)) #define MIN(X, Y) (((X) < (Y))? (X) : (Y)) int compare_int(const void *a, const void *b){ return *(long int*)b - *(long int*)a; // 大きい順 } int compare_int_small(const void *a, cons...
128
memory_bytes
{'s_id': 's944894719', 'p_id': 'p02848', 'u_id': 'u980869590', 'date': '1575003705', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '18', 'memory': '128', 'code_size': '2057'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <ctype.h>\n#include <math.h>\n#define MAX(X, Y) (((X) > (Y))?...
CDSS_363999
CDSS
#include<stdio.h> int main(void){ char str[1010]; int i,sum; scanf("%s",str); while(str[0]!='0'){ i=0; sum=0; while(str[i]){ sum+=str[i]-'0';i++; } printf("%d\n",sum); scanf("%s",str); } return 0; }
536
memory_bytes
{'s_id': 's046489450', 'p_id': 'p02416', 'u_id': 'u092139739', 'date': '1481784160', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '536', 'code_size': '218'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n\nint main(void){\n\n char str[1010];\n\nint i,sum;\n\n\nscanf(\"%s\",str);\n\n while(str[0]!='0'){\n\n i=0; su...
CDSS_367146
CDSS
#include <stdio.h> int main(void){ char s[201] = {}; char p[101] = {}; int i=0,j=0; int cs1 = 0, cp = 0,count=0,cs2 = 0; /*cs = s'count */ scanf("%s", s); scanf("%s", p); while(s[i++]) cs1++; i = 0; cs2 = cs1; while(p[i++]) cp++; i = 0; while(p[i]){ ...
524
memory_bytes
{'s_id': 's320061187', 'p_id': 'p02418', 'u_id': 'u963402991', 'date': '1439382090', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '670'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n char s[201] = {};\n char p[101] = {};\n int i=0,j=0;\n int cs1 = 0, cp = 0,count...
CDSS_309620
CDSS
#include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); printf("%d %d %f\n", (a/b), (a%b), ((double)a/(double)b)); return 0; }
636
memory_bytes
{'s_id': 's756068580', 'p_id': 'p02399', 'u_id': 'u347010700', 'date': '1474108262', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '143'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint\nmain()\n{\n\tint a, b;\n\tscanf(\"%d %d\", &a, &b);\n\n\tprintf(\"%d %d %f\\n\", (a/b), (a%b), ((double)a...
CDSS_423898
CDSS
#include<stdio.h> int main () { int book[105]={0}; int i,k,n; scanf("%d %d",&n,&k); while(k--) { scanf("%d",&i); int tmp; while(i--) { scanf("%d",&tmp); book[tmp]++; } } int sum=0; for(i=1;i<=n;i++)if(book[i]==0)sum++; p...
1,736
memory_bytes
{'s_id': 's940033867', 'p_id': 'p02688', 'u_id': 'u891447573', 'date': '1588554581', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1736', 'code_size': '353'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main ()\n{\n int book[105]={0};\n int i,k,n;\n scanf(\"%d %d\",&n,&k);\n while(k--)\n {\n ...
CDSS_36284
CDSS
#include<stdio.h> int GCD(int, int); main(){ int a, b, gcd, lcm; while(scanf("%d %d", &a, &b) != EOF){ gcd = GCD(a, b); lcm = a * (b / gcd); printf("%d %d\n", gcd, lcm); } return 0; } int GCD(int a, int b){ int c, d; if(b > a){ c = a; a = b; b = c; } d = b; while(1){ ...
0
memory_bytes
{'s_id': 's973092158', 'p_id': 'p00005', 'u_id': 'u278606251', 'date': '1322022729', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '434'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint GCD(int, int);\n\nmain(){\n int a, b, gcd, lcm;\n\n while(scanf(\"%d %d\", &a, &b) != EOF){\n gcd = GC...
CDSS_581118
CDSS
#include <stdio.h> #define max(a,b) (a>b?a:b) int main(){ int N; int i; int msize; int ans; scanf("%d",&N); int H[N]; for(i=0;i<N;i++){ scanf("%d",&H[i]); } ans=0; msize=0; for(i=0;i<N;i++){ msize=max(msize,H[i]); if(H[i]>=msize) ans++; } printf("%d",ans); return 0; }
128
memory_bytes
{'s_id': 's041661531', 'p_id': 'p03072', 'u_id': 'u369436268', 'date': '1555182454', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '302'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define max(a,b)\t(a>b?a:b)\n\nint main(){\n\tint N;\n\tint i;\n\tint msize;\n\tint ans;\n\t\n\tscanf(\"%d\",&...
CDSS_366109
CDSS
#include <stdio.h> #include <string.h> int main(void) { char buf[1200]; char c; int i; int answer[26]; memset(answer, 0, sizeof(answer)); while(fgets(buf, sizeof(buf), stdin) != NULL) { for(i = 0; buf[i] != '\0'; i++) { if(buf[i] >= 'A' && buf[i] <= 'Z') buf[i] = buf[i] + 'a' - 'A'; ...
524
memory_bytes
{'s_id': 's910146267', 'p_id': 'p02417', 'u_id': 'u146752763', 'date': '1503222859', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '452'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void) {\n char buf[1200];\n char c;\n int i;\n int answer[26];\n memset(ans...
CDSS_495980
CDSS
#include <stdio.h> int main(void) { long long H, x, i; scanf("%lld", &H); i=0; while (H!=0) { H/=2; i++; } x=1; while (i!=0) { x*=2; i--; } x--; printf("%lld", x); return 0; }
128
memory_bytes
{'s_id': 's302568816', 'p_id': 'p02786', 'u_id': 'u279160680', 'date': '1580069750', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '252'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n long long H, x, i;\n scanf(\"%lld\", &H);\n i=0;\n while (H!=0) {\n H/=2...
CDSS_434154
CDSS
#include <stdio.h> int main(){ int a,b,c,d; scanf("%d %d %d %d",&a,&b,&c,&d); while(1){ c=c-b; if(c<=0){ printf("Yes\n"); break; } a=a-d; if(a<=0){ printf("No\n"); break; } } return 0; }
1,620
memory_bytes
{'s_id': 's757684528', 'p_id': 'p02700', 'u_id': 'u323051878', 'date': '1587950476', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1620', 'code_size': '317'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int a,b,c,d;\n scanf(\"%d %d %d %d\",&a,&b,&c,&d);\n while(1){\n c=c-b;\n ...
CDSS_147045
CDSS
void insertionSort(int A[], const int N) { int i, j; for( i = 0; i < N; ++i ){ int tmp = A[i]; for( j = i-1; -1 < j && tmp < A[j]; --j ){ A[j+1] = A[j]; } A[j+1] = tmp; //出力 for( j = 0; j < N; ++j ){ printf("%d", A[j]); if( j ...
2,052
memory_bytes
{'s_id': 's321959136', 'p_id': 'p02255', 'u_id': 'u367105872', 'date': '1518952679', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '571'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\nvoid insertionSort(int A[], const int N)\n{\n int i, j;\n\n for( i = 0; i < N; ++i ){\n int tmp = A[i];\n for( j...
CDSS_701298
CDSS
#include <stdio.h> #include <stdlib.h> int compare_int(const void *a, const void *b){ return *(int*)a - *(int*)b; } int main(){ int n, a[100] = {0}; scanf("%d", &n); for(int i=0; i<n; i++){ scanf("%d", &a[i]); } qsort( a, n, sizeof(int), compare_int ); printf("%d", a[n-1]-a[0]); return 0; }
1,704
memory_bytes
{'s_id': 's263155171', 'p_id': 'p03694', 'u_id': 'u858806530', 'date': '1595029969', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '1704', 'code_size': '317'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint compare_int(const void *a, const void *b){\n return *(int*)a - *(int*)b;\n}\n\nint m...
CDSS_594069
CDSS
#include<stdio.h> int main(void){ int N; scanf("%d",&N); double x; char u[3]; double sum = 0; for(int i=0;i<N;i++){ scanf("%lf %s",&x,u); if(u[0]=='B'){ x = x*380000; //printf("%lf",x); } sum += x; } printf("%lf",sum); return 0...
128
memory_bytes
{'s_id': 's195839239', 'p_id': 'p03110', 'u_id': 'u862931080', 'date': '1551039455', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '323'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int N;\n scanf(\"%d\",&N);\n double x;\n char u[3];\n double sum = 0;\n for...
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 should 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 ...
CDSS_272908
CDSS
#include <stdio.h> int main() { int a, b; scanf("%d %d",&a,&b); if (a == b) { printf("a == b\n"); } else if (a > b) { printf("a > b\n"); } else if (a < b) { printf("a < b\n"); } return 0; }
2,104
memory_bytes
{'s_id': 's555972356', 'p_id': 'p02391', 'u_id': 'u987655192', 'date': '1526658605', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '203'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main() {\n\tint a, b;\n\tscanf(\"%d %d\",&a,&b);\n\tif (a == b) {\n\t\tprintf(\"a == b\\n\");\n\t} else if (...
CDSS_127978
CDSS
// AOJ 2781: Help the Princess! // 2018.1.31 bal4u #include <stdio.h> #include <math.h> #define QMAX 40000 typedef struct { int t, r, c; } QUE; QUE que[QMAX]; int qsize; #define PARENT(i) ((i)>>1) #define LEFT(i) ((i)<<1) #define RIGHT(i) (((i)<<1)+1) void min_heapify(int i) { int l, r, min; QUE qt; l = LEFT...
2,080
memory_bytes
{'s_id': 's655588170', 'p_id': 'p01881', 'u_id': 'u847467233', 'date': '1517365448', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2080', 'code_size': '1961'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n// AOJ 2781: Help the Princess!\n// 2018.1.31 bal4u\n\n#include <stdio.h>\n#include <math.h>\n\n#define QMAX 40000\ntypedef struct {...
CDSS_693779
CDSS
#include<stdio.h> int main(void) { int n; int i=1; int num; int count; int max=1; scanf("%d",&n); if(n>=2) max=2; if(n>=4) max=4; if(n>=8) max=8; if(n>=16) max=16; if(n>=32) max=32; if(n>=64) max=64; printf("%d",max); }
128
memory_bytes
{'s_id': 's556732655', 'p_id': 'p03644', 'u_id': 'u336943920', 'date': '1558377350', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '256'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int n;\n int i=1;\n int num;\n int count;\n int max=1;\n scanf(\"%d\",&n);\n if(n>=2)\n ma...
CDSS_641753
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> //大小比較(大) long long int big(long long int a, long long int b) { if (a >= b) { return a; } else { return b; } } //大小比較(小) long long int small(long long int a, long long int b) { if (a >= b) { return b; } else { return a; } } main() { long long in...
128
memory_bytes
{'s_id': 's592112110', 'p_id': 'p03337', 'u_id': 'u018872912', 'date': '1544387519', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '467'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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//大小比較(大)\nlong long int big(long long int a, long long int b) {\n\tif (a...
CDSS_609927
CDSS
#include<stdio.h> int main() { int str[10]; int i = 0; int j, ch, ans, res; while((ch = fgetc(stdin)) != '\n'){ str[i] = ch - '0'; i++; } res = 753; for(j = 0; j < i-2; j++){ ans = str[j]*100 + str[j+1]*10 + str[j+2] - 753; if(ans < 0) ans = -ans; if(...
128
memory_bytes
{'s_id': 's111615227', 'p_id': 'p03211', 'u_id': 'u816645498', 'date': '1545954369', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '389'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int str[10];\n int i = 0;\n int j, ch, ans, res;\n while((ch = fgetc(stdin)) != '\\...
CDSS_663482
CDSS
//set many funcs template #include<stdio.h> #include<string.h> #include<stdlib.h> #include<stdbool.h> #define inf 1072114514 #define llinf 4154118101919364364 #define mod 1000000007 #define pi 3.1415926535897932384 int max(int a,int b){if(a>b){return a;}return b;} int min(int a,int b){if(a<b){return a;}return b;} int ...
128
memory_bytes
{'s_id': 's335705103', 'p_id': 'p03456', 'u_id': 'u721060623', 'date': '1516623965', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '3262'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n//set many funcs template\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<stdbool.h>\n#define inf 1072114514\n#...
CDSS_130935
CDSS
#include<stdio.h> int F[45]; void fibonacci(int n) { int i; for(i=0;i<=n;i++) F[i]=0; F[0]=1; F[1]=1; for(i=2;i<=n;i++) { F[i]=F[i-2]+F[i-1]; } } int main() { int n; scanf("%d",&n); fibonacci(n); printf("%d\n",F[n]); return 0; }
2,104
memory_bytes
{'s_id': 's524246404', 'p_id': 'p02233', 'u_id': 'u987115153', 'date': '1547994839', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '277'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint F[45];\n\n\nvoid fibonacci(int n)\n{\n int i;\n for(i=0;i<=n;i++)\n F[i]=0;\n F[0]=1;\n F[1]=1;\n for...
CDSS_721117
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> int main(){ int N = 200000; int start; int end; char S[N]; scanf("%s",S); for(int i = 0; i < strlen(S); i++){ if(S[i] == 'A'){ start = i; break; } } for (int j = strlen(S); j > 0; j--){ if(S[j] == 'Z'){ end = j; break; } } print...
384
memory_bytes
{'s_id': 's619771161', 'p_id': 'p03814', 'u_id': 'u174931884', 'date': '1582965845', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '384', 'code_size': '362'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\nint main(){\n\tint N = 200000;\n\tint start;\n\tint end;\n\tchar S[N]...
CDSS_717169
CDSS
#include<stdio.h> int main(void) { int n, x, y, ans; scanf("%d", &n); x = 800 * n; y = 200 * (n / 15); ans = x - y; printf("%d\n", ans); }
128
memory_bytes
{'s_id': 's277513754', 'p_id': 'p03795', 'u_id': 'u678875535', 'date': '1487471111', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '191'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void) {\n\n int n, x, y, ans;\n scanf(\"%d\", &n);\n\n x = 800 * n;\n y = ...
CDSS_148572
CDSS
#include<stdio.h> int main() { int a[1000], n, i, j, k, v; scanf("%d", &n); for(k = 0; k < n; k++) { scanf("%d",&a[k]); } for(k = 0; k < n-1; k++) { printf("%d ",a[k]); } printf("%d\n", a[n-1]); for(i = 1; i < n; i++) { v = a[i]; j = i - 1; while (j >= 0 && ...
2,136
memory_bytes
{'s_id': 's317117860', 'p_id': 'p02255', 'u_id': 'u520284725', 'date': '1529312554', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2136', 'code_size': '488'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int a[1000], n, i, j, k, v;\n scanf(\"%d\", &n);\n for(k = 0; k < n; k++)\n {\n scanf(...
CDSS_201189
CDSS
#include<stdio.h> int n, A[50]; int solve(int i, int m) { if (m == 0) return 1; if (i >= n) return 0; int res = solve(i + 1, m) || solve(i + 1, m - A[i]); return res; } int main() { int q, M, i; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &A[i]); } scanf("%d", &q); for (i = 0; i < q; i++) { ...
2,048
memory_bytes
{'s_id': 's355407074', 'p_id': 'p02271', 'u_id': 'u579523547', 'date': '1557839851', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '500', 'memory': '2048', 'code_size': '433'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint n, A[50];\n\nint solve(int i, int m) {\n\tif (m == 0) return 1;\n\tif (i >= n) return 0;\n\tint res = solve...
CDSS_701074
CDSS
#include <stdio.h> int main() { int r,g,b; scanf("%d %d %d", &r, &g, &b); if(((r * 100) + (g * 10) + b) % 4 == 0){ printf("YES"); } else { printf("NO"); } return 0; }
128
memory_bytes
{'s_id': 's990442830', 'p_id': 'p03693', 'u_id': 'u824019311', 'date': '1499806444', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '264'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main() {\n int r,g,b;\n scanf(\"%d %d %d\", &r, &g, &b); \n \n\n if(((...
CDSS_279754
CDSS
#include<stdio.h> int main(){ int a,b,c; scanf("%d %d %d",&a ,&b ,&c); if(a < b && b < c){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
2,044
memory_bytes
{'s_id': 's093863796', 'p_id': 'p02392', 'u_id': 'u000124292', 'date': '1526893247', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '165'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n int main(){\n int a,b,c;\n scanf(\"%d %d %d\",&a ,&b ,&c);\n if(a < b && b < c){\n printf(\"Yes\\n\");\n }...
CDSS_340617
CDSS
#include <stdio.h> int main(void) { int n, i = 3, x; scanf(" %d", &n); while(i <= n){ x = i; if(x % 3 == 0){ printf(" %d", i); }else{ while(x > 2){ if(x % 10 == 3){ printf(" %d", i); break; }else{ x = x / 10; } } } i++; } printf("\n"); return 0; }
2,104
memory_bytes
{'s_id': 's140307638', 'p_id': 'p02406', 'u_id': 'u445705817', 'date': '1590117662', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '310'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint n, i = 3, x;\n\t\n\tscanf(\" %d\", &n);\n\t\n\twhile(i <= n){\n\t\tx = i;\n\t\tif(x % ...
CDSS_691907
CDSS
/* ex6_2 moka223711 */ #include <stdio.h> #include <string.h> #define SIZE 101 // 文字数制限が100なので配列の大きさは100+1 int main(void){ char str[SIZE]; int len; scanf("%s", str); // strlen()は文字列の長さを返す len = strlen(str); // 文字列の最初の文字 str[0] // 文字列の長さから最初の文字と最後の文字を抜いた len-2 // 文字列の最後の文字 str[l...
128
memory_bytes
{'s_id': 's453369569', 'p_id': 'p03636', 'u_id': 'u242706056', 'date': '1591846581', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '548'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n/* ex6_2\n moka223711 */\n\n#include <stdio.h>\n#include <string.h>\n#define SIZE 101 // 文字数制限が100なので配列の大きさは100+1\n\nint main(void...
CDSS_25286
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int a[10],i,j,k,temp; for(i=0;i<10;i++) scanf("%d",&a[i]); for(i=1;i<10;i++) { temp=a[i]; j=i-1; while(temp<a[j] && (j>=0)) { a[j+1]=a[j]; j=j-1; } a[j+1]=temp; } f...
600
memory_bytes
{'s_id': 's272053011', 'p_id': 'p00001', 'u_id': 'u011621222', 'date': '1383056984', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '381'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main()\n{\n int a[10],i,j,k,temp;\n for(i=0;i<10;i++)\n scanf(\"%d\",&a[i]...
CDSS_238005
CDSS
#include <stdio.h> typedef struct { short surf[6]; short top; short top_add; short front; short front_add; } dice; int main(void){ dice dice1 = {0,0}; short q; register short i,j; for(i = 0;i < 6;i++){ scanf("%d",&dice1.surf[i]); } scanf("%d",&q); for(i = 0;i < q;i++){ scanf("%d",&dice1.top); for...
596
memory_bytes
{'s_id': 's378206734', 'p_id': 'p02384', 'u_id': 'u548668974', 'date': '1430120938', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '2614'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\ntypedef struct {\n\tshort surf[6];\n\tshort top;\n\tshort top_add;\n\tshort front;\n\tshort front_add;\n} dice...
CDSS_94408
CDSS
#include<stdio.h> int main(void) { int d,l,x,y,n; scanf("%d",&d); scanf("%d",&l); x=d/l; y=d%l; n=x+y; printf("%d\n",n); return 0; }
2,112
memory_bytes
{'s_id': 's318422248', 'p_id': 'p00312', 'u_id': 'u387501704', 'date': '1536910310', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '144'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint d,l,x,y,n;\n\tscanf(\"%d\",&d);\n\tscanf(\"%d\",&l);\n\tx=d/l;\n\ty=d%l;\n\tn=x+y;\n\tpr...
CDSS_182833
CDSS
#include<stdio.h> #include<string.h> #define N 1000000 int main(){ int n, q, time[N], i, sumT1=0, sumT2=0, T; char name[N][10]; scanf("%d%d", &n, &q); for(i=0; i<n; i++) scanf("%s%d", name[i], &time[i]); for(i=0; i<n; i++) sumT1 += time[i]; //printf("%d\n", sumT1); i=0; while(sumT1 != ...
4,400
memory_bytes
{'s_id': 's598324346', 'p_id': 'p02264', 'u_id': 'u892925213', 'date': '1529991891', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '4400', 'code_size': '604'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n#define N 1000000\n\nint main(){\n int n, q, time[N], i, sumT1=0, sumT2=0, T;\n char name[N...
CDSS_499803
CDSS
#include <stdio.h> int main(void){ putchar(getchar()+1); return 0; }
1,480
memory_bytes
{'s_id': 's535854760', 'p_id': 'p02801', 'u_id': 'u031580885', 'date': '1594971698', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1480', 'code_size': '71'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\tputchar(getchar()+1);\n\treturn 0;\n}\nPredict its memory footprint.", "role": "user" ...
CDSS_288261
CDSS
#include<stdio.h> int main() { int a, b,c; scanf("%d %d %d",&a, &b, &c); int t; if(a > b){ t = a; a = b; b = t; } if(a > c){ t = a; a = c; c = t; } if(b > c){ t = b; b = c; c = t; } printf("%d %d %d\n",a, b, c); } //時分秒(a<b<c 3 2 1 1 2 2
2,072
memory_bytes
{'s_id': 's902251966', 'p_id': 'p02393', 'u_id': 'u435394733', 'date': '1568809556', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2072', 'code_size': '274'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\t\n\tint a, b,c;\n\t\n\tscanf(\"%d %d %d\",&a, &b, &c);\n\tint t;\n\tif(a > b){\n\t\tt = a; a = b...
CDSS_157763
CDSS
#include<stdio.h> #include<stdlib.h> int IsPrime(int); int main() { int i,count=0,n,*sosu; scanf("%d",&n); sosu = (int *)malloc(n * sizeof (int)); for(i=n-1;i>=0;i--){ scanf("%d",&sosu[i]); if(IsPrime(sosu[i]) == 1) count++; } printf("%d\n",count); return 0; ...
2,072
memory_bytes
{'s_id': 's218422702', 'p_id': 'p02257', 'u_id': 'u147767288', 'date': '1529051498', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2072', 'code_size': '579'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\nint IsPrime(int);\nint main() {\n int i,count=0,n,*sosu;\n scanf(\"%d\",&n);\n \n s...
CDSS_725743
CDSS
#include<stdio.h> long long llmax(long long a,long long b){if(a>b){return a;}return b;} long long llmin(long long a,long long b){if(a<b){return a;}return b;} int main(void){ long long int q,i,o,t,j,l,s,z,r1=0,r2=0; scanf("%lld%lld%lld%lld%lld%lld%lld",&i,&o,&t,&j,&l,&s,&z); r1+=(o+(i/2)*2+(j/2)*2+(l/2)*2); if(i%2...
128
memory_bytes
{'s_id': 's683069647', 'p_id': 'p03840', 'u_id': 'u721060623', 'date': '1516941401', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '478'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nlong long llmax(long long a,long long b){if(a>b){return a;}return b;}\nlong long llmin(long long a,long long b)...
CDSS_280612
CDSS
int main(){ int a, b, c; scanf("%d%d%d", &a, &b, &c); if(a < b && b < c) printf("Yes\n"); else printf("No\n"); return 0; }
2,036
memory_bytes
{'s_id': 's988176637', 'p_id': 'p02392', 'u_id': 'u040291437', 'date': '1575261010', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '166'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\nint main(){\n int a, b, c;\n \n scanf(\"%d%d%d\", &a, &b, &c);\n \n if(a < b && b < c)\n printf(\"Yes\\n\");\n ...
CDSS_700751
CDSS
#include <stdio.h> int main(void) { int r, g, b; int seisu; if (scanf("%d%d%d", &r, &g, &b) != 3) return 1; seisu = r * 100 + g * 10 + b; puts(seisu % 4 == 0 ? "YES" : "NO"); return 0; }
128
memory_bytes
{'s_id': 's084762007', 'p_id': 'p03693', 'u_id': 'u646118499', 'date': '1576390027', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '194'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint r, g, b;\n\tint seisu;\n\tif (scanf(\"%d%d%d\", &r, &g, &b) != 3) return 1;\n\tseisu =...
CDSS_516901
CDSS
#include <stdio.h> #include <string.h> int max(int a, int b){ if(a<b)return b; else return a; } int min(int a, int b){ if(a<b)return a; else return b; } int main(void){ char s[500000+5]; scanf("%s", s); int n=strlen(s); long int ans=0; int i=0; while(i<n){ int l, r; ...
2,212
memory_bytes
{'s_id': 's520336413', 'p_id': 'p02873', 'u_id': 'u972042735', 'date': '1597085137', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '2212', 'code_size': '530'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint max(int a, int b){\n if(a<b)return b;\n else return a;\n}\nint min(int a, int b){...
CDSS_316023
CDSS
#include<stdio.h> int main(void) { double a; scanf("%lf", &a); printf("%f %f\n", a*a*3.141592653589793, 2*a*3.141592653589793); return 0; }
1,796
memory_bytes
{'s_id': 's175255887', 'p_id': 'p02400', 'u_id': 'u908141724', 'date': '1511274341', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1796', 'code_size': '148'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void) {\n\n\tdouble a;\n\n\tscanf(\"%lf\", &a);\n\t\n\tprintf(\"%f %f\\n\", a*a*3.141592653589793, 2*a...
CDSS_447799
CDSS
#include<stdio.h> #include<stdlib.h> int main(void){ int n,i,result=0; scanf("%d",&n); while(n>0){ if(n % 10 == 7)result = 1; n/=10; } if(n==7) result = 1; if(result==1) printf("Yes"); else printf("No"); return 0; }
1,736
memory_bytes
{'s_id': 's621575813', 'p_id': 'p02711', 'u_id': 'u523462306', 'date': '1591230194', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1736', 'code_size': '243'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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,i,result=0;\n \n scanf(\"%d\",&n);\n while(n>0){\n \tif(n % 1...
CDSS_307068
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int a, b, c; int k; int n; scanf("%d%d%d", &a, &b, &c); n = 0; for (k = a; k <= b; k++) { if (c % k == 0) n++; } printf("%d\n", n); return 0; }
2,108
memory_bytes
{'s_id': 's108637597', 'p_id': 'p02398', 'u_id': 'u542576355', 'date': '1530696709', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '209'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main()\n{\n\tint a, b, c;\n\tint k;\n\tint n;\n\n\tscanf(\"%d%d%d\", &a, &b, &c);\n\t...
CDSS_216982
CDSS
#include<stdio.h> #define MAX 100005 #define NIL -1 struct Node_struct{int p, l, r;}; /*p: 親(parent), l: 一番左の子(left child), r:右の兄弟(right sibling)*/ typedef struct Node_struct Node; Node T[MAX]; int D[MAX]; void print(int u){ int i,c; printf("node %d: parent = %d, depth = %d, ",u,T[u].p,D[u]); if(D[u]==0)printf(...
6,416
memory_bytes
{'s_id': 's911471615', 'p_id': 'p02279', 'u_id': 'u648561061', 'date': '1547126211', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '6416', 'code_size': '1513'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define MAX 100005\n#define NIL -1\nstruct Node_struct{int p, l, r;}; /*p: 親(parent), l: 一番左の子(left child), r:右の兄...
CDSS_503430
CDSS
#include<stdio.h> int main() { char S[100], T[100]; scanf("%s %s",&S,&T); printf("%s%s\n",T,S); return 0; }
1,728
memory_bytes
{'s_id': 's134667100', 'p_id': 'p02817', 'u_id': 'u018679195', 'date': '1595996787', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1728', 'code_size': '124'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n char S[100], T[100];\n scanf(\"%s %s\",&S,&T);\n printf(\"%s%s\\n\",T,S);\n return 0;...
CDSS_665937
CDSS
#include<stdio.h> #include<stdint.h> #include<inttypes.h> typedef int32_t i32; void run (void) { i32 n, sum; scanf ("%" SCNi32 "%" SCNi32, &n, &sum); for (i32 x = 0, sx = 0; x <= n; ++x, sx += 10000) { for (i32 y = 0, sy = sx; y <= n - x; ++y, sy += 5000) { for (i32 z = 0, sz = sy; z <= n - x - y; ++z...
128
memory_bytes
{'s_id': 's255631652', 'p_id': 'p03471', 'u_id': 'u425248533', 'date': '1563665103', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '881', 'memory': '128', 'code_size': '558'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdint.h>\n#include<inttypes.h>\n\ntypedef int32_t i32;\n\nvoid run (void) {\n i32 n, sum;\n scanf (\"...
CDSS_214209
CDSS
#include <stdio.h> #define NIL -1 typedef struct{ int left,right,parent; }Tree; void setDepth(int ,int ); int n,depth[100000]; Tree Node[100000]; int main(void){ int i,j,node,parent,child,prev_child; scanf("%d",&n); for(i=0;i<n;i++){ Node[i].left=NIL; Node[i].right=NIL; Node[i].parent=NIL; } ...
6,540
memory_bytes
{'s_id': 's676447130', 'p_id': 'p02279', 'u_id': 'u483179571', 'date': '1530854561', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '6540', 'code_size': '1564'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define NIL -1\ntypedef struct{\n int left,right,parent;\n}Tree;\nvoid setDepth(int ,int );\n\nint n,depth[1000...
CDSS_116485
CDSS
#include<stdio.h> int M[50][50]; void visit(int i, int j, int x, int y){ M[i][j] = 0; if(M[i][j+1] == 1 && j+1<x){ visit(i,j+1,x ,y); // M[i][j+1]=0; } if(M[i+1][j+1] == 1&& j+1<x && i+1<y){ visit(i+1,j+1,x,y); // M[i+1][j+1]=0; } if(M[i+1][j] == 1 && i+1<y){ visit(i+1,j, x,...
0
memory_bytes
{'s_id': 's461148610', 'p_id': 'p00741', 'u_id': 'u125634664', 'date': '1310196609', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '1220'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint M[50][50];\n\nvoid visit(int i, int j, int x, int y){\n \n M[i][j] = 0; \n \n \n if(M[i][j+1] == 1 && ...
CDSS_335302
CDSS
#include<stdio.h> int main(void){ int h, w, i, j; for(;;){scanf("%d %d", &h, &w); if(h == 0 && w == 0){ break;} for(i=1;i<=h;i++){ for(j=1;j<=w;j++){ if((i+j)%2==0){ printf("#"); } else if((i+j)%2==1){ printf("."); } } printf("\n"); } printf("\n"); } return 0; }
2,128
memory_bytes
{'s_id': 's146218507', 'p_id': 'p02405', 'u_id': 'u351440844', 'date': '1556005969', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2128', 'code_size': '311'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\nint h, w, i, j;\n\tfor(;;){scanf(\"%d %d\", &h, &w);\n\t\tif(h == 0 && w == 0){\n\t\t\tbreak;}\n...
CDSS_212101
CDSS
#include <stdio.h> #include <stdlib.h> int A[100001],i,j,a,p; int partition(int A[],int p,int r){ int temp,x=A[r]; i=p-1; for(j=p;j<=r-1;j++){ if(A[j]<=x){ i++; temp=A[i]; A[i]=A[j]; A[j]=temp; } } temp=A[i+1]; A[i+1]=A[r]; A[r]=temp; return i+1; } int main(){ int ...
2,156
memory_bytes
{'s_id': 's865148077', 'p_id': 'p02276', 'u_id': 'u027205564', 'date': '1577091314', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2156', 'code_size': '560'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\nint A[100001],i,j,a,p;\nint partition(int A[],int p,int r){\n int temp,x=A[r];\n i=p-1;\n...
CDSS_134822
CDSS
#include<stdio.h> int main(){ int n,i,v,u,j,k; int G[100][100]; scanf("%d",&n); for(i=0;i<n;i++){ for(j=0;j<n;j++){ G[i][j] = 0; } } for(i=0;i<n;i++){ scanf("%d%d",&u,&v); for(j=0;j<v;j++){ scanf("%d",&k); G[u-1][k-1] = 1; } } for(i=0;i<n;i++){ for(j=0;j<n;j++...
648
memory_bytes
{'s_id': 's962879005', 'p_id': 'p02237', 'u_id': 'u278501900', 'date': '1468374475', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '419'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n,i,v,u,j,k;\n int G[100][100];\n\n scanf(\"%d\",&n);\n\n for(i=0;i<n;i++){\n for(j=0;j<...
CDSS_746293
CDSS
#include<stdio.h> #include<math.h> void QSort(long long x[ ], int left, int right); void Swap(long long x[ ], int i, int j); int main(){ int n; scanf("%d",&n); long long l[n*2]; for(int i=0;i<n*2;i++){ scanf("%lld",&l[i]); } QSort(l,0,2*n-1); long long k=0; for(int i=0;i<n;...
128
memory_bytes
{'s_id': 's818901723', 'p_id': 'p04047', 'u_id': 'u223904637', 'date': '1521664047', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1914'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n \nvoid QSort(long long x[ ], int left, int right);\nvoid Swap(long long x[ ], int i, int j);\n...
CDSS_17711
CDSS
#include<stdio.h> int main(){ int i,j; for(i=1;i<=9;i++) for(j=1;j<=9;j++) printf("%dx%d=%d\n",i,j,i*j); return 0; }
524
memory_bytes
{'s_id': 's225327688', 'p_id': 'p00000', 'u_id': 'u026167858', 'date': '1418721885', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '127'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tint i,j;\n\n\tfor(i=1;i<=9;i++)\n\t\tfor(j=1;j<=9;j++)\n\t\t\tprintf(\"%dx%d=%d\\n\",i,j,i*j);\n...
CDSS_235123
CDSS
#include <stdio.h> #define _USE_MATH_DEFINES #include <math.h> int main(){ int a, b, angle; double s, l, h; scanf("%d %d %d", &a, &b, &angle); h=b*sin(angle*M_PI/180.0); s=a*h/2; l=a+b+sqrt((a*a+b*b-2*a*b*cos(angle*M_PI/180.0))); printf("%f\n", s); printf("%f\n", l); ...
2,076
memory_bytes
{'s_id': 's233973517', 'p_id': 'p02380', 'u_id': 'u064125291', 'date': '1525742116', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2076', 'code_size': '365'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h> \n#define _USE_MATH_DEFINES \n#include <math.h> \n int main(){ \n int a, b, angle; \n double s, l, h; \n...
CDSS_238977
CDSS
#include <stdio.h> #include <math.h> #include <stdlib.h> #include <string.h> int i, k; int a[7], b[7]; int t; char str[100]; void input() { //さいころに数字を割り当てる for (i = 1; i <= 6; i++){ scanf("%d", &a[i]); } for (i = 1; i <= 6; i++){ scanf("%d", &b[i]); } } void divide() { if (b[...
2,100
memory_bytes
{'s_id': 's316817787', 'p_id': 'p02385', 'u_id': 'u520329149', 'date': '1587534989', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '3301'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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#include <string.h>\n\nint i, k;\nint a[7], b[7];\nint t;\nchar str[100]...
CDSS_97598
CDSS
#include<stdio.h> int main(void) { int n,i,s1,s2,s3,w,sum; char x[6]; while(1){ scanf("%d",&n); if(n==0) break; s1=1; s2=2; s3=3; sum=s1; for(i=0;i<n;i++){ scanf("%s",x); if(x[0]=='N'){ w=s2; s2=7-s1; s1=w; } if(x[0]=='E'){ w=s1; s1=7-s3; s3=w; } if(x[0]=='S'){ w=s1; s1=7-s2; ...
1,744
memory_bytes
{'s_id': 's578381355', 'p_id': 'p00425', 'u_id': 'u376086644', 'date': '1510043851', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1744', 'code_size': '584'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint n,i,s1,s2,s3,w,sum;\n\tchar x[6];\n\twhile(1){\n\t\tscanf(\"%d\",&n);\n\t\tif(n==0) brea...
CDSS_314509
CDSS
#include <stdio.h> #include <math.h> int main(void) { double r,l,S; scanf("%lf",&r); S=M_PI*r*r; l=2*M_PI*r; printf("%.6lf %.6lf",S,l); return 0; }
652
memory_bytes
{'s_id': 's656758208', 'p_id': 'p02400', 'u_id': 'u728581736', 'date': '1477622605', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '652', 'code_size': '154'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(void)\n{\n\tdouble r,l,S;\n\tscanf(\"%lf\",&r);\n\tS=M_PI*r*r;\n\tl=2*M_PI*r;\n\tp...
CDSS_558410
CDSS
#include <stdio.h> typedef long long ll; ll gcd(ll a, ll b){ if(a == 0 || b == 0) return a + b; if(a >= b) return gcd(b, a % b); else return gcd(b, a); } int main(int argc, char *argv[]) { long long a, b, c, d; scanf("%lld %lld %lld %lld", &a, &b, &c, &d); ll lcm = (c * d) / gcd(c, d); ll ans = (b / c...
128
memory_bytes
{'s_id': 's472794158', 'p_id': 'p02995', 'u_id': 'u801102476', 'date': '1561231211', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '488'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\ntypedef long long ll;\n\nll gcd(ll a, ll b){\n if(a == 0 || b == 0) return a + b;\n if(a >= b) return gcd(b, a...
CDSS_487546
CDSS
#include<stdio.h> #include<stdlib.h> int main(){ int A,B,C; scanf("%d",&A); scanf("%d",&B); scanf("%d",&C); if( A==B && A != C){ printf("Yes\n"); } else if(A==C && A != B){ printf("Yes\n"); } else if(B==C && B != A){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }
128
memory_bytes
{'s_id': 's844143681', 'p_id': 'p02771', 'u_id': 'u174931884', 'date': '1581890506', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '297'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\tint A,B,C;\n\n\tscanf(\"%d\",&A);\n\tscanf(\"%d\",&B);\n\tscanf(\"%d\",&C);\...
CDSS_653843
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> #include <math.h> int main() { int n, m; scanf("%d", &n); char s[100][11], t[100][11]; int i, j, k; for (i=0; i<n; i++) { scanf("%s", s[i]); } scanf("%d", &m); for (i=0; i<m; i++) { s...
128
memory_bytes
{'s_id': 's701531394', 'p_id': 'p03408', 'u_id': 'u214304095', 'date': '1541201805', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '817'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include <math.h>\n\nint main()\n{\n int n, m...
CDSS_351680
CDSS
#include <stdio.h> #define MAX 100 int n, m; int a[MAX][MAX]; int b[MAX]; int main(void) { int i, j; if (scanf("%d%d", &n, &m) != 2) return 1; for (i = 0; i < n; i++) { for (j = 0; j < m; j++) { if (scanf("%d", &a[i][j]) != 1) return 1; } } for (i = 0; i < m; i++) { if (scanf("%d", &b[i]) != 1) return ...
2,140
memory_bytes
{'s_id': 's733877230', 'p_id': 'p02410', 'u_id': 'u543521645', 'date': '1537842767', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '498'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define MAX 100\n\nint n, m;\nint a[MAX][MAX];\nint b[MAX];\n\nint main(void) {\n\tint i, j;\n\tif (scanf(\"%d...
CDSS_547085
CDSS
#include<stdio.h> int main() { unsigned long long r,ans; scanf ("%lld",&r); ans = 3*(r*r); printf("%lld\n",ans); return 0; }
128
memory_bytes
{'s_id': 's042520071', 'p_id': 'p02969', 'u_id': 'u623364320', 'date': '1563685165', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '149'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n unsigned long long r,ans;\n\n scanf (\"%lld\",&r);\n\n ans = 3*(r*r);\n\n printf(\"%l...
CDSS_44304
CDSS
#include<stdio.h> #define MAX 1000000 int main(){ char a[MAX]={1,1}; int i,j,n,x; for(i=2;i<MAX;i++){ for(j=2;i*j<MAX;j++)if(!a[i])a[i*j]=1; } while(scanf("%d",&n)!=EOF){ x=0; for(i=0;i<=n;i++)if(!a[i])x++; printf("%d\n",x); } return 0; }
1,576
memory_bytes
{'s_id': 's395930042', 'p_id': 'p00009', 'u_id': 'u068244524', 'date': '1355280873', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '1576', 'code_size': '269'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define MAX 1000000\nint main(){\n char a[MAX]={1,1};\n int i,j,n,x;\n\n for(i=2;i<MAX;i++){\n for(j=2;i*j<...
CDSS_36194
CDSS
#include <stdio.h> int GCD(int a,int b){ int c=1; while(c){ c=a%b; a=b; b=c; } return a; } main(){ int a,b,Gcd,k; while(scanf("%d%d",&a,&b)!=EOF){ if(a<b){ k=a; a=b; b=k; } Gcd=GCD(a,b); k=a*(b/Gcd); printf("%d %d\n",Gcd,k); } }
0
memory_bytes
{'s_id': 's426019290', 'p_id': 'p00005', 'u_id': 'u574548096', 'date': '1311491867', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '262'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint GCD(int a,int b){\n\tint c=1;\n\twhile(c){\n\t\tc=a%b;\n\t\ta=b;\n\t\tb=c;\n\t}\n\treturn a;\n}\n\nmain(){...
CDSS_618309
CDSS
#include <stdio.h> #include <stdlib.h> int comp(const void * elem1, const void * elem2) { int f = *((int *)elem1); int s = *((int *)elem2); if (f > s) return 1; if (f < s) return -1; return 0; } int main(int argc, char *argv[]) { int array[3] = {}; scanf("%d %d %d", &array[0], &array[1], &array[2]); ...
128
memory_bytes
{'s_id': 's811505955', 'p_id': 'p03250', 'u_id': 'u579296775', 'date': '1537751370', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '420'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint comp(const void * elem1, const void * elem2)\n{\n int f = *((int *)elem1);\n int s ...
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 should 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_470049
CDSS
#include <math.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> typedef unsigned long long int ull; typedef long long int ll; typedef long double ld; int main(void) { int scan; // scanf result int answer; // stdout ll n; // stdin scan = scanf("%lld", &n); answer = 0; ans...
128
memory_bytes
{'s_id': 's886372107', 'p_id': 'p02724', 'u_id': 'u163703829', 'date': '1585444163', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '419'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <math.h>\n#include <stdarg.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\ntypedef unsigned long long i...
CDSS_631215
CDSS
#include<stdio.h> #include<string.h> int main(void) { char change[101],hikaku[101],take[101]; int N; int i,j,k,pt=0; scanf("%s",change); scanf("%s",hikaku); N=strlen(change); for(i=0;i<N;i++) { for(j=i,k=0;j<N;j++,k++)take[k]=change[j]; for(j=0;j<i;j++,k++)take[k]=change[j]; take[k]='\0'; if(strcmp(take...
128
memory_bytes
{'s_id': 's390226007', 'p_id': 'p03293', 'u_id': 'u174265495', 'date': '1532277296', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '391'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\tchar change[101],hikaku[101],take[101];\n\tint N;\n\tint i,j,k,pt=0;\n\t...
CDSS_520461
CDSS
#include<stdio.h> #include<math.h> int main(void){ #define PI 3.141592653589793 int a,b,x; double ad,bd,xd; double dgr; scanf("%d %d %d",&a,&b,&x); ad = (double)a; bd = (double)b; xd = (double)x; if ( a*a*b > 2*x){ dgr = atan(ad*bd*bd/(2*xd)) * 180 / PI; }else{ dgr = atan(2*(ad*ad*bd - xd)/(...
128
memory_bytes
{'s_id': 's977902572', 'p_id': 'p02882', 'u_id': 'u523698212', 'date': '1572227646', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '385'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\nint main(void){\n #define PI 3.141592653589793\n int a,b,x;\n double ad,bd,xd;\n double dgr...
CDSS_235693
CDSS
#include<stdio.h> #include<math.h> int main(){ int n,i,j; double h,m,p,si,sum,g[1001]; while(1){ sum=0; si=0; scanf("%d",&n); if(n==0) break; for(i=0;i<n;i++){ scanf("%lf",&g[i]); sum+=g[i]; m=sum/n*1.0; } for(j=0;j<n;j++){ si+=(g[j]-m)*(g[j]-m); } p=si/n; ...
664
memory_bytes
{'s_id': 's199324787', 'p_id': 'p02381', 'u_id': 'u849340810', 'date': '1436687416', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '664', 'code_size': '373'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 n,i,j;\n double h,m,p,si,sum,g[1001];\n\n while(1){\n sum=0;\n si=...
CDSS_392650
CDSS
#include <stdio.h> int main(void){ int N; char C[3]; int A = 0; int W = 0; int T = 0; int R = 0; scanf("%d",&N); for(int i = 0; i < N; i++){ scanf("%s",C); if(strcmp(C,"AC")==0){ A++; }else if(strcmp(C,"WA")==0){ W++; }else if(strcmp(C,"TLE")==0){ T++; }else if...
1,736
memory_bytes
{'s_id': 's090664384', 'p_id': 'p02613', 'u_id': 'u451464218', 'date': '1594240766', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '16', 'memory': '1736', 'code_size': '483'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(void){\n int N;\n char C[3];\n int A = 0;\n int W = 0;\n int T = 0;\n int R = 0;\n scanf(\"%d...
CDSS_256185
CDSS
#include<stdio.h> int main(){ int a,b; scanf("%d %d",&a,&b); printf("%d %d\n",a*b,2*a+2*b); return 0; }
2,040
memory_bytes
{'s_id': 's052582614', 'p_id': 'p02389', 'u_id': 'u747882790', 'date': '1523948880', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '113'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int a,b;\n scanf(\"%d %d\",&a,&b);\n printf(\"%d %d\\n\",a*b,2*a+2*b);\n return 0;\n}\n\n\nPred...
CDSS_594652
CDSS
#include <stdio.h> int main(void) { int a,b,c,d; scanf("%d %d",&a,&b); if (b%a==0){ c=a+b; printf("%d\n",c); } else{ d=b-a; printf("%d\n",d); } return 0; }
128
memory_bytes
{'s_id': 's317698574', 'p_id': 'p03125', 'u_id': 'u146245123', 'date': '1555693924', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '208'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 scanf(\"%d %d\",&a,&b);\n if (b%a==0){\n c=a+b;\n printf(\"%...
CDSS_498138
CDSS
//なにを出力するかをしっかり確認する必要がある /* <limit.h>で範囲を確認できる int型サイズ4バイト 変換指定子d 2147483647~-2147483648 unsigned int型4バイト 変換指定子u 4294967295~0 long int型 8バイト 変換指定子ld 9223372036854775807~-9223372036854775808 unsigned long int 型 8バイト 変換指定子lu 18446744073709551615~0 short int型2バイト 変換指定子d 32767~-32768 unsigned short i...
896
memory_bytes
{'s_id': 's694511247', 'p_id': 'p02791', 'u_id': 'u695544158', 'date': '1580751638', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '25', 'memory': '896', 'code_size': '1481'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n//なにを出力するかをしっかり確認する必要がある\n\n/*\t<limit.h>で範囲を確認できる\n\tint型サイズ4バイト\t変換指定子d\n\t2147483647~-2147483648\n\t\n\tunsigned int型4バイト\t変換指定子u...
CDSS_49873
CDSS
#include <stdio.h> #include <math.h> int main(void) { int angle,step; double angle_total=0,x=0,y=0; while(1) { scanf("%d,%d",&step,&angle); if(angle == 0 && step == 0)break; y += step*cos(-(angle_total*M_PI/180)); x += -step*sin(-(angle_total*M_PI/180)); angle_total += angle; } printf("%d\n",(int)(x)); ...
652
memory_bytes
{'s_id': 's892362441', 'p_id': 'p00016', 'u_id': 'u514537648', 'date': '1363401571', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '652', 'code_size': '358'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\nint main(void)\n{\n\tint angle,step;\n\tdouble angle_total=0,x=0,y=0;\n\twhile(1)\n\t{\n\t\ts...
CDSS_148582
CDSS
#include <stdio.h> int main(){ int i,j,v,N,l=0; int A[1000]; scanf("%d",&N); for(i=0;i < N;i++){ scanf("%d",&A[i]); } for(i=0;i < N-1;i++){ printf("%d ",A[i]); } printf("%d\n",A[i]); for(i=1;i <= N-1;i++){ v=A[i]; j=i-1; while(j >=0 && A[j] > v){ A[j+1]=A[j]; j--; ...
2,064
memory_bytes
{'s_id': 's376560817', 'p_id': 'p02255', 'u_id': 'u638065094', 'date': '1529313357', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '443'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int i,j,v,N,l=0;\n int A[1000];\n scanf(\"%d\",&N);\n for(i=0;i < N;i++){\n scanf(\"%d\",...
CDSS_671137
CDSS
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #include <limits.h> #include <stdbool.h> #define rep(i, n) for(int i=0; i<(n); ++i) #define max 200001 //qsort(str, n, sizeof(int), up_comp); int up_comp(const void *a, const void *b){return *(int*)a - *(int*)b;} int down_comp(const void *a...
1,700
memory_bytes
{'s_id': 's239302475', 'p_id': 'p03493', 'u_id': 'u645174893', 'date': '1595485596', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1700', 'code_size': '852'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <math.h>\n#include <stdlib.h>\n#include <limits.h>\n#include <stdbool.h>\n\n#defin...
CDSS_193861
CDSS
#include<stdio.h> #include<stdlib.h> int BinarySearch(int*, int, int); int main(){ int i,j,n,q,c=0; int *S,*T; scanf("%d",&n); S=(int *)malloc(n*sizeof(int)); for(i=0;i<n;i++){ scanf("%d",&S[i]); } scanf("%d",&q); T=(int *)malloc(q*sizeof(int)); for(i=0;i<q;i++){ scanf("%d",&T[i]); } ...
2,288
memory_bytes
{'s_id': 's748018261', 'p_id': 'p02268', 'u_id': 'u889908059', 'date': '1530586145', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2288', 'code_size': '682'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint BinarySearch(int*, int, int);\n\nint main(){\n int i,j,n,q,c=0;\n int *S,*T;\n\n sca...
CDSS_232351
CDSS
#include <stdio.h> #define MOD 1000000007 int dp[1010][1010]; //dp[n][k]=nをk個以下の整数の和で表す場合の数 // =nをk以下の整数の和で表す場合の数 int main(){ int n,m; scanf("%d%d",&n,&m); for(int j=0;j<=m;j++)dp[0][j]=1; for(int i=1;i<=n;i++)for(int j=1;j<=m;j++)dp[i][j]=(dp[i][j-1]+(i-j>=0?dp[i-j][j]:0))%MOD; printf("%d\n",(dp[n][m]-dp[...
5,748
memory_bytes
{'s_id': 's824404146', 'p_id': 'p02342', 'u_id': 'u409832240', 'date': '1564370521', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '5748', 'code_size': '403'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define MOD 1000000007\n\nint dp[1010][1010];\n//dp[n][k]=nをk個以下の整数の和で表す場合の数\n// =nをk以下の整数の和で表す場合の数\nint ...
CDSS_305277
CDSS
#include <stdio.h> int main(void) { // 1_3-A Print Many Hello World int a,b,c; int i,ans = 0; scanf("%d %d %d",&a,&b,&c); for(i=1; i<=c; i++){ if(c%i==0){ if(a<=i && i<=b){ ans++; } } } printf("%d\n",ans); return 0; }
596
memory_bytes
{'s_id': 's016585454', 'p_id': 'p02398', 'u_id': 'u525266810', 'date': '1471321379', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '251'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n\nint main(void) {\n\n\t// 1_3-A Print Many Hello World\n\n\tint a,b,c;\n\tint i,ans = 0;\n\tscanf(\"%d %d %d\...
CDSS_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 should 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 ...
CDSS_364443
CDSS
#include<stdio.h> int main() { char a[1000]; int i,sum; while(1) { scanf("%s",&a); if(a[0]=='0') { return 0; } sum = 0; for(i=0;a[i]!='\0';i++) { sum+=a[i]-'0'; } printf("%d\n",sum); } return 0; }
2,052
memory_bytes
{'s_id': 's924321047', 'p_id': 'p02416', 'u_id': 'u521330660', 'date': '1525433898', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '314'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n char a[1000];\n int i,sum;\n while(1)\n {\n scanf(\"%s\",&a);\n if(a[0]...
CDSS_629198
CDSS
#include <stdio.h> int main(void){ int r; scanf("%d",&r); if( r < 1200){ printf("ABC"); }else if(r<2800){ printf("ARC"); }else if(r<4209){ printf("AGC"); } return 0; }
128
memory_bytes
{'s_id': 's619991958', 'p_id': 'p03288', 'u_id': 'u168774513', 'date': '1533517578', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n\tint r;\n\tscanf(\"%d\",&r);\n\tif( r < 1200){\n\t\tprintf(\"ABC\");\n\t}else if(r<2800){\n\t\...
CDSS_315642
CDSS
#include <stdio.h> int main() { double r,S,l; scanf ("%lf",&r); S = r*r*3.141592653589; l = r*2*3.141592653589; printf ("%.5lf %.5lf",S,l); return 0; }
652
memory_bytes
{'s_id': 's681473124', 'p_id': 'p02400', 'u_id': 'u952285106', 'date': '1500654044', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '652', 'code_size': '180'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main() {\n double r,S,l;\n\n scanf (\"%lf\",&r);\n\n S = r*r*3.141592653589;\n l = r*2*3.1415926...
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 should 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_626624
CDSS
/* cat <<EOF >mistaken-paste */ #pragma GCC diagnostic ignored "-Wincompatible-pointer-types" #define _USE_MATH_DEFINES #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> #include <time.h> #define BIG 2000000007 #define VERYBIG 2000000000000007LL #d...
2,176
memory_bytes
{'s_id': 's374021185', 'p_id': 'p03282', 'u_id': 'u238041222', 'date': '1534641300', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '2176', 'code_size': '5968'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n/*\ncat <<EOF >mistaken-paste\n*/\n\n#pragma GCC diagnostic ignored \"-Wincompatible-pointer-types\"\n#define _USE_MATH_DEFINES\n\n#...
CDSS_622267
CDSS
/* ex7_1 suzuto */ #include <stdio.h> typedef struct point{ /*直交座標を表す構造体を作る*/ int x_elem; int y_elem; }point; #define point_scanf(z) scanf("%d %d", &z.x_elem, &z.y_elem); /*point型を入力をする関数を定義*/ #define point_printf(z) printf("%d %d", z.x_elem, z.y_elem); /*point型を出力をする関数を定義*/ point shift_point(point bef_point...
1,732
memory_bytes
{'s_id': 's092097777', 'p_id': 'p03265', 'u_id': 'u337525741', 'date': '1594569483', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1732', 'code_size': '1855'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n/*\tex7_1\n\tsuzuto\t*/\n\n#include <stdio.h>\n\ntypedef struct point{ /*直交座標を表す構造体を作る*/\n int x_elem;\n int y_elem;\n}point;\n\n#...
CDSS_490532
CDSS
#include <stdio.h> int main(void) { char s[101]; int i = 0; scanf("%s", s); while (s[i] != '\0') { s[i] = 'x'; i++; } printf("%s", s); return 0; }
128
memory_bytes
{'s_id': 's548101898', 'p_id': 'p02778', 'u_id': 'u632734596', 'date': '1590999953', '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 should 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[101];\n\tint i = 0;\n\n\tscanf(\"%s\", s);\n\n\twhile (s[i] != '\\0')\n\t{\n\t\ts[...
CDSS_484416
CDSS
#include <stdio.h> int main(void) { int n, k, late; scanf("%d %d", &n, &k); if(n >= 10){ late = k; } else{ late = k + (100 * (10 - n)); } printf("%d", late); return 0; }
128
memory_bytes
{'s_id': 's776667140', 'p_id': 'p02765', 'u_id': 'u196669204', 'date': '1582920471', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n\tint n, k, late;\n\t\n\tscanf(\"%d %d\", &n, &k);\n\t\n\tif(n >= 10){\n\t\tlate = k;\n\t}\n\...
CDSS_174723
CDSS
#include <stdio.h> struct card{ char mark; char num; }; void bubble (struct card [],int ); void selection( struct card [] , int); int judge (struct card [],struct card [],int ); void print (struct card [],int); int main() { struct card A[100],B[100]; int n,i; scanf("%d",&n); for(i=0;i<n;i++) { ...
2,124
memory_bytes
{'s_id': 's211265061', 'p_id': 'p02261', 'u_id': 'u509849380', 'date': '1581517206', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2124', 'code_size': '1514'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nstruct card{\n char mark;\n char num;\n};\nvoid bubble (struct card [],int );\nvoid selection( struct card [...
CDSS_313554
CDSS
#include<math.h> #include<stdio.h> int main(void) { double r,s,l; scanf("%lf",&r); s=r*r*M_PI; l=2*r*M_PI; printf("%lf %lf",s,l); return 0; }
648
memory_bytes
{'s_id': 's371515885', 'p_id': 'p02400', 'u_id': 'u453616341', 'date': '1460683637', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '172'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<math.h>\n#include<stdio.h>\nint main(void)\n{\n double r,s,l;\n \n scanf(\"%lf\",&r);\n s=r*r*M_PI;\n l=2*r*...
CDSS_159838
CDSS
#include <stdio.h> int Prime_numbers(int); int main(){ int N,n,i,j=0; scanf("%d",&N); for(i=0;i<N;i++){ scanf("%d",&n); if(Prime_numbers(n)==1)j++; } printf("%d\n",j); return 0; } int Prime_numbers(int n) { int i,flag=0; if(n==2)return 1; if(n==3)return 1; for(i=2;i*i<=n;i++) ...
2,144
memory_bytes
{'s_id': 's772552504', 'p_id': 'p02257', 'u_id': 'u007998969', 'date': '1544070252', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2144', 'code_size': '375'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint Prime_numbers(int);\n\nint main(){\n int N,n,i,j=0;\n\n scanf(\"%d\",&N);\n\n for(i=0;i<N;i++){\n sc...
CDSS_722646
CDSS
#include <stdio.h> int max2(int x,int y){ if(x>y){ return x; }else{ return y; } } int main(void){ int A,B,C,D; int x,y; scanf("%d %d %d %d",&A,&B,&C,&D); x=A*B; y=C*D; printf("%d\n",max2(x,y)); return 0; }
128
memory_bytes
{'s_id': 's205036832', 'p_id': 'p03826', 'u_id': 'u461044076', 'date': '1539118998', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '265'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint max2(int x,int y){\n if(x>y){\n return x;\n }else{\n return y;\n }\n}\n\nint main(voi...
CDSS_239410
CDSS
#include <stdio.h> typedef struct { int cur; int n; int s; int e; int w; } Dice; typedef enum { POSITIVE, NEGATIVE } ROLL_DIR; void dice_init(Dice * dice) { dice->cur = 1; dice->n = 5; dice->s = 2; dice->e = 3; dice->w = 4; } void v_index_change(int *cu...
580
memory_bytes
{'s_id': 's340805753', 'p_id': 'p02386', 'u_id': 'u979453636', 'date': '1502332111', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '3963'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \ntypedef struct {\n int cur;\n int n;\n int s;\n int e;\n int w;\n} Dice;\n \ntypedef enum ...