Dataset Viewer
Auto-converted to Parquet Duplicate
identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_746496
CDSS
#define L long long L F(L A,L B){return B?A/B*B*2+F(B,A%B):-A;} main(){L N,X;scanf("%lld%lld",&N,&X);printf("%lld",N+F(N-X,X));}
128
memory_bytes
{'s_id': 's978238513', 'p_id': 'p04048', 'u_id': 'u095826906', 'date': '1528514323', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '128'}
[ { "content": "Your task is to predict the memory 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 L long long\nL F(L A,L B){return B?A/B*B*2+F(B,A%B):-A;}\nmain(){L N,X;scanf(\"%lld%lld\",&N,&X);printf(\"%lld\",N+F(N-X,X));}...
CDSS_91963
CDSS
#include<stdio.h> int main(void){ int a, b, i; for ( i = 0; i < 7; i++ ) { scanf("%d %d", &a, &b); printf("%d\n", a - b); } return 0; }
1,852
memory_bytes
{'s_id': 's901875229', 'p_id': 'p00271', 'u_id': 'u328199937', 'date': '1508593474', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1852', '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(void){\n int a, b, i;\n for ( i = 0; i < 7; i++ ) {\n scanf(\"%d %d\", &a, &b);\n printf(\"%...
CDSS_194234
CDSS
#include<stdio.h> main(void){ int s[100000],n,t[50000],q,i,count=0,j,temp; int left,mid,right,value; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&s[i]); } scanf("%d",&q); for(i=0;i<q;i++){ scanf("%d",&t[i]); } for(i=0;i<q;i++){ right=n; left=0; value=t[i]; ...
1,184
memory_bytes
{'s_id': 's659186910', 'p_id': 'p02268', 'u_id': 'u192684867', 'date': '1399600587', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '1184', 'code_size': '548'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nmain(void){\n \n int s[100000],n,t[50000],q,i,count=0,j,temp;\n int left,mid,right,value;\n\n scanf(\"%d\",&n...
CDSS_18172
CDSS
#include<stdio.h> int main(){ int i,j; for (i=1; i<=9; i++){ for (j=1; j<=9; j++){ printf("%dx%d=%d\n", i,j,i*j); } } return 0; }
524
memory_bytes
{'s_id': 's654919195', 'p_id': 'p00000', 'u_id': 'u135516417', 'date': '1443943424', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '174'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int i,j;\n for (i=1; i<=9; i++){\n for (j=1; j<=9; j++){\n printf(\"%dx%d=%...
CDSS_74866
CDSS
#include <stdio.h> #define max(a,b) (a)>(b) ? (a):(b); int n; int a[100][100]; long psum[100][100][100]; main(){ int i,j,k,l; long maxsum; int t1,t2,t3[100]; scanf("%d",&n); for(i=0;i<n;i++) for(j=0;j<n;j++) scanf("%d",&a[i][j]); maxsum=psum[0][0][0]=a[0][0]; for(l=1;l<n;l++){ psum[0][0][l]=psum[0][0][l-...
8,452
memory_bytes
{'s_id': 's648381614', 'p_id': 'p00098', 'u_id': 'u716291760', 'date': '1498474272', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '8452', 'code_size': '1006'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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(a,b) (a)>(b) ? (a):(b);\nint n;\nint a[100][100];\nlong psum[100][100][100];\nmain(){\n\tint i,j,k,l;\...
CDSS_520066
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> int main(void) { long int A; scanf("%ld", &A); double aa = pow(A,0.5); long int i; long int fac,tor,dist; dist = A; //printf("%f\n",aa); for(i=1;i<aa+1;i++) { if(((long int)A/i)*i==A) { fac =i; tor =((long int...
128
memory_bytes
{'s_id': 's250251279', 'p_id': 'p02881', 'u_id': 'u206008530', 'date': '1572227058', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '128', 'code_size': '522'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n#include<math.h>\n\nint main(void) {\n long int A;\n scanf(\"%ld\", &A);\...
CDSS_391588
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int N; scanf("%d",&N); if(N%1000!=0){ printf("%d",1000-(N%1000)); } else printf("0"); return 0; }
1,720
memory_bytes
{'s_id': 's351429486', 'p_id': 'p02612', 'u_id': 'u165384467', 'date': '1594058567', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1720', 'code_size': '191'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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;\n scanf(\"%d\",&N);\n\n if(N%1000!=0){\n printf(\"%d...
CDSS_602236
CDSS
#include <stdio.h> #include <math.h> #include <string.h> int memo[100005], arr[100005], vis[100005]; int min(int a, int b) { return a<b ? a : b; } int dp(int n) { if(n==0) return 0; if(n==1) return fabs(arr[1]-arr[0]); if(vis[n]==1) return memo[n]; vis[n]=1; return memo[n...
3,712
memory_bytes
{'s_id': 's644157626', 'p_id': 'p03160', 'u_id': 'u845686872', 'date': '1572210495', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '3712', 'code_size': '637'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 <string.h>\nint memo[100005], arr[100005], vis[100005];\nint min(int a, int b)\n{\n ...
CDSS_153286
CDSS
#include <stdio.h> int main(void){ int x,y,z,gcd; scanf("%d %d",&x,&y); if(x<y){ z=x; x=y; y=z; } gcd=x%y; while(gcd!=0){ x=y; y=gcd; gcd=x%y; } printf("%d\n",y); return 0; }
2,144
memory_bytes
{'s_id': 's399012144', 'p_id': 'p02256', 'u_id': 'u628184488', 'date': '1529623253', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', '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>\nint main(void){\n int x,y,z,gcd;\n scanf(\"%d %d\",&x,&y);\n\n if(x<y){\n z=x;\n x=y;\n y=z;\n }\n\n ...
CDSS_530938
CDSS
#include <stdio.h> int main(void){ int n,i,j,x,y,z; scanf("%d", &n); int a[n+1]; int b[51]; int c[51]; for(x=1;x<=n;x++){ scanf("%d", &a[x]); } for(y=1;y<=n;y++){ scanf("%d", &b[y]); } for(z=1;z<=n-1;z++){ scanf("%d", &c[z]); } int sum=0; for(i=1;i<=n;i++){ sum += b[i]; }...
128
memory_bytes
{'s_id': 's500062889', 'p_id': 'p02916', 'u_id': 'u624720690', 'date': '1567908809', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '435'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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,j,x,y,z;\n scanf(\"%d\", &n);\n int a[n+1];\n int b[51];\n int c[51];\n for(x=1;...
CDSS_326060
CDSS
#include <stdio.h> int main(void) { int i, n, a[10000], min, max; long sum; scanf("%d", &n); for (i = 0; i < n; i++) scanf("%d", &a[i]); min = a[0]; max = a[0]; sum = a[0]; for (i = 1; i < n; i++) { min = (a[i] < min) ? a[i] : min; max = (max < a[i]) ? a[i] : max; sum += a[i]; } printf("%d %d %...
640
memory_bytes
{'s_id': 's883452390', 'p_id': 'p02402', 'u_id': 'u641082901', 'date': '1502901637', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '357'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, n, a[10000], min, max;\n\tlong sum;\n\t\n\tscanf(\"%d\", &n);\n\tfor (i = 0; i < n; ...
CDSS_180183
CDSS
/* #include<stdio.h> #include<stdlib.h> #include<ctype.h> #define N 100 double pop(); void push(double ); char s[N]; int i=0; int main(){ //int c; char x; double a,b,c; while(scanf("%c",&x) != EOF){ if(isdigit(x)){ //scanf("%d",&x); //c=atoi(x); push(x-'0'); }else{ switch(x){ ...
2,104
memory_bytes
{'s_id': 's605050896', 'p_id': 'p02263', 'u_id': 'u492032406', 'date': '1576131619', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '2070'}
[ { "content": "Your task is to predict the memory 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#include<stdlib.h>\n#include<ctype.h>\n#define N 100\ndouble pop();\nvoid push(double );\nchar s[N];\nint i=0;\...
CDSS_628519
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> int main(){ int a[100]={}; int n; int i,j; scanf("%d",&n); int m; int m_ = 0; int b = abs(n); if(b%2==1){ a[0]=1; n=n-1; } while(n!=0){ m=log2( abs(n) ); if(m%2==0){ if(n>0){ a[m]++; n=n-pow(2,m); m_=fmax(m_,m); }e...
384
memory_bytes
{'s_id': 's533240699', 'p_id': 'p03286', 'u_id': 'u924153316', 'date': '1534040666', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '384', 'code_size': '732'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n\nint main(){\n int a[100]={};\n int n;\n int i,j;\n scanf(\"%d\",&n);...
CDSS_614176
CDSS
#include<stdio.h> int main(void){ int N, A, B; scanf("%d%d%d", &N, &A, &B); if (N == 1){ printf("Hello World\n"); } else{ printf("%d\n", A + B); } return 0; }
128
memory_bytes
{'s_id': 's056863147', 'p_id': 'p03238', 'u_id': 'u276980836', 'date': '1561740088', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '171'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n\tint N, A, B;\n\tscanf(\"%d%d%d\", &N, &A, &B);\n\n\tif (N == 1){\n\t\tprintf(\"Hello World\\n\")...
CDSS_550438
CDSS
//set many funcs template //Ver.20190714 #include<stdio.h> #include<string.h> #include<stdlib.h> #include<stdbool.h> #include<time.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){i...
128
memory_bytes
{'s_id': 's531549003', 'p_id': 'p02981', 'u_id': 'u721060623', 'date': '1564764945', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '5139'}
[ { "content": "Your task is to predict the memory 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//Ver.20190714\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<stdbool.h>\n#include<ti...
CDSS_580407
CDSS
#include<stdio.h> int main(){ int n; scanf("%d", &n); int H[50]; for(int i=0; i<n; i++){ scanf("%d", &H[i]); } int ans = 0; for(int i=0; i<n; i++){ int add_flag = 1; for(int j=0; j<i; j++){ if(H[i] < H[j]){ add_flag = 0; } ...
128
memory_bytes
{'s_id': 's763010976', 'p_id': 'p03072', 'u_id': 'u156327988', 'date': '1572191328', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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\nint main(){\n int n;\n scanf(\"%d\", &n);\n\n int H[50];\n for(int i=0; i<n; i++){\n scanf(\"%...
CDSS_703439
CDSS
#include <stdio.h> #include <string.h> void swap(int* a, int* b) { int c = *a; *a = *b; *b = c; } int main() { char s[30]; scanf("%27s", s); int a[30]; int i = 0; int cnt = 0; for (i = 0; i < 30; i++) { if (s[i] == '\0') { cnt = i; break;...
128
memory_bytes
{'s_id': 's539920369', 'p_id': 'p03698', 'u_id': 'u326356738', 'date': '1496549517', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1151'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nvoid swap(int* a, int* b)\n{\n int c = *a;\n *a = *b;\n *b = c;\n}\n\nint main()\n...
CDSS_43923
CDSS
j,a[' '],s,z=1e6;main(i){for(;++i<998;)if(!a[i])for(j=i*i;a[j]=j<z;j+=i);for(i=1;++i<z||~scanf(s="%d\n",&j)&&printf(s,a[j]);a[i]=s+=!a[i]);}
0
memory_bytes
{'s_id': 's684345992', 'p_id': 'p00009', 'u_id': 'u479246559', 'date': '1327134607', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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:\nj,a[' '],s,z=1e6;main(i){for(;++i<998;)if(!a[i])for(j=i*i;a[j]=j<z;j+=i);for(i=1;++i<z||~scanf(s=\"%d\\n\",&j)&&printf(s,a[j]);a[i]=...
CDSS_545377
CDSS
#include <stdio.h> #include <stdlib.h> // useage : swap(&int1,&int2); // 値入れ替え int swap(int *c1,int *c2){ int tmp; tmp=*c1; *c1=*c2; *c2=tmp; return 0; } int main(void) { // 入力 int n; scanf("%d",&n); int list[n]; for(int i=0;i<n;i++){ scanf("%d",&list[i]); } for(int i=1;i<n;i++){ ...
128
memory_bytes
{'s_id': 's482778374', 'p_id': 'p02958', 'u_id': 'u509750017', 'date': '1564277082', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '735'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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// useage : swap(&int1,&int2);\n// 値入れ替え\nint swap(int *c1,int *c2){\n int tmp;\n tmp=*c1...
CDSS_274972
CDSS
#include <stdio.h> int main() { int a=0,b=0,c=0; scanf("%d %d %d\n",&a,&b,&c); if((a<b)&&(b<c)&&(a<c)) { printf("Yes\n"); }else { printf("No\n"); } return 0; }
1,920
memory_bytes
{'s_id': 's942227362', 'p_id': 'p02392', 'u_id': 'u940390945', 'date': '1556027362', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1920', '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:\n#include <stdio.h>\n\nint main()\n{\n int a=0,b=0,c=0;\n \n scanf(\"%d %d %d\\n\",&a,&b,&c);\n \n if((a<b)&&(b<c)&&(a<c...
CDSS_732619
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<...
128
memory_bytes
{'s_id': 's003195567', 'p_id': 'p03944', 'u_id': 'u389185410', 'date': '1542996275', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '3844'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*\n\n結果:\n*/\n#define _USE_MATH_DEFINES\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n#include <l...
CDSS_569408
CDSS
#include <stdio.h> int main(void) { int N, M; int L = 1; int R = 1; int tmp_l, tmp_r; scanf("%d %d\n", &N, &M); R = N; for (int i = 0; i < M; ++i) { scanf("%d %d", &tmp_l, &tmp_r); if (L < tmp_l) { L = tmp_l; } if (R > tmp_r) { R = ...
128
memory_bytes
{'s_id': 's771124421', 'p_id': 'p03037', 'u_id': 'u194484609', 'date': '1558839471', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '18', 'memory': '128', 'code_size': '406'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, M;\n int L = 1;\n int R = 1;\n int tmp_l, tmp_r;\n\n scanf(\"%d %d\\n\"...
CDSS_707401
CDSS
#include <stdio.h> int main(void) { int n, m, a, b, i, c[50]; scanf("%d %d", &n, &m); for (i = 0; i < n; i++) { c[i] = 0; } for (i = 0; i < m; i++) { scanf("%d %d", &a, &b); c[a - 1]++; c[b - 1]++; } for (i = 0; i < n; i++) { printf("%d\n", c[i]); ...
128
memory_bytes
{'s_id': 's873335797', 'p_id': 'p03720', 'u_id': 'u775278298', 'date': '1494726252', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '339'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int n, m, a, b, i, c[50];\n\n scanf(\"%d %d\", &n, &m);\n for (i = 0; i < n; i++) {...
CDSS_310376
CDSS
#include <stdio.h> int main(){ int a,b; double d; scanf("%d %d",&a,&b); d=(double) a/(double) b; printf("%d %d %.5lf\n",a/b,a%b,d); return 0; }
640
memory_bytes
{'s_id': 's366184914', 'p_id': 'p02399', 'u_id': 'u076398897', 'date': '1491985213', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', '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 int a,b;\n double d;\n\n scanf(\"%d %d\",&a,&b);\n\n d=(double) a/(double) b;\n \n printf(\"...
CDSS_621193
CDSS
#include <stdio.h> #include <stdlib.h> int gcd(int a,int b){ if(a<b){ int tmp=b; b=a; a=tmp; } int r=a%b; if(r==0)return b; while(r>0){ a=b; b=r; r=a%b; } return b; } int main() { int n,x; scanf("%d%d",&n,&x); int a[n]; for(in...
512
memory_bytes
{'s_id': 's850415872', 'p_id': 'p03262', 'u_id': 'u993046043', 'date': '1560439458', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '512', 'code_size': '504'}
[ { "content": "Your task is to predict the memory 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#include <stdlib.h>\nint gcd(int a,int b){\n if(a<b){\n int tmp=b;\n b=a;\n a=tmp;\n ...
CDSS_568470
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #include <stdbool.h> #define LL long long #define INF 1<<31-1 #define LLINF 1<<63-1 #define MIN(x,y) ((x)<(y)?(x):(y)) #define MAX(x,y) ((x)<(y)?(y):(x)) #define MOD 1000000007 #define NUM 100001 void swap(int* x,int* y){ int tmp=*x;*x=*y;*y...
128
memory_bytes
{'s_id': 's668836638', 'p_id': 'p03035', 'u_id': 'u596117821', 'date': '1558832597', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1016'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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#include <stdbool.h>\n#define LL long long\n#define I...
CDSS_356862
CDSS
#include<stdio.h> int main(void) { int r,c,i,j,number[101][101]={0}; scanf("%d %d",&r,&c); for(i=0;i<r;i++) { for(j=0;j<c;j++) { scanf("%d",&number[i][j]); number[i][c]+=number[i][j]; number[r][j]+=number[i][j]; } number[r][c]+=number[i][c]; } for(i=0;i<=r;i++) { for(j=0;j<=c;j++) { p...
2,104
memory_bytes
{'s_id': 's752129993', 'p_id': 'p02413', 'u_id': 'u710374386', 'date': '1531819136', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '422'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 r,c,i,j,number[101][101]={0};\n\n\tscanf(\"%d %d\",&r,&c);\n\n\tfor(i=0;i<r;i++)\n\t{\n\...
CDSS_257170
CDSS
#include <stdio.h> int main(void) { int a, b; scanf("%d %d",&a ,&b); printf("%d %d\n",a*b, 2*(a+b)); return 0; }
596
memory_bytes
{'s_id': 's566113035', 'p_id': 'p02389', 'u_id': 'u094716191', 'date': '1349760386', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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(void)\n{\n int a, b;\n\n scanf(\"%d %d\",&a ,&b);\n \n printf(\"%d %d\\n\",a*b, 2*(a+b));\n return 0...
CDSS_596729
CDSS
#include <stdio.h> int main(void){ long int k,a,b,ck=1; scanf("%ld%ld%ld",&k,&a,&b); while(k>0){ if(b-a>2&&ck>=a&&k>=2){ ck=ck+b-a; k=k-2; } else { ck++; k--; } } printf("%ld",ck); return 0; }
128
memory_bytes
{'s_id': 's363350282', 'p_id': 'p03131', 'u_id': 'u185896732', 'date': '1550006180', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1151', '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>\nint main(void){\n long int k,a,b,ck=1;\n scanf(\"%ld%ld%ld\",&k,&a,&b);\n while(k>0){\n if(b-a>2&&ck>=a&&k>=...
CDSS_639655
CDSS
#include<stdio.h> #include<stdlib.h> #include<limits.h> long long int x[1000],y[1000],z[1000]; int a,b,c; int compare(const void *s,const void *t){ return x[*(int *)t]*a+y[*(int *)t]*b+z[*(int *)t]*c>x[*(int *)s]*a+y[*(int *)s]*b+z[*(int *)s]*c?1:-1; } int main(void){ int n,m,i; long long int tmp[3]; int pos[100...
256
memory_bytes
{'s_id': 's454506991', 'p_id': 'p03326', 'u_id': 'u352811222', 'date': '1529200222', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '805'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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<limits.h>\n\nlong long int x[1000],y[1000],z[1000];\nint a,b,c;\n\nint compare(const v...
CDSS_673054
CDSS
#include <stdio.h> #include <math.h> int main(){ int N; scanf("%d",&N); int A[N]; for(int i=0;i<N;i++){ scanf("%d", &A[i]); } int j=0,count=0; for(j=2;j<pow(2,34);j=j*2){ for(int i=0;i<N;i++){ if(A[i]%j!=0){...
128
memory_bytes
{'s_id': 's021101483', 'p_id': 'p03494', 'u_id': 'u811528179', 'date': '1512958690', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '488'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer 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(){\n int N;\n scanf(\"%d\",&N);\n int A[N];\n for(int i=...
CDSS_569149
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define MOD1 1000000007 #define MOD2 998244353 #define LIMIT1 200002 #define LIMIT2 500002 typedef long long ll; typedef long double ld; #define rep(i,n) for(i=0;i<n;i++) #define max(a,b) ((a)>(b) ? (a) : (b)) #define min(a,b) ((a)<(b) ? (a) :...
2,944
memory_bytes
{'s_id': 's065828181', 'p_id': 'p03037', 'u_id': 'u091870478', 'date': '1587761811', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '19', 'memory': '2944', 'code_size': '1726'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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#define MOD1 1000000007\n#define MOD2 998244353\n#def...
CDSS_440724
CDSS
#include<stdio.h> #include <math.h> int main(){ int R; scanf("%d", &R); printf("%lf", 2*R*M_PI); return 0; }
1,752
memory_bytes
{'s_id': 's755545986', 'p_id': 'p02705', 'u_id': 'u775097519', 'date': '1587344838', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1752', 'code_size': '117'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include <math.h>\nint main(){\n int R;\n scanf(\"%d\", &R);\n printf(\"%lf\", 2*R*M_PI);\n\n return 0;\n}\nPre...
CDSS_48976
CDSS
#include<stdio.h> #include<string.h> int up=0; int calculate(int x, int y){ int temp; temp=up+x+y; up=temp/10; return temp%10; } int main(){ char a[1000],b[1000]; int c[1000],d[1000]; int e[1000]; char f[1000]; int i,j,n; int a_len,b_len,max_len; int of_flag=0,st_flag=0,st_flag2=0; int s,t,u...
0
memory_bytes
{'s_id': 's175327217', 'p_id': 'p00015', 'u_id': 'u533679381', 'date': '1319929765', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '1614'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 up=0;\n\nint calculate(int x, int y){\n int temp;\n\n temp=up+x+y;\n up=temp/10;\n re...
CDSS_118953
CDSS
D[13][3]={{1,0,0},{0,1,0},{0,0,1},{1,1,0},{1,0,1},{0,1,1},{1,-1,0},{1,0,-1},{0,1,-1},{1,1,1},{-1,1,1},{1,-1,1},{1,1,-1}}; M[9][9][9],q[2];main(n,m,p,I,x,y,z,j,c,d,J){for(;scanf("%d%d%d",&n,&m,&p),n;){ for(memset(M,I=0,sizeof(M)),c=1;I++<p;c*=-1){ for(scanf("%d%d",&x,&y),z=1;;z++)if(!M[x][y][z]){M[x][y][z]=c;break;} ...
612
memory_bytes
{'s_id': 's896537456', 'p_id': 'p00828', 'u_id': 'u300645821', 'date': '1364068791', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '612', '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:\nD[13][3]={{1,0,0},{0,1,0},{0,0,1},{1,1,0},{1,0,1},{0,1,1},{1,-1,0},{1,0,-1},{0,1,-1},{1,1,1},{-1,1,1},{1,-1,1},{1,1,-1}};\nM[9][9][9],...
CDSS_368236
CDSS
#include <stdio.h> #define TRUE 1 #define FALSE 0 typedef struct { char val[100]; int length; }string; int get_length(const char *str){ int length = 0; while (*str++){ length++; } return length; } string get_s(){ string input; scanf("%s", &input.val); input.length = get_length(input.val); return input; ...
2,140
memory_bytes
{'s_id': 's389452052', 'p_id': 'p02418', 'u_id': 'u983614091', 'date': '1562047197', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '684'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 TRUE 1\n#define FALSE 0\n\ntypedef struct {\n\tchar val[100];\n\tint length;\n}string;\n\nint get_length(c...
CDSS_281203
CDSS
#include <stdio.h> int main(void) { int a[3]; int i, j; int tmp; for(i = 0; i < 3; i++){ scanf("%d", &a[i]); } for(i = 0; i < 2; i++){ for(j = 0; j < 2; j++){ if(a[j] > a[j + 1]){ tmp = a[j]; a[j] = a[j + 1]; a[j + 1]...
2,136
memory_bytes
{'s_id': 's906134095', 'p_id': 'p02393', 'u_id': 'u254148695', 'date': '1540292603', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2136', 'code_size': '420'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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[3];\n int i, j;\n int tmp;\n\n for(i = 0; i < 3; i++){\n scanf(\"%d...
CDSS_736119
CDSS
//Segtree and RMQ //AGC005-B //Ver.20180709 #include<stdio.h> #include<string.h> #include<stdlib.h> #include<stdbool.h> #include<time.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...
11,392
memory_bytes
{'s_id': 's396219104', 'p_id': 'p03987', 'u_id': 'u721060623', 'date': '1531557631', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1644', 'memory': '11392', 'code_size': '5341'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//Segtree and RMQ\n//AGC005-B\n//Ver.20180709\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<stdbool.h>\n#includ...
CDSS_235040
CDSS
#include <stdio.h> #include <math.h> int main(void){ double a,b,c; scanf("%lf %lf %lf",&a,&b,&c); c=c*3.14159265/180.0; printf("%f\n",a*b*sin(c)/2); printf("%f\n",a+b+sqrt(a*a+b*b-2*a*b*cos(c))); printf("%f\n",b*sin(c)); return 0; }
676
memory_bytes
{'s_id': 's169752537', 'p_id': 'p02380', 'u_id': 'u979453636', 'date': '1502331804', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '676', '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#include <math.h>\n \nint main(void){\n double a,b,c;\n scanf(\"%lf %lf %lf\",&a,&b,&c);\n c=c*3.14159265...
CDSS_574633
CDSS
//set many funcs template //Ver.20181228 #include<stdio.h> #include<string.h> #include<stdlib.h> #include<stdbool.h> #include<time.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){i...
14,464
memory_bytes
{'s_id': 's884423627', 'p_id': 'p03053', 'u_id': 'u721060623', 'date': '1557018573', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '31', 'memory': '14464', 'code_size': '5512'}
[ { "content": "Your task is to predict the memory 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//Ver.20181228\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<stdbool.h>\n#include<ti...
CDSS_51051
CDSS
#include <stdio.h> // printf(), fgets() #include <stdlib.h> // qsort() #define N 5 int cmp_func(const void *l_, const void *r_) { const int* l = (const int*) l_; const int* r = (const int*) r_; if (*l > *r) return -1; if (*l < *r) return 1; return 0; } int main(int argc, char** argv) { ...
600
memory_bytes
{'s_id': 's872393573', 'p_id': 'p00018', 'u_id': 'u818887270', 'date': '1475380763', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '513'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h> // printf(), fgets()\n#include <stdlib.h> // qsort()\n\n#define N 5\n\nint\ncmp_func(const void *l...
CDSS_662970
CDSS
#include <stdio.h> int main(){ int a,b,bk,p=1,k=1; scanf("%d %d",&a,&b); bk=b; while(bk>0){ bk/=10; k*=10; } a=a*k+b; while(p*p<a) p++; if(p*p==a) printf("Yes\n"); else printf("No\n"); return 0; }
1,664
memory_bytes
{'s_id': 's143147665', 'p_id': 'p03456', 'u_id': 'u347116006', 'date': '1596472681', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1664', 'code_size': '225'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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,bk,p=1,k=1;\n scanf(\"%d %d\",&a,&b);\n bk=b;\n while(bk>0){\n bk/=10;\n k*=10;\...
CDSS_237863
CDSS
#include <stdio.h> #include <string.h> typedef struct{ int top,front,right,left,back,bottom; }Dice; void roll(char c,Dice* d){ int tmp; switch(c){ case 'N': tmp=d->top; d->top=d->front; d->front=d->bottom; d->bottom=d->back; d->back=tmp; break; ...
1,992
memory_bytes
{'s_id': 's625554343', 'p_id': 'p02383', 'u_id': 'u568918115', 'date': '1542262267', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1992', 'code_size': '1108'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 int top,front,right,left,back,bottom;\n}Dice;\n \nvoid roll(char c,Di...
CDSS_631712
CDSS
#include <stdio.h> int main(){ int n, a, ans=0; scanf("%d", &n); int i; for(i=0;i<n;i++){ scanf("%d", &a); ans+=a-1; } printf("%d\n", ans); return 0; }
128
memory_bytes
{'s_id': 's791283342', 'p_id': 'p03294', 'u_id': 'u193591892', 'date': '1532224456', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '174'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int n, a, ans=0;\n scanf(\"%d\", &n);\n int i;\n for(i=0;i<n;i++){\n scanf(\"%d\", &a);\n ...
CDSS_343870
CDSS
#include<stdio.h> int main(){ int n, i; scanf("%d", &n); int a[n]; for(i = 0; i < n; i++) scanf("%d", &a[i]); for(i = n-1; i > 0; i--) printf("%d ", a[i]); printf("%d\n", a[0]); return 0; }
2,116
memory_bytes
{'s_id': 's307835651', 'p_id': 'p02407', 'u_id': 'u130605740', 'date': '1594445765', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2116', 'code_size': '221'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, i;\n scanf(\"%d\", &n);\n int a[n];\n\n for(i = 0; i < n; i++)\n scanf(\"%d\", &a[i])...
CDSS_707230
CDSS
#include<stdio.h> int N, M, a, b, A[51], i; int main(){ scanf("%d%d", &N, &M); for(i=0; i<M; i++){ scanf("%d%d", &a, &b); A[a]++; A[b]++; } for(i=1; i<=N; i++){ printf("%d\n", A[i]); } }
128
memory_bytes
{'s_id': 's255086137', 'p_id': 'p03720', 'u_id': 'u292252214', 'date': '1545061322', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '213'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint N, M, a, b, A[51], i;\nint main(){\n scanf(\"%d%d\", &N, &M);\n for(i=0; i<M; i++){\n scanf(\"%d%d\", &a, ...
CDSS_334252
CDSS
#include<stdio.h> int main(){ int H=0,W=0,i=0,j=0,t=0,u=0; for(;scanf("%d %d",&H,&W),H;puts("")){ for(i=0,t=H-1;i<H;i++,t--){ for(j=0,u=W-1;j<W;j++,u--){ printf("%s%s",i*j*t*u?".":"#",j==W-1?"\n":""); } } } }
1,708
memory_bytes
{'s_id': 's950720335', 'p_id': 'p02404', 'u_id': 'u601537279', 'date': '1508079551', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1708', 'code_size': '276'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 H=0,W=0,i=0,j=0,t=0,u=0;\n for(;scanf(\"%d %d\",&H,&W),H;puts(\"\")){\n for(i=0,t=H-...
CDSS_717442
CDSS
#include<stdio.h> int main(){ long long int n,ans = 1; scanf("%lld",&n); for(long long int i = 2;i <= n;i++){ ans = ans * i % 1000000007; } printf("%lld",ans); return 0; }
128
memory_bytes
{'s_id': 's447102912', 'p_id': 'p03796', 'u_id': 'u008829811', 'date': '1551361412', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '187'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n long long int n,ans = 1;\n scanf(\"%lld\",&n);\n for(long long int i = 2;i <= n;i++){\n ans = a...
CDSS_399284
CDSS
#include <stdio.h> int main() { char a; scanf("%c",&a); if('A'<=a&&a<='Z'){ printf("A\n"); } else{ printf("a\n"); } return 0; }
1,580
memory_bytes
{'s_id': 's691274905', 'p_id': 'p02627', 'u_id': 'u530411589', 'date': '1592787877', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1580', '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>\nint main()\n{\n char a;\n scanf(\"%c\",&a);\n \n if('A'<=a&&a<='Z'){\n printf(\"A\\n\");\n }\n else{\n ...
CDSS_280880
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,048
memory_bytes
{'s_id': 's556438932', 'p_id': 'p02392', 'u_id': 'u471269939', 'date': '1545185906', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', '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(void){\n int a,b,c;\n scanf(\"%d %d %d\",&a,&b,&c);\n\n if(a<b && b<c){\n printf(\"Yes\\n\");\n...
CDSS_651758
CDSS
//set many funcs template #include<stdio.h> #include<string.h> #include<stdlib.h> #include<stdbool.h> #include<time.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...
128
memory_bytes
{'s_id': 's426486649', 'p_id': 'p03391', 'u_id': 'u721060623', 'date': '1523152999', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '128', 'code_size': '3219'}
[ { "content": "Your task is to predict the memory 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#include<time.h>\n#define i...
CDSS_521294
CDSS
#include <stdio.h> int main(){ int a, b; scanf("%d %d", &a, &b); printf("%d\n", (2 * b < a) * (a - 2 * b)); return 0; }
128
memory_bytes
{'s_id': 's623677530', 'p_id': 'p02885', 'u_id': 'u227359448', 'date': '1571533410', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '129'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 printf(\"%d\\n\", (2 * b < a) * (a - 2 * b));\n return...
CDSS_362494
CDSS
#include <stdio.h> #include <ctype.h> int main(void) { char c; while (1) { scanf("%c", &c); if(c=='\n')break; if (isalpha(c)) { if (islower(c)) c = toupper(c); else if (isupper(c)) c = tolower(c); } prin...
2,104
memory_bytes
{'s_id': 's623098101', 'p_id': 'p02415', 'u_id': 'u227363693', 'date': '1527949547', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '372'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <ctype.h>\n\nint main(void)\n{\n char c;\n while (1)\n {\n scanf(\"%c\", &c);\n if...
CDSS_89891
CDSS
// Aizu 0235: Sergeant Rian // 2017.9.11 bal4u@uu #include <stdio.h> #include <string.h> typedef struct { char f; int len, to[22], t[22]; } T; T tbl[22]; int n; int mostfar(int k) { int i, j, max, s; if (tbl[k].f) return 0; tbl[k].f = 1; for (max = 0, i = 0; i < tbl[k].len; i++) { if ((j = tbl[k].to[i]) >= 0 ...
1,732
memory_bytes
{'s_id': 's058372694', 'p_id': 'p00235', 'u_id': 'u847467233', 'date': '1506259653', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1732', 'code_size': '967'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// Aizu 0235: Sergeant Rian\n// 2017.9.11 bal4u@uu\n\n#include <stdio.h>\n#include <string.h>\n\ntypedef struct { char f; int len, to[...
CDSS_703669
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> #define FOR(n) for(int i=0;i<n;i++) #define PRN(n) printf("%d\n",n) #define PRF(f) printf("%lf\n",f) #define PRS(s) printf("%s\n",s) #define PRC(c) printf("%c",c) int main(){ int n,a,sum=0,x=100; scanf("%d",&n); FOR(n){ scanf("%d",&a); ...
128
memory_bytes
{'s_id': 's154297727', 'p_id': 'p03699', 'u_id': 'u008829811', 'date': '1566544732', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '421'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n#include<math.h>\n#define FOR(n) for(int i=0;i<n;i++)\n#define PRN(n) print...
CDSS_554993
CDSS
int main(void){ int n, count, i; int in[19]; scanf("%d", &n); scanf("%d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d", &in[0], &in[1], &in[2], &in[3], &in[4], &in[5], &in[6], &in[7], &in[8], &in[9], &in[10], &in[11], &in[12], &in[13], &in[14], &in[15], &in[16], &in[17], &in[18], &in[19]); for(...
128
memory_bytes
{'s_id': 's533212872', 'p_id': 'p02988', 'u_id': 'u658820221', 'date': '1561861787', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '499'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nint main(void){\n\tint n, count, i;\n int in[19];\n \n\tscanf(\"%d\", &n);\n scanf(\"%d %d %d %d %d %d %d %d %d %d %d %d %d %d ...
CDSS_525390
CDSS
#include <stdio.h> int main(){ int n,k,a,i,h; scanf("%d %d",&n,&k); for (i=a=0;i<n;i++) { scanf("%d",&h); if (h>=k) a++; } printf("%d\n",a); return 0; }
128
memory_bytes
{'s_id': 's011241049', 'p_id': 'p02898', 'u_id': 'u337657882', 'date': '1569719469', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '9', '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,k,a,i,h;\n \n scanf(\"%d %d\",&n,&k);\n for (i=a=0;i<n;i++) {\n scanf(\"%d\",&h);...
CDSS_264710
CDSS
#include<stdio.h> int main(void) { int x,y,i; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// int h, m, s; scanf("%d", &x); h = x / 3600; x = x - h * 3600; m = x / 60; x = x - m * 60; s = x; printf("%d:%d:%...
2,100
memory_bytes
{'s_id': 's622296296', 'p_id': 'p02390', 'u_id': 'u695741998', 'date': '1549243148', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', '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>\nint main(void)\n{\n\tint x,y,i;\n\n\t//////////////////////////////////////////////////////////////////////////////...
CDSS_702403
CDSS
#include <stdio.h> int main(void) { int N; char S[128]; int i; int minKakko, kakko; if (scanf("%d", &N) != 1) return 1; if (scanf("%127s", S) != 1) return 1; minKakko = kakko = 0; for (i = 0; i < N && S[i] != '\0'; i++) { if (S[i] == '(') kakko++; else if (S[i] == ')') kakko--; if (kakko < minKakko) minK...
128
memory_bytes
{'s_id': 's462071053', 'p_id': 'p03696', 'u_id': 'u646118499', 'date': '1576391173', '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\tint N;\n\tchar S[128];\n\tint i;\n\tint minKakko, kakko;\n\tif (scanf(\"%d\", &N) != 1) retu...
CDSS_538944
CDSS
#include <stdio.h> int main(void){ int a,b; scanf("%d %d",&a,&b); if(a+b>=a-b&&a+b>=a*b){ printf("%d",a+b); }else if(a-b>=a+b&&a-b>=a*b){ printf("%d",a-b); }else{ printf("%d",a*b); } return 0; }
128
memory_bytes
{'s_id': 's081834529', 'p_id': 'p02945', 'u_id': 'u210987825', 'date': '1566826237', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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:\n#include <stdio.h>\n\nint main(void){\n int a,b;\n scanf(\"%d %d\",&a,&b);\n \n if(a+b>=a-b&&a+b>=a*b){\n printf(\"%d\",a+b);\n...
CDSS_740381
CDSS
#include <stdio.h> #define N_MAX 110000 int N; int x[N_MAX]; int L; int Q; int a, b; int ikeru_left[30][N_MAX]; int ikeru_right[30][N_MAX]; void maesyori(void) { int i, j; /* 各ホテルから1日で行けるホテルを求める */ for (i = 0; i < N; i++) { int left, right, mid; /* 左へ */ left = 0; ikeru_left[0][i] = right = i; while (lef...
24,832
memory_bytes
{'s_id': 's052365185', 'p_id': 'p04017', 'u_id': 'u646118499', 'date': '1472434370', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '444', 'memory': '24832', 'code_size': '2115'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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_MAX 110000\n\nint N;\nint x[N_MAX];\nint L;\nint Q;\nint a, b;\n\nint ikeru_left[30][N_MAX];\nint iker...
CDSS_248721
CDSS
#include<stdio.h> int main(){ int x; scanf("%d", &x); printf("%d\n",x*x*x); return 0; }
2,128
memory_bytes
{'s_id': 's286025976', 'p_id': 'p02388', 'u_id': 'u756205210', 'date': '1578621429', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2128', 'code_size': '104'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n \nint main(){\n int x;\n\n scanf(\"%d\", &x);\n \n printf(\"%d\\n\",x*x*x);\n \n return 0;\n}\n\n\nPredict its...
CDSS_581071
CDSS
#include <stdio.h> int main(void){ int n; int h[100]; int count = 1; int i,j; scanf("%d", &n); for(i = 0; i < n; i++){ scanf("%d", &h[i]); } for(i = 1; i < n; i++){ for(j = 0; j < i; j++){ if(h[j] > h[i]){ break; } ...
128
memory_bytes
{'s_id': 's345044929', 'p_id': 'p03072', 'u_id': 'u828593789', 'date': '1555182720', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '445'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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;\n int h[100];\n int count = 1;\n int i,j;\n \n scanf(\"%d\", &n);\n ...
CDSS_126537
CDSS
a[99]={1,4,12,38};main(i,n,m){scanf("%d%d",&n,&m); if(m==1)for(;i<101;i++)a[i]=2*a[i-1]%1000000; else for(i=4;i<101;i++)a[i]=(4*a[i-1]-3*a[i-2]+2*a[i-3]+a[i-4]+3000000)%1000000; printf("%d\n",a[n]);exit(0); }
596
memory_bytes
{'s_id': 's157032124', 'p_id': 'p01619', 'u_id': 'u300645821', 'date': '1370091867', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '211'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\na[99]={1,4,12,38};main(i,n,m){scanf(\"%d%d\",&n,&m);\n\tif(m==1)for(;i<101;i++)a[i]=2*a[i-1]%1000000;\n\telse for(i=4;i<101;i++)a[i]=(...
CDSS_376776
CDSS
#include<stdio.h> long long int max(long long int a,long long int b) { if(a>=b) { return a; } else { return b; } } int main() { long long int a,b,c,d,x1,x2,x3,x4; scanf("%lld%lld%lld%lld",&a,&b,&c,&d); x1=a*c; x2=a*d; x3=b*c; x4=b*d; x1=max(x1,x2); x1=max(x1,x3); x1=max(x1,x4); printf("%lld",x1);...
1,736
memory_bytes
{'s_id': 's691458980', 'p_id': 'p02553', 'u_id': 'u580497408', 'date': '1600024624', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1736', 'code_size': '333'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nlong long int max(long long int a,long long int b)\n{\n\tif(a>=b)\n\t{\n\t\treturn a;\n\t}\n\telse\n\t{\n\t\tretu...
CDSS_496660
CDSS
#include<stdio.h> int main(void){ int N,M; scanf("%d %d",&N,&M); if(M==N){ printf("Yes"); } else printf("No"); return 0; }
128
memory_bytes
{'s_id': 's413422693', 'p_id': 'p02789', 'u_id': 'u073336549', 'date': '1581482039', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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>\nint main(void){\n \n int N,M;\n scanf(\"%d %d\",&N,&M);\n if(M==N){\n printf(\"Yes\");\n }\nelse printf(\"N...
CDSS_435922
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #define ll long long int compare(const void *a, const void *b) { return strcmp((char *)a, (char *)b); } int main(void) { int n, i, count = 1; char s[11]; char S[200002][11]; scanf("%d", &n); for (i = 0; i < n; i++) { scanf(...
5,716
memory_bytes
{'s_id': 's657403568', 'p_id': 'p02701', 'u_id': 'u767290471', 'date': '1587953033', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '70', 'memory': '5716', 'code_size': '691'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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#define ll long long\n\nint compare(const void *a, co...
CDSS_400816
CDSS
#include <stdio.h> int main(){ long long n, b, c, tmp, sum=0; scanf("%lld", &n); int num[100000+1]={0}; for(int i=0; i<n; i++){ scanf("%lld", &tmp); num[tmp]++; sum += tmp; } long long q; scanf("%lld", &q); for(int i=0; i<q; i++){ scanf("%lld %lld", &...
2,080
memory_bytes
{'s_id': 's763861196', 'p_id': 'p02630', 'u_id': 'u858806530', 'date': '1592871835', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '45', 'memory': '2080', 'code_size': '567'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 n, b, c, tmp, sum=0;\n scanf(\"%lld\", &n);\n\n int num[100000+1]={0};\n f...
CDSS_94576
CDSS
#include <stdio.h> /* {1,2,3} -> ... -> {3,2,1} */ int next_permutation(int arr[],int n) { int target; int i; int temp; for (i = n - 2; i >= 0; i--) { if (arr[i] < arr[i + 1]) break; } if (i < 0) return 0; target = i; for (i = 0; target + i + 1 < n - i - 1; i++) { temp = arr[target + 1 + i]; arr[target ...
580
memory_bytes
{'s_id': 's915457866', 'p_id': 'p00320', 'u_id': 'u543521645', 'date': '1482679814', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '1437'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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/* {1,2,3} -> ... -> {3,2,1} */\nint next_permutation(int arr[],int n) {\n\tint target;\n\tint i;\n\tint temp;\n...
CDSS_625919
CDSS
#include <stdio.h> int main() { int n; scanf("%d", &n); int ans = 0; for (int i = 1; i <= n; i += 2) { int c = 0; for (int j = 1; j <= n; j++) c += !(i % j); ans += (c == 8); } printf("%d\n", ans); return 0; }
128
memory_bytes
{'s_id': 's834293828', 'p_id': 'p03281', 'u_id': 'u379702654', 'date': '1534806953', '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\nint main() {\n int n;\n scanf(\"%d\", &n);\n\n int ans = 0;\n for (int i = 1; i <= n; i += 2) {\n int c =...
CDSS_394297
CDSS
#include <stdio.h> int main(){ int a; scanf("%d", &a); printf("%d",a+a*a+a*a*a); return 0; }
1,732
memory_bytes
{'s_id': 's631129294', 'p_id': 'p02621', 'u_id': 'u553575747', 'date': '1596553769', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', '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>\n \n \nint main(){\n\tint a;\n\tscanf(\"%d\", &a);\n\tprintf(\"%d\",a+a*a+a*a*a);\n\treturn 0;\n}\nPredict its memo...
CDSS_423544
CDSS
#include <stdio.h> int main(void){ int N, K; scanf("%d%d", &N, &K); int cnt[N]; for (int i = 0; i < N;i++){ cnt[i] = 0; } for (int i = 0; i < K; i++){ int d; scanf("%d", &d); int A[d]; for (int k = 0; k < d;k++){ scanf("%d", &A[k]); ...
1,704
memory_bytes
{'s_id': 's489385912', 'p_id': 'p02688', 'u_id': 'u897135531', 'date': '1588557928', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1704', 'code_size': '585'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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;\n scanf(\"%d%d\", &N, &K);\n int cnt[N];\n for (int i = 0; i < N;i++){\n...
CDSS_687344
CDSS
U;i;j;w[9<<14];main(k){ for(;~scanf("%d",&k);)j++&&w[k]++; for(;++i<1e5;)U=fmax(w[--i]+w[++i]+w[i+1],U); printf("%d",U);}
2,408
memory_bytes
{'s_id': 's532039495', 'p_id': 'p03611', 'u_id': 'u944651767', 'date': '1600392084', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '19', 'memory': '2408', '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:\nU;i;j;w[9<<14];main(k){\nfor(;~scanf(\"%d\",&k);)j++&&w[k]++;\nfor(;++i<1e5;)U=fmax(w[--i]+w[++i]+w[i+1],U);\nprintf(\"%d\",U);}\nPred...
CDSS_142229
CDSS
#include<stdio.h> #define N 8 #define free -1 #define notfree 1 #define FALSE 2 #define TRUE 3 int row[N],col[N],dpos[2*N-1],dneg[2*N-1]; int X[N][N]; void initialize(void); void print(void); void recursive(int); int main(){ int i,j,k,r,c; initialize(); for(i=0;i<N;i++){ for(j=0;j<N;j++){ ...
2,108
memory_bytes
{'s_id': 's089267189', 'p_id': 'p02244', 'u_id': 'u331817668', 'date': '1549324022', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '1191'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 8\n#define free -1\n#define notfree 1\n#define FALSE 2\n#define TRUE 3\n \nint row[N],col[N],dpos[2*N-1],...
CDSS_167734
CDSS
#include<stdio.h> #include<stdlib.h> int main(){ int i,j,n,x,k=0,flag; int *A; scanf("%d",&n); if(n<1 || n>100)return 0; A = (int *)malloc(sizeof(int) * n); for(i = 0;i < n;i++){ scanf("%d",&A[i]); if(A[i]<0 || A[i]>100)return 0; } flag = 1; i = 0; // 未ソート部分列の先頭インデックス while (flag){ flag = 0; ...
2,140
memory_bytes
{'s_id': 's771017853', 'p_id': 'p02259', 'u_id': 'u705531131', 'date': '1529377151', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '627'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\nint main(){\n int i,j,n,x,k=0,flag;\n int *A;\n\n scanf(\"%d\",&n);\n if(n<1 || n>100)retur...
CDSS_402179
CDSS
#include<stdio.h> #include<string.h> #include<stdlib.h> #include<math.h> int main(void) { int i; int num[5]; scanf("%d%d%d%d%d", &num[0], &num[1], &num[2], &num[3], &num[4]); for (i = 1; i <= 5; i++) { if ((num[i-1]!=i)&&(num[i-1]!=0)) { return -1; } if (num[i-1]==0) { printf("%d\n"...
1,732
memory_bytes
{'s_id': 's219648988', 'p_id': 'p02639', 'u_id': 'u357698450', 'date': '1592183324', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1732', 'code_size': '367'}
[ { "content": "Your task is to predict the memory 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#include<string.h>\n#include<stdlib.h>\n#include<math.h>\n\nint main(void) {\n\n int i;\n int num[5];\n\n scan...
CDSS_222470
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> struct Node { int key; struct Node *right, *left, *parent; }; typedef struct Node Node; Node *root, *NIL; void insert(int k) { Node *y = NIL; Node *x = root; Node *z; z = (Node *)malloc(sizeof(Node)); z->key = k; z->lef...
25,188
memory_bytes
{'s_id': 's973749806', 'p_id': 'p02283', 'u_id': 'u415835844', 'date': '1578464919', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '340', 'memory': '25188', 'code_size': '1428'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 int key;\n struct Node *right, *left, *parent;\n...
CDSS_622180
CDSS
/* ex 7_1 riverstone */ #include <stdio.h> //頂点を表す構造体 typedef struct point{ int x_elem; int y_elem; }point; //関数shift_pointの定義 //ある基点point_baseから指定された移動方向に移動させたポイントを返す point shift_point(point point_base,point point_shift){ point point_ret; point_ret.x_elem = point_base.x_elem + point_shift.x_elem;...
1,728
memory_bytes
{'s_id': 's574715162', 'p_id': 'p03265', 'u_id': 'u693391925', 'date': '1594666292', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1728', 'code_size': '1231'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* ex 7_1\n riverstone */\n\n#include <stdio.h>\n\n//頂点を表す構造体\ntypedef struct point{\n int x_elem;\n int y_elem;\n}point;\n\n/...
CDSS_65527
CDSS
#include<stdio.h> #include<string.h> int main(void){ char sent[1001]; int i; for(i=0;i<1000;++i){ sent[i] = '\0'; } scanf("%[^\n]",sent); for(i=0;sent[i]!='\0';++i){ if((sent[i] == 'a') && (sent[i+1] == 'p') && (sent[i+2] == 'p') && (sent[i+3] == 'l') && (sent[i+4] == 'e')){ sent[i+0] = 'p'; sent...
0
memory_bytes
{'s_id': 's923072848', 'p_id': 'p00050', 'u_id': 'u635505472', 'date': '1316338618', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '679'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 sent[1001];\n\tint i;\n\t\n\tfor(i=0;i<1000;++i){\n\t\tsent[i] = '\\0...
CDSS_715596
CDSS
#include <stdio.h> int main(void){ int w, a, b; scanf("%d %d %d", &w, &a, &b); int c=a<b?a:b,d=a<b?b:a; printf("%d", w+c<d?d-w-c:0); return 0; }
128
memory_bytes
{'s_id': 's788821798', 'p_id': 'p03778', 'u_id': 'u075447091', 'date': '1583458821', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '149'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 w, a, b;\n\tscanf(\"%d %d %d\", &w, &a, &b);\n\tint c=a<b?a:b,d=a<b?b:a;\n\tprintf(\"%d\", ...
CDSS_425975
CDSS
#include <stdio.h> int main() { int k, a, b, i; scanf("%d %d %d", &k, &a, &b); for(i = 0; ; i++){ if(k * i >= a && k * i <= b){ printf("OK");break; } else if(k * i > b){ printf("NG");break; } } return 0; }
1,700
memory_bytes
{'s_id': 's422401575', 'p_id': 'p02693', 'u_id': 'u850645161', 'date': '1590362487', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1700', 'code_size': '230'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 k, a, b, i;\t\n\tscanf(\"%d %d %d\", &k, &a, &b);\t\n\tfor(i = 0; ; i++){\n\t\tif(k * i >=...
CDSS_723909
CDSS
#include<stdio.h> #include<string.h> #include<math.h> #include<stdlib.h> int main() { long long int i,j; char a[1000]; while(gets(a)) { for(i=0;i<strlen(a);i++) { if(a[i]==','){printf(" ");} else{printf("%c",a[i]);} } printf("\n"); } ...
128
memory_bytes
{'s_id': 's224031782', 'p_id': 'p03834', 'u_id': 'u816631826', 'date': '1559040493', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '347'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\n\n\nint main()\n{\n long long int i,j;\n\n char a...
CDSS_227838
CDSS
#include <stdio.h> #define MAX 500000 int h,a[MAX+1]; void maxHeapify(int i){ int l,r,est,tmp; l=2*i; r=2*i+1; if(l<=h && a[l]>a[i]){est=l;} else{est=i;} if(r<=h && a[r]>a[est]){est=r;} if(est!=i){ tmp=a[est]; a[est]=a[i]; a[i]=tmp; maxHeapify(est); } } int main() { int i; scanf(...
3,732
memory_bytes
{'s_id': 's400365180', 'p_id': 'p02288', 'u_id': 'u009388044', 'date': '1531455115', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '3732', 'code_size': '511'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 500000\nint h,a[MAX+1];\n\nvoid maxHeapify(int i){\n int l,r,est,tmp;\n\n l=2*i;\n r=2*i+1;\n if...
CDSS_172596
CDSS
#include<stdio.h> int main(){ int N,k,a[100],m,tmp,A=0,min; scanf("%d",&N); for(k=0;k<N;k++) scanf("%d",&a[k]); for(m=0;m<=N-1;m++){ min=m; for(k=m;k<=N-1;k++){ if(a[min]>a[k]) min=k; } if(m != min){ tmp=a[m]; a[m]=a[min]; a[min]=tmp; A++; } } for(k=0;k<N;k++){ printf("%d",a[k]); if(k!=N-1) printf("...
1,932
memory_bytes
{'s_id': 's908908783', 'p_id': 'p02260', 'u_id': 'u823464408', 'date': '1542181769', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1932', 'code_size': '366'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n \nint N,k,a[100],m,tmp,A=0,min;\n \nscanf(\"%d\",&N);\n \nfor(k=0;k<N;k++)\nscanf(\"%d\",&a[k]);\n\n\...
CDSS_237556
CDSS
#include <stdio.h> #include <string.h> int main(int argc, const char * argv[]) { int x[6], i, tmp=0; char c[100]; for(i=0;i<6;i++){ scanf("%d", &x[i]); } scanf("%s", c); for(i=0;i<strlen(c);i++){ if(c[i] == 'N'){ tmp = x[0]; x[0] = x[1]; x[1] ...
596
memory_bytes
{'s_id': 's348402902', 'p_id': 'p02383', 'u_id': 'u418214336', 'date': '1495431063', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '897'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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(int argc, const char * argv[]) {\n int x[6], i, tmp=0;\n char c[100];\n f...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
261