identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_620338
CDSS
main(a,b){scanf("%d%d",&a,&b);puts((a*b)%2?"Yes":"No");}
128
memory_bytes
{'s_id': 's169387914', 'p_id': 'p03260', 'u_id': 'u244203620', 'date': '1537139653', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '56'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nmain(a,b){scanf(\"%d%d\",&a,&b);puts((a*b)%2?\"Yes\":\"No\");}\nPredict its memory footprint.", "role": "user" }, { "conte...
CDSS_539522
CDSS
#include <stdio.h> int main(void) { int k, x, i; scanf("%d %d", &k, &x); for (i = (-1 * k) + 1; i < k; i++) { printf("%d ", x + i); } printf("\n"); return 0; }
128
memory_bytes
{'s_id': 's085689544', 'p_id': 'p02946', 'u_id': 'u868315131', 'date': '1590892641', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '175'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 k, x, i;\n\n\tscanf(\"%d %d\", &k, &x);\n\n\tfor (i = (-1 * k) + 1; i < k; i++) {\n\t\t...
CDSS_258519
CDSS
#include<stdio.h> int main(void){ int a = 0,b = 0; scanf("%d %d", &a, &b); printf("%d %d\n", a*b,2*a+2*b); return 0; }
2,048
memory_bytes
{'s_id': 's920499771', 'p_id': 'p02389', 'u_id': 'u851097163', 'date': '1538377435', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '127'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 = 0,b = 0;\n scanf(\"%d %d\", &a, &b);\n printf(\"%d %d\\n\", a*b,2*a+2*b);\n return 0;...
CDSS_152321
CDSS
#include<stdio.h> int gcd(int x, int y){ return y ? gcd(y, x % y) : x; } int main(){ int a,b; scanf("%d %d", &a, &b); printf("%d\n", gcd(a,b)); return 0; }
1,856
memory_bytes
{'s_id': 's119877858', 'p_id': 'p02256', 'u_id': 'u843835532', 'date': '1509445822', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1856', 'code_size': '181'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint gcd(int x, int y){\n return y ? gcd(y, x % y) : x;\n}\n\nint main(){\n int a,b;\n scanf(\"%d %d\", &a,...
CDSS_442657
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> int main() { int n,m,a; scanf("%d %d", &n,&m); for(int i=0;i<m;i++){ scanf("%d",&a); n-=a; } printf("%d",(n>=0? n : -1)); return 0; }
1,700
memory_bytes
{'s_id': 's872123464', 'p_id': 'p02706', 'u_id': 'u163680061', 'date': '1591325853', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1700', 'code_size': '253'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\nint main() {\n\n int n,m,a;\n scanf(\"%d %d\", &n,&m);\n \n ...
CDSS_295837
CDSS
#include<stdio.h> int main(void){ int x; int i = 0; koko: scanf("%d", &x); while(x != 0){ i += 1; printf("Case %d: %d\n", i ,x); goto koko; } return 0; }
600
memory_bytes
{'s_id': 's225041410', 'p_id': 'p02396', 'u_id': 'u962330056', 'date': '1474272011', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '180'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int x;\n int i = 0;\n koko:\n scanf(\"%d\", &x);\n while(x != 0){\n i += 1;\n printf(\...
CDSS_210289
CDSS
#include<stdio.h> int A[100000]; int par(int *A,int p,int r){ int x,i,j,tmp; x = A[r]; i = p-1; for(j=p;j<=r-1;j++){ if(A[j]<=x){ i++; tmp = A[i]; A[i] = A[j]; A[j] = tmp; } } tmp = A[i+1]; A[i+1] = A[r]; A[r] = tmp; return i+1; } int main(){ int i,n,key; scanf...
2,132
memory_bytes
{'s_id': 's811824674', 'p_id': 'p02276', 'u_id': 'u591065565', 'date': '1531124680', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2132', 'code_size': '564'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 A[100000];\n\nint par(int *A,int p,int r){\n int x,i,j,tmp;\n x = A[r];\n i = p-1;\n for(j=p;j<=r-1;j++){...
CDSS_347792
CDSS
#include <stdio.h> int main(void) { int house[4][3][10] = {}; int i, j, k; int n; scanf("%d", &n); while (n--){ int b, f, r, v; scanf("%d %d %d %d", &b, &f, &r, &v); b--, f--, r--; house[b][f][r] += v; } for (i = 0; i < 4; i++){ if (i){ ...
612
memory_bytes
{'s_id': 's139081740', 'p_id': 'p02409', 'u_id': 'u831548601', 'date': '1404726421', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '578'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 house[4][3][10] = {};\n int i, j, k;\n int n;\n \n scanf(\"%d\", &n);\n ...
CDSS_270626
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; }
580
memory_bytes
{'s_id': 's092493691', 'p_id': 'p02391', 'u_id': 'u663449350', 'date': '1494297341', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', '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{\n int a, b;\n scanf(\"%d%d\", &a, &b);\n if(a>b) {\n printf(\"a > b\\n\");\n }e...
CDSS_570729
CDSS
#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<string.h> int main() { int num, num1; char str[50]; scanf("%d %d", &num, &num1); scanf("%s", str); for (int i = 0; i < num; i++) { if (num1 -1== i) { if ('A'==str[i]) { str[i ] = 'a'; } else if ('B'==str[i ]) { str[i] = 'b';...
128
memory_bytes
{'s_id': 's302563284', 'p_id': 'p03041', 'u_id': 'u918373199', 'date': '1558320923', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '415'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n#include<stdio.h>\n#include<string.h>\nint main() {\n\tint num, num1;\n\tchar str[50];\n\tscanf(\"%d ...
CDSS_169228
CDSS
#include<stdio.h> int bubbleSort(int [], int n); int main(){ int n,a[100],i,c; scanf("%d",&n); for(i = 0; i < n; i++){ scanf("%d",&a[i]); } c = bubbleSort(a, n); for(i = 0; i < n; i++){ if(i != n-1) printf("%d ",a[i]); else printf("%d",a[i]); } printf("\n"); printf("%d\n",c); r...
2,140
memory_bytes
{'s_id': 's399632262', 'p_id': 'p02259', 'u_id': 'u916257595', 'date': '1544157838', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '570'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 bubbleSort(int [], int n);\n\nint main(){\n int n,a[100],i,c;\n scanf(\"%d\",&n);\n \n for(i = 0; i < n; ...
CDSS_138897
CDSS
#include <stdio.h> #include <limits.h> #define N 100 #define WHITE 0 #define BLACK 1 #define NIL -1 int main(void){ int i,j,k,n,w,r=0,mincost; int G[N][N],d[N],pi[N],color[N]; scanf("%d",&n); for(i=0;i<n;i++){ d[i] = INT_MAX; pi[i] = NIL; color[i] = WHITE; for(j=0;j<n;j++){ scanf("...
640
memory_bytes
{'s_id': 's643120928', 'p_id': 'p02241', 'u_id': 'u682755774', 'date': '1436517552', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '786'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <limits.h>\n#define N 100\n#define WHITE 0\n#define BLACK 1\n#define NIL -1\n\nint main(void){\n\n int i...
CDSS_159508
CDSS
#include <stdio.h> int isprime(int); int main(){ int i,x,result=0,n; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&x); result+=isprime(x); } printf("%d\n",result); return 0; } int isprime(int x){ int i; if(x==2) return 1; if(x<2 || x%2==0) return 0; i=3; while(i*i<=x){ if(x...
2,104
memory_bytes
{'s_id': 's336061661', 'p_id': 'p02257', 'u_id': 'u754549479', 'date': '1576047640', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '372'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint isprime(int);\nint main(){\n int i,x,result=0,n;\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\n scanf(\"%d\",...
CDSS_559917
CDSS
#include<stdio.h> #include<math.h> int main(){ int n, t, mm, d=0, a=1, i; scanf("%d%d", &n, &t); //input the number of test and target number for(i = 0;i < n ; i++){ scanf("%d", &mm); if(mm<=t){ d = d+mm; if(d<=t) a++; } } printf("%d\n", a)...
128
memory_bytes
{'s_id': 's783035509', 'p_id': 'p03000', 'u_id': 'u353919145', 'date': '1586232855', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '338'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\nint main(){\n int n, t, mm, d=0, a=1, i;\n scanf(\"%d%d\", &n, &t); //input the number of t...
CDSS_184051
CDSS
#include <stdio.h> #include <string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, elaps; void enqueue(P x){ Q[tail] = x; if(tail + 1 == LEN) tail = 0; else tail++; } P dequeue(){ P x; x = Q[head]; if(head + 1 == LEN) head = 0; else ...
11,856
memory_bytes
{'s_id': 's550846552', 'p_id': 'p02264', 'u_id': 'u249145365', 'date': '1544949763', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '11856', 'code_size': '731'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 LEN 100005\n\ntypedef struct pp{\n char name[100];\n int t;\n}P;\n\nP Q[LEN+1];\nin...
CDSS_422431
CDSS
#include <stdio.h> int main(){ char S[10]; scanf("%s",S); if(S[1]=='B')printf("ARC\n"); else printf("ABC\n"); return 0; }
1,620
memory_bytes
{'s_id': 's562665274', 'p_id': 'p02687', 'u_id': 'u062865912', 'date': '1588723265', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1620', 'code_size': '137'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n char S[10];\n scanf(\"%s\",S);\n if(S[1]=='B')printf(\"ARC\\n\");\n else printf(\"ABC\\n\"); ...
CDSS_591187
CDSS
#include <stdio.h> int main(void) { int A, B, C, d; scanf("%d %d %d", &A,&B,&C); d = B / A; if(d>=C) printf("%d\n",C); else printf("%d\n",d); return 0; }
128
memory_bytes
{'s_id': 's112924566', 'p_id': 'p03105', 'u_id': 'u238008846', 'date': '1554466940', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '177'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int A, B, C, d;\n\n scanf(\"%d %d %d\", &A,&B,&C);\n d = B / A;\n if(d>=C)\n prin...
CDSS_636340
CDSS
#include <stdio.h> int main(){ int N,k,i,x,ans=0; scanf("%d %d",&N,&k); ans = (N-1)/(k-1); if( (N-1)%(k-1)>0){ ans++; } printf("%d",ans); return 0; }
128
memory_bytes
{'s_id': 's115329785', 'p_id': 'p03317', 'u_id': 'u230853195', 'date': '1532546584', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '202'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n #include <stdio.h>\n int main(){\n \tint N,k,i,x,ans=0;\n \tscanf(\"%d %d\",&N,&k);\n \tans = (N-1)/(k-1);\n \tif( ...
CDSS_640249
CDSS
/* ex4_3 pptenshi */ #include<stdio.h> int west_tower_num(int height_west, int height_east); int height_tower(int num); int main(void) { int height_west, // a height_east, // b snowfall; // 積雪量 // input scanf("%d%d", &height_west, &height_east); // calculate ans sno...
128
memory_bytes
{'s_id': 's727194663', 'p_id': 'p03328', 'u_id': 'u925712873', 'date': '1590645484', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '857'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* ex4_3\n pptenshi */\n\n#include<stdio.h>\n\nint west_tower_num(int height_west, int height_east);\nint height_tower(int num);\...
CDSS_637609
CDSS
#include <limits.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> // 内部定数 #define D_ON 1 // 汎用フラグ - ON #define D_OFF 0 // 汎用フラグ - OFF #define D_CAKE_MAX 8 // 最大ケーキ数 // 内部変数 - テスト用 #ifdef D_TEST static int siRes; static FILE *szpFpT, *s...
128
memory_bytes
{'s_id': 's431198493', 'p_id': 'p03323', 'u_id': 'u088333128', 'date': '1529610906', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1684'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <limits.h>\n#include <math.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <time.h>\n\n// 内部定数\n#d...
CDSS_345017
CDSS
#include<stdio.h> int main(void){ int k[4][13]; int i,n,r,l; for(i=0;i<4;i++){ for(n=0;n<13;n++){ k[i][n]=0; } } char c; scanf("%d",&l); for(i=0;i<l;i++){ scanf("%c",&c); scanf("%c %d",&c,&r); if(c=='S'){k[0][r-1]=1;} else if(c=='H'){k[1][r-1]=1;} else if(c=='C'){k[2][r-1]=1;} else if(c=='D'){k[3][r-1]=1;} } for(i=0;i<...
596
memory_bytes
{'s_id': 's135223131', 'p_id': 'p02408', 'u_id': 'u485987312', 'date': '1445414137', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '523'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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){\nint k[4][13];\nint i,n,r,l;\nfor(i=0;i<4;i++){\nfor(n=0;n<13;n++){\nk[i][n]=0;\n}\n}\nchar c;\nsca...
CDSS_200239
CDSS
#include<stdio.h> int A[50],n; int solve(int i,int m){ int res; if(m==0)return 1; if(i>=n)return 0; res = solve(i + 1,m) || solve(i+1,m-A[i]); return res; } int main(){ int i,j; int q; int m; scanf("%d",&n); if(n<0 || n>20)return 0; for(i = 0;i<n;i++){ scanf("%d",&A[i]); if(A[i]<1||A...
2,108
memory_bytes
{'s_id': 's176702841', 'p_id': 'p02271', 'u_id': 'u705531131', 'date': '1530237658', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '430', 'memory': '2108', 'code_size': '520'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 A[50],n;\n\nint solve(int i,int m){\n int res;\n if(m==0)return 1;\n if(i>=n)return 0;\n res = solve(i +...
CDSS_158848
CDSS
#include<stdio.h> #include<math.h> int prime_check(int x){ for(int i=2;i<=sqrt(x);i++) if(x%i == 0)return 0; return 1; } int main(){ int n,i,x; int ans=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&x); if(prime_check(x)) ans++; } printf("%d\n",ans); return 0; }
2,064
memory_bytes
{'s_id': 's122877986', 'p_id': 'p02257', 'u_id': 'u723915999', 'date': '1529835598', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2064', 'code_size': '299'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n\nint prime_check(int x){\n\n\tfor(int i=2;i<=sqrt(x);i++)\n\t\tif(x%i == 0)return 0;\n\t\n\tretu...
CDSS_661829
CDSS
#include <stdio.h> int main(void) { int a,b; scanf("%d",&a); scanf("%d",&b); if ((a * b) % 2 == 0) { printf("%s","Even"); } else { printf("%s","Odd"); } }
128
memory_bytes
{'s_id': 's895798788', 'p_id': 'p03455', 'u_id': 'u802913845', 'date': '1588287246', '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\nint main(void) {\n int a,b;\n scanf(\"%d\",&a);\n scanf(\"%d\",&b);\n if ((a * b) % 2 == 0) {\n ...
CDSS_664861
CDSS
#include <stdio.h> int main(void) { char s[100]; scanf("%s",s); s[3]='8'; printf("%s\n",s); return 0; }
128
memory_bytes
{'s_id': 's248393679', 'p_id': 'p03469', 'u_id': 'u916428362', 'date': '1550781821', '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\tchar s[100];\n\t\n\tscanf(\"%s\",s);\n\t\n\ts[3]='8';\n\t\n\tprintf(\"%s\\n\",s);\n\t\n\tre...
CDSS_74187
CDSS
#include<stdio.h> #define N 3.305785 int main(){ int a, b; scanf("%d %d", &a, &b); double ans = ((double)a*b)/N; printf("%.6f\n", ans); return 0; }
636
memory_bytes
{'s_id': 's648030433', 'p_id': 'p00094', 'u_id': 'u278606251', 'date': '1365399762', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', 'code_size': '158'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 3.305785\n\nint main(){\n int a, b;\n scanf(\"%d %d\", &a, &b);\n double ans = ((double)a*b)/N;\n pri...
CDSS_501505
CDSS
#define _CRT_SECURE_NO_WARNINGS #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <inttypes.h> #include <limits.h> #include <ctype.h> #include <stdint.h> #include <string.h> #include <wchar.h> #include <math.h> #define N_MAX (100) #define P_MAX (100) #define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1) ...
128
memory_bytes
{'s_id': 's275395174', 'p_id': 'p02806', 'u_id': 'u615782628', 'date': '1578791099', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '11641'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n\n#include <stdbool.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <inttypes.h>\n#include <lim...
CDSS_616917
CDSS
#include <stdio.h> int main(void) { int n; scanf("%d", &n); if (n <= 111) printf("111\n"); else if (n <= 222) printf("222\n"); else if (n <= 333) printf("333\n"); else if (n <= 444) printf("444\n"); else if (n <= 555) printf("555\n"); else if (n <...
128
memory_bytes
{'s_id': 's412633927', 'p_id': 'p03243', 'u_id': 'u495636699', 'date': '1538272775', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '513'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int n;\n\n scanf(\"%d\", &n);\n if (n <= 111)\n printf(\"111\\n\");\n els...
CDSS_478265
CDSS
#include<stdio.h> main() { char S[3]; int i,a=0,b=0; for(i=0;i<3;i++) { scanf("%c",&S[i]); } for(i=0;i<3;i++) { if(S[i]=='A') a++; else b++; } if(a>=1&&b>=1) printf("Yes"); else printf("No"); }
128
memory_bytes
{'s_id': 's498605425', 'p_id': 'p02753', 'u_id': 'u702649603', 'date': '1583995658', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '215'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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{\n\tchar S[3];\n\tint i,a=0,b=0;\n\tfor(i=0;i<3;i++)\n\t{\n\t\tscanf(\"%c\",&S[i]);\n\t}\n\tfor(i=0;i<3;i+...
CDSS_589453
CDSS
#include <stdio.h> int main(void){ int H, W, h, w; scanf("%d %d", &H, &W); scanf("%d %d", &h, &w); printf("%d\n", H * W - H * w - h * W + h * w); return 0; }
128
memory_bytes
{'s_id': 's441801502', 'p_id': 'p03101', 'u_id': 'u318955153', 'date': '1552161767', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '179'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 H, W, h, w;\n scanf(\"%d %d\", &H, &W);\n scanf(\"%d %d\", &h, &w);\n printf(\...
CDSS_621708
CDSS
#include <stdio.h> int main(int argc, char const *argv[]) { int qtd = 0, pairs = 0, odds = 0, res = 0; scanf("%d", &qtd); if (qtd % 2 == 0) { pairs = qtd/2; res = pairs * pairs; } else { pairs = (qtd-1)/2; res = pairs*(pairs+1); } printf("%d\n", res); retu...
128
memory_bytes
{'s_id': 's013414072', 'p_id': 'p03264', 'u_id': 'u089230684', 'date': '1586421749', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '328'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(int argc, char const *argv[])\n{\n int qtd = 0, pairs = 0, odds = 0, res = 0;\n\n scanf(\"%d\", &...
CDSS_206015
CDSS
#include<stdio.h> #define N 200000 int S[N],Left[N/2+1],Right[N/2+1]; double count=0; void margesort(int left,int right){ int mid; if(left+1 < right){ mid = (left + right)/2; margesort(left,mid); margesort(mid,right); marge(left,mid,right); } } void marge(int left,int mid,int right){ int n1,n...
2,192
memory_bytes
{'s_id': 's372788931', 'p_id': 'p02274', 'u_id': 'u840531793', 'date': '1501641804', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '50', 'memory': '2192', 'code_size': '830'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 200000\nint S[N],Left[N/2+1],Right[N/2+1];\ndouble count=0;\nvoid margesort(int left,int right){\n int m...
CDSS_518048
CDSS
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> int main(){ int a, b; scanf("%d%d", &a, &b); printf("%d\n", (a < 10 && b < 10) ? a * b : -1); return 0; }
128
memory_bytes
{'s_id': 's836357848', 'p_id': 'p02879', 'u_id': 'u868056941', 'date': '1572224775', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\n#include <string.h>\n#include <math.h>\n#include <stdlib.h>\n\nint main(){\n\tint a, b;\n\tscanf(\"%d%d\", &a, &b)...
CDSS_398323
CDSS
#include<stdio.h> #define MAX 10000010 long long c[MAX+10]; /* 約数の数を記録する */ void calc(void) { for (int i = 1; i <= MAX; i++) c[i] = 1; for (int j = 2; j <= MAX; j++) { for (int i = j; i <= MAX; i+=j) c[i]++; } } int main(void) { int n; scanf("%d", &n); calc(); long long ans = 0; for (int i = 1; ...
79,852
memory_bytes
{'s_id': 's664982082', 'p_id': 'p02624', 'u_id': 'u844646164', 'date': '1593310546', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1487', 'memory': '79852', 'code_size': '413'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define MAX 10000010\n\nlong long c[MAX+10]; /* 約数の数を記録する */\nvoid calc(void)\n{\n for (int i = 1; i <= MAX; i++)...
CDSS_384649
CDSS
#include<stdio.h> #define MOD(a) ((a)<0?((-1)*(a)):(a)) int main() { long long x,k,d; scanf("%lld %lld %lld",&x,&k,&d); x=MOD(x); long long dif=k-x/d; long long dif1=x-k*d; double check=(((1.0)*x)/k)-((1.0)*d); if(check>=0) printf("%lld\n",dif1); else if(dif%2==0) printf...
1,728
memory_bytes
{'s_id': 's677784832', 'p_id': 'p02584', 'u_id': 'u285146595', 'date': '1597522734', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1728', 'code_size': '393'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 MOD(a) ((a)<0?((-1)*(a)):(a))\n\nint main()\n{\n long long x,k,d;\n scanf(\"%lld %lld %lld\",&x,&k,&d...
CDSS_344177
CDSS
#include <stdio.h> int main(void){ // Your code here! int n,i,a[1000]; scanf("%d",&n); for(i=1; i<=n; i++){ scanf("%d",&a[i]); } for(i=n ; i>=1 ; i--){ printf("%d",a[i]); if(i==1) break; printf(" "); } printf("\n"); return 0; }
2,044
memory_bytes
{'s_id': 's567365971', 'p_id': 'p02407', 'u_id': 'u500935997', 'date': '1533653570', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', '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>\nint main(void){\n // Your code here!\n int n,i,a[1000];\n scanf(\"%d\",&n);\n for(i=1; i<=n; i++){\n scanf(\"...
CDSS_104323
CDSS
#include <stdio.h> #include <string.h> #include <math.h> int list; int clist[1000000]; int need[100]; int digit(int n) { int digit; digit = 0; while (n != 0){ n /= 10; digit++; } return (digit); } int combi(int used, int use, int now, int n, int *card){ int i; ...
0
memory_bytes
{'s_id': 's817836887', 'p_id': 'p00469', 'u_id': 'u032763525', 'date': '1323679316', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '0', 'code_size': '1183'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 <math.h>\n\nint list;\nint clist[1000000];\nint need[100];\n\nint digit(int n)\n{\n ...
CDSS_35389
CDSS
#include <stdio.h> int main(){ int a, b, tmp, r, c, d; while(scanf("%d%d",&a,&b)!=EOF){ c = a; d = b; while(1){ if(b>a){tmp = a; a = b; b = tmp; } r = a % b; if(r == 0) break; a = b; b = r; } tmp = b*(c/b)*(d/b); printf("%d %d\n", b, tmp); } return 0; }
596
memory_bytes
{'s_id': 's931289154', 'p_id': 'p00005', 'u_id': 'u713611119', 'date': '1463395333', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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\tint a, b, tmp, r, c, d;\n\twhile(scanf(\"%d%d\",&a,&b)!=EOF){\n\t\tc = a; d = b;\n\t\twhile(1){\n\t...
CDSS_268239
CDSS
#include <stdio.h> int main(void){ int a,b; scanf("%d %d",&a,&b); if(a<b){ printf("a < b\n"); }else if(a>b){ printf("a > b\n"); }else{ printf("a == b\n"); } return 0; }
580
memory_bytes
{'s_id': 's751256008', 'p_id': 'p02391', 'u_id': 'u692939104', 'date': '1465258321', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', '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\nint main(void){\n int a,b;\n scanf(\"%d %d\",&a,&b);\n if(a<b){\n printf(\"a < b\\n\");\n }else i...
CDSS_62440
CDSS
#include<stdio.h> int exch(int ch){ if(ch=='I') return (1); else if(ch=='V') return (5); else if(ch=='X') return (10); else if(ch=='L') return (50); else if(ch=='C') return (100); else if(ch=='D') return (500); else if(ch=='M') return (1000); else return (0); } int main(void){ int i,sum,max; char str[101]; ...
540
memory_bytes
{'s_id': 's582065910', 'p_id': 'p00039', 'u_id': 'u167841698', 'date': '1358886557', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '540', 'code_size': '602'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 exch(int ch){\n\tif(ch=='I') return (1);\n\telse if(ch=='V') return (5);\n\telse if(ch=='X') return (10);\n\t...
CDSS_635043
CDSS
#include <stdio.h> int main() { char Si[4]; int x = 0; for (int i = 0; i < 8; i++) { scanf("%c", &Si[i]); if (Si[i] == '+') { x++; } else if (Si[i] == '-') { x--; } } printf("%d", x); return 0; }
128
memory_bytes
{'s_id': 's392773930', 'p_id': 'p03315', 'u_id': 'u419781706', 'date': '1532535070', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '306'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n char Si[4];\n int x = 0;\n\n for (int i = 0; i < 8; i++)\n {\n scanf(\"%c\", ...
CDSS_580966
CDSS
#include <stdio.h> int main() { int n,h[20],a=1,i,m; scanf("%d",&n); scanf("%d",&h[0]); m = h[0]; for(i=1;i<n;i++) { scanf("%d",&h[i]); if(m<=h[i]) { a++; m=h[i]; } } printf("%d\n",a); return 0; }
128
memory_bytes
{'s_id': 's593847660', 'p_id': 'p03072', 'u_id': 'u085526499', 'date': '1555183716', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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 int n,h[20],a=1,i,m;\n scanf(\"%d\",&n);\n scanf(\"%d\",&h[0]);\n m = h[0];\n for(i=1;i<n;i...
CDSS_204325
CDSS
#include<stdio.h> #include<math.h> #define N 500000 #define INFTY 1000000000 int count=0; void merge(int*, int, int, int); void mergeSort(int*, int, int); int main(){ int a,i,A[N]; scanf("%d",&a); for(i=0;i<a;i++) scanf("%d",&A[i]); mergeSort(A,0,a); for(i=0;i<a-1;i++) printf("%d ",A[i]); prin...
5,680
memory_bytes
{'s_id': 's644698716', 'p_id': 'p02272', 'u_id': 'u494156948', 'date': '1577087726', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '5680', 'code_size': '1073'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n\n#define N 500000\n#define INFTY 1000000000\nint count=0;\nvoid merge(int*, int, int, int);\nvoi...
CDSS_288587
CDSS
#include <stdio.h> int main() { int a,b,c,work; scanf("%d %d %d",&a,&b,&c); if(a>b){ work=a; a=b; b=work; }if(b>c){ work=b; b=c; c=work; }if(a>b){ work=a; a=b; b=work; } printf("%d %d %d\n",a,b,c); return 0; }
596
memory_bytes
{'s_id': 's209404404', 'p_id': 'p02393', 'u_id': 'u556315783', 'date': '1464190270', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '245'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\nint a,b,c,work;\n\nscanf(\"%d %d %d\",&a,&b,&c);\n\nif(a>b){\n work=a;\n a=b;\n b=work;\n }i...
CDSS_563193
CDSS
#include<stdio.h> int main(){ int a,b,c,d,e; scanf("%d %d %d",&a,&b,&c); if(a>b){ d=a; a=b; b=d; } if(b>c){ b=c; } printf("%d",a+b); return 0; }
128
memory_bytes
{'s_id': 's927374642', 'p_id': 'p03011', 'u_id': 'u738164318', 'date': '1560129114', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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(){\nint a,b,c,d,e;\nscanf(\"%d %d %d\",&a,&b,&c);\n if(a>b){\n d=a;\n a=b;\n b=d;\n }\n if(b>c...
CDSS_49991
CDSS
#include <stdio.h> int main() { char str[1000]; int i, accept; while (fgets(str,1000,stdin) != NULL) { str[strlen(str)] = '\0'; accept = 1; while (accept) { for (i = 0; i < strlen(str); i++) { if ('a' <= str[i] && str[i] <= 'y') { ...
524
memory_bytes
{'s_id': 's364665340', 'p_id': 'p00017', 'u_id': 'u368521320', 'date': '1406076227', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '1282'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 str[1000];\n int i, accept;\n \n while (fgets(str,1000,stdin) != NULL) {\n ...
CDSS_107495
CDSS
#include<stdio.h> #include<stdbool.h> int main(){ bool fl[200][3]={}; int a,b,c,d,i,f,g[200]={0}; int x[200][3]={0}; scanf("%d",&a); for(i=0;i<a;i++) { for(f=0;f<3;f++) { scanf("%d",&x[i][f]); } } for(i=0;i<3;i++) { for(f=0;f<a;f++) { for(d=f+1;d<a;d++) { if(x[f][i]==x[d][i]) { ...
2,048
memory_bytes
{'s_id': 's309911896', 'p_id': 'p00500', 'u_id': 'u663340356', 'date': '1548231806', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '536'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdbool.h>\nint main(){\n\tbool fl[200][3]={};\n\tint a,b,c,d,i,f,g[200]={0};\n\tint x[200][3]={0};\n\tsca...
CDSS_542255
CDSS
#include<stdio.h> int main(void) { int n; int na; int i; i = 1; int ans; scanf("%d", &n); na = n; while (na >= 10) { na = na / 10; i++; } switch (i) { case 1:ans = n; break; case 2:ans = 9; break; case 3:ans = n - 90; break; case 4:ans = 909; break; case 5:ans = n - 9090; break; case...
128
memory_bytes
{'s_id': 's132045438', 'p_id': 'p02952', 'u_id': 'u411165165', 'date': '1564968852', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main(void) {\n\tint n;\n\tint na;\n\tint i;\n\ti = 1;\n\tint ans;\n\n\t\n\tscanf(\"%d\", &n);\n\tna = n;\n\n\tw...
CDSS_745310
CDSS
#include <stdio.h> int main (){ int n,l;scanf("%d %d",&n,&l); char s[101][101];for(int i = 0;i < n;i++){ scanf("%s",s[i]); } //文字列はsに入れてください。また、文字数はsizeまでです。 char x[101]; for (int i=0; i<n; ++i) { for (int j=i+1; j<n; ++j) { if (strcmp(s[i],s[j])>0) { strcpy(x,s[i]); ...
128
memory_bytes
{'s_id': 's892200191', 'p_id': 'p04044', 'u_id': 'u596612094', 'date': '1583884970', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '547'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main (){\n int n,l;scanf(\"%d %d\",&n,&l);\n char s[101][101];for(int i = 0;i < n;i++){\n scanf(\"%...
CDSS_579713
CDSS
#include <stdio.h> int main(){ int a, b; scanf("%d %d", &a, &b); int total = 0; if(a < b) total += b * 2 - 1; if(b < a) total += a * 2 - 1; if(a == b) total += a + b; printf("%d", total); return 0; }
128
memory_bytes
{'s_id': 's232280795', 'p_id': 'p03071', 'u_id': 'u415875614', 'date': '1555708946', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '217'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int a, b; scanf(\"%d %d\", &a, &b);\n int total = 0;\n if(a < b) total += b * 2 - 1;\n if(b < ...
CDSS_555167
CDSS
#include<stdio.h> int main(void){ int N,i,ans=0; scanf("%d",&N); int p[N]; for(i=0;i<N;i++){ scanf("%d",&p[i]); } for(i=1;i<N-1;i++){ if((p[i]>p[i-1] && p[i]<p[i+1]) || (p[i]<p[i-1] && p[i]>p[i+1])){ ans=ans+1; } } printf("%d",ans); return 0; }
128
memory_bytes
{'s_id': 's531031734', 'p_id': 'p02988', 'u_id': 'u601444374', 'date': '1561857189', '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(void){\n int N,i,ans=0;\n scanf(\"%d\",&N);\n int p[N];\n for(i=0;i<N;i++){\n scanf(\"%d\",&p[i]);\...
CDSS_228437
CDSS
#include <stdio.h> #define MAX 500001 int heap[MAX]; int size; int left(int i){ return 2*i; } int right(int i){ return 2*i+1; } int parent(int i){ return i/2; } void maxHeapify(int i){ int l, r, x, largest; l = left(i); r = right(i); if( l < size && heap[l] > heap[i] ){ largest = l; } ...
2,552
memory_bytes
{'s_id': 's986792288', 'p_id': 'p02288', 'u_id': 'u489166216', 'date': '1434675926', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '2552', 'code_size': '883'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define MAX 500001\n\n\nint heap[MAX];\nint size;\n\n\nint left(int i){\n return 2*i;\n}\n\n\nint right(int i){\n...
CDSS_546218
CDSS
#include<stdio.h> #include<assert.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;} long long llzt(long long a,long long b){return llmax(a,b)-llmin(a,b);} long long llceil(long long a,long long b){if(a%b==0){return a/b;}return...
5,760
memory_bytes
{'s_id': 's057367789', 'p_id': 'p02961', 'u_id': 'u721060623', 'date': '1576586152', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '5760', 'code_size': '1513'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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<assert.h>\n\nlong long llmax(long long a,long long b){if(a>b){return a;}return b;}\nlong long llmin(long l...
CDSS_569162
CDSS
#include<stdio.h> int main() { int a,b,c,d,i,j,max,min; d=0; scanf("%d %d",&a,&b); int st[b],en[b]; scanf("%d %d",&st[0],&en[0]); max=en[0]; min=st[0]; for(i=1;i<b;++i) {scanf("%d %d",&st[i],&en[i]); if(st[i]>min) min=st[i]; if(en[i]<max) max=en[i]; } if(max>=min) printf("%d",max-min+1); else print...
896
memory_bytes
{'s_id': 's091002618', 'p_id': 'p03037', 'u_id': 'u054782559', 'date': '1587506406', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '18', 'memory': '896', 'code_size': '339'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\nint a,b,c,d,i,j,max,min;\n d=0;\n \nscanf(\"%d %d\",&a,&b);\n\n int st[b],en[b];\n scanf(\"%d %d\...
CDSS_116678
CDSS
#include <stdio.h> #define SIZE 1000 #define INF 999999 int N; int max(int a[]){ int i,m=0; for(i=0;i<N;i++) if(m<a[i]) m=a[i]; return m; } int min(int a[]){ int i,m=INF; for(i=0;i<N;i++) if(m>a[i]) m=a[i]; return m; } int main(void){ int i,p,q; int x[SIZE],y[SIZE]; //x...
608
memory_bytes
{'s_id': 's781131337', 'p_id': 'p00746', 'u_id': 'u489876484', 'date': '1500017055', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '943'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 SIZE 1000\n#define INF 999999\n\nint N;\nint max(int a[]){\n int i,m=0;\n for(i=0;i<N;i++)\n ...
CDSS_123649
CDSS
#include<stdio.h> int main(){ int n, i, j, cnt, sum; while(scanf("%d", &n), n){ sum=0; cnt=0; for(j=1;j<n;j++){ for(i=j;i<n;i++){ sum+=i; if(sum==n){ cnt++; sum=0; break; }else if(sum>n){ sum=0; break; } } ...
600
memory_bytes
{'s_id': 's727948425', 'p_id': 'p01314', 'u_id': 'u489432693', 'date': '1499394560', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '369'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n\nint main(){\n\n int n, i, j, cnt, sum;\n\n while(scanf(\"%d\", &n), n){\n sum=0;\n cnt=0;\n for(j=1;...
CDSS_574848
CDSS
#include<stdio.h> int main() { double a,b,n,t=0,t1=0,i; scanf("%lf%lf%lf",&a,&b,&n); t=a; t1=b; if(a>n) { printf("0\n"); } else { for(i=a;i<=n+0.5;i=i+t) { if((i+t)>n+0.5) { break; } b=b+t1; ...
128
memory_bytes
{'s_id': 's155288756', 'p_id': 'p03059', 'u_id': 'u353919145', 'date': '1581395170', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '375'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 double a,b,n,t=0,t1=0,i;\n scanf(\"%lf%lf%lf\",&a,&b,&n);\n t=a;\n t1=b;\n if(a>n)\n...
CDSS_125762
CDSS
// Aizu 2406: Al dente // 2017.9.26 bal4u@uu #include <stdio.h> int main() { int n, t, e, x; int i, k; scanf("%d%d%d", &n, &t, &e); for (i = 1; i <= n; i++) { scanf("%d", &x); for (k = x; ; k += x) { if (k > t+e) break; if (t-e <= k && k <= t+e) { printf("%d\n", i); return 0; } } } puts(...
1,844
memory_bytes
{'s_id': 's028302048', 'p_id': 'p01520', 'u_id': 'u847467233', 'date': '1506390735', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1844', 'code_size': '339'}
[ { "content": "Your task is to predict the memory 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 2406: Al dente\n// 2017.9.26 bal4u@uu\n\n#include <stdio.h>\n\nint main()\n{\n\tint n, t, e, x;\n\tint i, k;\n\n\tscanf(\"%d%d...
CDSS_74621
CDSS
#include <stdio.h> int main(void) { int n; int nn; int a,b,cd; long long count; while(scanf("%d",&n)==1) { nn=(n<=1000?n:1000); count=0; for(a=0;a<=nn;a++) { for(b=0;b<=nn;b++) { cd=n-a-b; if(cd<0)break; else if(cd>2000)continue; if(cd<=1000)count+=cd+1; else { int over=cd-1000; ...
596
memory_bytes
{'s_id': 's518499139', 'p_id': 'p00096', 'u_id': 'u543521645', 'date': '1365923958', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '596', 'code_size': '401'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint n;\n\tint nn;\n\tint a,b,cd;\n\tlong long count;\n\twhile(scanf(\"%d\",&n)==1) {\n\t\tnn...
CDSS_224097
CDSS
#include<stdio.h> #include<stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL Node root; Node treeSearch(Node u, int k){ Node m,n; if(u->key == k) return u; else if(u->key > k){ if(u->left != NIL){ n =...
20,468
memory_bytes
{'s_id': 's751630449', 'p_id': 'p02284', 'u_id': 'u494048940', 'date': '1547109116', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '280', 'memory': '20468', 'code_size': '1612'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nstruct node{\n struct node *right;\n struct node *left;\n struct node *parent;\n int key;...
CDSS_252557
CDSS
#include<stdio.h> int main(void) { int a,b,c,d; scanf("%d",&a); scanf("%d",&b); c=a*b; d=a+a+b+b; printf("%d %d\n",c,d); return 0; }
596
memory_bytes
{'s_id': 's800109818', 'p_id': 'p02389', 'u_id': 'u489544866', 'date': '1466130148', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '139'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint a,b,c,d;\n\tscanf(\"%d\",&a);\n\tscanf(\"%d\",&b);\n\tc=a*b;\n\td=a+a+b+b;\n\tprintf(\"%d ...
CDSS_482802
CDSS
#include<stdio.h> int main(){ int i,j,a,c,n,d[5][5],e[5][5]={}; for(i=0;i<3;i++){ for(j=0;j<3;j++)scanf("%d",&d[i][j]); } scanf("%d",&n); while(n--){ scanf("%d",&a); for(i=0;i<3;i++){ for(j=0;j<3;j++){ if(d[i][j]==a)e[i][j]=1; } } } for(i=0;i<3;i++){ for(j=c=0;j<3;j++)c+=e...
128
memory_bytes
{'s_id': 's985588742', 'p_id': 'p02760', 'u_id': 'u121922047', 'date': '1583114813', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '590'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int i,j,a,c,n,d[5][5],e[5][5]={};\n for(i=0;i<3;i++){\n for(j=0;j<3;j++)scanf(\"%d\",&d[i][j]);\...
CDSS_658989
CDSS
#include<stdio.h> int main(){ int c[4][4]; for(int i = 1; i <= 3 ; ++i){ for(int j = 1; j <= 3 ; ++j){ scanf("%d",&c[i][j]); } } if(c[1][1] - c[2][1] != c[1][2] - c[2][2] ){ printf("No"); return 0; } if(c[2][1] - c[3][1] != c[2][2] - c[3][2] ){ printf("No"); return 0; } if(c[1][...
128
memory_bytes
{'s_id': 's682659694', 'p_id': 'p03435', 'u_id': 'u759675243', 'date': '1590717237', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '660'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 c[4][4];\n for(int i = 1; i <= 3 ; ++i){\n for(int j = 1; j <= 3 ; ++j){\n scanf(\"...
CDSS_122066
CDSS
#include<stdio.h> int main(){ int n,m,p,d,w,s,i; while(scanf("%d %d %d",&n,&m,&p),n){ for(i=s=0;i<n;i++){ scanf("%d",&d); if(i==m-1)w=d; s+=d; } printf("%d\n",w?s*(100-p)/w:0); } return 0; }
596
memory_bytes
{'s_id': 's392874964', 'p_id': 'p01143', 'u_id': 'u731027244', 'date': '1460362955', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '228'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,m,p,d,w,s,i;\n while(scanf(\"%d %d %d\",&n,&m,&p),n){\n for(i=s=0;i<n;i++){\n scanf(\...
CDSS_201194
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]); } 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++){ scanf("%d",&M); if(solve(0,M)...
2,112
memory_bytes
{'s_id': 's476621322', 'p_id': 'p02271', 'u_id': 'u442969736', 'date': '1552635074', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '430', 'memory': '2112', 'code_size': '379'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint n,A[50];\n\nint solve (int i,int m){\n if(m==0)return 1;\n if(i>=n)return 0;\n int res=solve(i+1,m)|...
CDSS_367487
CDSS
#include<stdio.h> #include<string.h> int main (){ char s[100], p[100], s2[201]; scanf ("%s", s); scanf ("%s", p); strcat (s2, s); strcat (s2, s); if ( strstr(s2, p) == '\0') printf ("No\n"); else printf ("Yes\n"); return 0; }
532
memory_bytes
{'s_id': 's831325444', 'p_id': 'p02418', 'u_id': 'u194019424', 'date': '1480473185', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '532', 'code_size': '249'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main (){\n char s[100], p[100], s2[201];\n scanf (\"%s\", s);\n scanf (\"%s\", p);\n st...
CDSS_160873
CDSS
#include<stdio.h> #define N 20000 int main(){ int n,Rt[1000000],max,i,min,j; scanf("%d",&n); for(i =0;i < n;i++){ scanf("%d",&Rt[i]); } max = Rt[1] - Rt[0]; min = Rt[0]; for(j = 1;j < n;j++){ if(max < Rt[j] - min){max = Rt[j] - min;} if(min > Rt[j]){min = Rt[j];} } printf("%d\n",max);...
3,400
memory_bytes
{'s_id': 's823763141', 'p_id': 'p02258', 'u_id': 'u921472706', 'date': '1460523223', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '3400', 'code_size': '335'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 20000\nint main(){\n int n,Rt[1000000],max,i,min,j;\n\n scanf(\"%d\",&n);\n\n for(i =0;i < n;i++){\n ...
CDSS_419767
CDSS
#include <stdio.h> #include <string.h> #include <stdbool.h> int main(void) { char S[11]; char T[12]; scanf("%s", S); scanf("%s", T); if(strncmp(S, T, strlen(S)) != 0) { printf("No\n"); return 0; } printf("Yes\n"); return 0; }
1,712
memory_bytes
{'s_id': 's095014842', 'p_id': 'p02681', 'u_id': 'u339658123', 'date': '1589159049', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1712', 'code_size': '278'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n#include <stdbool.h>\n\nint main(void) {\n char S[11];\n char T[12];\n\n scanf(\"%s\...
CDSS_704860
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int a,b; while(~scanf("%d%d",&a,&b)) { if(a==2&&b==2) printf("Yes\n"); else if(a==2||b==2) printf("No\n"); else if((a==1||a==3||a==5||a==7||a==8||a==10||a==12 )&&(b==1||b==3||b==5||b==7||b=...
128
memory_bytes
{'s_id': 's123553047', 'p_id': 'p03711', 'u_id': 'u018679195', 'date': '1576185825', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '547'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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;\n while(~scanf(\"%d%d\",&a,&b))\n {\n if(a==2&&b==...
CDSS_496516
CDSS
#include <stdio.h> int main() { int A, B; scanf("%d %d", &A, &B); if (A == B) { printf("Yes"); } else { printf("No"); } return 0; }
128
memory_bytes
{'s_id': 's994113269', 'p_id': 'p02789', 'u_id': 'u333114422', 'date': '1586507316', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '143'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n\tint A, B;\n\tscanf(\"%d %d\", &A, &B);\n\tif (A == B) {\n\t\tprintf(\"Yes\");\n\t}\n\telse {\n\t...
CDSS_486749
CDSS
#include <stdio.h> int main(void){ int a, b, c; scanf("%d%d%d", &a, &b, &c); if(a == b && b == c){ printf("No"); }else if(a == b || b == c || a == c){ printf("Yes"); }else{ printf("No"); } }
1,720
memory_bytes
{'s_id': 's919427543', 'p_id': 'p02771', 'u_id': 'u909771578', 'date': '1593180694', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1720', 'code_size': '242'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int a, b, c;\n scanf(\"%d%d%d\", &a, &b, &c);\n if(a == b && b == c){\n printf(\...
CDSS_182706
CDSS
#include<stdio.h> #include<string.h> int isEmpty(void); int dequeue(void); void enqueue(int); int head=0,tail=0,time[100000]; int main(){ int zanshi,n,q,i,total=0; char name[100000][10]; scanf("%d%d",&n,&q); for(i=0;i<n;i++){ scanf("%s%d",name[i],&time[i]); tail++; } while(isEmpty()==0){ if(q>...
3,052
memory_bytes
{'s_id': 's265992636', 'p_id': 'p02264', 'u_id': 'u563967927', 'date': '1529919903', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '3052', 'code_size': '878'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint isEmpty(void);\nint dequeue(void);\nvoid enqueue(int);\n\nint head=0,tail=0,time[100000];\n...
CDSS_263876
CDSS
#include <stdio.h> int main(void){ int S,h,m,s; scanf("%d",&S); h=S/3600; m=S%3600/60; s=S%3600%60; printf("%d:%d:%d\n",h,m,s); return 0; }
2,112
memory_bytes
{'s_id': 's335833362', 'p_id': 'p02390', 'u_id': 'u342811134', 'date': '1527215260', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', '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 int S,h,m,s;\n scanf(\"%d\",&S);\n h=S/3600;\n m=S%3600/60;\n s=S%3600%60;\n pri...
CDSS_18053
CDSS
#include<stdio.h> int main(void){ int i,j,x; for(i=1;i<10;i++){ for(j=1;j<10;j++){ x=i*j; printf("%dx%d=%d\n",i,j,x); } } return 0; }
524
memory_bytes
{'s_id': 's754330944', 'p_id': 'p00000', 'u_id': 'u972901560', 'date': '1437448837', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '157'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int i,j,x;\n for(i=1;i<10;i++){\n for(j=1;j<10;j++){\n x=i*j;\n printf(\"%dx%d=%d\\n\"...
CDSS_56631
CDSS
#define _CRT_SECURE_NO_WARNINGS #define _USE_MATH_DEFINES #include<stdio.h> #include<math.h> #include<string.h> #include<stdlib.h> #include<stdarg.h> #include<malloc.h> int main() { int i, n; double xa,ya,ra,xb,yb,rb,d; scanf("%d", &n); for(i=0; i<n; i++){ scanf("%lf%lf%lf%lf%lf%lf",&xa,&ya,&ra,&xb,&yb,&rb)...
620
memory_bytes
{'s_id': 's040840709', 'p_id': 'p00023', 'u_id': 'u607211196', 'date': '1377209918', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '620', 'code_size': '520'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#define _CRT_SECURE_NO_WARNINGS\n#define _USE_MATH_DEFINES\n \n#include<stdio.h>\n#include<math.h>\n#include<string.h>\n#include<stdli...
CDSS_188858
CDSS
#include <stdio.h> int main(){ int i,j,c=0,n=0,q=0,s[10000],t[500]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&s[i]); } scanf("%d",&q); for(j=0;j<q;j++){ scanf("%d",&t[j]); } for(i=0;i<q;i++){ for(j=0;j<n;j++){ if(s[j]==t[i]){ c++; break; } else continue; } } ...
640
memory_bytes
{'s_id': 's086124805', 'p_id': 'p02267', 'u_id': 'u570450279', 'date': '1494468916', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '353'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int i,j,c=0,n=0,q=0,s[10000],t[500];\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\n scanf(\"%d\",&s...
CDSS_502432
CDSS
#include <stdio.h> int main(void) { int n, countABC; char s[51]; int i; scanf("%d", &n); scanf("%s", s); /* d */ for (i = 0; i < n - 2; i++) { if ((s[i] == 'A') && (s[i + 1] == 'B') && (s[i + 2] == 'C')) { countABC++; } } printf("%d", countABC); return 0; }
128
memory_bytes
{'s_id': 's801622391', 'p_id': 'p02812', 'u_id': 'u632734596', 'date': '1591046829', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '284'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint n, countABC;\n\tchar s[51];\n\tint i;\n\t\n\tscanf(\"%d\", &n);\n\tscanf(\"%s\", s);\n\...
CDSS_542642
CDSS
#include <stdio.h> #include <stdlib.h> void yes(){printf("Yes\n");exit(0);} void no(){printf("No\n");exit(0);} int main(){ int n, i; int h[100000]; scanf("%d", &n); for(i = 0;i < n; i++){ scanf("%d", &h[i]); } if(n != 1){ for(i = 0; i < n - 1; i++){ if(0 <= h[i...
512
memory_bytes
{'s_id': 's908368748', 'p_id': 'p02953', 'u_id': 'u284744415', 'date': '1567049322', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '512', 'code_size': '517'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 yes(){printf(\"Yes\\n\");exit(0);}\nvoid no(){printf(\"No\\n\");exit(0);}\n\nint main(...
CDSS_84375
CDSS
#include <stdio.h> #include <string.h> struct Data{ char name[24]; int w,s; }t[10],now[10],ans[10]; int n; double min; char used[10]; void solve(int idx,int rem,int sum,int G){ int i,j; if(t[idx].s < sum) return; now[rem] = t[idx]; sum += t[idx].w; G += t[idx].w * (rem + 1); if(rem == 0){ double tmp = (...
384
memory_bytes
{'s_id': 's336238735', 'p_id': 'p00170', 'u_id': 'u642549559', 'date': '1282454215', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '90', 'memory': '384', 'code_size': '838'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nstruct Data{\n\tchar name[24];\n\tint w,s;\n}t[10],now[10],ans[10];\n\nint n;\ndouble min;\...
CDSS_67865
CDSS
main(i){float a,b,c,d,e,f,g,h;while(~scanf("%f%f%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f,&g,&h))puts(!(a>g||a>h||c<e||d<f)?"YES":"NO");exit(0);}
608
memory_bytes
{'s_id': 's870555797', 'p_id': 'p00059', 'u_id': 'u884495090', 'date': '1397024510', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '135'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nmain(i){float a,b,c,d,e,f,g,h;while(~scanf(\"%f%f%f%f%f%f%f%f\",&a,&b,&c,&d,&e,&f,&g,&h))puts(!(a>g||a>h||c<e||d<f)?\"YES\":\"NO\");ex...
CDSS_422928
CDSS
#include<stdio.h> #include<string.h> int main() { char s[5]; scanf("%s",&s); if(strcmp(s,"ABC")==0) printf("ARC"); else printf("ABC"); return 0; }
1,680
memory_bytes
{'s_id': 's820181768', 'p_id': 'p02687', 'u_id': 'u974619757', 'date': '1588554523', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1680', '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#include<string.h>\nint main()\n{\n char s[5];\n scanf(\"%s\",&s);\n if(strcmp(s,\"ABC\")==0)\n printf(...
CDSS_570380
CDSS
#include<stdio.h> #include<stdlib.h> int main(void){ int N,K; char S[51]; scanf("%d %d\n",&N,&K); scanf("%s\n",S); for(int i=0;i<N;i++){ if(i!=K-1){ printf("%c",S[i]); }else{ printf("%c",S[i]+32); } } return 0; }
128
memory_bytes
{'s_id': 's592809607', 'p_id': 'p03041', 'u_id': 'u627019679', 'date': '1582882855', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '261'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint main(void){\n\n int N,K;\n \n char S[51];\n\n scanf(\"%d %d\\n\",&N,&K);\n \n scanf...
CDSS_237786
CDSS
/****************************************************************************** Online C Compiler. Code, Compile, Run and Debug C program online. Write your code in this editor and press "Run" button to compile and execute it. ***********************************************...
2,144
memory_bytes
{'s_id': 's368767981', 'p_id': 'p02383', 'u_id': 'u351341371', 'date': '1581385241', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '1519'}
[ { "content": "Your task is to predict the memory 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 Online C Compiler.\n ...
CDSS_351311
CDSS
// // main.c // ITP1_6_D // // Created by k16031kk on 2018/05/25. // Copyright © 2018年 AIT. All rights reserved. // #include <stdio.h> int main(int argc, const char * argv[]) { // insert code here... int n, m, a, b, c = 0; scanf("%d %d", &n, &m); int A[n][m]; int B[m]; int sum[m]; ...
2,112
memory_bytes
{'s_id': 's747186671', 'p_id': 'p02410', 'u_id': 'u175726508', 'date': '1527237139', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '727'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//\n// main.c\n// ITP1_6_D\n//\n// Created by k16031kk on 2018/05/25.\n// Copyright © 2018年 AIT. All rights reserved.\n//\n\n#incl...
CDSS_528297
CDSS
#include <stdio.h> int main(void) { char str[100]; int i=0; scanf("%s", &str[0]); while(1){ if(str[i] == 0){ printf("Yes\n"); return 0; } switch(i%2){ case 0 : if(str[i] == 'R' || str[i] == 'U' || str[i] == 'D'){ ...
128
memory_bytes
{'s_id': 's485913051', 'p_id': 'p02910', 'u_id': 'u583419120', 'date': '1570854144', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '733'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 str[100];\n int i=0;\n\n scanf(\"%s\", &str[0]);\n\n while(1){\n if(...
CDSS_669575
CDSS
#include <stdio.h> #include <stdlib.h> #define int long long #define max_size (int)(2e5 + 1) typedef struct { char c; int val; }pair; #define inv_num_valtype pair //比較関数 int compare(inv_num_valtype a, inv_num_valtype b){ return a.val - b.val; } //昇順 int inv_num_sub(inv_num_valtype *origin, int left, int right, i...
9,088
memory_bytes
{'s_id': 's031371096', 'p_id': 'p03483', 'u_id': 'u208608367', 'date': '1514084494', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '28', 'memory': '9088', 'code_size': '3010'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#define int long long\n#define max_size (int)(2e5 + 1)\n\ntypedef struct {\n\tchar c;\n\tint ...
CDSS_228247
CDSS
#include <stdio.h> int n,hai[2000001]; void MaxH(int a){ int x,y,L,change,left,right; left=2*a; right=2*a+1; if(n>=left && hai[left]>hai[a]){ L=left; } else{L=a;} if(n>=right && hai[right]>hai[L]){ L=right; } if(L!=a){ change=hai[a]; hai[a]=hai[L]; hai[L]=change; MaxH(L); ...
3,676
memory_bytes
{'s_id': 's503624150', 'p_id': 'p02288', 'u_id': 'u732818169', 'date': '1532057923', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '3676', 'code_size': '580'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint n,hai[2000001];\n\nvoid MaxH(int a){\n int x,y,L,change,left,right;\n left=2*a;\n right=2*a+1;\n\n if(n>=l...
CDSS_168798
CDSS
#include<stdio.h> int main() { int n,i,j,flag,sum = 0,t; int a[100]; scanf("%d",&n); for (i = 0 ; i < n ; i++) scanf("%d",&a[i]); flag = 1; while(flag) { flag = 0; for (i = n-1 ; i > 0 ; i--) { if (a[i] < a[i-1]) { t = a[i]; a[i] = a[i-1]; a[i-1] = t; sum+=1; flag = 1; } }...
2,148
memory_bytes
{'s_id': 's703981031', 'p_id': 'p02259', 'u_id': 'u879042488', 'date': '1581064165', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2148', 'code_size': '506'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint n,i,j,flag,sum = 0,t;\n\tint a[100];\n\tscanf(\"%d\",&n);\n\tfor (i = 0 ; i < n ; i++) scanf(\...
CDSS_51202
CDSS
s="%d %d %d %d %d\n";main(a,b,c,d,e){qsort(&a,scanf(s,&a,&b,&c,&d,&e),4,"YZXRPQ\213\0+\2\303");s=!printf(s,a,b,c,d,e);}
0
memory_bytes
{'s_id': 's331930360', 'p_id': 'p00018', 'u_id': 'u399107199', 'date': '1297688569', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '119'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\ns=\"%d %d %d %d %d\\n\";main(a,b,c,d,e){qsort(&a,scanf(s,&a,&b,&c,&d,&e),4,\"YZXRPQ\\213\\0+\\2\\303\");s=!printf(s,a,b,c,d,e);}\nPred...
CDSS_611409
CDSS
#include<stdio.h> int main(){ int x,y; scanf("%d%d",&x,&y); printf("%d\n",x+y/2); return 0; }
128
memory_bytes
{'s_id': 's848961388', 'p_id': 'p03219', 'u_id': 'u110996038', 'date': '1541388118', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\n\nint main(){\n int x,y;\n scanf(\"%d%d\",&x,&y);\n printf(\"%d\\n\",x+y/2);\n return 0;\n}\n\nPredict its memo...
CDSS_645731
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #define SEP " \r\n" // https://abc096.contest.atcoder.jp/tasks/abc096_a //-------------------------------------------------------------- int main(){ char instr[1000]; char *sa[2]; int month, day, i; fgets(instr, sizeof(instr), stdin); sa[0] = strtok(in...
128
memory_bytes
{'s_id': 's355404221', 'p_id': 'p03359', 'u_id': 'u814034355', 'date': '1525570106', '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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#define SEP \" \\r\\n\"\n// https://abc096.contest.atcoder.jp/tasks/ab...
CDSS_117406
CDSS
// AOJ 1175: And Then. How Many Are There? // 2017.12.21 bal4u@uu #include <stdio.h> #include <string.h> typedef struct { int s, del, m; } Q; Q q[1000]; int top; typedef struct { int x, y, r; } T; T d[25]; int col[4][6], clen[4]; char f[5]; int up[25][25], ulen[25]; // ?????????????????????????????°??¨?????? char vi...
18,252
memory_bytes
{'s_id': 's277929674', 'p_id': 'p00756', 'u_id': 'u847467233', 'date': '1513854424', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '18252', 'code_size': '1752'}
[ { "content": "Your task is to predict the memory 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 1175: And Then. How Many Are There?\n// 2017.12.21 bal4u@uu\n\n#include <stdio.h>\n#include <string.h>\n\ntypedef struct { int ...
CDSS_394412
CDSS
#include <stdio.h> int main(void) { int a; scanf("%d", &a); printf("%d", a + a*a + a*a*a); return 0; }
1,688
memory_bytes
{'s_id': 's716255272', 'p_id': 'p02621', 'u_id': 'u269205014', 'date': '1595358884', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1688', 'code_size': '120'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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;\n scanf(\"%d\", &a);\n printf(\"%d\", a + a*a + a*a*a);\n return 0;\n}\n\n...
CDSS_381359
CDSS
#include<stdio.h> #include<string.h> #include<stdlib.h> char s[200010]; int main(){ long long len, i; int sum=0; scanf("%s", s); len=strlen(s); for(i=0; i<len; i++){ sum+=s[i]-'0'; } if(sum%9==0){ printf("Yes"); }else{ ...
1,916
memory_bytes
{'s_id': 's692042584', 'p_id': 'p02577', 'u_id': 'u607107282', 'date': '1598347057', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1916', 'code_size': '378'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nchar s[200010];\n\nint main(){\n long long len, i;\n int su...
CDSS_502829
CDSS
#include<stdio.h> int main(void) { int i; int n; char s[50]; int count=0; scanf("%d",&n); scanf("%s",s); for(i=0;i<n-2;i++){ if(s[i]=='A' && s[i+1] =='B'&& s[i+2] =='C'){ count=count+1; } } printf("%d",count); return 0; }
128
memory_bytes
{'s_id': 's730610329', 'p_id': 'p02812', 'u_id': 'u043707543', 'date': '1578709843', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '255'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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;\n int n;\n char s[50];\n int count=0;\n scanf(\"%d\",&n);\n scanf(\"%s\",s);\n fo...
CDSS_437610
CDSS
#include<stdio.h> int main(void) { float a,b,c; scanf("%f",&a); b=2*a*3.1415; printf("%f",b); return 0; }
1,680
memory_bytes
{'s_id': 's902414668', 'p_id': 'p02705', 'u_id': 'u249494515', 'date': '1593638599', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1680', '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{\n\tfloat a,b,c;\n\tscanf(\"%f\",&a);\n\tb=2*a*3.1415;\n\tprintf(\"%f\",b);\n\treturn 0;\n}\nPredi...
CDSS_96377
CDSS
#include <stdio.h> int main(void) { int i,j=0,n=0,k=0; int carda[10000],cardb[10000],suma[10000],sumb[10000]; for(i=0;i<10000;i++){ carda[i]=0; cardb[i]=0; suma[i]=0; sumb[i]=0; } while(1){ scanf("%d",&n); if(n==0) break; for(i=0;i<n;i++) scanf("%d %d",&carda[i],&cardb[i]); for(i=...
752
memory_bytes
{'s_id': 's067829578', 'p_id': 'p00423', 'u_id': 'u792323881', 'date': '1417186276', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '752', 'code_size': '667'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 i,j=0,n=0,k=0;\n\tint carda[10000],cardb[10000],suma[10000],sumb[10000];\n\t\n\tfor(i=0...
CDSS_547267
CDSS
#include <stdio.h> int main() { int r; scanf("%d", &r); printf("%d\n", 3 * r* r); return 0; }
128
memory_bytes
{'s_id': 's809457941', 'p_id': 'p02969', 'u_id': 'u513851782', 'date': '1563670972', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '107'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 r;\n scanf(\"%d\", &r);\n \n printf(\"%d\\n\", 3 * r* r);\n \n return 0;\n}\nPredict its ...
CDSS_740494
CDSS
#include <stdio.h> #include<string.h> int main(void){ char s[1100]; int p[4]={},ans; scanf("%s",s); for(int i=0;i<strlen(s);i++){ if(s[i]=='N')p[0]++; else if(s[i]=='W')p[1]++; else if(s[i]=='S')p[2]++; else p[3]++; } if(p[0]==0&&p[2]==0&&p[1]*p[3]>0)ans=1; el...
128
memory_bytes
{'s_id': 's926310797', 'p_id': 'p04019', 'u_id': 'u869282786', 'date': '1497301228', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '492'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include<string.h>\nint main(void){\n char s[1100];\n int p[4]={},ans;\n scanf(\"%s\",s);\n for(int i=...
CDSS_592876
CDSS
#include<stdio.h> int main(){ int n,i,ans=0,on=0,zn=0; char s[100001]; scanf("%s",s); for(i=0;s[i]!=0;i++){ if(s[i]=='1')on++; else zn++; if(on>0&&zn>0){ int tmp=(on<zn?on:zn); ans+=tmp*2; on-=tmp; zn-=tmp; } } printf("%d\n",ans); return 0; }
256
memory_bytes
{'s_id': 's992453751', 'p_id': 'p03107', 'u_id': 'u946810083', 'date': '1551643992', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', '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\tint n,i,ans=0,on=0,zn=0;\n\tchar s[100001];\n\tscanf(\"%s\",s);\n\tfor(i=0;s[i]!=0;i++){\n\t\tif(s...