identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_203321
CDSS
#include <stdio.h> int L[500000],R[500000]; int cnt=0,stn=2000000000; void merge(int s[],int n,int left,int mid,int right); void mergesort(int s[],int n,int left,int right); int main(){ int i,n; int s[500000]; scanf("%d",&n); for(i=0;i<n;i++) scanf("%d",&s[i]); mergesort(s,n,0,n); for(i=0;i<n-1;i++)...
4,512
memory_bytes
{'s_id': 's682404427', 'p_id': 'p02272', 'u_id': 'u359023956', 'date': '1497361934', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '160', 'memory': '4512', 'code_size': '939'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 L[500000],R[500000];\nint cnt=0,stn=2000000000;\n\nvoid merge(int s[],int n,int left,int mid,int right);\nvoid...
CDSS_508501
CDSS
#include<stdio.h> int main(void){ int n; scanf("%d",&n); int a[n]; for(int i=0;i<n;i++){ scanf("%d",&a[i]); } int min=0,c=0; for(int i=0;i<n;i++){ if(a[i]==min+1){c++; min++; } } if(c==0){ printf("-1"); return 0; } printf("%d",n-c); return 0; }
896
memory_bytes
{'s_id': 's576427105', 'p_id': 'p02832', 'u_id': 'u073336549', 'date': '1586857853', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '22', 'memory': '896', 'code_size': '314'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\nint n;\n scanf(\"%d\",&n);\n int a[n];\n for(int i=0;i<n;i++){\n\t\tscanf(\"%d\",&a[i]);\n }\n...
CDSS_677829
CDSS
#include<stdio.h> int main() { int n, m; scanf("%d %d", &n, &m); int ans = (n - m) * 100 + 1900 * m; while (m > 0) { m--; ans *= 2; } printf("%d\n", ans); return 0; }
128
memory_bytes
{'s_id': 's514638204', 'p_id': 'p03549', 'u_id': 'u600300412', 'date': '1576075136', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '178'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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, m;\n\tscanf(\"%d %d\", &n, &m);\n\tint ans = (n - m) * 100 + 1900 * m;\n\twhile (m > 0)\n\t...
CDSS_593867
CDSS
#include <stdio.h> int main(){ int n; scanf("%d", &n); int i; double ans = 0; for(i=0;i<n;i++){ double x; char u[4]; scanf("%lf%s",&x,u); if(u[0] == 'J'){ ans += x; }else{ ans += x * 380000.0; } } printf("%lf\n", ans); return 0; }
256
memory_bytes
{'s_id': 's085227048', 'p_id': 'p03110', 'u_id': 'u858642242', 'date': '1553096474', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '256', 'code_size': '283'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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;\n scanf(\"%d\", &n);\n int i;\n double ans = 0;\n for(i=0;i<n;i++){\n double x;\n ...
CDSS_94112
CDSS
#include <stdio.h> int main(void) { int p,m,c; scanf("%d %d %d",&p,&m,&c); printf("%d\n",p+m+c); return 0; }
2,052
memory_bytes
{'s_id': 's622321793', 'p_id': 'p00310', 'u_id': 'u280650954', 'date': '1579659744', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '114'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 p,m,c;\n\tscanf(\"%d %d %d\",&p,&m,&c);\n\tprintf(\"%d\\n\",p+m+c);\n\treturn 0;\n}\n\n...
CDSS_398468
CDSS
#include<stdio.h> int main(){ char word; scanf("%c", &word); if(word>='A' && word<='Z'){ printf("A"); } else if(word>='a' && word <= 'z'){ printf("a"); } return 0; }
1,516
memory_bytes
{'s_id': 's156272265', 'p_id': 'p02627', 'u_id': 'u089230684', 'date': '1598664730', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1516', '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(){\n\tchar word;\n\tscanf(\"%c\", &word);\n\tif(word>='A' && word<='Z'){\n\t\tprintf(\"A\");\n\t}\n\tels...
CDSS_204948
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <math.h> //============================================================================ #define pred(x) ((x)-1) #define succ(x) ((x)+1) //============================================================================ //===============...
644
memory_bytes
{'s_id': 's707524096', 'p_id': 'p02273', 'u_id': 'u546929787', 'date': '1476693542', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '644', 'code_size': '1377'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 <ctype.h>\n#include <math.h>\n\n//=============================...
CDSS_628877
CDSS
#include<stdio.h> int main(void){ int R; scanf("%d",&R); if(R<1200){ printf("ABC"); }else if((1200<=R)&&(R<2800)){ printf("ARC"); }else{ printf("AGC"); } return 0; }
128
memory_bytes
{'s_id': 's652424520', 'p_id': 'p03288', 'u_id': 'u202363685', 'date': '1554416437', '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>\nint main(void){\n\tint R;\n\tscanf(\"%d\",&R);\n\tif(R<1200){\n\t\tprintf(\"ABC\");\n\t}else if((1200<=R)&&(R<2800)...
CDSS_643547
CDSS
#include <stdio.h> int main(){ long long a,b,c,k; scanf("%lld%lld%lld%lld",&a,&b,&c,&k); if(k%2==0) printf("%lld",a-b); else printf("%lld",b-a); }
128
memory_bytes
{'s_id': 's134095107', 'p_id': 'p03345', 'u_id': 'u179970375', 'date': '1526866439', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '155'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 long long a,b,c,k;\n scanf(\"%lld%lld%lld%lld\",&a,&b,&c,&k);\n if(k%2==0) printf(\"%lld\",a-b);\...
CDSS_39854
CDSS
#include <stdio.h> int main(void) { int syakkin = 100000; int i, n; scanf("%d", &n); for (i = 1; i <= n; i++){ syakkin = syakkin*1.05; if (syakkin % 1000 != 0){ syakkin=syakkin / 1000; syakkin++; syakkin=syakkin * 1000; } } printf("%d\n", syakkin); return 0; }
592
memory_bytes
{'s_id': 's467197866', 'p_id': 'p00007', 'u_id': 'u331923107', 'date': '1494384797', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '286'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 syakkin = 100000;\n\tint i, n;\n\n\tscanf(\"%d\", &n);\n\tfor (i = 1; i <= n; i++){\n\t\...
CDSS_415441
CDSS
#include<stdio.h> #include<string.h> int main(void) { int i,n,count; char s[105],temp[105]; scanf("%d",&n); scanf("%s",s); count = strlen(s); if(n < count){ for(i=0;i<n;i++){ temp[i]=s[i]; } for(;i<n+3;i++){ temp[i]= '.'; } temp[i] = '\0'; strcpy(s,temp); } printf("%s\n",s); return 0; ...
1,636
memory_bytes
{'s_id': 's813696466', 'p_id': 'p02676', 'u_id': 'u184701281', 'date': '1596123410', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1636', 'code_size': '322'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nint main(void)\n{\n\tint i,n,count;\n\tchar s[105],temp[105];\n\n\tscanf(\"%d\",&n);\n\tscanf...
CDSS_726127
CDSS
#include <stdio.h> int main() { long long a,b; char op; scanf("%lld %c %lld",&a,&op,&b); printf("%lld\n",op == '+' ? a + b : a - b); }
128
memory_bytes
{'s_id': 's363259478', 'p_id': 'p03844', 'u_id': 'u494609869', 'date': '1568779256', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', '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>\n\nint main()\n{\n long long a,b;\n char op;\n\n scanf(\"%lld %c %lld\",&a,&op,&b);\n\n printf(\"%lld\\...
CDSS_204296
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> #define N 500000 #define INFTY 1000000001 int n,cnt=0; int L[N],R[N]; void merge(int *,int,int,int); void mergeSort(int *,int,int); int main(){ int i,A[N]; scanf("%d",&n); for(i=0;i<n;i++){ scanf(" %d",&A[i]); } mergeSort(A,0,n); for(i=0;i<n;...
5,688
memory_bytes
{'s_id': 's846482940', 'p_id': 'p02272', 'u_id': 'u737300138', 'date': '1577282131', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '5688', 'code_size': '1017'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 N 500000\n#define INFTY 1000000001\n\nint n,cnt=0;\nint L[N],R[N]...
CDSS_369832
CDSS
#include<stdio.h> #include<string.h> void change(char *str){ int len=strlen(str); int i; for(i=0;i<len;i++){ if('a'<=str[i]&&str[i]<='z'){ str[i]-=32; } } } int main(){ char t[10000]; char key[10000]; char eofstr[]={"END_OF_TEXT"}; int ans=0; scanf("%s",key); change(key); while...
2,064
memory_bytes
{'s_id': 's705450445', 'p_id': 'p02419', 'u_id': 'u894520005', 'date': '1565320905', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '494'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\n\nvoid change(char *str){\n int len=strlen(str);\n int i;\n for(i=0;i<len;i++){\n if(...
CDSS_133769
CDSS
#include <stdio.h> #include <string.h> #define N (1000 + 10) #define max(a, b) (a < b ? b : a) int dp[N][N]; char P[N], Q[N]; int LCS(void) { int P_size = strlen(P) - 1; int Q_size = strlen(Q) - 1; int i, j; memset(dp, 0, sizeof(dp)); for (i = 1; i < P_size + 1; ++i) { for (j = 1; j < Q_size + 1; ++j...
5,844
memory_bytes
{'s_id': 's060984603', 'p_id': 'p02235', 'u_id': 'u453977932', 'date': '1580568997', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '5844', 'code_size': '694'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\n#define N (1000 + 10)\n\n#define max(a, b) (a < b ? b : a)\n\nint dp[N][N];\nchar P[N], Q[N...
CDSS_265223
CDSS
#include<stdio.h> int main(void) { 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; }
2,140
memory_bytes
{'s_id': 's371796487', 'p_id': 'p02391', 'u_id': 'u558167624', 'date': '1540774499', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '197'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\n int a,b;\n\n\tscanf(\"%d\",&a);\n\tscanf(\"%d\",&b);\n\n\tif(a < b){\n\t\tprintf(\"a < b\\n\"...
CDSS_731165
CDSS
#include <stdio.h> int main() { int N; scanf("%d", &N); int i, n, flag[10000001] = {}; for (i = 1; i * (i + 1) < N * 2; i++); for (n = N; n > 0; i--) { if (i <= n) { flag[i] = 1; n -= i; } } for (i = 1; i <= N; i++) if (flag[i] == 1) printf("%d\n", i); fflush(stdout); return 0; }
39,296
memory_bytes
{'s_id': 's635438505', 'p_id': 'p03910', 'u_id': 'u985112379', 'date': '1590030875', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '18', 'memory': '39296', 'code_size': '302'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n\tint N;\n\tscanf(\"%d\", &N);\n\t\n\tint i, n, flag[10000001] = {};\n\tfor (i = 1; i * (i + 1) <...
CDSS_651135
CDSS
#define _USE_MATH_DEFINES #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <limits.h> #include <stdbool.h> #define inf (INT_MAX-1) #define INF 9223372036854775807 #define PI 3.14159265358979323846; #define EPS 1e-10 #define sq(n) ((n)*(n)) #define rep(i,n) for(i=0;i<n;i++) #de...
128
memory_bytes
{'s_id': 's433841535', 'p_id': 'p03386', 'u_id': 'u389185410', 'date': '1544055500', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '2679'}
[ { "content": "Your task is to predict the memory 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#define _USE_MATH_DEFINES\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#include <limits.h> \n#...
CDSS_469779
CDSS
#include <stdio.h> int main(void) { long coin, i1, i2, sum; scanf("%ld", &coin); if (coin < 0 || coin > 1000000000) return 1; i1 = coin / 500; sum = coin - (500 * i1); i2 = sum / 5; // printf("output i1: %ld\n", i1); // printf("output sum: %ld\n", sum); // printf("outp...
128
memory_bytes
{'s_id': 's834636318', 'p_id': 'p02724', 'u_id': 'u897132064', 'date': '1585447656', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '402'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 long coin, i1, i2, sum;\n scanf(\"%ld\", &coin);\n \n if (coin < 0 || coin > 1000...
CDSS_194979
CDSS
#include <stdio.h> #include <math.h> #define MAX_N 100001 void swap(int *a, int *b) { int tmp = *a; *a = *b; *b = tmp; } void quick_sort(int *begin, int *end) { int n = end - begin; int p, i; if(n < 1) return; swap(begin, begin+rand()%n); p = 0; for(i = 1; i < n; ++i) { if(begin[i] < begin[0])...
2,136
memory_bytes
{'s_id': 's204845921', 'p_id': 'p02268', 'u_id': 'u568918115', 'date': '1543022908', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2136', 'code_size': '1009'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n#define MAX_N 100001\n \nvoid swap(int *a, int *b) {\n int tmp = *a;\n *a = *b;\n *b = tmp;\...
CDSS_727740
CDSS
#include <stdio.h> #include<string.h> int main() { long int a[100000],b[100000],c=0,d=0,w=0,i,str1=0,str2=0,flag,j,count=0,k,n,sum=0; char s; scanf("%c",&s); if(s=='a' || s=='i' || s=='u' || s== 'e' || s=='o') { printf("vowel"); }else{ printf("consonant"); } return 0; }
128
memory_bytes
{'s_id': 's077294208', 'p_id': 'p03852', 'u_id': 'u513506770', 'date': '1540452021', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '279'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include<string.h>\nint main()\n{\nlong int a[100000],b[100000],c=0,d=0,w=0,i,str1=0,str2=0,flag,j,count=0,k,n,sum...
CDSS_226353
CDSS
#include<stdio.h> int parent(int); int left(int); int right(int); #define N 20000 int h,A[N]; int parent(int i) { return A[i/2]; } int left(int i) { return A[2*i]; } int right(int i) { return A[2*i+1]; } int main() { int p,r,l,i; scanf("%d",&h); for(i=1;i<=h;i++){ scanf("%d",&A[i]); } f...
600
memory_bytes
{'s_id': 's284489150', 'p_id': 'p02287', 'u_id': 'u067896259', 'date': '1466649686', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '596'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 parent(int);\nint left(int);\nint right(int);\n\n#define N 20000\n\nint h,A[N];\n\nint parent(int i)\n{\n re...
CDSS_333124
CDSS
#include <stdio.h> int main(void) { int i,j,H,W; while(!(H==0&&W==0)){ scanf("%d %d",&H,&W); for(i=0;i<H;i++){ for(j=0;j<W;j++){ if(i==0||i==H-1||j==0||j==W-1){ printf("#"); }else{ printf("."); } } printf("\n"); } if (H==0&&W==0) break; printf("\n"); } return 0; }
572
memory_bytes
{'s_id': 's616189333', 'p_id': 'p02404', 'u_id': 'u188938853', 'date': '1430554095', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '314'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint i,j,H,W;\n\t\n\twhile(!(H==0&&W==0)){\n\t\tscanf(\"%d %d\",&H,&W);\n\t\tfor(i=0;i<H;i++...
CDSS_137153
CDSS
#include <stdio.h> #define MAX 100 int M[MAX][MAX]; int disc[MAX]; int t; int finish[MAX]; void df(int id, int n){ int i; if (finish[id]!=0){ return; } else if(disc[id]==0){ disc[id]=(++t); } for(i=0;i<n;i++){ if(M[id][i]==1 && disc[i]==0){ disc[i] = (++t); df(i, n); } }...
2,148
memory_bytes
{'s_id': 's684097218', 'p_id': 'p02238', 'u_id': 'u906776083', 'date': '1579765137', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2148', 'code_size': '750'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\n#define MAX 100\n\nint M[MAX][MAX];\nint disc[MAX];\nint t;\nint finish[MAX];\n\nvoid df(int id, int n){\n int ...
CDSS_586385
CDSS
#include <stdio.h> #include <stdlib.h> int main() { char b; scanf("%c",&b); if(b=='A') printf("T"); if(b=='T') printf("A"); if(b=='C') printf("G"); if(b=='G') printf("C"); return 0; }
128
memory_bytes
{'s_id': 's835596389', 'p_id': 'p03085', 'u_id': 'u247236287', 'date': '1553457970', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '244'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 main()\n{\n char b;\n scanf(\"%c\",&b);\n if(b=='A')\n printf(\"T\");\n ...
CDSS_732224
CDSS
#include<stdio.h> int main(void) { int a,b,c; scanf("%d%d%d",&a,&b,&c); if(a==b+c||b==a+c||c==a+b) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
128
memory_bytes
{'s_id': 's861489214', 'p_id': 'p03943', 'u_id': 'u161708646', 'date': '1508799000', '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>\nint main(void)\n{\n int a,b,c;\n scanf(\"%d%d%d\",&a,&b,&c);\n if(a==b+c||b==a+c||c==a+b)\n {\n printf(\...
CDSS_663482
CDSS
//set many funcs template #include<stdio.h> #include<string.h> #include<stdlib.h> #include<stdbool.h> #define inf 1072114514 #define llinf 4154118101919364364 #define mod 1000000007 #define pi 3.1415926535897932384 int max(int a,int b){if(a>b){return a;}return b;} int min(int a,int b){if(a<b){return a;}return b;} int ...
128
memory_bytes
{'s_id': 's335705103', 'p_id': 'p03456', 'u_id': 'u721060623', 'date': '1516623965', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '3262'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//set many funcs template\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<stdbool.h>\n#define inf 1072114514\n#de...
CDSS_521472
CDSS
#include <stdio.h> int main() { // 入力用変数 int N; int d[50]; // 出力用変数 int point = 0; // 入力 scanf("%d", &N); for (int i = 0; i < N; i++) { scanf("%d", &d[i]); } // 計算 for (int i = 0; i < N-1; i++) { ...
128
memory_bytes
{'s_id': 's200736041', 'p_id': 'p02886', 'u_id': 'u669303208', 'date': '1579595937', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '524'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 N;\n int d[50];\n\n // 出力用変数\n int point = 0;\...
CDSS_381041
CDSS
#include<stdio.h> int main() { int n, x, t; scanf("%d %d %d", &n, &x, &t); printf("%d\n", (n + x - 1) / x * t); return 0; }
1,728
memory_bytes
{'s_id': 's174614009', 'p_id': 'p02576', 'u_id': 'u600300412', 'date': '1598122851', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1728', '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()\n{\n\tint n, x, t;\n\tscanf(\"%d %d %d\", &n, &x, &t);\n\tprintf(\"%d\\n\", (n + x - 1) / x * t);\n\tret...
CDSS_545389
CDSS
#include <stdio.h> typedef struct{ int index; int value; } Diff; int main() { int N,i; scanf("%d", &N); int p[N],diffnum=0; Diff diff[N]; for(i=0;i<N;i++){ scanf("%d", &p[i]); if(p[i]!=i+1){ diff[diffnum].index=i; diff[diffnum].value=p[i]; diffnum++; } } if(diffnum==0){ ...
128
memory_bytes
{'s_id': 's968552081', 'p_id': 'p02958', 'u_id': 'u092781267', 'date': '1564276943', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '561'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\ntypedef struct{\n int index;\n int value;\n} Diff;\nint main() {\n int N,i;\n scanf(\"%d\", &N);\n int p[N],d...
CDSS_496302
CDSS
#include <stdio.h> int main(){ int a,b; scanf("%d %d",&a,&b); if(a<=b){ printf("Yes"); } else{ printf("No"); } return 0; }
1,672
memory_bytes
{'s_id': 's618854965', 'p_id': 'p02789', 'u_id': 'u863370423', 'date': '1600202431', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1672', 'code_size': '124'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\nint a,b;\nscanf(\"%d %d\",&a,&b);\nif(a<=b){\n\tprintf(\"Yes\");\n}\nelse{\n\tprintf(\"No\");\n}\nret...
CDSS_536541
CDSS
#include <stdio.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main(){ int n; char str[10]; scanf("%d",&n); scanf("%s", str); if(n>=3200){ printf("%s",str); }else{ printf("red"); } }
128
memory_bytes
{'s_id': 's811854885', 'p_id': 'p02933', 'u_id': 'u985735467', 'date': '1566176655', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '218'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nint main(){\n int n;\n char str[10];\n scanf(\"...
CDSS_189738
CDSS
#include<stdio.h> #include<stdlib.h> int Lsearch(int[],int,int); int main(){ int data[10001],n,q,key,i,total=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&data[i]); } scanf("%d",&q); for(i=0;i<q;i++){ scanf("%d",&key); if(Lsearch(data,n,key)!=n)total++; } printf("%d\n",total); return 0...
2,124
memory_bytes
{'s_id': 's980870096', 'p_id': 'p02267', 'u_id': 'u998017677', 'date': '1529988258', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2124', 'code_size': '442'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 Lsearch(int[],int,int);\n\nint main(){\n int data[10001],n,q,key,i,total=0;\n scanf(\"%d\...
CDSS_250440
CDSS
#include <stdio.h> int main() { int a,b,result1,result2; scanf("%d%d",&a,&b); result1=a*b; result2=a+a+b+b; printf("%d %d\n",result1,result2); return 0; }
596
memory_bytes
{'s_id': 's350494770', 'p_id': 'p02389', 'u_id': 'u442443280', 'date': '1429701088', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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>\nint main()\n{\n int a,b,result1,result2;\n \n scanf(\"%d%d\",&a,&b);\n\n result1=a*b;\n result2=a+a+b+b;\n...
CDSS_142030
CDSS
#include<stdio.h> #define N 8 #define FREE 1 #define NOT_FREE 0 int row[N],col[N],dpos[2*N-1],dneg[2*N-1],A[N][N]; int i,j,n,r,c; void printBoard(){ for(i = 0; i < N; i++){ for(j = 0; j < N; j++){ if(A[i][j] && row[i] != j)return; } } for(i = 0; i < N; i++){ for(j = 0; j < N; j++){ if(r...
2,148
memory_bytes
{'s_id': 's453694588', 'p_id': 'p02244', 'u_id': 'u927342963', 'date': '1581000220', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2148', 'code_size': '1036'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n#define N 8\n#define FREE 1\n#define NOT_FREE 0\n\nint row[N],col[N],dpos[2*N-1],dneg[2*N-1],A[N][N];\nint i,j,n,...
CDSS_624159
CDSS
#include<stdio.h> int main(void){ int h,w,i,j,flag=0; scanf("%d%d",&h,&w); char a[h][w]; int H[h],W[w]; for(i=0;i<h;i++){ scanf("%s",a[i]); } for(i=0;i<h;i++){ for(j=0;j<w;j++){ if(a[i][j]=='#'){ H[i]=1; break; } ...
128
memory_bytes
{'s_id': 's205298192', 'p_id': 'p03273', 'u_id': 'u234365185', 'date': '1567099522', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '725'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,i,j,flag=0;\n scanf(\"%d%d\",&h,&w);\n char a[h][w];\n int H[h],W[w];\n ...
CDSS_237873
CDSS
#include <stdio.h> struct dice{ int d[6], tmp[6]; }; struct dice dice1; void init(int n[6]){ int i; for (i=0;i<6;i++){ dice1.d[i]=n[i]; } } void throwdice(char c){ int i; for(i=0;i<6;i++){ dice1.tmp[i]=dice1.d[i]; } if(c=='N'){ dice1.d[0]=dice1.tmp[1]; dic...
2,096
memory_bytes
{'s_id': 's855532116', 'p_id': 'p02383', 'u_id': 'u930127630', 'date': '1533878220', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2096', 'code_size': '1673'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nstruct dice{\n int d[6], tmp[6];\n};\nstruct dice dice1;\nvoid init(int n[6]){\n int i;\n for (i=0;i<6;i+...
CDSS_126738
CDSS
#include<stdio.h> #include<string.h> int ch(int input,int count){ int tmp; tmp=input/10; if(tmp>0){ count++; ch(tmp,count); } else{ return count; } } int ren(int m,int n){ int x; int y; x=(n+m)/2; y=(n-m)/2; if((x+y)==n && (x-y)==m && x>=0 && y>=0){ return 1; } else return 0; } int main(){ ...
596
memory_bytes
{'s_id': 's497321015', 'p_id': 'p01636', 'u_id': 'u083188241', 'date': '1436498819', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '748'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nint ch(int input,int count){\n\tint tmp;\n\ttmp=input/10;\n\tif(tmp>0){\n\t\tcount++;\n\t\tch...
CDSS_422920
CDSS
#include<stdio.h> int main(){ char S[3]; int i; scanf("%s",&S); if (strcmp(S, "ABC") == 0) printf("ARC"); else printf("ABC"); return 0; }
1,728
memory_bytes
{'s_id': 's658118485', 'p_id': 'p02687', 'u_id': 'u419982549', 'date': '1588554546', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1728', '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(){\n char S[3];\n int i;\n scanf(\"%s\",&S);\n if (strcmp(S, \"ABC\") == 0)\n printf(\"ARC\");\n e...
CDSS_116795
CDSS
#include<stdio.h> int bs (int [], int, int); int min(int b,int c) { if(b>=c) return c; return b; } int main(void) { int i,j,n,a,dp[1000001],dp2[1000001]; for(i=0;i<=1000000;i++) { dp[i]=i; dp2[i]=i; } for(i=3,a=4;a<=1000000;i++) { for(j=0;j+a<=1000000;j++) { dp[j+a]=min(dp[j+a],dp[j]+1); } ...
8,408
memory_bytes
{'s_id': 's884963549', 'p_id': 'p00748', 'u_id': 'u951145380', 'date': '1453244857', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '180', 'memory': '8408', 'code_size': '550'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 bs (int [], int, int);\n\nint min(int b,int c)\n{\n\tif(b>=c) return c;\n\treturn b;\n}\n\nint main(void)\n{\...
CDSS_306550
CDSS
#include<stdio.h> int main(){ int a,b,c,x,y,n[10000],i=0,p=0,m,k; scanf("%d %d %d",&a,&b,&c); for(x=1;x<=c;x++) { for(y=x;y<=c;y++) { if(c==x*y) { if(x==y) { n[i]=x; i++; } else { n[i]=x; i++; n[i]=y; i++; } } } } k=a; for(a=k;k<=b;k++) { for(m=0;m<=i-1;m++) { if(n[m]==k) ...
2,100
memory_bytes
{'s_id': 's595516187', 'p_id': 'p02398', 'u_id': 'u518824954', 'date': '1519893002', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2100', 'code_size': '370'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,x,y,n[10000],i=0,p=0,m,k;\nscanf(\"%d %d %d\",&a,&b,&c);\nfor(x=1;x<=c;x++)\n{\n for(y=x;y...
CDSS_560104
CDSS
#include<stdio.h> int main(void) { int n,x; scanf("%d%d", &n, &x); int i, l, sum=0, c=1; for(i=0;i<n;i++){ scanf("%d", &l); sum+=l; if(sum<=x) c++; } printf("%d", c); return 0; }
128
memory_bytes
{'s_id': 's228416912', 'p_id': 'p03000', 'u_id': 'u658441673', 'date': '1565091967', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '204'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int n,x;\n scanf(\"%d%d\", &n, &x);\n int i, l, sum=0, c=1;\n for(i=0;i<n;i++){\n scanf(...
CDSS_248641
CDSS
#include<stdio.h> int main() { int x,b; scanf("%d",&x); b=x*x*x; printf("%d\n",b); return 0; }
2,128
memory_bytes
{'s_id': 's409675453', 'p_id': 'p02388', 'u_id': 'u359961648', 'date': '1583426506', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2128', 'code_size': '100'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint x,b;\n\tscanf(\"%d\",&x);\n\tb=x*x*x;\n\tprintf(\"%d\\n\",b);\n\treturn 0;\n}\n\nPredict its m...
CDSS_143018
CDSS
#include<stdio.h> #include<string.h> #define LEN1 1000001 #define LEN2 10001 void nativeStringSearch(char*,char*); int main(void) { char str1[LEN1],str2[LEN2]; scanf("%s%s",str1,str2); nativeStringSearch(str1,str2); return 0; } void nativeStringSearch(char *str1,char *str2) { int i;//counter int len1,len2; ...
2,840
memory_bytes
{'s_id': 's199356944', 'p_id': 'p02248', 'u_id': 'u090372546', 'date': '1531834114', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '730', 'memory': '2840', 'code_size': '469'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n#define LEN1 1000001\n#define LEN2 10001\nvoid nativeStringSearch(char*,char*);\nint main(void)...
CDSS_283617
CDSS
#include<stdio.h> int main(void) { int su[3],a,hako; for(a=0;a<3;a++) { scanf("%d",&su[a]); } if(su[0]>su[1]) { hako=su[0]; su[0]=su[1]; su[1]=hako; } if(su[1]>su[2]) { hako=su[1]; su[1]=su[2]; su[2]=hako; } if(su[0]>su[1]) { hako=su[0]; su[0]=su[1]; su[1]=hako; } printf("%d %d %...
596
memory_bytes
{'s_id': 's422748314', 'p_id': 'p02393', 'u_id': 'u239734286', 'date': '1467879693', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '359'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n\n\tint su[3],a,hako;\n\n\tfor(a=0;a<3;a++)\n\t{\n\t\tscanf(\"%d\",&su[a]);\n\t}\n\n\tif(su[0]...
CDSS_259501
CDSS
#include<stdio.h> int main(void){ int res; scanf("%d", &res); printf("%d:", res / 3600); printf("%d:",(res % 3600) / 60); printf("%d\n", res % 60); return 0; }
592
memory_bytes
{'s_id': 's874479968', 'p_id': 'p02390', 'u_id': 'u280941482', 'date': '1431760578', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', '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>\nint main(void){\n\n\tint res;\n\n\tscanf(\"%d\", &res);\n\n\tprintf(\"%d:\", res / 3600);\n\n\tprintf(\"%d:\",(res ...
CDSS_278390
CDSS
#include <stdio.h> int main(){ int a,b,c; scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); if((a<b)&&(b<c)){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
580
memory_bytes
{'s_id': 's169281538', 'p_id': 'p02392', 'u_id': 'u239600616', 'date': '1498979252', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '218'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n\n int a,b,c;\n\n scanf(\"%d\",&a);\n scanf(\"%d\",&b);\n scanf(\"%d\",&c);\n \n ...
CDSS_209872
CDSS
#include <stdio.h> #include <stdlib.h> #define MAX 2000001 #define VMAX 10000 int main(){ unsigned short *A,*B; int C[VMAX +1]; int n,i,j; scanf("%d",&n); A = malloc(sizeof(short) *n +1); B = malloc(sizeof(short) *n +1); for(i = 0;i <= VMAX;i++) C[i] = 0; for(i = 0;i < n;i++){ scanf("%hu"...
9,600
memory_bytes
{'s_id': 's953160101', 'p_id': 'p02275', 'u_id': 'u526289177', 'date': '1578962026', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '220', 'memory': '9600', 'code_size': '594'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 2000001\n#define VMAX 10000\n\nint main(){\n unsigned short *A,*B;\n\n int C[VM...
CDSS_608236
CDSS
#include <stdio.h> int main() { int N,price[10]; int i,MAX=0,MAXi,sum = 0; scanf("%d",&N); for(i=0;i<N;i++){ scanf("%d",&price[i]); if(price[i] > MAX){ MAX = price[i]; MAXi = i; } } for(i=0;i<N;i++){ sum += price[i]; } sum -= (pri...
128
memory_bytes
{'s_id': 's413581814', 'p_id': 'p03207', 'u_id': 'u942868002', 'date': '1544321780', '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>\nint main()\n{\n int N,price[10];\n int i,MAX=0,MAXi,sum = 0;\n\n scanf(\"%d\",&N);\n for(i=0;i<N;i++){...
CDSS_603368
CDSS
#include <stdio.h> #include <stdlib.h> long long max(long long a,long long b) { if(a>b) return a; return b; } int main() { int i,n,j,W; scanf("%d %d",&n,&W); long long *dp=(long long*)malloc(sizeof(long long)*W); dp[0]=0; for(i=1;i<=W;i++) dp[i]=-1; for(i=1;i<=n;i++) { int w1,v1; scanf("%d %d",&w1,&v1); ...
896
memory_bytes
{'s_id': 's307540334', 'p_id': 'p03163', 'u_id': 'u353919145', 'date': '1584120366', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '15', 'memory': '896', 'code_size': '510'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\nlong long max(long long a,long long b)\n{\n\tif(a>b)\treturn a;\n\treturn b; \n}\nint main()\...
CDSS_396112
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> int main() { char* line1; char* line2; int i; int n; int cnt; line1 = (char*)malloc(sizeof(char)*200005); line2 = (char*)malloc(sizeof(char)*200005); fgets(line1, 200005, stdin); fgets(line2, 200005, stdin); n = strlen(line1); cnt = 0; for...
1,768
memory_bytes
{'s_id': 's925088930', 'p_id': 'p02622', 'u_id': 'u710948184', 'date': '1593992236', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1768', 'code_size': '468'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n\nint main() {\n char* line1;\n char* line2;\n int i;\n int n;\n int c...
CDSS_680421
CDSS
#include <stdio.h> #include <math.h> int main(void){ int n,k,i; scanf("%d %d",&n,&k); int sum=1; for(i=0;i<n;i++){ if(sum*2<sum+k) sum*=2; else sum+=k; } printf("%d\n",sum); return 0; }
128
memory_bytes
{'s_id': 's513116006', 'p_id': 'p03564', 'u_id': 'u185896732', 'date': '1552663101', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '207'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\nint main(void){\n int n,k,i;\n scanf(\"%d %d\",&n,&k);\n int sum=1;\n for(i=0;i<n;i++){\n ...
CDSS_710022
CDSS
#include <stdio.h> #include <inttypes.h> int N; int64_t W; int64_t w[128], v[128]; int memo[128][128][334]; int64_t search(int idx, int count, int delta) { int64_t answer, candidate; int64_t current; if (idx >= N) return 0; if (memo[idx][count][delta]) return ~memo[idx][count][delta]; answer = search(idx + 1, ...
16,640
memory_bytes
{'s_id': 's637141654', 'p_id': 'p03732', 'u_id': 'u646118499', 'date': '1575968044', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '16640', 'code_size': '885'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 <inttypes.h>\n\nint N;\nint64_t W;\nint64_t w[128], v[128];\n\nint memo[128][128][334];\n\nint64_t search...
CDSS_550168
CDSS
#include<stdio.h> int main() { int N,A,B,eachCost; scanf("%d %d %d",&N,&A,&B); eachCost=N*A; if(eachCost<B) { printf("%d\n",eachCost); } else { printf("%d",B); } return 0; }
128
memory_bytes
{'s_id': 's288784724', 'p_id': 'p02981', 'u_id': 'u353919145', 'date': '1585953685', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '231'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,A,B,eachCost;\n scanf(\"%d %d %d\",&N,&A,&B);\n eachCost=N*A;\n if(eachCost<B)\n ...
CDSS_408135
CDSS
#include <stdio.h> int main(void) { long long n,i; long long k=1,number[100000]={}; scanf("%d",&n ); for (i=0;i<n;i++) { scanf("%lld\n",&number[i]); /* code */ } int r = 0; for (i=0;i<n;i++) { if (number[i]==0) { r++; /* code */ } if (r>0) { printf("0\n"); re...
2,508
memory_bytes
{'s_id': 's722466480', 'p_id': 'p02658', 'u_id': 'u748387778', 'date': '1594266153', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '36', 'memory': '2508', 'code_size': '634'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n long long n,i;\n long long k=1,number[100000]={};\n scanf(\"%d\",&n );\n\n for (i=0;i<n;i...
CDSS_604794
CDSS
m=1e9+7,P[2][3333]={1};*p,*q;c,i;f(j){q[j]=~c?*p-p[j]:p[j];j<i&&f(j+1);q[j]=(1L*q[j]+q[j+1]+m)%m;}main(){for(gets(&c);c=getchar()%3-1;f(0))p=P[i%2],q=P[++i&1];printf("%d",*q);}
256
memory_bytes
{'s_id': 's636794473', 'p_id': 'p03179', 'u_id': 'u657913472', 'date': '1546962635', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '80', 'memory': '256', '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:\nm=1e9+7,P[2][3333]={1};*p,*q;c,i;f(j){q[j]=~c?*p-p[j]:p[j];j<i&&f(j+1);q[j]=(1L*q[j]+q[j+1]+m)%m;}main(){for(gets(&c);c=getchar()%3-1;...
CDSS_589599
CDSS
#include <stdio.h> int main(){ int N,M,C; int B[20]; int A[20][20]; scanf("%d %d %d",&N,&M,&C); int i,j; for (i=0;i<M;i++){ scanf("%d ",B+i); } for (i=0;i<N;i++){ for (j=0;j<M;j++){ scanf("%d ",A[i]+j); } } int sum; int count = 0; for (i=0;i<N;i++){ sum = 0; for (j=0;j<...
128
memory_bytes
{'s_id': 's427617152', 'p_id': 'p03102', 'u_id': 'u184335045', 'date': '1559729521', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main(){\n int N,M,C;\n int B[20];\n int A[20][20];\n scanf(\"%d %d %d\",&N,&M,&C);\n int i,j;\n for (i=0...
CDSS_317805
CDSS
#include <stdio.h> int main(void) { int a,b; char op; while(1){ scanf("%d",&a); getchar(); scanf("%c%d",&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); ...
604
memory_bytes
{'s_id': 's048427590', 'p_id': 'p02401', 'u_id': 'u039250706', 'date': '1415871769', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '425'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n int a,b;\n char op;\n while(1){\n scanf(\"%d\",&a);\n getchar();\n ...
CDSS_335609
CDSS
#include<stdio.h> int main(){ int H,W,i,j; while(1){ scanf("%d %d",&H,&W); if(H==0&&W==0) break; for(i=0;i<H;i++){ for(j=0;j<W;j++){ if((i+j)%2==0){ printf("#"); }else printf("."); } printf("\n"); } printf("\n"); } return 0; }
572
memory_bytes
{'s_id': 's132773355', 'p_id': 'p02405', 'u_id': 'u762527436', 'date': '1442260970', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '263'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 H,W,i,j;\n\twhile(1){\n\t\tscanf(\"%d %d\",&H,&W);\n\t\tif(H==0&&W==0) break;\n\t\tfor(i=0;i<H...
CDSS_694754
CDSS
#include<stdio.h> int main(){ long n,m,a,b,i; int g[2][200001]={}; scanf("%ld %ld",&n,&m); for(i=0;i<m;i++){ scanf("%ld %ld",&a,&b); if(a==1) g[0][b]=1; else if(b==1) g[0][a]=1; else if(a==n) g[1][b]=1; else if(b==n) g[1][a]=1; } for(i=2;i<n;i++) if(g[0][i]==...
1,664
memory_bytes
{'s_id': 's172964992', 'p_id': 'p03647', 'u_id': 'u855429581', 'date': '1528755464', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '37', 'memory': '1664', '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\nint main(){\n long n,m,a,b,i;\n int g[2][200001]={};\n scanf(\"%ld %ld\",&n,&m);\n for(i=0;i<m;i++){\n sca...
CDSS_176887
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> int top,S[1000]; void push(int x){ S[++top]=x; } int pop(){ return S[top--]; } int main(){ int a,b; char s[100]; while(scanf("%s",s)!=EOF){ if(s[0]=='+'){ b=pop(); a=pop(); push(a+b); } else if(s[0]=='-'){ b=pop...
548
memory_bytes
{'s_id': 's279359132', 'p_id': 'p02263', 'u_id': 'u224288634', 'date': '1456400694', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '521'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 top,S[1000];\n\nvoid push(int x){\n S[++top]=x;\n}\n\nint pop(){\...
CDSS_700655
CDSS
#include<stdio.h> #include<stdlib.h> int judge(int ,int ,int ); int judge(int a,int b,int c) { int num=a*100+b*10+c; if(num%4==0) { return 1; } return 0; } int main() { int a,b,c; scanf("%d%d%d",&a,&b,&c); printf((judge(a,b,c)==1)?"YES\n":"NO\n"); return 0; }
128
memory_bytes
{'s_id': 's945788914', 'p_id': 'p03693', 'u_id': 'u723721005', 'date': '1588534469', '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#include<stdlib.h>\nint judge(int ,int ,int );\nint judge(int a,int b,int c)\n{\n int num=a*100+b*10+c;\n if(...
CDSS_392980
CDSS
#include<stdio.h> #include<string.h> int main(void){ int ac=0, wa=0, tle=0, re=0; int n; char s[10]; scanf("%d", &n); for(int i=0; i<n; i++){ scanf("%s", &s); if(strcmp(s, "AC") == 0) ac++; if(strcmp(s, "WA") == 0) wa++; if(strcmp(s, "TLE") == 0) tle++; if(s...
1,724
memory_bytes
{'s_id': 's584461531', 'p_id': 'p02613', 'u_id': 'u153615137', 'date': '1593999805', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '19', 'memory': '1724', 'code_size': '488'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 int ac=0, wa=0, tle=0, re=0;\n int n;\n char s[10];\n scanf(\"%...
CDSS_382558
CDSS
#include <stdio.h> int main() { long long int n, max, sum; scanf("%lld",&n); long long int A[200001]; for (int i=0;i<n;i++) { scanf("%lld",A+i); } max = 1; sum = 0; for (int i=0;i<n;i++) { if (A[i] > max) max = A[i]; sum += (max - A[i]); } printf("%lld\n"...
3,268
memory_bytes
{'s_id': 's780969965', 'p_id': 'p02578', 'u_id': 'u947076382', 'date': '1598126623', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '3268', 'code_size': '342'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 long int n, max, sum;\n scanf(\"%lld\",&n);\n long long int A[200001];\n for (in...
CDSS_236318
CDSS
#include<stdio.h> #include<math.h> int main(){ int i,n,s[1000]; double m,sum,a; while(1){ scanf("%d",&n); if(n==0) break; a=0; sum=0; for(i=0;i<n;i++){ scanf("%d",&s[i]); sum+=s[i]; } m=sum/n; for(i=0;i<n;i++){ ...
2,068
memory_bytes
{'s_id': 's276411552', 'p_id': 'p02381', 'u_id': 'u132139430', 'date': '1565266641', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2068', 'code_size': '427'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\nint main(){\n int i,n,s[1000];\n double m,sum,a;\n while(1){\n scanf(\"%d\",&n);\...
CDSS_433238
CDSS
#include <stdio.h> int main() { int a, b, c, d; int at=0, tt=0; scanf("%d%d%d%d", &a, &b, &c, &d); while (a > 0) { a = a - d; tt++; } while (c > 0) { c = c - b; at++; } if (tt >= at) printf("Yes\n"); else printf("No\n"); return 0; }
1,660
memory_bytes
{'s_id': 's690152751', 'p_id': 'p02700', 'u_id': 'u221135975', 'date': '1592244727', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1660', '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()\n{\n\tint a, b, c, d;\n\tint at=0, tt=0;\n\tscanf(\"%d%d%d%d\", &a, &b, &c, &d);\n\n\twhile (a > 0) {\n...
CDSS_502775
CDSS
#include<stdio.h> #include<string.h> #include<stdlib.h> int main() { int n,i = 0,count = 0,flag; scanf("%d",&n); char str[100]; //gets(str); scanf("%s",&str); //printf("%d",strlen(str)); i = 0; while(i < (strlen(str) - 2)) { flag = 0; if(str[i] == 'A' && str[i+1] == 'B' && str[i+2] == 'C') ...
128
memory_bytes
{'s_id': 's216291059', 'p_id': 'p02812', 'u_id': 'u413038058', 'date': '1578711209', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '434'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\n\nint main()\n{\n int n,i = 0,count = 0,flag;\n scanf(\"%d\",&n);\n ch...
CDSS_153243
CDSS
#include <stdio.h> int main(){ int i,j,k,N1,N2; scanf("%d%d",&N1,&N2); if(N1 > N2){ j = N1; N1=N2; N2=j; } k=N1%N2; while(k!=0){ N1=N2; N2=k; k=N1%N2; } printf("%d",N2); printf("\n"); return 0; }
2,124
memory_bytes
{'s_id': 's337695013', 'p_id': 'p02256', 'u_id': 'u360439655', 'date': '1529383844', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2124', 'code_size': '251'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\n int i,j,k,N1,N2;\n\n scanf(\"%d%d\",&N1,&N2);\n\n if(N1 > N2){\n j = N1;\n N1=N2;\n ...
CDSS_168765
CDSS
#include <stdio.h> int bubblesort(int,int *); int A[102]; int main(void) { int i; int N,k; scanf("%d", &N); for (i = 0; i < N; i++){ scanf("%d", &A[i]); } k = bubblesort(N, A); printf("%d", A[0]); for (i = 1; i < N; i++){ printf(" %d", A[i]); } printf("\n"...
2,044
memory_bytes
{'s_id': 's778945996', 'p_id': 'p02259', 'u_id': 'u213888975', 'date': '1589180543', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '784'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint bubblesort(int,int *);\nint A[102];\n\nint main(void)\n{\n int i;\n int N,k;\n \n scanf(\"%d\", ...
CDSS_290846
CDSS
#include <stdio.h> int main(void){ int w, h, x, y, r; scanf("%d%d%d%d%d", &w, &h, &x, &y, &r); if(x>=r && y>=r && x<=w-r && y<=h-r) printf("Yes\n"); else printf("No\n"); return 0; }
584
memory_bytes
{'s_id': 's241947640', 'p_id': 'p02394', 'u_id': 'u113858758', 'date': '1479551796', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '194'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\tint w, h, x, y, r;\n\n\tscanf(\"%d%d%d%d%d\", &w, &h, &x, &y, &r);\n\n\tif(x>=r && y>=r && x<...
CDSS_103311
CDSS
//AOJ0541 DP‚µ‚ÄN‰ñ•à‚¢‚½Œã‚Ì•¶Žš‚ðŒvŽZ‚µ‚ÄŽÀs #include<stdio.h> #include<string.h> int c[1005][1005]; char d[1005][1005]; int main(){ int h,w,n,i,j,x,y; FILE *fp; //fp=fopen("test.txt","r"); fp=stdin; while(1){ fscanf(fp,"%d%d%d",&h,&w,&n); if(h==0 && w==0 && n==0)break; memset(d,0,sizeof(d)); memset(c,0...
5,352
memory_bytes
{'s_id': 's234199852', 'p_id': 'p00464', 'u_id': 'u435952407', 'date': '1324012896', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '180', 'memory': '5352', 'code_size': '997'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//AOJ0541 DP‚µ‚ÄN‰ñ•à‚¢‚½Œã‚Ì•¶Žš‚ðŒvŽZ‚µ‚ÄŽÀs\n#include<stdio.h>\n#include<string.h>\nint c[1005][1005];\nchar d[1005][1005];\nint m...
CDSS_517492
CDSS
#include<stdio.h> int main() { long long int a, b; scanf ("%lld%lld", &a,&b); if(a<10 && b<10)printf("%lld\n",a*b); else printf("-1\n"); return 0; }
128
memory_bytes
{'s_id': 's353693146', 'p_id': 'p02879', 'u_id': 'u582629544', 'date': '1573816113', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '159'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n long long int a, b;\n scanf (\"%lld%lld\", &a,&b);\n if(a<10 && b<10)printf(\"%lld\\n\",a*b);\n ...
CDSS_596767
CDSS
#include <stdio.h> int main(void){ unsigned long long k,a,b,ans=1,p,q; scanf("%llu%llu%llu",&k,&a,&b); while(ans<a){ ans++; k--; if (k==0){ printf("%llu\n",ans); return 0; } } if (k%2==1){ k--; ans++; } for (unsigned lo...
128
memory_bytes
{'s_id': 's538238911', 'p_id': 'p03131', 'u_id': 'u750028862', 'date': '1549771140', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '810', 'memory': '128', 'code_size': '529'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 unsigned long long k,a,b,ans=1,p,q;\n scanf(\"%llu%llu%llu\",&k,&a,&b);\n while(ans<a...
CDSS_684888
CDSS
#include<stdio.h> int main(){ int n; scanf("%d ",&n); if(n%10==9||n/10==9) printf("Yes"); else printf("No"); return 0; }
128
memory_bytes
{'s_id': 's358421686', 'p_id': 'p03605', 'u_id': 'u108398960', 'date': '1557606799', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main(){\n\tint n;\n scanf(\"%d \",&n);\n if(n%10==9||n/10==9)\n printf(\"Yes\");\n else\n printf(\"No\...
CDSS_398654
CDSS
#include<stdio.h> int main(){ char c; scanf("%c",&c); if( 'a'<=c && c <='z' ) printf("a\n");//printf("%c",c); else if( 'A'<=c && c <='z' ) printf("A\n",c); //all conditon ? not || it is or return 0; }
1,996
memory_bytes
{'s_id': 's142940754', 'p_id': 'p02627', 'u_id': 'u228078226', 'date': '1594503176', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1996', '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>\n\nint main(){\nchar c;\n scanf(\"%c\",&c);\n\n if( 'a'<=c && c <='z' ) printf(\"a\\n\");//printf(\"%c\",c);\n el...
CDSS_235321
CDSS
#include <stdio.h> #include <math.h> // math.hのライブラリをリンクする必要がある // gcc b.c -o b -lm #define PI 3.141592653589793 int main(int argc, char const *argv[]) { int a, b, C; double S, L, h; scanf("%d %d %d", &a, &b, &C); double radC = (PI*C)/180; S = (a * b * sin(radC))/2; double c = sqrt(a*a + b*b ...
2,076
memory_bytes
{'s_id': 's256122913', 'p_id': 'p02380', 'u_id': 'u187191563', 'date': '1591968046', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2076', 'code_size': '464'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n// math.hのライブラリをリンクする必要がある\n// gcc b.c -o b -lm\n\n#define PI 3.141592653589793\n\nint main(int...
CDSS_394425
CDSS
#include <stdio.h> int main(){ int a; scanf("%d", &a); printf("%d", a+a*a+a*a*a); return 0; }
1,716
memory_bytes
{'s_id': 's001840439', 'p_id': 'p02621', 'u_id': 'u629560745', 'date': '1595358803', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1716', '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>\n\nint main(){\n int a;\n scanf(\"%d\", &a);\n printf(\"%d\", a+a*a+a*a*a);\n return 0;\n}\nPredict its...
CDSS_334779
CDSS
#include<stdio.h> int main(void) { int h,w,i,j; while(1){ scanf("%d %d",&h,&w); if (h==0 && w ==0) break; else{ for(i=0;i<=h-1;i++){ for (j=0;j<=w-1;j++){ if (i==0 ||i ==h-1 ||j==0 || j==w-1){ printf("#"); } else { printf("."); } } printf("\n"); } pr...
572
memory_bytes
{'s_id': 's493428089', 'p_id': 'p02404', 'u_id': 'u063600778', 'date': '1394023690', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', 'code_size': '355'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 h,w,i,j;\n \n while(1){\n scanf(\"%d %d\",&h,&w);\n if (h==0 && w ==0)\n brea...
CDSS_496405
CDSS
#include<stdio.h> int main() { int a,b; scanf("%d %d",&a,&b); if(a==b) printf("Yes\n"); else printf("No\n"); return 0; }
1,652
memory_bytes
{'s_id': 's046565770', 'p_id': 'p02789', 'u_id': 'u703215965', 'date': '1596548202', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1652', 'code_size': '125'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint a,b;\n\tscanf(\"%d %d\",&a,&b);\n\tif(a==b) printf(\"Yes\\n\");\n\telse printf(\"No\\n\");\n\t...
CDSS_70250
CDSS
h,m,M=60;P(s){printf("0%d:%02d:%02d\n",s/M/M,s/M%M,s%M);}main(s){for(;scanf("%d%d%d",&h,&m,&s)*~h;P(s*3))P(s=(120-h*M-m)*M-s);}///////
612
memory_bytes
{'s_id': 's615116575', 'p_id': 'p00074', 'u_id': 'u340315059', 'date': '1376889510', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '134'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nh,m,M=60;P(s){printf(\"0%d:%02d:%02d\\n\",s/M/M,s/M%M,s%M);}main(s){for(;scanf(\"%d%d%d\",&h,&m,&s)*~h;P(s*3))P(s=(120-h*M-m)*M-s);}//...
CDSS_677476
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> int main(){ int x, y, z; scanf("%d %d %d", &x, &y, &z); int total = x-z; int pes = y+z; printf("%d\n", total/pes); return 0; }
128
memory_bytes
{'s_id': 's511163716', 'p_id': 'p03548', 'u_id': 'u109867600', 'date': '1575694160', '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#include <string.h>\n#include <stdlib.h>\n#include <math.h>\n\nint main(){\n int x, y, z;\n scanf(\"%d %d %d...
CDSS_511578
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> #include <math.h> #define MAX(X, Y) (((X) > (Y))? (X) : (Y)) #define MIN(X, Y) (((X) < (Y))? (X) : (Y)) int compare_int(const void *a, const void *b){ return *(long int*)b - *(long int*)a; // 大きい順 } int compare_int_small(const void *a, cons...
128
memory_bytes
{'s_id': 's043979744', 'p_id': 'p02842', 'u_id': 'u980869590', 'date': '1575256066', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '2133'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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#include <ctype.h>\n#include <math.h>\n#define MAX(X, Y) (((X) > (Y))? (...
CDSS_57658
CDSS
#include <stdio.h> int main(void) { int i, j; int a[4], b[4]; while((scanf("%d", &a[0] ) != EOF)) { for(i = 1; i < 4; i++) scanf("%d", &a[i]); for(i = 0; i < 4; i++) scanf("%d", &b[i]); int count_hit = 0, count_blow = 0; for(i = 0; i < 4; i++) { ...
596
memory_bytes
{'s_id': 's967675911', 'p_id': 'p00025', 'u_id': 'u273981871', 'date': '1391398762', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '659'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n int i, j;\n int a[4], b[4];\n \n while((scanf(\"%d\", &a[0] ) != EOF)) {\n ...
CDSS_551269
CDSS
#include<stdio.h> #include<string.h> #include<stdlib.h> #include<math.h> int main(void){ int n,d,ans=0; scanf("%d%d",&n,&d); long double x[n][d],sum[(n*n-n)/2][n]; for(int i=0;n>i;++i){ for(int j=0;d>j;++j) scanf("%Lf",&x[i][j]); } for(int i=0;(n*n-n)/2>i;++i){ for(int j=...
128
memory_bytes
{'s_id': 's059634518', 'p_id': 'p02982', 'u_id': 'u270535768', 'date': '1588910949', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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#include<string.h>\n#include<stdlib.h>\n#include<math.h>\nint main(void){\n int n,d,ans=0;\n scanf(\"%d%d\",&...
CDSS_679055
CDSS
#include<stdio.h> #include<math.h> int main() { int a,b,c,n; scanf("%d",&n); b=sqrt(n); c=b*b; printf("%d\n",c); return 0; }
128
memory_bytes
{'s_id': 's708519623', 'p_id': 'p03556', 'u_id': 'u556737561', 'date': '1509846579', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '131'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\nint main()\n{\n\tint a,b,c,n;\n\tscanf(\"%d\",&n);\n\tb=sqrt(n);\n\tc=b*b;\n\tprintf(\"%d\\n\",c)...
CDSS_718391
CDSS
#include<stdio.h> int main(void){ long long n , m; scanf("%lld %lld",&n ,&m); long long ans; if(2*n >= m){ ans = m/2; } else{ long long sa = m - 2*n; sa /= 4; ans = sa + n; } printf("%lld\n",ans); return 0; }
128
memory_bytes
{'s_id': 's624727655', 'p_id': 'p03799', 'u_id': 'u391247609', 'date': '1592020303', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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 long long n , m;\n scanf(\"%lld %lld\",&n ,&m);\n\n\n long long ans;\n if(2*n >= m){\n a...
CDSS_341458
CDSS
#include<stdio.h> int main(){ int a[100],i,n; scanf("%d",&n); for( i = 0; i < n; i++ ){ scanf("%d",&a[i]); } for( i = n-1; i >= 0; i-- ){ printf("%d",a[i]); if(i!=0)printf(" "); } printf("\n"); return 0; }
600
memory_bytes
{'s_id': 's777572619', 'p_id': 'p02407', 'u_id': 'u832816623', 'date': '1435219397', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', '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(){\n\n int a[100],i,n;\n\n scanf(\"%d\",&n);\n\n for( i = 0; i < n; i++ ){\n scanf(\"%d\",&a[i]);\n ...
CDSS_290090
CDSS
#include <stdio.h> int main(void) { int W,H,x,y,r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if( x-r>=0 && x+r<=W && y-r>=0 && y+r<=H){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }
584
memory_bytes
{'s_id': 's392854599', 'p_id': 'p02394', 'u_id': 'u538700892', 'date': '1462434168', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '220'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\n{\n\n\n int W,H,x,y,r;\n\n scanf(\"%d %d %d %d %d\",&W,&H,&x,&y,&r);\n\n\n if( x-r>=0 && x+r...
CDSS_593515
CDSS
#include<stdio.h> int main(){ char S[20]; scanf("%s",&S); if(S[5] == '0' && (S[6] == '1' ||S[6] == '2' ||S[6] == '3' ||S[6] == '4')){ printf("Heisei"); }else{ printf("TBD"); } return 0; }
128
memory_bytes
{'s_id': 's024242621', 'p_id': 'p03109', 'u_id': 'u008829811', 'date': '1551038860', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '207'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n char S[20];\n scanf(\"%s\",&S);\n if(S[5] == '0' && (S[6] == '1' ||S[6] == '2' ||S[6] == '3' ||S[6...
CDSS_136008
CDSS
#include <stdio.h> int main () { int i, j, n, num, c, p; int a[100][100]; scanf("%d", &n); for (i = 0; i < n; i++) { for (j = 0; j < n; j++) { a[i][j] = 0; } } for (i = 0; i < n; i++) { scanf("%d", &num); scanf("%d", &c); for (j = 0; j < c; j++) {...
2,140
memory_bytes
{'s_id': 's321718911', 'p_id': 'p02237', 'u_id': 'u214679788', 'date': '1543922610', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '593'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 i, j, n, num, c, p;\n int a[100][100];\n\n scanf(\"%d\", &n);\n\n for (i = 0; ...
CDSS_633787
CDSS
#include <stdio.h> int main(void) { int n,min=1000000001,max=0,i; int a[101]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a[i]); if(min>a[i]){ min=a[i]; } if(max<a[i]){ max=a[i]; } } printf("%d",max-min); return 0; }
128
memory_bytes
{'s_id': 's393540622', 'p_id': 'p03308', 'u_id': 'u710397511', 'date': '1540301205', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '243'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint n,min=1000000001,max=0,i;\n\tint a[101];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<n;i++){\n\t\t...
CDSS_225457
CDSS
#include<stdio.h> #define N 10000 int parent(int ); int left(int ); int right(int); int main(){ int H,i,A[N+1]; scanf("%d",&H); for(i=1;i<=H;i++){ scanf("%d",&A[i]); } for(i=1;i<=H;i++){ printf("node %d: key = %d, ",i,A[i]); if(parent(i)>=1)printf("parent key = %d, ",A[parent(i)]); ...
2,048
memory_bytes
{'s_id': 's622960005', 'p_id': 'p02287', 'u_id': 'u091396080', 'date': '1531458160', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '579'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 10000\n\nint parent(int );\nint left(int );\nint right(int);\n\nint main(){ \n int H,i,A[N+1];\n\n\n s...
CDSS_467916
CDSS
#include <float.h> #include <inttypes.h> #include <limits.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> #include <math.h> #ifdef __cplusplus #include <bits/stdc++.h> #endif int comp(const void *a, const void *b){return (*(int*)a>*(int*)b)-(*(int...
128
memory_bytes
{'s_id': 's765821408', 'p_id': 'p02722', 'u_id': 'u292252214', 'date': '1586053047', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '21', 'memory': '128', 'code_size': '1818'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <float.h>\n#include <inttypes.h>\n#include <limits.h>\n#include <stdint.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include...
CDSS_276703
CDSS
#include <stdio.h> int main(void) { int a, b, c; scanf("%d %d %d", &a, &b, &c); if (a < b && b < c) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
580
memory_bytes
{'s_id': 's448191537', 'p_id': 'p02392', 'u_id': 'u865699521', 'date': '1465026494', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '186'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) \n{\n\tint a, b, c;\n\tscanf(\"%d %d %d\", &a, &b, &c);\n\n\tif (a < b && b < c) \n\t{\n...
CDSS_575935
CDSS
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #define MAX(a,b) (a>b?a:b) #define MIN(a,b) (a<b?a:b) #define VEC(kata, num) (kata*)malloc(num * sizeof(kata)) #define DB puts("ok") #define SENTINEL 1000000007 typedef long long lli; int main() { int ans=0, x[20], y[20], i, n; scanf(...
128
memory_bytes
{'s_id': 's221573104', 'p_id': 'p03060', 'u_id': 'u543173665', 'date': '1556444891', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '549'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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#define MAX(a,b) (a>b?a:b)\n#define MIN(a,b) (a<b?a:b...
CDSS_560700
CDSS
#include <stdio.h> int main(void){ int N, X, L[105], i, D[105], c; scanf("%d %d", &N, &X); D[1]=0; c=0; for (i=1; i<=N; i++) { scanf("%d", &L[i]); D[i+1]=D[i]+L[i]; } for (i=1; i<=N+1; i++) { if (D[i]<=X) c++; } printf("%d", c); }
128
memory_bytes
{'s_id': 's475470195', 'p_id': 'p03000', 'u_id': 'u279160680', 'date': '1560712289', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '287'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int N, X, L[105], i, D[105], c;\n scanf(\"%d %d\", &N, &X);\n D[1]=0; c=0;\n for (i=...
CDSS_182562
CDSS
#include <stdio.h> #include <string.h> #define LEN 100000 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; void enqueue(P x); P dequeue(); int head, tail, n; int min(int a, int b) {return a < b ? a : b;} int main(){ int c, i, q; int col = 0; P u; scanf("%d %d", &n, &q); for (i = 1; i <= n; i++){ ...
11,892
memory_bytes
{'s_id': 's837254450', 'p_id': 'p02264', 'u_id': 'u222338320', 'date': '1529734471', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '11892', 'code_size': '767'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 100000\ntypedef struct pp{\n char name[100];\n int t;\n}P;\nP Q[LEN+1];\nvoid e...
CDSS_19347
CDSS
#include<stdio.h> int main() { int a, b; for (a=1; a <= 9; a++){ for (b=1; b <= 9; b++){ printf("%dx%d=%d\n", a, b, a*b); } } return 0; }
524
memory_bytes
{'s_id': 's796992944', 'p_id': 'p00000', 'u_id': 'u988404890', 'date': '1491965798', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '151'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n\tint a, b;\n\t\n\tfor (a=1; a <= 9; a++){\n\t\tfor (b=1; b <= 9; b++){\n\t\t\tprintf(\"%dx%d=%d\\...
CDSS_120274
CDSS
#include <stdio.h> void quicksort(int bottom, int top, int *data) { int lower, upper; int temp; int div; if (bottom >= top) return; div = data[bottom]; for (lower = bottom, upper = top; lower < upper; ) { while (lower <= upper && data[lower] <= div) lower++; while (lower <= upper && data[upper] > div) ...
612
memory_bytes
{'s_id': 's024771374', 'p_id': 'p01093', 'u_id': 'u640736814', 'date': '1499061835', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '612', 'code_size': '1139'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nvoid quicksort(int bottom, int top, int *data) {\n\tint lower, upper;\n\tint temp;\n\tint div;\n\n\tif (bottom >...
CDSS_399472
CDSS
#include <stdio.h> int main(){ int n,k; scanf("%d%d",&n,&k); int d[2000]; int i; for(i=0; i<=1000; ++i) d[i]=0; for(i=0; i<n; ++i){ int a; scanf("%d",&a); d[a]++; } int ans=0, t=0; for(i=0; t<k;){ if(d[i]==0) i++; else { d[i]--; ans += i; t++; } } ...
1,716
memory_bytes
{'s_id': 's437923274', 'p_id': 'p02628', 'u_id': 'u276588887', 'date': '1597462979', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1716', 'code_size': '356'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,k;\n scanf(\"%d%d\",&n,&k);\n int d[2000];\n int i;\n for(i=0; i<=1000; ++i) d[i]=0;\n ...