identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_316023
CDSS
#include<stdio.h> int main(void) { double a; scanf("%lf", &a); printf("%f %f\n", a*a*3.141592653589793, 2*a*3.141592653589793); return 0; }
1,796
memory_bytes
{'s_id': 's175255887', 'p_id': 'p02400', 'u_id': 'u908141724', 'date': '1511274341', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1796', 'code_size': '148'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void) {\n\n\tdouble a;\n\n\tscanf(\"%lf\", &a);\n\t\n\tprintf(\"%f %f\\n\", a*a*3.141592653589793, 2*a*3...
CDSS_551166
CDSS
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #include <ctype.h> #define MOD 1000000007 #define MAX(a,b) (a>b?a:b) #define MAX3(a,b,c) MAX(a,MAX(b,c)) #define MIN(a,b) (a<b?a:b) #define MIN3(a,b,c) MIN(a, MIN(b,c)) typedef long long lli; int cmp(const void *a, const void *b) { return ...
128
memory_bytes
{'s_id': 's248666251', 'p_id': 'p02981', 'u_id': 'u543173665', 'date': '1562547746', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '822'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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#include <ctype.h>\n#define MOD 1000000007\n#define M...
CDSS_717249
CDSS
#include <stdio.h> int main(){ int n; scanf("%d", &n); long ans = 1; long m = 1000000007; for(int i=2; i<=n; i++) ans =(ans * i) % m; printf("%ld\n", ans); return 0; }
128
memory_bytes
{'s_id': 's554493533', 'p_id': 'p03796', 'u_id': 'u792720861', 'date': '1589744545', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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(){\n int n; scanf(\"%d\", &n);\n long ans = 1;\n long m = 1000000007;\n for(int i=2; i<=n; i++)\n ...
CDSS_594652
CDSS
#include <stdio.h> int main(void) { int a,b,c,d; scanf("%d %d",&a,&b); if (b%a==0){ c=a+b; printf("%d\n",c); } else{ d=b-a; printf("%d\n",d); } return 0; }
128
memory_bytes
{'s_id': 's317698574', 'p_id': 'p03125', 'u_id': 'u146245123', 'date': '1555693924', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '208'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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 scanf(\"%d %d\",&a,&b);\n if (b%a==0){\n c=a+b;\n printf(\"%d\...
CDSS_200892
CDSS
#include <stdio.h> #define N 2001 void calc(int, int); char A[N]; int n,q,elems[20]; int main(){ int i,tmp; for(i=0; i<N; i++){ A[i]='n'; } scanf("%d",&n); for(i=0; i<n; i++) scanf("%d",&elems[i]); calc(0,0); scanf("%d",&q); for(i=0; i<q; i++){ scanf("%d",&tmp); ...
2,120
memory_bytes
{'s_id': 's926938957', 'p_id': 'p02271', 'u_id': 'u084502996', 'date': '1577330397', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2120', 'code_size': '589'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 2001\n\nvoid calc(int, int);\n\nchar A[N];\nint n,q,elems[20];\n\nint main(){\n int i,tmp;\n for(i...
CDSS_136120
CDSS
#include<stdio.h> #define N 100 int main(){ int G[N][N]; int i,j,n,u,k,v; scanf("%d",&n); for(i=0;i<n;i++){ for(j=0;j<n;j++)G[i][j]=0; } for(i=0;i<n;i++){ scanf("%d%d",&u,&k); u--; for(j=0;j<k;j++){ scanf("%d",&v); v--; G[u][v]=1; } } for(i=0;i<n;i++){ ...
2,060
memory_bytes
{'s_id': 's987467220', 'p_id': 'p02237', 'u_id': 'u231643476', 'date': '1532398834', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2060', 'code_size': '443'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 100\n\nint main(){\n \n int G[N][N];\n int i,j,n,u,k,v;\n \n scanf(\"%d\",&n);\n \n for(i=0;i<n;i+...
CDSS_717483
CDSS
#include <stdio.h> int main(){ int N; long int power = 1; scanf("%d", &N); for(long int i = 1; i <= N; i++){ power = (power*i)%1000000007; } printf("%ld\n", power); return 0; }
128
memory_bytes
{'s_id': 's693813067', 'p_id': 'p03796', 'u_id': 'u889278665', 'date': '1544642385', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '196'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int N;\n long int power = 1;\n scanf(\"%d\", &N);\n for(long int i = 1; i <= N; i++){\n pow...
CDSS_497823
CDSS
#include <stdio.h> int main(){ int a,b,i; char as[10],bs[10]; scanf("%d %d",&a,&b); for (i=0;i<a;i++) as[i]='0'+b; as[i]='\0'; for (i=0;i<b;i++) bs[i]='0'+a; bs[i]='\0'; if (as[0]<bs[0]) puts(as); else puts(bs); return 0; }
128
memory_bytes
{'s_id': 's808816754', 'p_id': 'p02790', 'u_id': 'u337657882', 'date': '1579464163', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '268'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,i;\n char as[10],bs[10];\n \n scanf(\"%d %d\",&a,&b);\n for (i=0;i<a;i++) as[i]='0...
CDSS_392004
CDSS
#include <stdio.h> int main() { int i,p=0; scanf("%d", &i); while(p<=10000) { if(p>=i) break; p+=1000; } printf("%d", p-i); }
1,736
memory_bytes
{'s_id': 's011359384', 'p_id': 'p02612', 'u_id': 'u201461406', 'date': '1593997594', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1736', 'code_size': '147'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,p=0;\n scanf(\"%d\", &i);\n while(p<=10000)\n {\n if(p>=i) break;\n p+=1000;\n ...
CDSS_109066
CDSS
#include<stdio.h> int main(void){ int xf,yb,ylim,yov,water,X,Y; scanf("%d %d %d %d %d",&xf,&yb,&ylim,&yov,&water); /* scanf("%d",&xf); scanf("%d",&yb); scanf("%d",&ylim); scanf("%d",&yov); scanf("%d",&water); */ X=xf*water; if(water>ylim){ Y=yb+(yov*(water-ylim)); } else{ Y=yb; } i...
596
memory_bytes
{'s_id': 's226589776', 'p_id': 'p00531', 'u_id': 'u003762655', 'date': '1462939835', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', '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>\nint main(void){\n int xf,yb,ylim,yov,water,X,Y;\n scanf(\"%d %d %d %d %d\",&xf,&yb,&ylim,&yov,&water);\n /*\n s...
CDSS_403314
CDSS
typedef char Bool; #define true 39 #define false 0 typedef long long int64; typedef unsigned long long uint64; typedef int int32; typedef unsigned int uint32; typedef unsigned char byte; #pragma warning (disable:4996) #include <stdio.h> int main() { int x, y; scanf("%d %d", &x, &y); for (int i = 0; i != x + 1; i...
1,732
memory_bytes
{'s_id': 's863719968', 'p_id': 'p02640', 'u_id': 'u173498047', 'date': '1592183867', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1732', 'code_size': '503'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\ntypedef char Bool;\n#define true 39\n#define false 0 \ntypedef long long int64;\ntypedef unsigned long long uint64;\ntypedef int int32...
CDSS_576086
CDSS
#include <stdio.h> int main(void){ int N; scanf("%d",&N); int V[N]; int C[N]; int sum=0; int x; for(int i=0; i<N; i++){ scanf("%d",&V[i]); } for(int i=0; i<N; i++){ scanf("%d",&C[i]); } for(int i=0; i<N; i++){ x= V[i]-C[i]; if(x > 0){ sum += x; } } printf("%d\n",sum ); }
128
memory_bytes
{'s_id': 's697449362', 'p_id': 'p03060', 'u_id': 'u107464079', 'date': '1556414633', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '295'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\tscanf(\"%d\",&N);\n\tint V[N];\n\tint C[N];\n\tint sum=0;\n\tint x;\n\tfor(int i=0;...
CDSS_562569
CDSS
#include<stdio.h> int main() { int a,b,c,ans; scanf("%d %d %d",&a,&b,&c); int t1,t2,t3; t1=a+b; t2=b+c; t3=a+c; if(t1>=t2) { if(t2>=t3) ans=t3; else ans=t2; } else { if(t1<=t3) ans=t1; else ans=t3; } printf("%d\n",ans); return 0; }
128
memory_bytes
{'s_id': 's866154530', 'p_id': 'p03011', 'u_id': 'u271369517', 'date': '1582445292', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '301'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,ans;\n scanf(\"%d %d %d\",&a,&b,&c);\n int t1,t2,t3;\n t1=a+b;\n t2=b+c;\n t3=a+c;...
CDSS_707294
CDSS
#include <stdio.h> int main(void) { int n,m; int a[51]; int b[51]; int i; int x=0;; int j=0; scanf("%d%d",&n,&m); for(i=0;i<m;i++){ scanf("%d%d",&a[i],&b[i]); } for(j=1;j<=n;j++){ for(i=0;i<m;i++){ if(a[i]==j){ x++; //printf("!%d %d\n",a[i],j); ...
128
memory_bytes
{'s_id': 's166460534', 'p_id': 'p03720', 'u_id': 'u769466725', 'date': '1498879640', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '465'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n\tint n,m;\n\tint a[51];\n\tint b[51];\n\tint i;\n\tint x=0;;\n\tint j=0;\n\tscanf(\"%d%d\",&...
CDSS_223416
CDSS
#include<stdio.h> #include<stdlib.h> #define NIL NULL struct node{ struct node *r; struct node *l; struct node *p; int key; }; typedef struct node * Node; Node root; Node treeMin(Node); Node treeMax(Node); Node treeSearch(Node,int); Node treeSuccessor(Node); void treeDelete(Node); void insert(int); void ino...
19,360
memory_bytes
{'s_id': 's988767915', 'p_id': 'p02284', 'u_id': 'u409954594', 'date': '1498099455', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '360', 'memory': '19360', 'code_size': '2276'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 NIL NULL\n \nstruct node{\n struct node *r;\n struct node *l;\n struct node *p;\n i...
CDSS_510775
CDSS
#include <stdio.h> int main(){ int i,j,k,n,y[15][15],a,x,c[15],m; scanf("%d",&n); for (i=0;i<n;i++) { scanf("%d",&a); for (j=0;j<n;j++) y[i][j]=-1; for (j=0;j<a;j++) { scanf("%d %d",&x,&k); y[i][x-1]=k; } c[i]=0; } c[n]=0;m=0; while (c[n]==0) { ...
256
memory_bytes
{'s_id': 's845238397', 'p_id': 'p02837', 'u_id': 'u337657882', 'date': '1575860607', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '256', 'code_size': '734'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 i,j,k,n,y[15][15],a,x,c[15],m;\n \n scanf(\"%d\",&n);\n for (i=0;i<n;i++) {\n scanf...
CDSS_427348
CDSS
#include<stdio.h> int main() { long long x,a,b,c; scanf("%lld",&x); a=100; b=1; c=0; while(1){ a=a+b; b=a/100; c++; if(a>=x) break; } printf("%lld\n",c); return 0; }
1,700
memory_bytes
{'s_id': 's090128824', 'p_id': 'p02694', 'u_id': 'u621146716', 'date': '1592941095', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1700', 'code_size': '183'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tlong long x,a,b,c;\n\tscanf(\"%lld\",&x);\n\ta=100;\n\tb=1;\n\tc=0;\n\twhile(1){\n\t\ta=a+b;\n\t\t...
CDSS_619615
CDSS
#include <stdio.h> #include <stdlib.h> int num(){ char s[11]; int i, n; for(i=0; i<sizeof(s); i++){ s[i] = getchar(); if(s[i] == ' ' || s[i] == '\n'){ s[i] = '\0'; break; } } sscanf(s, "%d", &n); return n; } void sort(int x[], int n){ int y, i,...
128
memory_bytes
{'s_id': 's017887262', 'p_id': 'p03254', 'u_id': 'u137487250', 'date': '1584449246', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1485'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 num(){\n char s[11];\n int i, n;\n for(i=0; i<sizeof(s); i++){\n s[i] = g...
CDSS_105182
CDSS
i,j,k,s;main(x){char a[99],b[99];for(scanf("%s%d",a,&x);x--;){scanf("%s",b);for(i=0;i<10;i++){k=0;if(a[k]==b[i]){for(j=i;1;){j++;k++;j=j>9?0:j;if(a[k]=='\0'){s++;i=11;break;}if(a[k]!=b[j])break;}}}}printf("%d\n",s);exit(0);}
0
memory_bytes
{'s_id': 's925343335', 'p_id': 'p00478', 'u_id': 'u752673456', 'date': '1323159432', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '224'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\ni,j,k,s;main(x){char a[99],b[99];for(scanf(\"%s%d\",a,&x);x--;){scanf(\"%s\",b);for(i=0;i<10;i++){k=0;if(a[k]==b[i]){for(j=i;1;){j++;k...
CDSS_93169
CDSS
#include<stdio.h> int main() { int d,c; scanf("%d %d",&d,&c); printf("%d\n",d*c); return 0; }
2,120
memory_bytes
{'s_id': 's282545401', 'p_id': 'p00290', 'u_id': 'u035549513', 'date': '1536911394', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2120', 'code_size': '99'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n\tint d,c;\n\tscanf(\"%d %d\",&d,&c);\n\tprintf(\"%d\\n\",d*c);\n\treturn 0;\n}\n\nPredict its mem...
CDSS_458471
CDSS
#include <stdio.h> int gcd(int p, int q) { while (q != 0) { int r = p % q; p = q; q = r; } return p; } int main() { int k; scanf("%d", &k); long sum = 0; for (int a=1; a<=k; a++) for (int b=1; b<=k; b++) for (int c=1; c<=k; c++) sum += gcd(gcd(a, b), c); printf("%ld\n",...
1,724
memory_bytes
{'s_id': 's927156883', 'p_id': 'p02713', 'u_id': 'u085059942', 'date': '1595381685', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '213', 'memory': '1724', 'code_size': '343'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint gcd(int p, int q) {\n while (q != 0) {\n int r = p % q;\n p = q;\n q = r;\n }\n return p;\n}\n\n...
CDSS_238249
CDSS
#include <stdio.h> #include <string.h> int E[6] = {3,0,-2,2,0,-3}; int N[6] = {1,4,0,0,-4,-1}; int lsp[6] = {0,1,2,-2,-1,0}; void DICE(int a,int d[]){ int d2[6]; int i; if(a == 0){ for(i = 0;i < 6; i++){ d2[i] = d[i + E[i]]; } } if(a == 1){ for(i = 0;i < 6; ...
2,048
memory_bytes
{'s_id': 's247486907', 'p_id': 'p02384', 'u_id': 'u679700431', 'date': '1530631247', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '991'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 E[6] = {3,0,-2,2,0,-3};\nint N[6] = {1,4,0,0,-4,-1};\nint lsp[6] = {0,1,2,-2,-1,0};\n...
CDSS_145682
CDSS
#include<stdio.h> static const int N = 1000; void trace(int A[], int n){ int i; for ( i = 1; i <= n; i++ ){ if ( i > 1 ) printf(" "); printf("%d",A[i]); } printf("\n"); } void insertionSort(int A[], int n){ int i,j,v; for(i=2;i<=n;i++){ v=A[i]; j=i-1; while(j>=0&&A[j]>v){ A[j+1]=...
608
memory_bytes
{'s_id': 's355256821', 'p_id': 'p02255', 'u_id': 'u645716731', 'date': '1491972552', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', '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\nstatic const int N = 1000;\nvoid trace(int A[], int n){\n int i;\n for ( i = 1; i <= n; i++ ){\n if ( i > 1 ...
CDSS_608696
CDSS
#include <stdio.h> #include <limits.h> /* 配列の要素を交換する */ void Swap(int x[ ], int i, int j) { int temp; temp = x[i]; x[i] = x[j]; x[j] = temp; } void QSort(int x[ ], int left, int right) { int i, j; int pivot; i = left; /* ソートする配列の一番小さい要素の添字 */ j = right; ...
512
memory_bytes
{'s_id': 's247711988', 'p_id': 'p03208', 'u_id': 'u966921103', 'date': '1544323551', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '21', 'memory': '512', 'code_size': '1827'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\n /* 配列の要素を交換する */\nvoid Swap(int x[ ], int i, int j)\n{\n int temp;\n\n temp = x[i];...
CDSS_602574
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<stdbool.h> #include<math.h> #include<limits.h> #define MAX 100002 int abs(int a){ if(a>0) return a; else return a*(-1); } int min(int a,int b){ if(a>b) return b; else return a; } int main(){ int N,K; scanf("%d %d",&N,&K); int...
896
memory_bytes
{'s_id': 's728107100', 'p_id': 'p03161', 'u_id': 'u270825463', 'date': '1587906026', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '28', 'memory': '896', 'code_size': '600'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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<stdbool.h>\n#include<math.h>\n#include<limits.h>\n#define MAX 1000...
CDSS_471597
CDSS
#include<stdio.h> int main(){ int n, m; scanf("%d%d",&n,&m); printf("%d\n", (n * (n - 1) / 2) + (m * (m - 1) / 2)); return 0; }
128
memory_bytes
{'s_id': 's058053510', 'p_id': 'p02729', 'u_id': 'u188486233', 'date': '1587007745', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', '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>\nint main(){\n int n, m;\n scanf(\"%d%d\",&n,&m);\n printf(\"%d\\n\", (n * (n - 1) / 2) + (m * (m - 1) / 2)...
CDSS_126391
CDSS
#include<stdio.h> int main(){ int a; int num=0; int k; char s; char str[10000]; int i; scanf("%d",&a); for(i=0;i<a;i++){ scanf("%s %d",str,&k); if(str[1]==0){ if(str[0]=='(') num+=k; else if(str[0]==')') num-=k; } if(num<0){ break; } } puts(num==0?"YES":"NO");...
592
memory_bytes
{'s_id': 's601419282', 'p_id': 'p01602', 'u_id': 'u974072558', 'date': '1434970361', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', '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\nint main(){\n int a;\n int num=0;\n int k;\n char s;\n char str[10000];\n int i;\n scanf(\"%d\",&a);\n\n ...
CDSS_308416
CDSS
#include<stdio.h> int main(void) { int a, b; scanf("%d %d", &a, &b); printf("%d %d %f\n", a / b, a % b, (double)a / b); return 0; }
632
memory_bytes
{'s_id': 's634416278', 'p_id': 'p02399', 'u_id': 'u693225785', 'date': '1449672826', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '632', 'code_size': '140'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 printf(\"%d %d %f\\n\", a / b, a % b, (double)a / b...
CDSS_299068
CDSS
#include <stdio.h> int main() { int i; int x; for(i = 1; ; i++) { scanf("%d", &x); if(x == 0) { break; } printf("Case %d: %d\n", i, x); } return 0; }
2,044
memory_bytes
{'s_id': 's452382113', 'p_id': 'p02396', 'u_id': 'u513898080', 'date': '1586782070', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', '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()\n{\n int i;\n int x;\n for(i = 1; ; i++) {\n scanf(\"%d\", &x);\n if(x == 0) {...
CDSS_258026
CDSS
#include<stdio.h> int main(){ int a,b; scanf("%d %d",&a,&b); if(0<=a&&a<=100&&0<=b&&b<=100){ printf("%d %d\n",a*b,2*(a+b)); } return 0; }
2,040
memory_bytes
{'s_id': 's715368415', 'p_id': 'p02389', 'u_id': 'u772550938', 'date': '1570329207', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '163'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int a,b;\n scanf(\"%d %d\",&a,&b);\n if(0<=a&&a<=100&&0<=b&&b<=100){\n printf(\"%d %d\\...
CDSS_220268
CDSS
#include <stdio.h> struct Node { int o, p, q;}; struct Node x[10000]; int n; void pre( int u) { if ( u == -1) { return ; } printf(" %d", u); pre( x[u].p); pre( x[u].q); } void in( int u) { if ( u == -1) { return ; } in( x[u].p); printf(" %d", u); in( x[u...
2,056
memory_bytes
{'s_id': 's543551501', 'p_id': 'p02281', 'u_id': 'u477123882', 'date': '1550202270', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2056', 'code_size': '1131'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nstruct Node { int o, p, q;};\nstruct Node x[10000];\nint n;\nvoid pre( int u) {\n if ( u == -1) {\n r...
CDSS_57461
CDSS
#include<stdio.h> int main(){ int im[4],bl[4],i,hit,blow,j; while(scanf("%d %d %d %d",im,im+1,im+2,im+3)!=EOF){ scanf("%d %d %d %d",bl,bl+1,bl+2,bl+3); for(hit=0,blow=0,i=0;i<4;i++){ if(im[i]==bl[i]) hit++; for(j=0;j<4;j++) if(i!=j&&im[i]==bl[j]) blow++; } printf("%d %d\n",hit,blow); } return ...
0
memory_bytes
{'s_id': 's714257233', 'p_id': 'p00025', 'u_id': 'u540597234', 'date': '1309129492', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '324'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 im[4],bl[4],i,hit,blow,j;\n \n while(scanf(\"%d %d %d %d\",im,im+1,im+2,im+3)!=EOF){\n scanf(\...
CDSS_591217
CDSS
// Ver19.03 #include <math.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #define INF (1 << 29) * 2 #define LLINF 4545454545454545454 #define MOD 1000000007 #define ll long long #define ull unsigned long long #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define MIN(a, b) ((a) < (b) ? (a) : (b)) int upll(con...
128
memory_bytes
{'s_id': 's328878554', 'p_id': 'p03105', 'u_id': 'u883325972', 'date': '1554322210', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '762'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// Ver19.03\n#include <math.h>\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#define INF (1 << 29) * 2\n#define LLINF...
CDSS_69370
CDSS
#define _CRT_SECURE_NO_WARNINGS //#define _USE_MATH_DEFINES #include<stdio.h> //#include<stdlib.h> //#include<math.h> //#include<string.h> //#include<time.h> //#define pi acos(-1.0) #define P(type,x) fprintf(stdout,"%"#type"\n",x) int dp[11][1001], v[10]; void dfs(int a, int b) { int i; dp[a][b]++; for (i = 0; i < 1...
644
memory_bytes
{'s_id': 's431307137', 'p_id': 'p00070', 'u_id': 'u078042885', 'date': '1482792780', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '130', 'memory': '644', 'code_size': '526'}
[ { "content": "Your task is to predict the memory 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#include<stdio.h>\n//#include<stdlib.h>\n//#include<math.h>\n//#include<...
CDSS_20147
CDSS
#include<stdio.h> int main() { int a,b; for(a=1;a<10;a++) { for(b=1;b<10;b++) { printf("%dx%d=%d\n",a,b,a*b); } } return 0; }
0
memory_bytes
{'s_id': 's439081884', 'p_id': 'p00000', 'u_id': 'u611853667', 'date': '1283254929', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '140'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\tfor(a=1;a<10;a++)\n\t{\n\t\tfor(b=1;b<10;b++)\n\t\t{\n\t\t\tprintf(\"%dx%d=%d\\n\",a...
CDSS_159783
CDSS
#include <stdio.h> #include <math.h> #define N 10000 int isPrime(int); int main() { int i,n,num[N],cnt=0; scanf("%d",&n); for (i = 0; i < n; i++) { scanf("%d",&num[i]); } for (i = 0; i < n; i++) { if (isPrime(num[i]) == 1) cnt++; } printf("%d\n",cnt); return 0; } int isPrime(int n){ int i; i...
2,048
memory_bytes
{'s_id': 's435809894', 'p_id': 'p02257', 'u_id': 'u277083220', 'date': '1544436479', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '459'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 N 10000\nint isPrime(int);\n\nint main() {\n int i,n,num[N],cnt=0;\n scanf(\"%d\",&n)...
CDSS_46190
CDSS
#include <stdio.h> #include <math.h> int main(void) { int i; int height[31], length[31]; int w,n; int a,b; for (i = 1; i < 31; i++){ height[i] = i; length[i] = i; } scanf("%d", &w); scanf("%d", &n); for (i = 1; i <= n; i++){ scanf("%d,%d", &a, &b); ...
2,036
memory_bytes
{'s_id': 's378187456', 'p_id': 'p00011', 'u_id': 'u213888975', 'date': '1587620883', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '496'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(void)\n{\n int i;\n int height[31], length[31];\n int w,n;\n int a,b;\n\...
CDSS_481607
CDSS
#include <stdio.h> int print_doc(n){ if(n % 2 == 0) return n / 2; else return n / 2 + 1; } int main(){ int a; scanf("%d", &a); printf("%d", print_doc(a)); printf("\n"); return 0; }
128
memory_bytes
{'s_id': 's676835284', 'p_id': 'p02759', 'u_id': 'u561038073', 'date': '1583613919', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '208'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint print_doc(n){\n if(n % 2 == 0) return n / 2;\n else return n / 2 + 1;\n}\n \nint main(){\n int a;\n \n ...
CDSS_528520
CDSS
#include<stdio.h> #include<string.h> #include<stdlib.h> int main () { char s[102]; int i; scanf("%s", s); for (i=0; i<strlen(s); i++) { if (i % 2){ if ((s[i] != 'L') && (s[i] != 'U') &&(s[i] != 'D')) { printf("No\n"); return 0; } } ...
128
memory_bytes
{'s_id': 's512203381', 'p_id': 'p02910', 'u_id': 'u335664934', 'date': '1568598923', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '526'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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>\nint main ()\n{\n char s[102];\n int i;\n scanf(\"%s\", s);\n fo...
CDSS_438104
CDSS
#include<stdio.h> #include<math.h> void main(void) { double r; scanf("%lf",&r); printf("%lf",2*r*M_PI); }
1,752
memory_bytes
{'s_id': 's362822578', 'p_id': 'p02705', 'u_id': 'u399091677', 'date': '1587783727', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1752', '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#include<math.h>\nvoid main(void)\n{\n double r;\n scanf(\"%lf\",&r);\n printf(\"%lf\",2*r*M_PI);\n \n}\nPredic...
CDSS_123397
CDSS
main2(){ int x,y,w,h,r,n,a,b; scanf("%d%d%d%d",&x,&y,&w,&h); for(r=0,scanf("%d",&n);n;n--){ scanf("%d%d",&a,&b); if(x<=a&&a<=x+w && y<=b&&b<=y+h)r++; } printf("%d\n",r); } main(n){for(scanf("%d",&n);n;n--)main2();exit(0);}
0
memory_bytes
{'s_id': 's745909196', 'p_id': 'p01303', 'u_id': 'u300645821', 'date': '1267901411', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '240'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nmain2(){\n int x,y,w,h,r,n,a,b;\n scanf(\"%d%d%d%d\",&x,&y,&w,&h);\n for(r=0,scanf(\"%d\",&n);n;n--){\n scanf(\"%d%d\",&a,&b);\n...
CDSS_307554
CDSS
#include<stdio.h> int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); int i,cnt=0; for(i=a;i<=b;++i){ if(c%i==0){ ++cnt; } } printf("%d\n",cnt); return 0; }
2,120
memory_bytes
{'s_id': 's773637656', 'p_id': 'p02398', 'u_id': 'u884291095', 'date': '1538509578', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2120', '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()\n{\n\tint a,b,c;\n\tscanf(\"%d %d %d\",&a,&b,&c);\n\tint i,cnt=0;\n\tfor(i=a;i<=b;++i){\n\t\tif(c%i==0){...
CDSS_155848
CDSS
#include <stdio.h> #include <math.h> int isPrime(int); int main(){ int a[10000],i,n,c=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a[i]); if(isPrime(a[i])==1)c++; } printf("%d\n",c); return 0; } int isPrime(int x){ int i; if(x==2)return 1; if(x<2||x%2==0)return 0; i=3; while(i<...
628
memory_bytes
{'s_id': 's632077182', 'p_id': 'p02257', 'u_id': 'u395334793', 'date': '1488043355', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '628', 'code_size': '383'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n \nint isPrime(int);\n \nint main(){\n int a[10000],i,n,c=0;\n scanf(\"%d\",&n);\n for(i=0;i...
CDSS_248786
CDSS
#include <stdio.h> int x; int main(){ scanf("%d", &x); printf("%d\n", x*x*x); return 0; }
2,044
memory_bytes
{'s_id': 's855463063', 'p_id': 'p02388', 'u_id': 'u877181703', 'date': '1571622424', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '102'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint x;\nint main(){\n scanf(\"%d\", &x);\n printf(\"%d\\n\", x*x*x);\n return 0;\n}\n\nPredict its memory...
CDSS_724174
CDSS
#include<stdio.h> int main() { char str[19]; while(gets(str)) { str[5]=' '; str[13]=' '; printf("%s\n",str); } return 0; }
128
memory_bytes
{'s_id': 's737757212', 'p_id': 'p03834', 'u_id': 'u870070471', 'date': '1483854745', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '167'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n char str[19];\n while(gets(str))\n {\n str[5]=' ';\n str[13]=' ';\n p...
CDSS_742563
CDSS
#include<stdio.h> #include<string.h> int main() { int l,i,j,k,x,c; char s[15]; gets(s); l=strlen(s); for(i=l-1;i>=0;i--){ if(s[i]=='B'){ for(j=i-1;j>=0;j--){ if(s[j]=='0'||s[j]=='1'){ s[j]='2'; s[i]='2'; ...
128
memory_bytes
{'s_id': 's096951211', 'p_id': 'p04030', 'u_id': 'u018679195', 'date': '1540450346', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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<string.h>\n\nint main()\n{\n int l,i,j,k,x,c;\n char s[15];\n\n gets(s);\n\n l=strlen(s);\n\n ...
CDSS_272908
CDSS
#include <stdio.h> int main() { int a, b; scanf("%d %d",&a,&b); if (a == b) { printf("a == b\n"); } else if (a > b) { printf("a > b\n"); } else if (a < b) { printf("a < b\n"); } return 0; }
2,104
memory_bytes
{'s_id': 's555972356', 'p_id': 'p02391', 'u_id': 'u987655192', 'date': '1526658605', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '203'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main() {\n\tint a, b;\n\tscanf(\"%d %d\",&a,&b);\n\tif (a == b) {\n\t\tprintf(\"a == b\\n\");\n\t} else if (a ...
CDSS_89407
CDSS
#include <stdio.h> int main(void) { int i,j,n,m,p[1000],temp,sum; while (1) { scanf("%d %d",&n,&m); if (n==0&&m==0) break; sum=0; for (i=0; i<n; i++) scanf("%d",&p[i]); for (i=0; i<n; i++) { for (j=0; j<n-1-i; j++) { if (p[j]>p[j+1]) { ...
600
memory_bytes
{'s_id': 's127213470', 'p_id': 'p00227', 'u_id': 'u408260374', 'date': '1395354832', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '600', 'code_size': '730'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void) {\n int i,j,n,m,p[1000],temp,sum;\n while (1) {\n scanf(\"%d %d\",&n,&m);\n if ...
CDSS_738898
CDSS
#include <stdio.h> int main(void){ int n, k, x, y; int sum = 0; scanf("%d%d%d%d", &n, &k, &x, &y); for(int i=0; i < n; i++) { if(i < k) sum += x; else sum += y; } printf("%d", sum); return 0; }
128
memory_bytes
{'s_id': 's247020903', 'p_id': 'p04011', 'u_id': 'u132602393', 'date': '1585702867', '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>\n\nint main(void){\n\tint n, k, x, y;\n\tint sum = 0;\n\n\tscanf(\"%d%d%d%d\", &n, &k, &x, &y);\n\n\tfor(int i=0; i...
CDSS_274393
CDSS
#include<stdio.h> 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{ printf("a == b\n"); } return 0; }
2,032
memory_bytes
{'s_id': 's286108078', 'p_id': 'p02391', 'u_id': 'u130834228', 'date': '1547273796', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2032', 'code_size': '222'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 int a,b;\n scanf(\"%d %d\",&a,&b);\n if(a>b){\n printf(\"a > b\\n\");\n }\n else if...
CDSS_743145
CDSS
#include <stdio.h> #include <string.h> int main(void) { char str[100001]; int len; int l, r; int i; scanf("%s", str); len = strlen(str); l = r = -1; for (i = 0; i < len - 1; i++) { if (str[i] == str[i + 1]) { l = i + 1; r = i + 2; } if (i + 2 < len) if (str[i] == str[i + 2]) { l = i + 1; ...
256
memory_bytes
{'s_id': 's071117872', 'p_id': 'p04032', 'u_id': 'u105791541', 'date': '1483588469', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '384'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void) {\n\tchar str[100001];\n\tint len;\n\tint l, r;\n\tint i;\n\t\n\tscanf(\"%s\...
CDSS_134822
CDSS
#include<stdio.h> int main(){ int n,i,v,u,j,k; int G[100][100]; scanf("%d",&n); for(i=0;i<n;i++){ for(j=0;j<n;j++){ G[i][j] = 0; } } for(i=0;i<n;i++){ scanf("%d%d",&u,&v); for(j=0;j<v;j++){ scanf("%d",&k); G[u-1][k-1] = 1; } } for(i=0;i<n;i++){ for(j=0;j<n;j++...
648
memory_bytes
{'s_id': 's962879005', 'p_id': 'p02237', 'u_id': 'u278501900', 'date': '1468374475', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '419'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n,i,v,u,j,k;\n int G[100][100];\n\n scanf(\"%d\",&n);\n\n for(i=0;i<n;i++){\n for(j=0;j<n;...
CDSS_42423
CDSS
#include <stdio.h> const int MAX_V = 1000000; int prime[1000000+1]; int prime_sum[1000000+1]; int main() { int i, k, v; for(i = 2; i <= MAX_V; i++) { prime[i] = 1; } for(i = 2; i*i <= MAX_V; i++) { if(prime[i]) { for(k = 2 * i; k <= MAX_V; k += i) { prime[k] = 0; } } } for(i = 0; i <= MAX_V; i++)...
8,404
memory_bytes
{'s_id': 's698508427', 'p_id': 'p00009', 'u_id': 'u532203010', 'date': '1449197477', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '8404', 'code_size': '451'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nconst int MAX_V = 1000000; \nint prime[1000000+1];\nint prime_sum[1000000+1];\nint main() {\n\tint i, k, v;\n\tfor...
CDSS_626269
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #define _CRT_SECURE_NO_WARNINGS #define TLong long long #define TBMod 1000000007 int main(int argc, char const *argv[]) { char s[103]; TLong k; scanf("%s",s); scanf("%lld",&k); for (int i = 0; i < strlen(s); ++i) { ...
128
memory_bytes
{'s_id': 's949606207', 'p_id': 'p03282', 'u_id': 'u185464141', 'date': '1558901335', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '463'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#include <time.h>\n\n#define _CRT_SECURE_NO_WARNINGS\...
CDSS_40721
CDSS
#include <stdio.h> #include <math.h> int main(void){ int a,b,c,d,n; while(scanf("%d",&n)!=EOF){ int count=0; for(a=0;a<=9;a++){ for(b=0;b<=9;b++){ for(c=0;c<=9;c++){ for(d=0;d<=9;d++){ if(a+b+c+d==n){ ...
2,040
memory_bytes
{'s_id': 's391677907', 'p_id': 'p00008', 'u_id': 'u376432033', 'date': '1530787346', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', 'code_size': '514'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 a,b,c,d,n;\n while(scanf(\"%d\",&n)!=EOF){\n int count=0;\n ...
CDSS_223838
CDSS
#include<stdio.h> #include<stdlib.h> #define NIL NULL typedef struct Node { int key; struct Node *right,*left,*parent; }Node; Node *root; Node * find(Node *u,int k) { while(u!=NIL && k!=u->key) { if(k<u->key)u=u->left; else u=u->right; } return u; } void insert(int k) { Node *y=NIL; Node *x...
20,488
memory_bytes
{'s_id': 's192849047', 'p_id': 'p02284', 'u_id': 'u447039604', 'date': '1579154551', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '280', 'memory': '20488', 'code_size': '1368'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\n#define NIL NULL\n\ntypedef struct Node\n{\n int key;\n struct Node *right,*left,*parent;\n...
CDSS_129971
CDSS
#include <stdio.h> int main(void) { int a[44]; int n, i; a[0] = 1; a[1] = 1; scanf("%d", &n); for (i = 2; i <= n; i++){ a[i] = a[i - 2] + a[i - 1]; } printf("%d\n", a[n]); return (0); }
596
memory_bytes
{'s_id': 's533791377', 'p_id': 'p02233', 'u_id': 'u111904233', 'date': '1473818506', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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\nint main(void)\n{\n\tint a[44];\n\tint n, i;\n\ta[0] = 1;\n\ta[1] = 1;\n\t\n\tscanf(\"%d\", &n);\n\t\n\tfor (i =...
CDSS_651314
CDSS
#include<stdio.h> int main() { int a, b, k; scanf("%d", &a); scanf("%d", &b); scanf("%d", &k); // AとBの中間値以上の値がKだった場合、AからBまでを出力 if ((b - a) / 2 < k) { for (int i = 0; a + i <= b; i++) printf("%d\n", a + i); return 0; } for (int i = 0; i < k; i++) { printf("%d\n", a + i)...
128
memory_bytes
{'s_id': 's762119592', 'p_id': 'p03386', 'u_id': 'u797674884', 'date': '1523153862', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '465'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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, k;\n\n scanf(\"%d\", &a);\n scanf(\"%d\", &b);\n scanf(\"%d\", &k);\n\n /...
CDSS_633266
CDSS
#include <stdio.h> int main(){ int n; scanf("%d",&n); if (n%2==1)printf("%d",n*2); else printf("%d",n); return(0); }
128
memory_bytes
{'s_id': 's260817584', 'p_id': 'p03307', 'u_id': 'u805950813', 'date': '1532011668', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '121'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\tscanf(\"%d\",&n);\n\tif (n%2==1)printf(\"%d\",n*2);\n\telse printf(\"%d\",n);\n\treturn(0...
CDSS_293758
CDSS
#include<stdio.h> int main(){ int W,H,x,y,r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(x+r<=W && x-r>=0 && y+r<=H && y-r>=0){ printf("Yes\n"); } else { printf("No\n"); } return 0; }
2,108
memory_bytes
{'s_id': 's535930338', 'p_id': 'p02394', 'u_id': 'u114237325', 'date': '1549004619', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '196'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 W,H,x,y,r;\n\tscanf(\"%d %d %d %d %d\",&W,&H,&x,&y,&r);\n\tif(x+r<=W && x-r>=0 && y+r<=H && y-r>...
CDSS_271045
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': 's416351861', 'p_id': 'p02391', 'u_id': 'u195878249', 'date': '1497860382', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '193'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int a,b;\n scanf(\"%d %d\",&a,&b);\n if(a < b)printf(\"a < b\\n\");\n else if(a > b)print...
CDSS_94923
CDSS
#include <stdio.h> int main(void) { int e,y,i; scanf("%d %d",&e,&y); if(e==0){ if(y>=1868 && y<=1911){ i=y-1867; printf("M%d\n",i); } if(y>=1912 && y<=1925){ i=y-1911; printf("T%d\n",i); } if(y>=1926 && y<=1988){ i=y-1925; printf("S%d\n",i); } if(y>=1989 && y<=2016){ i=y-1988; p...
2,048
memory_bytes
{'s_id': 's805206678', 'p_id': 'p00332', 'u_id': 'u628445859', 'date': '1589426041', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '542'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 e,y,i;\n\tscanf(\"%d %d\",&e,&y);\n\tif(e==0){\n\t\tif(y>=1868 && y<=1911){\n\t\t\ti=y-18...
CDSS_299248
CDSS
#include<stdio.h> int main(void){ int x[10000]; int t,m=0; for(t=0;t<10000;t++){ scanf("%d",&x[t]); if(x[t]==0){ break; } m++; } for(t=0;t<m;t++){ printf("Case %d: %d\n",t+1,x[t]); } return 0; }
1,992
memory_bytes
{'s_id': 's711420369', 'p_id': 'p02396', 'u_id': 'u894520005', 'date': '1564102277', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1992', '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>\nint main(void){\n\tint x[10000];\n\tint t,m=0;\n\tfor(t=0;t<10000;t++){\n\t\tscanf(\"%d\",&x[t]);\n\t\tif(x[t]==0){...
CDSS_60087
CDSS
#include <stdio.h> int main(){ int gramme; int weight[10]={512,256,128,64,32,16,8,4,2,1},onOff[10]; int i,flag; while(scanf("%d",&gramme)!=EOF){ flag=0; for(i=0;i<10;i++){ onOff[i]=gramme/weight[i]; gramme%=weight[i]; } for(i=9;i>=0;i--){ if(onOff[i]){ if(flag){ printf(" "); }els...
0
memory_bytes
{'s_id': 's270451896', 'p_id': 'p00031', 'u_id': 'u775414834', 'date': '1304255483', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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#include <stdio.h>\n\nint main(){\n\tint gramme;\n\tint weight[10]={512,256,128,64,32,16,8,4,2,1},onOff[10];\n\tint i,flag;\n\t\n\twhi...
CDSS_727846
CDSS
#include <stdio.h> main() { char a; scanf("%c",&a); if (a=='a' || a=='e' ||a=='i' || a=='o' || a=='u') printf("vowel"); else printf("consonant"); }
128
memory_bytes
{'s_id': 's187941348', 'p_id': 'p03852', 'u_id': 'u018679195', 'date': '1523555384', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '172'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 char a;\n scanf(\"%c\",&a);\n if (a=='a' || a=='e' ||a=='i' || a=='o' || a=='u')\n pri...
CDSS_135947
CDSS
#include <stdio.h> int N=100; int main(){ int M[N][N]; int n,u,k,v; int i,j; scanf("%d",&n); for(i=0;i<n;i++){ for(j=0;j<n;j++) M[i][j]=0; } for(i=0;i<n;i++){ scanf("%d %d",&u,&k); u--; for(j=0;j<k;j++){ scanf("%d",&v); v--; M[u][v]=1; } } for(i=0;i<n;i+...
2,100
memory_bytes
{'s_id': 's639396799', 'p_id': 'p02237', 'u_id': 'u006451390', 'date': '1548134101', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '443'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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=100;\n\nint main(){\n int M[N][N];\n int n,u,k,v;\n int i,j;\n\n scanf(\"%d\",&n);\n for(i=0;i<n;i++)...
CDSS_739263
CDSS
#include<stdio.h> int main() { int n,k,f,s,ans; scanf("%d",&n); scanf("%d",&k); scanf("%d",&f); scanf("%d",&s); if(k==n) { ans=n*f; } else if(n>k) { ans=((k*f)+(n-k)*s); } else if(n<k) { ans=n*f; } printf("%d\n",ans); return 0; }
128
memory_bytes
{'s_id': 's975745833', 'p_id': 'p04011', 'u_id': 'u089230684', 'date': '1539235192', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '265'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint n,k,f,s,ans;\n\tscanf(\"%d\",&n);\n\tscanf(\"%d\",&k);\n\tscanf(\"%d\",&f);\n\tscanf(\"%d\",&s...
CDSS_140003
CDSS
#include <stdio.h> #define N 100 #define MAX 10000000 #define W 0 #define B 1 int n,c[N],A[N][N],X[N],Y[N]; void prim(){ int m,i,j; for(i=0;i<n;i++){ X[i]=MAX; Y[i]=-1; c[i]=W; } X[0]=0; while(1){ m=MAX; for(i=0;i<n;i++){ if(c[i]!=B && X[i]<m){ m=X[i]; j=i; } } ...
2,088
memory_bytes
{'s_id': 's819976583', 'p_id': 'p02241', 'u_id': 'u360439655', 'date': '1533008577', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2088', 'code_size': '704'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define N 100\n#define MAX 10000000\n#define W 0\n#define B 1\n\nint n,c[N],A[N][N],X[N],Y[N];\n\nvoid prim(){\n ...
CDSS_210856
CDSS
#include<stdio.h> #define MAX 100000 int A[MAX], n; int partition(int p, int r) { int x, i, j, t; x = A[r]; i = p - 1; for ( j = p; j < r; j++ ) { if ( A[j] <= x ) { i++; t = A[i]; A[i] = A[j]; A[j] = t; } } t = A[i + 1]; A[i + 1] = A[r]; A[r] = t; r...
2,128
memory_bytes
{'s_id': 's598135702', 'p_id': 'p02276', 'u_id': 'u051927633', 'date': '1559578988', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2128', 'code_size': '671'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define MAX 100000\n\nint A[MAX], n;\n\nint partition(int p, int r) {\n int x, i, j, t;\n x = A[r];\n i = ...
CDSS_687726
CDSS
#include<stdio.h> void checkswaps(int p[], int leftswap[], int rightswap[], int equal[], int swapped[], int N, int *equalcount) { int i; for(i=1;i<N+1;i++) { if(p[i]==i) { (*equalcount)++; equal[i]=1; }else{ equal[i]=0; } if(i>1) { if((p[i]!=(i-1))&(p[i-1]!=i)) { leftswap...
2,176
memory_bytes
{'s_id': 's292776452', 'p_id': 'p03612', 'u_id': 'u265756457', 'date': '1504512409', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '14', 'memory': '2176', 'code_size': '1854'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 checkswaps(int p[], int leftswap[], int rightswap[], int equal[], int swapped[], int N, int *equalcount) \n{...
CDSS_353020
CDSS
#include <stdio.h> //#include <string.h> int main() { int midterm, final, makeup; while (1) { scanf("%d %d %d\n", &midterm, &final, &makeup); if (midterm == -1 && final == -1 && makeup == -1) break; if (midterm == -1 || final == -1) printf("F\n"); els...
2,040
memory_bytes
{'s_id': 's180294920', 'p_id': 'p02411', 'u_id': 'u620516796', 'date': '1516395646', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2040', '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//#include <string.h>\n\nint main() {\n int midterm, final, makeup;\n\n\n while (1) {\n scanf(\"%d %d...
CDSS_37477
CDSS
#include<stdio.h> int main(){ char s1[21], s2[21]; int i, j; scanf("%s",s1); for(i=0;s1[i]!='\0';i++){} i--; j=0; for(;i>=0;i--){ s2[j++]=s1[i]; } s2[j]='\0'; printf("%s\n",s2); return 0; }
524
memory_bytes
{'s_id': 's817291450', 'p_id': 'p00006', 'u_id': 'u569098935', 'date': '1463199207', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '203'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 s1[21], s2[21];\n\tint i, j;\n\tscanf(\"%s\",s1);\n\tfor(i=0;s1[i]!='\\0';i++){}\n\ti--;\n\tj...
CDSS_303900
CDSS
#include <stdio.h> int main() { int x, y; while(1){ scanf("%d%d", &x, &y); if(x == 0 && y == 0){ break; } else if(x > y) printf("%d %d\n", y, x); else printf("%d %d\n", x, y); } return 0; }
1,972
memory_bytes
{'s_id': 's440461975', 'p_id': 'p02397', 'u_id': 'u921368088', 'date': '1533055918', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1972', '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>\nint main()\n{\n int x, y;\n \n while(1){\n scanf(\"%d%d\", &x, &y);\n \n if(x == 0 && y == 0){\n...
CDSS_399552
CDSS
# include <stdio.h> int main(void){ int n,k,i,j,l,m; int sum = 0; scanf("%d", &n); scanf("%d", &k); int p[n]; for(i=0; i<n; i++){ scanf("%d", &p[i]); } for(j=0; j<n; j++){ for(l=j+1; l<n; l++){ if(p[j]>p[l]){ int sort = p[j]; ...
1,736
memory_bytes
{'s_id': 's844844665', 'p_id': 'p02628', 'u_id': 'u783164123', 'date': '1594614388', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1736', 'code_size': '475'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n# include <stdio.h>\n\nint main(void){\n int n,k,i,j,l,m;\n int sum = 0;\n\n scanf(\"%d\", &n);\n scanf(\"%d\", &k);\n\n ...
CDSS_50815
CDSS
#include <stdio.h> void sort(int n[]); int main(void) { int i; int in[5]; for (i = 0; i < 5; i++) { scanf(" %d", &in[i]); } sort(in); for (i = 0; i < 5; i++) { if (i != 0) { printf(" "); } printf("%d", in[i]); } printf("\n"); return 0...
600
memory_bytes
{'s_id': 's705453734', 'p_id': 'p00018', 'u_id': 'u641568203', 'date': '1405311257', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '589'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 sort(int n[]);\n\nint main(void)\n{\n int i;\n\n int in[5];\n for (i = 0; i < 5; i++) {\n s...
CDSS_137082
CDSS
#include <stdio.h> #define W -3 #define G -2 #define B -1 #define MAX 101 void dfs(void); void visit(int); int n;/*頂点数*/ int T[MAX][MAX];/*行=要素、列=繋ってる要素*/ int color[MAX];/*色分け用配列*/ int d[MAX];/*要素を最初に発見した発見時刻を記録する用配列*/ int f[MAX];/*要素の隣接リストを調べ終えた完了時刻を記録する用配列*/ int time; int main() { int i,j,youso,kazu,v; scanf...
2,052
memory_bytes
{'s_id': 's369294393', 'p_id': 'p02238', 'u_id': 'u786218122', 'date': '1580195722', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '1052'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 W -3\n#define G -2\n#define B -1\n#define MAX 101\n\nvoid dfs(void);\nvoid visit(int);\n\nint n;/*頂点数*/\...
CDSS_117565
CDSS
main(n,y,m,d){for(scanf("%d",&n);~scanf("%d%d%d",&y,&m,&d);printf("%d\n",196471-(--y)*195-y/3*5-(--m)*20+(y%3-2?m/2:0)-d));exit(0);}
0
memory_bytes
{'s_id': 's887410571', 'p_id': 'p00760', 'u_id': 'u300645821', 'date': '1342598912', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '132'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nmain(n,y,m,d){for(scanf(\"%d\",&n);~scanf(\"%d%d%d\",&y,&m,&d);printf(\"%d\\n\",196471-(--y)*195-y/3*5-(--m)*20+(y%3-2?m/2:0)-d));exit...
CDSS_723403
CDSS
#include <stdio.h> #include <limits.h> int main(void){ int n, p=1; scanf("%d", &n); int i, j; unsigned long long int ans=1; int s[1000]; for(i=0; i<1000; i++){ s[i]=0; } /* for(i=1; i<=n; i++){ p *= i; } int ans=0; for(i=1; i<=p; i++){ if(p%i==0){ ans++; } } */ int mem; for(i=2; i<=n; i++){...
128
memory_bytes
{'s_id': 's449653771', 'p_id': 'p03828', 'u_id': 'u090629957', 'date': '1484536198', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '785'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <limits.h>\n\nint main(void){\n\n\tint n, p=1;\n\tscanf(\"%d\", &n);\n\n\tint i, j;\n\tunsigned long long...
CDSS_210807
CDSS
#include <stdio.h> #define MAX 100000 int A[MAX],n; int main(){ int i,k; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&A[i]); } k=partition(0,n-1); for(i=0;i<n;i++){ if(i) printf(" "); if(i==k) printf("["); printf("%d",A[i]); if(i==k) printf("]"); } printf("\n"); return 0; } i...
2,108
memory_bytes
{'s_id': 's410629723', 'p_id': 'p02276', 'u_id': 'u006451390', 'date': '1545910939', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2108', 'code_size': '527'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 100000\nint A[MAX],n;\n\nint main(){\n int i,k;\n\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\n scan...
CDSS_620269
CDSS
#include<stdio.h> int main(void){ int a,b,c; scanf("%d%d",&a,&b); if(a*b%2==1){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }
128
memory_bytes
{'s_id': 's988851977', 'p_id': 'p03260', 'u_id': 'u895954008', 'date': '1540685405', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '182'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\n int a,b,c;\n scanf(\"%d%d\",&a,&b);\n\n if(a*b%2==1){\n printf(\"Yes\\n\");\n...
CDSS_123088
CDSS
#include <stdio.h> #include <stdlib.h> #define MAX_N 101000 #define SWAP( a, b ) do { int tmp; tmp = a; a = b; b = tmp; } while( 0 ) int isPrime[ MAX_N + 1 ] = { 0, 0, 1 }; void insertionSort( int *, int ); void quickSort( int *, int ); void quickSort_body( int *, int, int ); int median( int, int, int ); int main( ...
988
memory_bytes
{'s_id': 's759344460', 'p_id': 'p01268', 'u_id': 'u340315059', 'date': '1374956007', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '988', 'code_size': '1968'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\n#define MAX_N 101000\n#define SWAP( a, b ) do { int tmp; tmp = a; a = b; b = tmp; } while( ...
CDSS_484409
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int n, r, in; scanf("%d%d",&n,&r); if ( n<=9 ){ in = r + 100*(10-n); } else { in = r; } printf("%d\n",in); return 0; }
128
memory_bytes
{'s_id': 's214378103', 'p_id': 'p02765', 'u_id': 'u067105756', 'date': '1583013831', '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 <stdlib.h>\n\nint main()\n{\n int n, r, in;\n scanf(\"%d%d\",&n,&r);\n \n if ( n<=9 ){\n ...
CDSS_252010
CDSS
#include <stdio.h> int main(void) { int x,y,z,v; scanf("%d %d\n",&x,&y); z=x*y; v=2*x+2*y; printf("%d %d\n",z,v); return 0; }
600
memory_bytes
{'s_id': 's614808255', 'p_id': 'p02389', 'u_id': 'u107631366', 'date': '1461231131', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '142'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\t\n\t int x,y,z,v;\n\t scanf(\"%d %d\\n\",&x,&y);\n\t z=x*y;\n\t v=2*x+2*y;\n\t printf(\"%d %...
CDSS_86178
CDSS
#include <stdio.h> #include <string.h> typedef struct{ char name[100]; int win; int lose; int prior; }team; void swap(team *p, team *q){ team tmp = *p; *p = *q; *q = tmp; } int main(void){ while(1){ int n, i, j, a; char c[100]; team t[10]; scanf(" %d", &n); if(n==0) break; for(i=0; i<n; i++)...
592
memory_bytes
{'s_id': 's488174025', 'p_id': 'p00196', 'u_id': 'u979000952', 'date': '1408244616', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '841'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\ntypedef struct{\n\tchar name[100];\n\tint win;\n\tint lose;\n\tint prior;\n}team;\n\nvoid s...
CDSS_536487
CDSS
#include<stdio.h> int main() { int a; char s[10]; scanf("%d",&a); scanf("%s",s); if(a>=3200) { printf("%s\n",s); }else{ printf("red\n"); return 0; } }
128
memory_bytes
{'s_id': 's807473801', 'p_id': 'p02933', 'u_id': 'u515674295', 'date': '1566177130', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '163'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint a;\n\tchar s[10];\n\tscanf(\"%d\",&a);\n\tscanf(\"%s\",s);\n\tif(a>=3200)\n\t{\n\t\tprintf(\"%...
CDSS_186267
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> struct node{ unsigned int key; struct node *next; struct node *prev; }; typedef struct node * NodePointer; NodePointer nil; //NodePointer listSearch(int key){ // /* your code */ //} void init(){ nil = malloc(sizeof(struct node)); nil->next = nil; ...
32,952
memory_bytes
{'s_id': 's785516339', 'p_id': 'p02265', 'u_id': 'u612759429', 'date': '1577259261', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '220', 'memory': '32952', 'code_size': '1923'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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\nstruct node{\n unsigned int key;\n struct node *next;\n struct node *p...
CDSS_291485
CDSS
#include <stdio.h> int main(){ int w,h,x,y,r; scanf("%d %d %d %d %d",&w,&h,&x,&y,&r); if(x-r<0 || y-r<0 || x+r>w || y+r>h) printf("No\n"); else printf("Yes\n"); return 0; }
580
memory_bytes
{'s_id': 's067885716', 'p_id': 'p02394', 'u_id': 'u156732351', 'date': '1493989307', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '183'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int w,h,x,y,r;\n scanf(\"%d %d %d %d %d\",&w,&h,&x,&y,&r);\n if(x-r<0 || y-r<0 || x+r>w || y+r>...
CDSS_312421
CDSS
#include <stdio.h> int main(void) { long a, b; scanf("%ld %ld", &a, &b); printf("%ld %ld %.5lf\n", a / b, a % b, (double)a / (double)b); }
2,124
memory_bytes
{'s_id': 's710448747', 'p_id': 'p02399', 'u_id': 'u674778431', 'date': '1540185623', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2124', 'code_size': '152'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 a, b;\n scanf(\"%ld %ld\", &a, &b);\n printf(\"%ld %ld %.5lf\\n\", a / b, a % b...
CDSS_175661
CDSS
#include<stdio.h> #include<stdlib.h> int n,i,A[1000000],tmp,k,cnt=0,j,m=0,h=1; // InsersionSort void insersionSort(int A[], int n, int g){ for(i=g;i<=n-1;i++){ tmp=A[i]; k=i-g; while(k>=0&&A[k]>tmp){ A[k+g]=A[k]; k=k-g; cnt++; } A[k+g]=tmp; } } // ShellSort void shellSort(int...
4,508
memory_bytes
{'s_id': 's772672128', 'p_id': 'p02262', 'u_id': 'u692808062', 'date': '1464017061', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '430', 'memory': '4508', 'code_size': '777'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 n,i,A[1000000],tmp,k,cnt=0,j,m=0,h=1;\n\n// InsersionSort\nvoid insersionSort(int A[], int ...
CDSS_345684
CDSS
#include <stdio.h> int main() { int cards[4][13] = {0}, n, i, j, a; char c; scanf("%d\n", &n); for(i = 0; i < n; i++) { scanf("%c %d\n", &c, &a); if(c == 'S') { cards[0][a - 1] = 1; } else if(c == 'H') { cards[1][a - 1] = 1; } else if(c == 'C') { ...
600
memory_bytes
{'s_id': 's737886451', 'p_id': 'p02408', 'u_id': 'u166299946', 'date': '1492568032', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '965'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 cards[4][13] = {0}, n, i, j, a;\n char c;\n\n scanf(\"%d\\n\", &n);\n\n for(i = 0; i < n; ...
CDSS_711223
CDSS
#include<stdio.h> int main(){ int n; long a,sum[100000],cnt[2]={},b; scanf("%d",&n); scanf("%ld",&a); sum[0]=a; for(int i=1;i<n;i++){ scanf("%ld",&a); sum[i]=sum[i-1]+a; } b=0; for(int i=0;i<n;i++){ if(i%2==0&&sum[i]+b>=0){ cnt[0]+=sum[i]+b+1; b-=sum[i]+b+1; } else if(i...
896
memory_bytes
{'s_id': 's875027668', 'p_id': 'p03739', 'u_id': 'u611071743', 'date': '1583955127', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '14', 'memory': '896', 'code_size': '715'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 long a,sum[100000],cnt[2]={},b;\n scanf(\"%d\",&n);\n scanf(\"%ld\",&a);\n sum[0]=a;\n ...
CDSS_273289
CDSS
#include <stdio.h> int main ( int argc, char *argv[ ] ) { int a, b; scanf ( "%d%d", &a, &b ); if ( a < b ) { puts ( "a < b" ); } else if ( a > b ) { puts ( "a > b" ); } else { puts ( "a == b" ); } return ( 0 ); }
0
memory_bytes
{'s_id': 's700090896', 'p_id': 'p02391', 'u_id': 'u009961299', 'date': '1343707559', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '260'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include <stdio.h>\n\nint\nmain (\n int argc,\n char *argv[ ]\n )\n{\n int a, b;\n\n scanf ( \"%d%d\", &a, &b );\n if ( a < ...
CDSS_655283
CDSS
#include<stdio.h> int main(){ long n,m; scanf("%ld", &n); scanf("%ld", &m); if(n>m){ long tmp = n; n = m; m = tmp; } if(n>=3 && m>=3){ printf("%ld\n", (m-2)*(n-2)); return 0; } if(n==m){ if(n==1){ printf("%ld\n", 1); return 0; } if(n==2){ printf("%...
128
memory_bytes
{'s_id': 's068086892', 'p_id': 'p03417', 'u_id': 'u156327988', 'date': '1536699591', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '482'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n long n,m;\n scanf(\"%ld\", &n);\n scanf(\"%ld\", &m);\n\n if(n>m){\n long tmp = n;\n n = ...
CDSS_274612
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; }
2,112
memory_bytes
{'s_id': 's849341102', 'p_id': 'p02392', 'u_id': 'u561330694', 'date': '1532057579', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', '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>\n\nint main(void)\n{\n\tint a,b,c;\n\tscanf(\"%d%d%d\",&a,&b,&c);\n\tif (a<b && b<c)\n\t\t{printf(\"Yes\\n\");\n\t}...
CDSS_685414
CDSS
#include <stdio.h> int main(void){ int n,i,t=0; scanf("%d",&n); int l[n],r[n]; for(i=0;i<n;i++) scanf("%d%d",&l[i],&r[i]); for(i=0;i<n;i++){ t+=r[i]-l[i]+1; } printf("%d\n",t); return 0; }
128
memory_bytes
{'s_id': 's993956825', 'p_id': 'p03606', 'u_id': 'u112319905', 'date': '1589298199', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\n\nint main(void){\n int n,i,t=0;\n scanf(\"%d\",&n);\n int l[n],r[n];\n\n for(i=0;i<n;i++)\n scanf(\"...
CDSS_307235
CDSS
#include <stdio.h> int main(){ int a = 0; int b = 0; int c = 0; int cnt = 0; scanf("%d%d%d",&a,&b,&c); for(;a<=b;a++){ if(c%a==0){ cnt = cnt + 1; } } printf("%d\n",cnt); return 0; }
2,112
memory_bytes
{'s_id': 's931321903', 'p_id': 'p02398', 'u_id': 'u117123312', 'date': '1586501068', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '262'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int a = 0;\n int b = 0;\n int c = 0;\n int cnt = 0;\n\n scanf(\"%d%d%d\",&a,&b,&c);...
CDSS_55333
CDSS
#include<stdio.h> //マクロの定義 #define TRUE 1 #define FALSE 0 #define X1 0 #define Y1 1 #define X2 2 #define Y2 3 #define D_SET 4 #define compile 0 //デバッグ用,0:実装,1:func_judgeのデバッグ,2:func_outputのデバッグ //構造体の宣言 struct straight { double cdn[D_SET]; //座標を代入する配列 }; //関数のプロトタイプ宣言 int func_judge(double cdn1[], double cdn2[]); ...
620
memory_bytes
{'s_id': 's400485372', 'p_id': 'p00021', 'u_id': 'u349069653', 'date': '1400464739', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '620', 'code_size': '2286'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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//マクロの定義\n#define TRUE 1\n#define FALSE 0\n#define X1 0\n#define Y1 1\n#define X2 2\n#define Y2 3\n#define D_SET ...
CDSS_602271
CDSS
#include <stdio.h> #include <math.h> #include <limits.h> #include <stdlib.h> int N; int h[100001]; int dp[100001]; int INF = INT_MAX; int chmin(int *a, int b) { if (*a > b){ *a = b; // printf("%ld\n",*a); return 1; } return 0; } int main(){ int i; scanf("%d",&N); for(i=0;i<N;i++){ scanf("%d"...
896
memory_bytes
{'s_id': 's265834654', 'p_id': 'p03160', 'u_id': 'u062865912', 'date': '1569774548', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '896', 'code_size': '757'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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#include <limits.h>\n#include <stdlib.h>\nint N;\nint h[100001];\nint dp[100001];\nint INF =...
CDSS_418899
CDSS
#include<stdio.h> #include<stdlib.h> int main(void){ int n,i; char s[15],t[15]; scanf("%s",s); scanf("%s",t); for(n=0;s[n]!='\0';n++){ } for(i=0;i<n;i++){ if(s[i]!=t[i]){ printf("No"); return 0; } } printf("Yes"); return 0; }
1,736
memory_bytes
{'s_id': 's115191459', 'p_id': 'p02681', 'u_id': 'u523462306', 'date': '1589251805', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1736', 'code_size': '282'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\nint main(void){\n int n,i;\n char s[15],t[15];\n \n scanf(\"%s\",s);\n scanf(\"%s\",t);\...
CDSS_680973
CDSS
#include <stdio.h> #include <stdlib.h> int main() { char ss[51]; char t[51]; scanf("%s", ss); scanf("\n"); scanf("%s", t); int lens = strlen(ss); int lent = strlen(t); int check = 1; int start = -1; for(int i = 0; i < lens; i++){ check = 1; for(int k = i, j = 0; ...
128
memory_bytes
{'s_id': 's318538934', 'p_id': 'p03565', 'u_id': 'u931704862', 'date': '1509243653', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '937'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 char ss[51];\n char t[51];\n scanf(\"%s\", ss);\n scanf(\"\\n\"...