identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_197624
CDSS
#include <stdio.h> #include <string.h> #define M 1046257 #define NIL (-1) #define L 14 char H[M][L]; /* 文字から数値に変換 */ int getChar(char ch) { if ( ch == 'A' ) return 1; else if ( ch == 'C' ) return 2; else if ( ch == 'G' ) return 3; else if ( ch == 'T' ) return 4; return 0; } /* 文字列から数値へ変換して key を生成する */ lo...
16,056
memory_bytes
{'s_id': 's328342096', 'p_id': 'p02269', 'u_id': 'u393898008', 'date': '1594356873', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '190', 'memory': '16056', 'code_size': '1491'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\n#define M 1046257\n#define NIL (-1)\n#define L 14\n\nchar H[M][L];\n\n/* 文字から数値に変換 */\nint ...
CDSS_131646
CDSS
#include<stdio.h> int Order(int *, int); int T[101][101]; int main(){ int n, i; int p[101]; scanf("%d", &n); for(i = 0; i < n; i++){ scanf("%d%d", &p[i], &p[i+1]); } printf("%d\n", Order(p, n)); return 0; } int Order(int *p, int n){ int i, j, k, l, q; for(i = 1; i <= n; i++){ T[i][i] ...
636
memory_bytes
{'s_id': 's543996268', 'p_id': 'p02234', 'u_id': 'u215503617', 'date': '1467833149', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '627'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 Order(int *, int);\nint T[101][101];\n\nint main(){\n int n, i;\n int p[101];\n\n scanf(\"%d\", &n);\n\n ...
CDSS_344501
CDSS
#include <stdio.h> int main(void){ int i, j, n; //nは持っているトランプの枚数 char mark, a; int num; //numは持っているトランプのランク(トランプ上の数字) char marks[4] = {'S', 'H', 'C', 'D'}; int cards[4][13]; for(i=0;i<4;i++){ for(j=0;j<13;j++){ cards[i][j] = 0; } } scanf("%d", &n); for(i=0; i<n; i++){ ...
2,132
memory_bytes
{'s_id': 's654768778', 'p_id': 'p02408', 'u_id': 'u506537276', 'date': '1555850466', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2132', 'code_size': '884'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 i, j, n; //nは持っているトランプの枚数\n char mark, a;\n int num; //numは持っているトランプのランク(トランプ上の数字)\n cha...
CDSS_260723
CDSS
#include <stdio.h> int main(void) { int S, h, m, s, a, b; scanf("%d",&S); h = S / 3600; a = S - (h * 3600); m = a / 60; s = a - (m * 60); printf("%d:%d:%d\n",h, m, s); return 0; }
592
memory_bytes
{'s_id': 's691101393', 'p_id': 'p02390', 'u_id': 'u818486735', 'date': '1466573274', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '187'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n\tint S, h, m, s, a, b;\n\tscanf(\"%d\",&S);\n\th = S / 3600;\n\ta = S - (h * 3600);\n\tm = a /...
CDSS_682899
CDSS
#include <stdio.h> #include <string.h> int main(void) { char s[7] = { 0 }; int ans = 0; scanf("%s", &s); for (int i = 0; i < 6; i++) { if (s[i] == '1') ans++; } printf("%d\n", ans); return 0; }
128
memory_bytes
{'s_id': 's478058545', 'p_id': 'p03587', 'u_id': 'u203927510', 'date': '1506819826', '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 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\tchar s[7] = { 0 };\n\tint ans = 0;\n\n\tscanf(\"%s\", &s);\n\t\n\tfor (...
CDSS_215459
CDSS
#include <stdio.h> #include <string.h> #define MAX 100005 #define END -1 typedef struct { int parent; int next; int rig; }Node; Node tree[MAX]; int s_dep(int,int); int main(void){ int i,t,n,id,deg,cha,fr; scanf("%d",&n); for(i=0;i<n;i++){ tree[i].parent=END; tree[i].next=END; tree[i].rig...
1,784
memory_bytes
{'s_id': 's594159773', 'p_id': 'p02279', 'u_id': 'u869533821', 'date': '1465958324', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '70', 'memory': '1784', 'code_size': '1444'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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#define MAX 100005\n#define END -1\n\ntypedef struct {\n int parent;\n int next;\n int rig...
CDSS_545360
CDSS
#include<stdio.h> int main(){ int n,p,cnt=0; scanf("%d",&n); for(int i=1;i<=n;i++){ scanf("%d",&p); if(p!=i){ cnt++; } } if(cnt==0||cnt==2){ printf("YES"); } else{ printf("NO"); } return 0; }
128
memory_bytes
{'s_id': 's526724397', 'p_id': 'p02958', 'u_id': 'u097182283', 'date': '1564277289', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '229'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n,p,cnt=0; \n scanf(\"%d\",&n);\n for(int i=1;i<=n;i++){\n\tscanf(\"%d\",&p);\n if(p!=i){\n...
CDSS_65216
CDSS
a;main(){a=!puts("10\n6\n10\n0");}
0
memory_bytes
{'s_id': 's269346497', 'p_id': 'p00049', 'u_id': 'u611853667', 'date': '1316836145', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '34'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\na;main(){a=!puts(\"10\\n6\\n10\\n0\");}\nPredict its memory footprint.", "role": "user" }, { "content": "0.0", "role":...
CDSS_633645
CDSS
#include <stdio.h> int main(){ int i,N; long long int a,b,c; scanf("%d", &N); a = 0; //menor que o menor possível b = 1000000001; //maior que o maior possivel for (i = 0; i < N; i++){ scanf("%lld", &c); if (c > a) a = c; if (c < b) b = c; } printf("%lld\n", a-b); return 0; }
128
memory_bytes
{'s_id': 's318914448', 'p_id': 'p03308', 'u_id': 'u109867600', 'date': '1571303754', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '304'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\n\tint i,N;\n\tlong long int a,b,c;\n\n\tscanf(\"%d\", &N);\n\ta = 0; //menor que o menor possível...
CDSS_169148
CDSS
#include <stdio.h> #define maxN 100 void bubble(int N,int A[]){ int c,tmp,swc=0; int flag = 1; while(flag){ flag = 0; for(c=N-1;c>=1;c--){ if(A[c]<A[c-1]){ tmp = A[c]; A[c] = A[c-1]; A[c-1] = tmp; swc++; flag = 1; } } } for(c=0;c<N;c++){ printf("%d",A[c]); if(c < N-1){ prin...
2,048
memory_bytes
{'s_id': 's443069067', 'p_id': 'p02259', 'u_id': 'u350442310', 'date': '1549606051', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '472'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 maxN 100\n\nvoid bubble(int N,int A[]){\n\tint c,tmp,swc=0;\n\tint flag = 1;\n\twhile(flag){\n\t\tflag =...
CDSS_596392
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> int main(void) { int n, k, c = 0; if(scanf("%d %d", &n, &k) == 1); for(int i = 1; i <= n; i++) { if(i % 2 != 0) { c++; } } if(c >= k) { printf("YES"); } else { printf("NO"); } return 0; }
128
memory_bytes
{'s_id': 's064042199', 'p_id': 'p03129', 'u_id': 'u018586085', 'date': '1549764765', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '288'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n\nint main(void) {\n int n, k, c = 0;\n\n if(scanf(\"%d %d\", &n, &k) ==...
CDSS_320696
CDSS
#include <stdio.h> int main(void) { int a, b, i; char op; for (i = 1; i > 0; i++){ scanf("%d %c %d", &a, &op, &b); if (op == '+') { printf("%d\n", a + b); } else if (op == '-') { printf("%d\n", a - b); } else if (op == '*') { printf("%d\n", a*b); } else if (op == '/'){ printf("%d...
2,112
memory_bytes
{'s_id': 's578103876', 'p_id': 'p02401', 'u_id': 'u175767681', 'date': '1563468264', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '391'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, i;\n\tchar op;\n\tfor (i = 1; i > 0; i++){\n\t\tscanf(\"%d %c %d\", &a, &op, &b...
CDSS_190720
CDSS
#include<stdio.h> #include<stdlib.h> int linearSearch(int n,int *s, int q, int *t){ int i,j; for(i=0;i<n;i++){ if(*(s+i)==*t) return 1; } return 0; } int main(void){ int n,q,j,B,count=0; int *s,*t; scanf("%d\n",&n); s=malloc(sizeof(int)*(n)); for(j=0;j<n;j++){ scanf("...
2,100
memory_bytes
{'s_id': 's875924362', 'p_id': 'p02267', 'u_id': 'u336208598', 'date': '1587363104', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '604'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\nint linearSearch(int n,int *s, int q, int *t){\n int i,j;\n for(i=0;i<n;i++){\n if...
CDSS_650558
CDSS
#include<stdio.h> int main(){ char a[3]={0}; scanf("%s %s %s",&a[0],&a[1],&a[2]); if(a[0]!=a[1]&&a[1]!=a[2]&&a[0]!=a[2]){ printf("Yes");} else{ printf("No"); } return(0); }
128
memory_bytes
{'s_id': 's139603096', 'p_id': 'p03385', 'u_id': 'u307028491', 'date': '1558374429', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '200'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n char a[3]={0};\n \n scanf(\"%s %s %s\",&a[0],&a[1],&a[2]);\n \n if(a[0]!=a[1]&&a[1]!=a[2]&&a[0]!...
CDSS_502787
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> int indexBF(char str[],char a[],int index,int N) { int i=index; int j=0; while(i<N && j<3) { if(str[i]==a[j]) { i++; j++; } else { i=i-j+1; j=0; } ...
128
memory_bytes
{'s_id': 's757194125', 'p_id': 'p02812', 'u_id': 'u252733270', 'date': '1578710701', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '663'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\nint indexBF(char str[],char a[],int index,int N)\n{\n int i=index;\n ...
CDSS_264146
CDSS
#include<stdio.h> int main(void){ int h,m,s,in; scanf("%d",&in); h=in/3600; m=(in-h*3600)/60; s=in%60; printf("%d:%d:%d\n",h,m,s); return 0; }
2,116
memory_bytes
{'s_id': 's039233910', 'p_id': 'p02390', 'u_id': 'u866266282', 'date': '1594357339', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2116', 'code_size': '144'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\nint h,m,s,in;\nscanf(\"%d\",&in);\nh=in/3600;\nm=(in-h*3600)/60;\ns=in%60;\nprintf(\"%d:%d:%d\\n...
CDSS_372005
CDSS
#include <stdio.h> #include <string.h> int main() { char str[1024], com[8], p[1024], t; int a, b, q, i; scanf("%s%d", str, &q); for(i=0; i<q; i++) { scanf(" %s%d%d", com, &a, &b); if(com[0]=='p') { t=str[b+1]; str[b+1]='\0'; puts(str+a); s...
588
memory_bytes
{'s_id': 's692880308', 'p_id': 'p02422', 'u_id': 'u277798389', 'date': '1468068966', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '588', 'code_size': '655'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main()\n{\n char str[1024], com[8], p[1024], t;\n int a, b, q, i;\n scanf(\"%s...
CDSS_623966
CDSS
/* ex5_3 supercomputerjoi */ #include <stdio.h> int main(void){ int height, width; char map[101][101]; int i = 0, j = 0, k = 0; char isBlank; // input H W scanf("%d %d", &height, &width); // input a for(i = 0; i < height; i++){ scanf("%s", map[i]); } // chec...
128
memory_bytes
{'s_id': 's311319465', 'p_id': 'p03273', 'u_id': 'u660246945', 'date': '1591293693', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1561'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* ex5_3\n supercomputerjoi */\n\n#include <stdio.h>\n\nint main(void){\n\n int height, width;\n char map[101][101];\n ...
CDSS_113424
CDSS
/** * AOJ #1100: Area of Polygons (ICPC Domestic 1998) */ #include <stdio.h> #define MAX_N 50 /** * Compute the area of a polygon with n vertices. * The coordinates in x[] and y[] are given in the clockwise order. * This function adopts the formula of the area using the vector product. */ double area(int n, in...
636
memory_bytes
{'s_id': 's366570909', 'p_id': 'p00682', 'u_id': 'u320121447', 'date': '1441268051', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '758'}
[ { "content": "Your task is to predict the memory 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 #1100: Area of Polygons (ICPC Domestic 1998)\n */\n\n#include <stdio.h>\n\n#define MAX_N 50\n\n/**\n * Compute the area of...
CDSS_269813
CDSS
#include<stdio.h> int main(){ int a,b; scanf("%d",&a); scanf("%d",&b); if(a<b){ printf("a < b\n"); }else if(a>b){ printf("a > b\n"); }else{ printf("a == b\n"); } return 0; }
580
memory_bytes
{'s_id': 's931339969', 'p_id': 'p02391', 'u_id': 'u920971906', 'date': '1481506064', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '242'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\n\n int a,b; \n\n\n scanf(\"%d\",&a);\n\n\n scanf(\"%d\",&b);\n\n\n if(a<b){\n\n\n ...
CDSS_282497
CDSS
#include <stdio.h> main(){ int a,b,c,x; scanf("%d%d%d",&a,&b,&c); if(a>b){ x=a; a=b; b=x; } if(b>c){ x=b; b=c; c=x; } if(a>b){ x=a; a=b; b=x; } printf("%d %d %d\n",a,b,c); return 0; }
596
memory_bytes
{'s_id': 's673583255', 'p_id': 'p02393', 'u_id': 'u305050152', 'date': '1450238983', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '219'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nmain(){\n\t\n\tint a,b,c,x;\n\t\n\tscanf(\"%d%d%d\",&a,&b,&c);\n\t\n\tif(a>b){\n\t\tx=a;\n\t\ta=b;\n\t\tb=x;\n\t}\...
CDSS_500157
CDSS
main(){ char c = getchar(); putchar(c+1); }
128
memory_bytes
{'s_id': 's856733448', 'p_id': 'p02801', 'u_id': 'u013469585', 'date': '1578915198', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '45'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nmain(){\n\tchar c = getchar();\n\tputchar(c+1);\n}\nPredict its memory footprint.", "role": "user" }, { "content": "128.0"...
CDSS_586499
CDSS
/* ex3_5 hangan2020*/ #include <stdio.h> #include <string.h> int main(void){ char str[11], *p; int len, max; //文字列入力 scanf("%s", &str[0]); //文字列先頭のアドレス p = str; len = 0; max = 0; //null文字ではない間に while(*p){ //長さリセット len = 0; //ACGT列を見つけた...
1,732
memory_bytes
{'s_id': 's244567934', 'p_id': 'p03086', 'u_id': 'u293067086', 'date': '1594041581', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1732', 'code_size': '875'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* ex3_5\n hangan2020*/ \n\n#include <stdio.h>\n#include <string.h>\n\nint main(void){\n char str[11], *p; \n int len, max;\n...
CDSS_496313
CDSS
#include <stdio.h> int main(void) { int a,b; scanf("%d %d",&a,&b); if(a == b) { printf("Yes"); } else printf("No"); }
1,712
memory_bytes
{'s_id': 's104333921', 'p_id': 'p02789', 'u_id': 'u863370423', 'date': '1600175147', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1712', 'code_size': '170'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int a,b;\n scanf(\"%d %d\",&a,&b);\n \n if(a == b)\n {\n printf(\"Yes\...
CDSS_135048
CDSS
#include<stdio.h> #define N 100 int main(){ int i,j,k,l,m,n; int G[N][N]={0}; scanf("%d",&n); for(m=0;m<n;m++){ scanf("%d%d",&i,&k); for(l=0;l<k;l++){ scanf("%d",&j); G[i-1][j-1]=1; } } for(i=0;i<n;i++){ for(j=0;j<n;j++){ if(j<n-1) printf("%d ",G[i][j]); else print...
648
memory_bytes
{'s_id': 's251289238', 'p_id': 'p02237', 'u_id': 'u363547119', 'date': '1499408013', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '362'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 100\nint main(){\n int i,j,k,l,m,n;\n int G[N][N]={0};\n scanf(\"%d\",&n);\n for(m=0;m<n;m++){\n s...
CDSS_536536
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> int main() { int a,i; char s[10000]; scanf("%d", &a); scanf("%s", s); if (a >= 3200)printf("%s\n", s); else printf("red\n"); return 0; }
128
memory_bytes
{'s_id': 's433784723', 'p_id': 'p02933', 'u_id': 'u677991935', 'date': '1566176676', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '217'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n#include<math.h>\n\nint main()\n{\n\tint a,i;\n\tchar s[10000];\n\tscanf(\"...
CDSS_121880
CDSS
#include<stdio.h> int main(){ int s[10000],n,t[10000],max,sum; char ss[10]; while(1){ scanf("%d",&n); if(n==0) break; for(int i=0;i<n;i++){ scanf("%s",ss); s[i]=0; for(int j=0;j<8;j++){ if(j==2||j==5); else if(j==0||j==3||j==6) s[i]+=(ss[j]-'0')*10; ...
2,048
memory_bytes
{'s_id': 's640803486', 'p_id': 'p01138', 'u_id': 'u258914056', 'date': '1530521390', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6380', 'memory': '2048', 'code_size': '933'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 s[10000],n,t[10000],max,sum;\n char ss[10];\n while(1){\n scanf(\"%d\",&n);\n if(n==0)...
CDSS_629655
CDSS
#include<stdio.h> int main(void) { int i,jud=0,judo=0,num=0,point=0; char str[11]; for(i=0;i<10;i++) { scanf("%c",&str[i]); if(str[i]>='A') num++; } if(str[0]!='A') jud=1; for(i=2;i<=num-2;i++) { if(str[i]=='C') { judo++; point=i; } } if(judo!=1) jud=1; for(...
128
memory_bytes
{'s_id': 's091436148', 'p_id': 'p03289', 'u_id': 'u817824419', 'date': '1534294106', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '480'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int i,jud=0,judo=0,num=0,point=0;\n char str[11];\n for(i=0;i<10;i++)\n {\n scanf(\"%c\"...
CDSS_362968
CDSS
#include <stdio.h> int main(){ char s[2048]; int i; fgets(s, sizeof(s), stdin); for(i = 0;s[i] != '\0';i++){ if('a' <= s[i] && s[i] <= 'z') s[i] += 'A' - 'a'; else if('A' <= s[i] && s[i] <= 'Z') s[i] += 'a' - 'A'; } printf("%s",s); return 0; }
2,012
memory_bytes
{'s_id': 's976849222', 'p_id': 'p02415', 'u_id': 'u763270653', 'date': '1533785890', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2012', 'code_size': '270'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(){\n char s[2048];\n int i;\n fgets(s, sizeof(s), stdin);\n for(i = 0;s[i] != '\\0';i++){\n if(...
CDSS_84999
CDSS
// Aizu Vol-1 0181: Bookshelf #include <stdio.h> #include <string.h> #define INF 0x7fffffff #define MAX(a,b) ((a)>=(b)?(a):(b)) int c[22][102][102]; int w[102]; int main() { int m, n, i, j, k, l; while (scanf("%d%d", &m, &n) && m) { memset(c, 0, sizeof(c)); for (w[0] = k = 0, i = 1; i <= n; i++) { scanf("%...
2,604
memory_bytes
{'s_id': 's939362993', 'p_id': 'p00181', 'u_id': 'u847467233', 'date': '1504474151', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2604', 'code_size': '856'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// Aizu Vol-1 0181: Bookshelf\n\n#include <stdio.h>\n#include <string.h>\n\n#define INF 0x7fffffff\n#define MAX(a,b) ((a)>=(b)?(a):(b)...
CDSS_98018
CDSS
int main() { while (1) { int n, m, results [ 100 ], i, j ; memset(results, 0, sizeof(results)) ; scanf("%d%d", & n, & m) ; if ( n + m == 0 ) { return 0 ; } for (i = 0 ; i < n ; i ++) { for (j = 0 ; j < m ; j ++) { int k ; ...
1,912
memory_bytes
{'s_id': 's483789177', 'p_id': 'p00428', 'u_id': 'u921810101', 'date': '1556505596', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1912', 'code_size': '799'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nint main()\n{\n while (1) {\n int n, m, results [ 100 ], i, j ;\n memset(results, 0, sizeof(results)) ;\n scan...
CDSS_515095
CDSS
#include<stdio.h> int main(void){ int n,i,j; scanf("%d",&n); char a[n]; scanf("%s",a); if(n%2==1){ printf("No"); return 0; } for(i=0,j=(n/2);i<n/2;i++,j++){ if(a[i]!=a[j]){ printf("No"); return 0; } } printf("Yes"); return 0; }
128
memory_bytes
{'s_id': 's937270421', 'p_id': 'p02860', 'u_id': 'u056912761', 'date': '1585494352', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '282'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,i,j;\n scanf(\"%d\",&n);\n char a[n];\n \n scanf(\"%s\",a);\n \n if(n%2==1){\n p...
CDSS_722470
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int a,b,c,d,x,y; while(~scanf("%d%d%d%d",&a,&b,&c,&d)) { x=a*b; y=c*d; if(x>=y) printf("%d\n",x); else printf("%d\n",y); } return 0; }
128
memory_bytes
{'s_id': 's605318389', 'p_id': 'p03826', 'u_id': 'u018679195', 'date': '1576460204', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '248'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main()\n{\n int a,b,c,d,x,y;\n while(~scanf(\"%d%d%d%d\",&a,&b,&c,&d))\n {\n ...
CDSS_248125
CDSS
#include<stdio.h> int main(void) { int x,y; scanf("%d",&x); y=x*x*x; printf("%d\n",y); return 0; }
596
memory_bytes
{'s_id': 's155729119', 'p_id': 'p02388', 'u_id': 'u951106504', 'date': '1390548095', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '103'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 x,y;\n\tscanf(\"%d\",&x);\n\ty=x*x*x;\n\tprintf(\"%d\\n\",y);\n\treturn 0;\n}\nPredict its...
CDSS_708388
CDSS
#include "stdio.h" int main(){ int a,b,c,a1,b1,c1; scanf("%d %d %d",&a,&b,&c); int count=0; while(1){ if((a%2==1)||(b%2==1)||(c%2==1)){ break; } if((a==b)&&(a==c)){ count=-1; break; } a1=a,b1=b,c1=c;//can i group together for one row?//ok a=(b1+c1)/2; b=(c1+a1)/2; c=(a1+b1...
128
memory_bytes
{'s_id': 's973296066', 'p_id': 'p03723', 'u_id': 'u064571674', 'date': '1494802474', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '421'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include \"stdio.h\"\n\nint main(){\n\t\n\tint a,b,c,a1,b1,c1;\n\t\n\tscanf(\"%d %d %d\",&a,&b,&c);\n\t\n\tint count=0;\n\t\n\twhile(1...
CDSS_133729
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #define N 1000 int C[N+1][N+1]; int lcs(char *a, char *b){ int i,j,X,Y; X = strlen(a); Y = strlen(b); for (i=0;i<X;i++){ for (j=0;j<Y;j++){ if (a[i] == b[j])C[i+1][j+1]=C[i][j]+1; else C[i+1][j+1]=((C[i][j+1]>C[i+1][j])?C[i][j...
5,700
memory_bytes
{'s_id': 's324074435', 'p_id': 'p02235', 'u_id': 'u954361174', 'date': '1581494520', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '5700', 'code_size': '525'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#define N 1000\n \nint C[N+1][N+1];\n \nint lcs(char *a, char *b){\n i...
CDSS_445004
CDSS
int a[200010]; int ans[200010]; int main(){ int n; scanf("%d",&n); for(int i=2;i<=n;i++)scanf("%d",&a[i]); for(int i=2;i<=n;i++)ans[a[i]]++; for(int i=1;i<=n;i++)printf("%d\n",ans[i]); }
3,268
memory_bytes
{'s_id': 's809151996', 'p_id': 'p02707', 'u_id': 'u710255953', 'date': '1588237529', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '42', 'memory': '3268', 'code_size': '195'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n int a[200010];\n int ans[200010];\n int main(){\n int n;\nscanf(\"%d\",&n);\nfor(int i=2;i<=n;i++)scanf(\"%d\",&a[i]);\n for(int i=...
CDSS_351511
CDSS
#include<stdio.h> int main() { int n,m,i,j; scanf("%d%d",&n,&m); int a[n][m]; int b[m]; for(i=0; i<n; i++) { for(j=0; j<m; j++) { scanf("%d",&a[i][j]); } } for(j=0; j<m; j++) { scanf("%d",&b[j]); } int sum=0; for(i=0; i<n; i...
2,112
memory_bytes
{'s_id': 's854730430', 'p_id': 'p02410', 'u_id': 'u274938043', 'date': '1586275256', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '482'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int n,m,i,j;\n scanf(\"%d%d\",&n,&m);\n int a[n][m];\n int b[m];\n for(i=0; i<n; i++...
CDSS_377765
CDSS
#include <stdio.h> int main(){ int d,t,s; scanf("%d %d %d",&d,&t,&s); float atime=(float)d/(float)s; if (atime<=t){ printf("Yes\n"); } else{ printf("No\n"); } }
1,644
memory_bytes
{'s_id': 's404505645', 'p_id': 'p02570', 'u_id': 'u482431716', 'date': '1599516674', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1644', 'code_size': '176'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 d,t,s;\n\t\n\tscanf(\"%d %d %d\",&d,&t,&s);\n\tfloat atime=(float)d/(float)s;\n\tif (atime<...
CDSS_535555
CDSS
#include <stdio.h> int main(void){ int N, K, A[20005], i, j, a, b; long long c; scanf("%d%d", &N, &K); c=0; for (i=0; i<N; i++) { scanf("%d", &A[i]); } for (i=0; i<N; i++) { a=0; b=0; for (j=0; j<N; j++) { if (A[i]>A[j]) { if (i<j) a++; ...
128
memory_bytes
{'s_id': 's042588417', 'p_id': 'p02928', 'u_id': 'u279160680', 'date': '1566699162', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '128', 'code_size': '741'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int N, K, A[20005], i, j, a, b;\n long long c;\n scanf(\"%d%d\", &N, &K);\n c=0;\n...
CDSS_714044
CDSS
#include <stdio.h> int main(void){ int a,b; scanf("%d%d",&a,&b); int h = a+b; if(h<24){ printf("%d",h); }else{ printf("%d",h-24); } }
128
memory_bytes
{'s_id': 's242550893', 'p_id': 'p03773', 'u_id': 'u789515127', 'date': '1499806250', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '195'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n int main(void){\n int a,b;\n scanf(\"%d%d\",&a,&b);\n\n int h = a+b;\n if(h<24){\n ...
CDSS_660054
CDSS
#include <stdio.h> int main(void){ int x,a,b; scanf("%d%d%d",&x,&a,&b); printf("%d\n",(x-a)%b); }
128
memory_bytes
{'s_id': 's209632585', 'p_id': 'p03447', 'u_id': 'u592248346', 'date': '1583973427', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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 <stdio.h>\nint main(void){\n int x,a,b;\n scanf(\"%d%d%d\",&x,&a,&b);\n printf(\"%d\\n\",(x-a)%b);\n}\n\nPredict its...
CDSS_250303
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; }
596
memory_bytes
{'s_id': 's660029439', 'p_id': 'p02389', 'u_id': 'u060746771', 'date': '1428735239', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '116'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int a,b;\n scanf(\"%d %d\",&a,&b);\n\n printf(\"%d %d\\n\",a*b,2*a+2*b);\n\n return 0;\n\n}\nP...
CDSS_123899
CDSS
a,i,s,t,n;main(b){for(;scanf("%d",b=&n)*n;printf("%d %d\n",a,b))for(a=0;n--;b>t?b=t:0,a<t?a=t:0)for(t=0;++i%6;t+=s)scanf("%d",&s);}
0
memory_bytes
{'s_id': 's669034587', 'p_id': 'p01321', 'u_id': 'u479246559', 'date': '1336236431', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '131'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\na,i,s,t,n;main(b){for(;scanf(\"%d\",b=&n)*n;printf(\"%d %d\\n\",a,b))for(a=0;n--;b>t?b=t:0,a<t?a=t:0)for(t=0;++i%6;t+=s)scanf(\"%d\",&...
CDSS_113400
CDSS
// AOJ 1093: KND Runs for Sweets // 2017.11.16 bal4u@uu #include <stdio.h> #include <stdlib.h> #include <math.h> #define KAI 70 int x[101], y[101], v[101]; int n; int max; double fx(double a, double b) { int i; double d, max; max = 0; for (i = 0; i < n; i++) { d = hypot(a-x[i], b-y[i]) / v[i]; if (d > max)...
1,808
memory_bytes
{'s_id': 's985697221', 'p_id': 'p00678', 'u_id': 'u847467233', 'date': '1510802917', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '370', 'memory': '1808', 'code_size': '1059'}
[ { "content": "Your task is to predict the memory 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 1093: KND Runs for Sweets\n// 2017.11.16 bal4u@uu\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n\n#define KAI ...
CDSS_364890
CDSS
#include<stdio.h> int main(){ char a[1001]; int sum=0; while(1){ scanf("%s",a); if(a[0]=='0') break; int i; for(i=0;a[i]!='\0';i++){ sum+=a[i]-48; } printf("%d\n",sum); sum=0; } return 0; }
2,040
memory_bytes
{'s_id': 's845836378', 'p_id': 'p02416', 'u_id': 'u547790704', 'date': '1558313886', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '213'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tchar a[1001];\n\tint sum=0;\n\twhile(1){\n\t\tscanf(\"%s\",a);\n\t\tif(a[0]=='0') break;\n\t\tint i;...
CDSS_456425
CDSS
#include <stdio.h> int main() { long long int input; long long int i; long long int sum = 0; scanf("%lld", &input); for(i = 1; i <= input; i++) { if(i % 3 == 0 || i % 5 == 0) { continue; } else { sum += i; } } printf("%lld\n", sum); return 0; }
1,736
memory_bytes
{'s_id': 's368019336', 'p_id': 'p02712', 'u_id': 'u078153338', 'date': '1586741010', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', 'memory': '1736', 'code_size': '271'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tlong long int input;\n\tlong long int i;\n\tlong long int sum = 0;\n\n\tscanf(\"%lld\", &input)...
CDSS_649527
CDSS
#include <stdio.h> #include<string.h> int min(int x,int y){ if(x>y) return y; else return x; } int main(void){ int n, m, x; int a[200]; scanf("%d %d %d", &n,&m,&x); for(int i=0;i<m;i++){ scanf("%d", a+i); } int left = 0;int right = 0; for(int i=0;i<m;i++){ if(a[i]<x) left++; else righ...
1,684
memory_bytes
{'s_id': 's927193260', 'p_id': 'p03378', 'u_id': 'u210041761', 'date': '1600404778', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1684', 'code_size': '381'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 min(int x,int y){\n if(x>y) return y;\n else return x;\n}\n\n \nint main(void){\n in...
CDSS_444847
CDSS
#include<stdio.h> int main(void){ int a,b,i; scanf("%d",&a); int c[a+1]; for(i=0;i<a+1;i++){ c[i]=0; } for(i=1;i<a;i++){ scanf("%d",&b); c[b]+=1; } for(i=1;i<=a;i++){ printf("%d\n",c[i]); } }
2,456
memory_bytes
{'s_id': 's816726472', 'p_id': 'p02707', 'u_id': 'u406971825', 'date': '1591643940', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '39', 'memory': '2456', 'code_size': '247'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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,i;\n scanf(\"%d\",&a);\n int c[a+1];\n for(i=0;i<a+1;i++){\n c[i]=0;\n ...
CDSS_635020
CDSS
#include<stdio.h> int main(){ char s[4]; scanf("%s",s); int i,ans=0; for(i=0;i<4;i++){ if(s[i]=='+')ans++; else ans--; } printf("%d",ans); return 0; }
128
memory_bytes
{'s_id': 's219247680', 'p_id': 'p03315', 'u_id': 'u946810083', 'date': '1535721495', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '173'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n char s[4];\n scanf(\"%s\",s);\n int i,ans=0;\n for(i=0;i<4;i++){\n if(s[i]=='+')ans++;\n ...
CDSS_121013
CDSS
#include<stdio.h> #include<stdlib.h> typedef struct{ int h; int p; int q; } amida; int cmph(const void* a,const void* b){ return ((amida*)b)->h - ((amida*)a)->h; } int main(){ int n,m,a,i,tmp; amida line[1000]; while(scanf("%d %d %d",&n,&m,&a)!=0 && (n!=0) && (m!=0) && (a!=0)){ for(i=0;i<m;i++){ scanf("%...
672
memory_bytes
{'s_id': 's341419427', 'p_id': 'p01126', 'u_id': 'u984563327', 'date': '1434464384', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '672', '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#include<stdlib.h>\n\ntypedef struct{\n\tint h;\n\tint p;\n\tint q;\n} amida;\n\nint cmph(const void* a,const void*...
CDSS_623746
CDSS
/* ex7_3 Rikuta */ #include <stdio.h> int main(void) { //変数とポインタの宣言 int height, width, flag; char **matrix_given; int **on_off_matrix; //与えられる行列の高さと幅の入力 scanf("%d %d\n", &height, &width); //height*(width+1)の行列の動的確保.確保できなかったらエラー処理 matrix_given = (char **)calloc(height, sizeof...
1,696
memory_bytes
{'s_id': 's861053923', 'p_id': 'p03273', 'u_id': 'u969618034', 'date': '1594502328', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1696', 'code_size': '3101'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* ex7_3\n Rikuta */\n\n#include <stdio.h>\n\nint main(void)\n{ \n //変数とポインタの宣言\n int height, width, flag;\n char **ma...
CDSS_294987
CDSS
#include <stdio.h> int main(void) { int i, c = 0; scanf("%d", &i); while(i != 0) { c++; printf("Case %d: %d\n",c , i); scanf("%d", &i); } return 0; }
600
memory_bytes
{'s_id': 's641430993', 'p_id': 'p02396', 'u_id': 'u440132616', 'date': '1447634972', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '174'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(void) {\n \n int i, c = 0;\n scanf(\"%d\", &i);\n while(i != 0) {\n c++;\n printf(\"Case %d: ...
CDSS_224712
CDSS
#include<stdio.h> #include<stdlib.h> #define MAX 500001 typedef struct cell{ int id; struct cell *right; struct cell *left; }cell; void preorder(cell *root){ cell *p=root; printf(" %d",p->id); if(p->left!=NULL){preorder(p->left);} if(p->right!=NULL){preorder(p->right);} return; } void inorder(cell *root)...
14,208
memory_bytes
{'s_id': 's665818166', 'p_id': 'p02285', 'u_id': 'u723915999', 'date': '1516792244', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '270', 'memory': '14208', 'code_size': '2884'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 MAX 500001\n \ntypedef struct cell{\n int id;\n struct cell *right;\n struct cell *left...
CDSS_204535
CDSS
#include<stdio.h> #define datamax 500001 #define banpei 1000000001 int left[datamax/2 +1]; int right[datamax/2 + 1]; int cnt; void merge(int *,int,int,int,int); void mergeSort(int *,int,int,int); int main(){ int a[datamax],n,i; cnt = 0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a[i]); } mergeSort(...
5,604
memory_bytes
{'s_id': 's130511887', 'p_id': 'p02272', 'u_id': 'u916841654', 'date': '1548994041', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '5604', 'code_size': '1088'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 datamax 500001\n#define banpei 1000000001\nint left[datamax/2 +1];\nint right[datamax/2 + 1];\nint cnt;\nvo...
CDSS_238122
CDSS
#include <stdio.h> int main(){ int dice[6]; int n, t, f, top, front, i, j; for( i=0; i<6; i++ ) scanf( "%d", &dice[i] ); scanf( "%d", &n ); for( j=0; j<n; j++ ){ scanf( "%d %d", &t, &f ); for( i=0; i<6; i++ ){ if( t == dice[i] ) top = i; if( f == dice[i] ) front = i; } if( top == 0 ){ ...
596
memory_bytes
{'s_id': 's683489710', 'p_id': 'p02384', 'u_id': 'u791203787', 'date': '1491743552', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '1587'}
[ { "content": "Your task is to predict the memory 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\n#include <stdio.h>\n\n\n\n\nint main(){\n\n\tint dice[6];\n\tint n, t, f, top, front, i, j;\n\n\tfor( i=0; i<6; i++ ) scanf( \"%d\...
CDSS_255606
CDSS
#include<stdio.h> int main(int argv, char **argc) { int a, b; scanf("%d %d", &a, &b); printf("%d %d\n", a * b, 2 * (a + b)); return 0; }
1,740
memory_bytes
{'s_id': 's989840871', 'p_id': 'p02389', 'u_id': 'u232139030', 'date': '1511329417', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1740', 'code_size': '154'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 argv, char **argc) {\n int a, b;\n scanf(\"%d %d\", &a, &b);\n printf(\"%d %d\\n\", a * b, ...
CDSS_142581
CDSS
#include <stdio.h> #define N 3 int suretu[N][N] = { {1, 2, 3}, {4, 5, 6}, {7, 8, 0}}; int dx[] = { 0, 1, 0, -1 }; int dy[] = { -1, 0, 1, 0 }; int keisan(int f[N][N]) { int i,j; for (i=0;i<N;++i) { for (j=0;j<N;++j) { if(f[i][j] != suretu[i][j]) return 0; } ...
2,124
memory_bytes
{'s_id': 's526061625', 'p_id': 'p02245', 'u_id': 'u736192631', 'date': '1581506212', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '850', 'memory': '2124', 'code_size': '1131'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 3\nint suretu[N][N] = {\n {1, 2, 3},\n {4, 5, 6},\n {7, 8, 0}};\nint dx[] = { 0, 1, 0, -1 };\ni...
CDSS_388670
CDSS
#include <stdio.h> int main() { int n,k; scanf("%d%d",&n,&k); int a[n]; int i; for(i=0;i<n;i++){ scanf("%d",&a[i]); } for(i=k;i<n;i++){ if(a[i+1-1]>a[i-k+1-1]){ printf("Yes\n"); } else printf("No\n"); } return 0; }
2,440
memory_bytes
{'s_id': 's526894492', 'p_id': 'p02602', 'u_id': 'u530411589', 'date': '1595727693', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '44', 'memory': '2440', 'code_size': '269'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int n,k;\n scanf(\"%d%d\",&n,&k);\n \n int a[n];\n int i;\n \n for(i=0;i<n;i++){\n scan...
CDSS_104413
CDSS
// AOJ 0548 Reindeer with no sense of direction // 2018.2.23 bal4u #include <stdio.h> int w, h, cnt, ans; char map[13][13]; int mv[4][2] = {{-1,0},{0,1},{1,0},{0,-1}}; //#define getchar_unlocked() getchar() int in() { int n = 0; int c = getchar_unlocked(); do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked()...
2,020
memory_bytes
{'s_id': 's516750821', 'p_id': 'p00471', 'u_id': 'u847467233', 'date': '1519339108', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5550', 'memory': '2020', 'code_size': '1034'}
[ { "content": "Your task is to predict the memory 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 0548 Reindeer with no sense of direction\n// 2018.2.23 bal4u\n\n#include <stdio.h>\n\nint w, h, cnt, ans;\nchar map[13][13];\ni...
CDSS_592561
CDSS
#include<stdio.h> int main(void) { char s[99999]; int i, a, b; scanf("%s", s); for(i=0; s[i]!='\0'; i++){ if(s[i]=='0') a++; else if(s[i]=='1') b++; } if(a<b) printf("%d\n", a*2); else printf("%d\n", b*2); return 0; }
256
memory_bytes
{'s_id': 's275953474', 'p_id': 'p03107', 'u_id': 'u438782979', 'date': '1555422267', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '318'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n char s[99999];\n int i, a, b;\n\n scanf(\"%s\", s);\n\n for(i=0; ...
CDSS_200909
CDSS
#include <stdio.h> #define N 2000 int n,i; int A[N],m; int q; int solve(int, int); int main(){ scanf("%d",&n); for(i=0; i<n; i++){ scanf("%d",&A[i]); } scanf("%d",&q); for(i=0; i<q; i++){ scanf("%d",&m); if( solve(0,m)==1 ) printf("yes\n"); else printf("no\n"); } return 0; } int sol...
2,108
memory_bytes
{'s_id': 's229576173', 'p_id': 'p02271', 'u_id': 'u992254952', 'date': '1577102019', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '430', 'memory': '2108', 'code_size': '463'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 2000\nint n,i;\nint A[N],m;\nint q;\nint solve(int, int);\nint main(){\n scanf(\"%d\",&n);\n for(i=0; ...
CDSS_728319
CDSS
#include <stdio.h> #include <string.h> #define MAX 100000 // キュー配列の最大サイズ int qu[MAX]; // キューを表す配列 int tail = 0, head = 0; // キューの要素区間を表す変数 // キューを初期化する void init() { head = tail = 0; } // キューが空かどうかを判定する int isEmpty() { return (head == tail); } // スタックが満杯かどうかを判定する int isFull() { return (head == (tail + ...
1,816
memory_bytes
{'s_id': 's356250998', 'p_id': 'p03854', 'u_id': 'u906918812', 'date': '1597455381', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '416', 'memory': '1816', 'code_size': '1729'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\n#define MAX 100000 // キュー配列の最大サイズ\n\nint qu[MAX]; // キューを表す配列\nint tail = 0, head = 0; // キ...
CDSS_239530
CDSS
void throwdice_N(int x[6]){ int tmp; tmp = x[0]; x[0] = x[1]; x[1] = x[5]; x[5] = x[4]; x[4] = tmp; } void throwdice_E(int x[6]){ int tmp; tmp = x[0]; x[0] = x[3]; x[3] = x[5]; x[5] = x[2]; x[2] = tmp; } void throwdice_S(int x[6]){ int tmp; tmp = x[0]; x[0] = ...
2,104
memory_bytes
{'s_id': 's151448078', 'p_id': 'p02386', 'u_id': 'u679700431', 'date': '1530632231', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '3008'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nvoid throwdice_N(int x[6]){\n int tmp;\n tmp = x[0];\n x[0] = x[1];\n x[1] = x[5];\n x[5] = x[4];\n x[4] = tmp;\n}\n...
CDSS_315097
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': 's148196700', 'p_id': 'p02400', 'u_id': 'u366808968', 'date': '1493188977', '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>\n\nint main()\n{\n double r, pi=3.141592653589;\n scanf(\"%lf\", &r);\n printf(\"%f %f\\n\", pi * r * r, 2 * r * pi...
CDSS_527615
CDSS
#include<stdio.h> int main(void) { char str1[10] = {"Sunny"}; char str2[10] = {"Cloudy"}; char str3[10] = {"Rainy"}; char str4[10]; scanf("%s",str4); if(strcmp(str1,str4) == 0){ printf("%s",str2); } else if(strcmp(str2,str4) == 0){ printf("%s",str3); } else if(strcmp(str3,str4) ...
128
memory_bytes
{'s_id': 's210318687', 'p_id': 'p02909', 'u_id': 'u682814923', 'date': '1569465714', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '373'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n char str1[10] = {\"Sunny\"};\n char str2[10] = {\"Cloudy\"};\n char str3[10] = {\"Rainy\"}...
CDSS_469555
CDSS
#include <stdio.h> int main(void){ int x,a,b,ans; scanf("%d",&x); // 500円玉で両替 a = x / 500; x -= a * 500; // 5円玉で両替 b = x / 5; // 嬉しさ ans = a*1000 + b*5; printf("%d",ans); }
128
memory_bytes
{'s_id': 's788950550', 'p_id': 'p02724', 'u_id': 'u252463862', 'date': '1586012146', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '239'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int x,a,b,ans;\n scanf(\"%d\",&x);\n // 500円玉で両替\n a = x / 500;\n x -= a * 500;\n...
CDSS_421536
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> struct a { long long int next; int flag; long long int from_start; }; int main(void) { long long int n, k; scanf("%lld %lld", &n, &k); struct a a[n]; for (long long int i = 0; i < n; i++) { scanf(" %lld", &a[i].next); a...
6,416
memory_bytes
{'s_id': 's153945796', 'p_id': 'p02684', 'u_id': 'u143118232', 'date': '1589164625', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '34', 'memory': '6416', 'code_size': '962'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nstruct a {\n long long int next;\n int flag;\n l...
CDSS_572954
CDSS
#include <stdio.h> int main() { int N, K, a; a = scanf("%d %d", &N, &K); printf("%d", N - K + 1); return 0; }
128
memory_bytes
{'s_id': 's230252089', 'p_id': 'p03047', 'u_id': 'u014704891', 'date': '1557626669', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '234'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n #include <stdio.h>\n \n int main() {\n int N, K, a;\n a = scanf(\"%d %d\", &N...
CDSS_713560
CDSS
#include<stdio.h> int temp[300001]; void MergeSort(int x[],int left,int right); int main(void){ int N,i,j,sizeof_a; int a[300001]; long long sum=0; scanf("%d",&N); sizeof_a=3*N; for(i=0;i<sizeof_a;i++) scanf("%d",&a[i]); MergeSort(a,0,sizeof_a-1); //for(i=0;i<sizeof_a;i++) printf("%d",a[i]); //putc...
2,560
memory_bytes
{'s_id': 's895308696', 'p_id': 'p03767', 'u_id': 'u234985935', 'date': '1491095536', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '62', 'memory': '2560', 'code_size': '818'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 temp[300001];\n\nvoid MergeSort(int x[],int left,int right);\n\nint main(void){\n int N,i,j,sizeof_a;\n int...
CDSS_394601
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> int main(){ int a, r; scanf("%d", &a); r = a + a * a + a *a * a; printf("%d\n",r); return 0; }
1,720
memory_bytes
{'s_id': 's704735697', 'p_id': 'p02621', 'u_id': 'u338624042', 'date': '1595352940', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1720', 'code_size': '174'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\nint main(){\n int a, r;\n scanf(\"%d\", &a);\n r = a + a * a ...
CDSS_475343
CDSS
#include<stdio.h> int main(){ long h,w; long res; scanf("%ld %ld", &h, &w); if(h == 1 || w == 1){ printf("1"); } else { res = (h * w)/2; if((h * w)% 2 == 1){ res++; } printf("%lu", res); } }
128
memory_bytes
{'s_id': 's499679861', 'p_id': 'p02742', 'u_id': 'u327241892', 'date': '1584237630', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '232'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n long h,w;\n long res;\n \n scanf(\"%ld %ld\", &h, &w);\n if(h == 1 || w == 1){\n printf(\"1...
CDSS_141374
CDSS
#include <stdio.h> #include <stdlib.h> #define INIT_CAP 10 #define INF 1000000000 inline int nextInt(void) { int ch; int sign, x; do { ch = getchar(); } while (ch < '-'); if (ch == '-') { sign = -1; ch = getchar(); } else sign = 1; x = 0; while (ch >= '0' && ch <= '9') { x = x * 10 + ch - '0'; ...
5,652
memory_bytes
{'s_id': 's890193119', 'p_id': 'p02243', 'u_id': 'u340315059', 'date': '1434503493', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '5652', 'code_size': '2394'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 INIT_CAP 10\n#define INF 1000000000\n\ninline int nextInt(void) {\n\tint ch;\n\tint...
CDSS_79015
CDSS
double M[12][4096],r,t;D[12],n; double dfs(p,f){if(M[p][f]<0){ int i=0; for(M[p][f]=0;i<n;i++)if(!(f&1<<i)&&(t=dfs(i,f|1<<i)+D[p]+D[i]-2*sqrt(D[p]*D[i]),M[p][f]<t))M[p][f]=t; }return M[p][f];} main(l,i,j,d){for(;~scanf("%d",&l);puts(d-r>l?"NA":"OK")){ for(d=n=0;getchar()-10;d+=D[n++]*2)scanf("%d",D+n); for(i=0;i<n;i++)...
968
memory_bytes
{'s_id': 's326184567', 'p_id': 'p00120', 'u_id': 'u300645821', 'date': '1359705135', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '968', 'code_size': '403'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\ndouble M[12][4096],r,t;D[12],n;\ndouble dfs(p,f){if(M[p][f]<0){\nint i=0;\nfor(M[p][f]=0;i<n;i++)if(!(f&1<<i)&&(t=dfs(i,f|1<<i)+D[p]+D...
CDSS_701291
CDSS
#include <stdio.h> int main(void){ int n, a[110]; scanf("%d", &n); for(int i=0; i<n; i++) scanf("%d", &a[i]); for(int i=0; i<n; i++){ for(int j=0; j<n-1; j++){ if(a[j]>a[j+1]){ int temp = a[j]; a[j] = a[j+1]; a[j+1] = temp; ...
1,660
memory_bytes
{'s_id': 's124404488', 'p_id': 'p03694', 'u_id': 'u756264154', 'date': '1598134772', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1660', '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\nint main(void){\n int n, a[110];\n scanf(\"%d\", &n);\n for(int i=0; i<n; i++) scanf(\"%d\", &a[i]);\n ...
CDSS_623307
CDSS
#include <stdio.h> int main(void) { int a,b,c; scanf("%d %d",&a,&b); c = a - b + 1; printf("%d",c); return 0; }
128
memory_bytes
{'s_id': 's646363766', 'p_id': 'p03272', 'u_id': 'u574775741', 'date': '1552497873', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '117'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int a,b,c;\n scanf(\"%d %d\",&a,&b);\n c = a - b + 1;\n printf(\"%d\",c);\n return 0;\n}\nPr...
CDSS_63876
CDSS
#include<stdio.h> int main(){ int a,b,n=0,m=0,i=0; double c,d,v; while(scanf("%d,%d",&a,&b)!=EOF){ n=n+a*b; m=m+b; i=i+1; } v=(double)m/i; d=v+0.5; d=(double)(int)d; printf("%d\n%g\n",n,d); return (0); }
624
memory_bytes
{'s_id': 's176473303', 'p_id': 'p00045', 'u_id': 'u107951427', 'date': '1371027974', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '624', 'code_size': '233'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,n=0,m=0,i=0;\n double c,d,v;\n while(scanf(\"%d,%d\",&a,&b)!=EOF){\n n=n+a*b;\n m=m+...
CDSS_673885
CDSS
#include<stdio.h> int main() { int N, A, B; int sum; scanf("%d", &N); scanf("%d", &A); scanf("%d", &B); sum = N * A; if (sum <= B) { printf("%d\n", sum); } else { printf("%d\n", B); } return 0; }
128
memory_bytes
{'s_id': 's570535291', 'p_id': 'p03501', 'u_id': 'u797674884', 'date': '1512353530', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '257'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, A, B;\n int sum;\n\n scanf(\"%d\", &N);\n scanf(\"%d\", &A);\n scanf(\"%d\...
CDSS_350937
CDSS
#include <stdio.h> int main(int argc, const char * argv[]) { int n,m; int i,j; scanf("%d %d",&n,&m); int a[n][m]; int b[m]; int out[n]; for(i=0;i<n;i++){ out[i]=0; for((j=0);j<m;j++){ scanf("%d",&a[i][j]); } }for(j=0;j<m;j++){ scanf("%d",&b[j]...
640
memory_bytes
{'s_id': 's198600164', 'p_id': 'p02410', 'u_id': 'u677269303', 'date': '1492583153', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '496'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 int n,m;\n int i,j;\n scanf(\"%d %d\",&n,&m);\n int a[n]...
CDSS_673660
CDSS
#include<stdio.h> int main(void) { int t,a,b,x; scanf("%d %d %d",&t,&a,&b); x=t*a; if(x<=b){ printf("%d\n",x); } else if(b<=x){ printf("%d\n",b); } return 0; }
128
memory_bytes
{'s_id': 's555151856', 'p_id': 'p03501', 'u_id': 'u856874613', 'date': '1532637124', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '171'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint t,a,b,x;\n\tscanf(\"%d %d %d\",&t,&a,&b);\n\tx=t*a;\n\tif(x<=b){\n\t\tprintf(\"%d\\n\",x);...
CDSS_484588
CDSS
int main() { int k,r; scanf("%d %d",&k,&r); if(k>=10) { printf("%d\n",r); }else{ printf("%d\n",r+100*(10-k)); } return 0; }
128
memory_bytes
{'s_id': 's366256779', 'p_id': 'p02765', 'u_id': 'u761541109', 'date': '1582424662', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '163'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nint main() {\n int k,r;\n scanf(\"%d %d\",&k,&r);\n if(k>=10) {\n printf(\"%d\\n\",r);\n }else{\n printf(\"%...
CDSS_550316
CDSS
#include<stdio.h> int main() { int n,tr,tx,tt; scanf("%d %d %d",&n,&tr,&tx); tt=tr*n; if(tt>tx) { printf("%d",tx); } else if(tt<tx) { printf("%d",tt); } else { printf("%d",tt); } return 0; }
128
memory_bytes
{'s_id': 's080444565', 'p_id': 'p02981', 'u_id': 'u018679195', 'date': '1568262930', '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>\nint main()\n{\n int n,tr,tx,tt;\n scanf(\"%d %d %d\",&n,&tr,&tx);\n tt=tr*n;\n if(tt>tx)\n {\n ...
CDSS_702871
CDSS
#include <stdio.h> int main(){ int A,B; scanf("%d %d",&A,&B); if(A+B>=10)printf("error\n"); else printf("%d",A+B); return 0; }
128
memory_bytes
{'s_id': 's070367274', 'p_id': 'p03697', 'u_id': 'u563313000', 'date': '1497664933', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '162'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n \n int A,B;\n \n scanf(\"%d %d\",&A,&B);\n if(A+B>=10)printf(\"error\\n\");\n el...
CDSS_71568
CDSS
#include <stdio.h> int dim(int a,int b){ return (a > b) ? 0 : (b-a); } int check(int *data,int *num,int p){ int i,n; n = 0; for(i = 0;i < 8;i++){ n += dim(data[(i+p)%8],num[i]); } return n; } int main(){ int i,j,min,n,num,tmp,ans; int p[8],c[8]; while(scanf("%d",&p[0]) != EOF){ min = p[0]; c[0] = 1...
600
memory_bytes
{'s_id': 's523620347', 'p_id': 'p00082', 'u_id': 'u377201167', 'date': '1359196988', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '807'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 dim(int a,int b){\n\treturn (a > b) ? 0 : (b-a);\n}\n\nint check(int *data,int *num,int p){\n\tint i,n;\n\n\...
CDSS_172124
CDSS
#include<stdio.h> #include<stdlib.h> int main() { int i, j, minj, N, *A, temp, count=0; scanf("%d", &N); A = malloc( N * sizeof(int)); for( i=0; i<N; i++ ) scanf("%d", &A[i]); for( i=0; i<N; i++ ) { minj = i; for( j=i; j<N; j++ ) { if( A[j] < A[minj] ) minj = j; } if( min...
2,104
memory_bytes
{'s_id': 's613608621', 'p_id': 'p02260', 'u_id': 'u978945152', 'date': '1575955130', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '601'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint main()\n{\n int i, j, minj, N, *A, temp, count=0;\n\n scanf(\"%d\", &N);\n\n A = mallo...
CDSS_717923
CDSS
#include<stdio.h> int main(){ long long n,m,w; scanf("%lld%lld",&n,&m); w=(m+n*2)>>2; if(n>w)printf("%lld",m/2); else printf("%lld",w); return 0; }
128
memory_bytes
{'s_id': 's059700148', 'p_id': 'p03797', 'u_id': 'u089230684', 'date': '1512271319', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main(){\n\tlong long n,m,w;\n\tscanf(\"%lld%lld\",&n,&m);\n\tw=(m+n*2)>>2;\n\tif(n>w)printf(\"%lld\",m/2);\n\te...
CDSS_745948
CDSS
#include<stdio.h> int main() { int N,K,D[11],i,s,E[11],a,b,c,d,e,T,p; scanf("%d %d",&N,&K); for(i=1;i<=K;i=i+1){scanf("%d ",&D[i]);} s=0; D[0]=0; if(D[1]>=1){s=s+1;E[s]=0;} for(i=0;i<=K;i=i+1) { if(D[i+1]-D[i]==2){s=s+1;E[s]=D[i]+1;} if(D[i+1]-D[i]==3){s=s+2;E[s]=D[i]+2;E[s-1]=D[i]+1;} if(D[i+1]-D[i]==4){s=s+3;E[...
128
memory_bytes
{'s_id': 's490507803', 'p_id': 'p04045', 'u_id': 'u934952648', 'date': '1566415168', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '3674'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\nint N,K,D[11],i,s,E[11],a,b,c,d,e,T,p;\nscanf(\"%d %d\",&N,&K);\nfor(i=1;i<=K;i=i+1){scanf(\"%d \",&...
CDSS_350094
CDSS
#include <stdio.h> int main(void){ int count[4][3][10]; int n,i; scanf("%d", &n); for(i=0;i<4;i++){//初期化 int j; for(j=0;j<3;j++){ int k; for(k=0;k<10;k++){ count[i][j][k] = 0; } } } for(i=0;i<n;i++){ int b,f,r,v...
2,104
memory_bytes
{'s_id': 's671212608', 'p_id': 'p02409', 'u_id': 'u397720792', 'date': '1589101972', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '781'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 count[4][3][10];\n int n,i;\n scanf(\"%d\", &n);\n for(i=0;i<4;i++){//初期化\n ...
CDSS_640208
CDSS
/* kadai4_3 stone_monument unomi */ #include <stdio.h> #include <math.h> int convert_snow_height(int diff_height, int east_height){ int east_tower_height=0; // (east_height - west_height)本目(東側)と(east_height - west_height - 1)本目(西側)の間で高さ測定 // 1 ~ nまでの和を計算 -> 東側の(east_height - west_height)本目の塔の高さ eas...
128
memory_bytes
{'s_id': 's178019561', 'p_id': 'p03328', 'u_id': 'u653872430', 'date': '1590687692', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '835'}
[ { "content": "Your task is to predict the memory 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 kadai4_3 stone_monument\n unomi\n*/\n#include <stdio.h>\n#include <math.h>\n\nint convert_snow_height(int diff_height, int east...
CDSS_301638
CDSS
#include<stdio.h> int main(void){ int a,b; while(1){ scanf("%d %d",&a,&b); if(a==0 && b == 0){ break; } if(a < b){ printf("%d %d\n",a,b); }else { printf("%d %d\n",b,a); } } return 0; }
600
memory_bytes
{'s_id': 's392538928', 'p_id': 'p02397', 'u_id': 'u464353523', 'date': '1494318916', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '284'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int a,b;\n while(1){\n scanf(\"%d %d\",&a,&b);\n if(a==0 && b == 0){\n ...
CDSS_307470
CDSS
#include<stdio.h> int main(){ int a, b, c, d, e; e = 0; scanf("%d %d %d", &a, &b, &c); for(int x = a; x <= b; x++){ d = c % x; if(d == 0){ e += 1; } } printf("%d\n",e); return 0; }
2,132
memory_bytes
{'s_id': 's031049610', 'p_id': 'p02398', 'u_id': 'u252060773', 'date': '1555384314', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2132', 'code_size': '183'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 a, b, c, d, e;\ne = 0;\nscanf(\"%d %d %d\", &a, &b, &c);\nfor(int x = a; x <= b; x++){\nd = c % x;...
CDSS_137944
CDSS
#include <stdio.h> #define INF 2147483647 int n,head,tail,Q[100],color[100],d[100],A[100][100]; void enqueue(int x){ Q[tail] = x; if(tail+1 == 100)tail = 0; else tail ++; } void bfs(int s){ int i,u; for(i = 0;i < n;i ++) { color[i] = 0; d[i] = INF; } color[s] = 1; d[s] = 0; ...
636
memory_bytes
{'s_id': 's918837366', 'p_id': 'p02239', 'u_id': 'u654812493', 'date': '1501594767', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '1100'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 INF 2147483647\n\nint n,head,tail,Q[100],color[100],d[100],A[100][100];\n\n\n \nvoid enqueue(int x){\n Q[...
CDSS_608203
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main() { int a, b, c, d, X, Y; // double c; // long long a, b, c, d, X, Y; int D, G; //char s[101][101]={}; char sv[101]={}; char ss[101]={}; // char s_temp[101]={}; char t[12]={}; // char s[10000000000000000001]={}; ...
128
memory_bytes
{'s_id': 's121464139', 'p_id': 'p03207', 'u_id': 'u301843562', 'date': '1544322051', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1056'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n \nint main()\n{\n int a, b, c, d, X, Y;\n// doubl...
CDSS_401462
CDSS
#include<stdio.h> long long d[3010][3010],M=998244353; int main(){ int a,b,c,e,i,j; long long x,y,z; scanf("%d %d %d %d",&a,&b,&c,&e); d[a][b]=1; for(i=a;i<c;i++)d[i+1][b]=(d[i][b]*b)%M; for(j=b;j<e;j++)d[a][j+1]=(d[a][j]*a)%M; for(i=a;i<c;i++){ for(j=b;j<e;j++){ x=(d[i+1][j]*(i+1))%M; y=(...
72,180
memory_bytes
{'s_id': 's479786209', 'p_id': 'p02634', 'u_id': 'u121922047', 'date': '1592705225', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '343', 'memory': '72180', 'code_size': '448'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nlong long d[3010][3010],M=998244353;\nint main(){\n int a,b,c,e,i,j;\n long long x,y,z;\n scanf(\"%d %d %d %d\",...
CDSS_695873
CDSS
#include <stdio.h> #include <stdlib.h> int cmpint(const void *x, const void *y) { return *(int *)y - *(int *)x; } int main() { int n, k, l[50], sum = 0; scanf("%d%d", &n, &k); for (int i = 0; i < n; i++) { scanf("%d", &l[i]); } qsort(l, n, sizeof(int), cmpint); for (int i = 0; i < k; i++) { sum += l[i]; } p...
128
memory_bytes
{'s_id': 's208113196', 'p_id': 'p03658', 'u_id': 'u030504180', 'date': '1586726083', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '352'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\nint cmpint(const void *x, const void *y) { return *(int *)y - *(int *)x; }\nint main() {\n\ti...
CDSS_384211
CDSS
#include <stdio.h> #include <string.h> #include <stdbool.h> #include <math.h> int main(void) { int N; long long L[100]; int num = 0; scanf("%d", &N); for(int i = 0; i < N; i++) { scanf("%lld", &L[i]); } for(int i = 0; i < N; i++) { for(int j = i + 1; j < N; j++) { ...
1,732
memory_bytes
{'s_id': 's041662753', 'p_id': 'p02583', 'u_id': 'u339658123', 'date': '1597519393', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', 'code_size': '864'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 <stdbool.h>\n#include <math.h>\n\nint main(void) {\n int N;\n long long L[100]...
CDSS_113207
CDSS
#include<stdio.h> int main(){ int a=-1,b=-1,c=-1,d=-1,e=-1,f=-1; int min,ans=0,i; //入力 scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f); while(1){ //全て0なら入力を終わる if(a==0 && b==0 && c==0 && d==0 && e==0 && f==0) break; //足し算 a+=d; b+=e; c+=f; for(i=0;i<=2;i++){ if(a>=i &&...
600
memory_bytes
{'s_id': 's970201775', 'p_id': 'p00662', 'u_id': 'u505088719', 'date': '1426774981', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '600', 'code_size': '617'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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=-1,b=-1,c=-1,d=-1,e=-1,f=-1;\n int min,ans=0,i;\n \n //入力\n scanf(\"%d %d %d %d %d %d\...
CDSS_150326
CDSS
#include <stdio.h> #include <stdlib.h> void Division( long num1, long num2 ); int main() { char str1[15]; char str2[15]; long num1; long num2; char *dummy; fscanf(stdin, "%s", str1); fscanf(stdin, "%s", str2); num1 = strtol(str1,&dummy,0); num2 = strtol(str2,&dummy,0); ...
2,104
memory_bytes
{'s_id': 's094335634', 'p_id': 'p02256', 'u_id': 'u255514482', 'date': '1531440586', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '785'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nvoid Division( long num1, long num2 );\n\nint main()\n{\n char str1[15];\n char str2[...
CDSS_108912
CDSS
// AOJ 0606: Tower of JOIOI // 2018.1.10 bal4u@uu #include <stdio.h> #include <stdlib.h> char s[1000005], *p; int check(char *p, int m) { int i, si, oi, soi, n; i = si = oi = soi = n = 0; while (*p) { if (*p == 'J') { if (soi > oi) { oi++; if (++n == m) return 1; } } else if (*p == 'O') { if (si > i &&...
2,736
memory_bytes
{'s_id': 's732264265', 'p_id': 'p00529', 'u_id': 'u847467233', 'date': '1515595719', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '2736', 'code_size': '1047'}
[ { "content": "Your task is to predict the memory 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 0606: Tower of JOIOI\n// 2018.1.10 bal4u@uu\n\n#include <stdio.h>\n#include <stdlib.h>\n\nchar s[1000005], *p;\n\nint check(cha...
CDSS_32809
CDSS
#include<stdio.h> int main(){ int a,b,c,d,e,f; float x,y; while(scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f)!=-1){ x = (float)(c*e-b*f)/(a*e-d*b); y = (float)(c*d-a*f)/(b*d-a*e); if(-0.0005<x && x<=0) x=0; if(-0.0005<y && y<=0) y=0; printf("%.3f %.3f\n",x,y); } return 0; }
636
memory_bytes
{'s_id': 's708493838', 'p_id': 'p00004', 'u_id': 'u384429995', 'date': '1493339059', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '317'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n \nint main(){\n int a,b,c,d,e,f;\n float x,y;\n while(scanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f)!=-1){\n ...