identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_497125
CDSS
#include<stdio.h> int main(){ int n,m; scanf("%d%d",&n,&m); if(n==m) puts("Yes"); else{ puts("No"); } return 0; }
128
memory_bytes
{'s_id': 's739966508', 'p_id': 'p02789', 'u_id': 'u188486233', 'date': '1579463950', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '153'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int n,m;\n scanf(\"%d%d\",&n,&m);\n if(n==m)\n puts(\"Yes\");\n else{\n put...
CDSS_133245
CDSS
#include <stdio.h> #include <string.h> int q, i, j, k, m, n, c[1001][1001], ans[151]; char x[1001], y[1001]; int main(void) { scanf("%d", &q); for (k = 0; k < q; k++) { scanf("%s", x); scanf("%s", y); m = strlen(x); n = strlen(y); for (i = 1; i <= m; i++) { c[i][0] = 0; } for ...
4,516
memory_bytes
{'s_id': 's134412208', 'p_id': 'p02235', 'u_id': 'u232819029', 'date': '1481010669', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '4516', 'code_size': '783'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\n\nint q, i, j, k, m, n, c[1001][1001], ans[151];\nchar x[1001], y[1001];\n\nint main(void)\...
CDSS_681474
CDSS
#include<stdio.h> int main() { int a,b,c; scanf("%d%d%d",&a,&b,&c); a==b?printf("%d",c):b==c?printf("%d",a):printf("%d",b); return 0; }
128
memory_bytes
{'s_id': 's745777841', 'p_id': 'p03573', 'u_id': 'u404473961', 'date': '1580607003', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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 int a,b,c;\n scanf(\"%d%d%d\",&a,&b,&c);\n a==b?printf(\"%d\",c):b==c?printf(\"%d\",a):pri...
CDSS_500242
CDSS
#include<stdio.h> int main(void) { char str[256] = {"abcdefghijklmnopqrstuvwxyz"}; char *p1; p1 = str; char q; scanf("%c", &q); while (*p1 != '\0') { if (*p1 == q) { break; } p1++; } p1++; printf("%c\n", *p1); return 0; }
128
memory_bytes
{'s_id': 's870762605', 'p_id': 'p02801', 'u_id': 'u788694629', 'date': '1578860361', '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>\nint main(void)\n{\n\tchar str[256] = {\"abcdefghijklmnopqrstuvwxyz\"};\n\tchar *p1;\n\tp1 = str;\n\tchar q;\n\n\tsc...
CDSS_660418
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int x,b,a; scanf("%d",&x); scanf("%d",&a); scanf("%d",&b); printf("%d",(x-a)%b); return 0; }
128
memory_bytes
{'s_id': 's543258007', 'p_id': 'p03447', 'u_id': 'u353919145', 'date': '1517366440', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', '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>\n#include <stdlib.h>\n\nint main()\n{\n int x,b,a;\n scanf(\"%d\",&x);\n scanf(\"%d\",&a);\n scanf(\"%d...
CDSS_581409
CDSS
#include <stdio.h> int main(void){ char s[100000]; int i,ans; int cnt0=0; int cnt1=0; scanf("%s",s); for(i=0;s[i]!='\0';i++){ if(i%2==0){ if(s[i]=='0') cnt0++;} if(i%2==1){ if(s[i]=='1') cnt0++;} } for(i=0;s[i]!='\0';i++){ if(i%2==1){ if(s[i]=='0') cnt1++;} if(i%2==0){ if(s[i]=='1') cnt1++;} } if(cnt0>cnt...
256
memory_bytes
{'s_id': 's071059962', 'p_id': 'p03073', 'u_id': 'u835795156', 'date': '1562938675', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', '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 int main(void){\nchar s[100000];\n\n\n\nint i,ans;\nint cnt0=0;\nint cnt1=0;\nscanf(\"%s\",s);\n \nfor(i=0;s[i]!=...
CDSS_376321
CDSS
#include <stdio.h> long long max(long x, long y){return x>y ? x: y;} int main(void){ long long a,b,c,d; scanf("%lld %lld %lld %lld", &a, &b, &c, &d); printf("%lld", max(a*c, max(a*d, max(b*c, b*d)))); return 0; }
1,688
memory_bytes
{'s_id': 's590227013', 'p_id': 'p02553', 'u_id': 'u963349518', 'date': '1600300915', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1688', 'code_size': '239'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nlong long max(long x, long y){return x>y ? x: y;}\n\nint main(void){\n long long a,b,c,d;\n scanf(\"%lld %...
CDSS_125210
CDSS
#include <stdio.h> #define INF 100001 int main (void){ int N; int a,b; int count[INF]={};//???????????°???????§????????????????????????£?????????????????° int i,max=0; scanf("%d", &N); while(N){ scanf("%d %d",&a ,&b); for(a--;a!=b;a++){ // printf("%d %d\n", a, b)...
996
memory_bytes
{'s_id': 's932191594', 'p_id': 'p01448', 'u_id': 'u039051620', 'date': '1502352369', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1960', 'memory': '996', 'code_size': '728'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define INF 100001\n\nint main (void){\n int N;\n int a,b;\n int count[INF]={};//???????????°???????§????...
CDSS_438984
CDSS
#include <stdio.h> int main(){ int r; double c; scanf("%d",&r); c = 2*3.141592653589793*r; printf("%lf", c); return 0; }
1,752
memory_bytes
{'s_id': 's983640104', 'p_id': 'p02705', 'u_id': 'u218883826', 'date': '1587347773', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1752', 'code_size': '130'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 \nint r;\ndouble c;\nscanf(\"%d\",&r);\n\nc = 2*3.141592653589793*r;\n\nprintf(\"%lf\", c);\n\n ...
CDSS_573401
CDSS
//gcc 5.4.0 #include <stdio.h> int main(void) { int R, G, B, N; int i, j, k; int cnt = 0; scanf("%d %d %d %d", &R, &G, &B, &N); for(i = 0; i <= (int)(N/R); i++){ for(j = 0; j <= (int)((N-i*R)/G); j++){ int rest = N - i*R - j*G; if(rest % B == 0){ cn...
128
memory_bytes
{'s_id': 's331653676', 'p_id': 'p03048', 'u_id': 'u269318751', 'date': '1557625650', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '14', 'memory': '128', 'code_size': '380'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//gcc 5.4.0\n\n#include <stdio.h>\n\nint main(void)\n{\n int R, G, B, N;\n int i, j, k;\n int cnt = 0;\n scanf(\"%d %d %d...
CDSS_93287
CDSS
#include <stdio.h> int main( ){ int c1,c5,c10,c50,c100,c500; scanf("%d%d%d%d%d%d",&c1,&c5,&c10,&c50,&c100,&c500); if(c1*1+c5*5+c10*10+c50*50+c100*100+c500*500>=1000) puts("1"); else puts("0"); return 0; }
584
memory_bytes
{'s_id': 's337731535', 'p_id': 'p00291', 'u_id': 'u267391019', 'date': '1492841717', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', '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>\nint main( ){\n int c1,c5,c10,c50,c100,c500;\n \n scanf(\"%d%d%d%d%d%d\",&c1,&c5,&c10,&c50,&c100,&c500);\n\n if...
CDSS_360163
CDSS
#include <stdio.h> int main(){ int n, m, l; int x, y, k; long sum; int a[100][100], b[100][100]; scanf( "%d %d %d", &n, &m, &l ); for( y=0; y<n; y++ ){ for( x=0; x<m; x++ ){ scanf( "%d", &a[x][y] ); }} for( y=0; y<m; y++ ){ for( x=0; x<l; x++ ){ scanf( "%d", &b[x][y] ); }} for( y=0; y<n; y+...
680
memory_bytes
{'s_id': 's935795441', 'p_id': 'p02414', 'u_id': 'u791203787', 'date': '1490276431', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '680', 'code_size': '512'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n\n#include <stdio.h>\n\n\nint main(){\n\n\tint n, m, l;\n\tint x, y, k;\n\tlong sum;\n\tint a[100][100], b[100][100];\n\n\n\tscanf( ...
CDSS_615074
CDSS
#include<stdio.h> int main(){ int n,t; scanf("%d%d",&n,&t); int i,small=1000,a,b,flag=0; for(i=0;i<n;i++){ scanf("%d%d",&a,&b); if(b<=t){ if(a<small)small=a; flag=1; } } if(flag==0)puts("TLE"); else printf("%d",small); return 0; }
128
memory_bytes
{'s_id': 's878290150', 'p_id': 'p03239', 'u_id': 'u513506770', 'date': '1539151880', '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>\n \nint main(){\n\t\tint n,t;\n\t\tscanf(\"%d%d\",&n,&t);\n\t\tint i,small=1000,a,b,flag=0;\n\t\tfor(i=0;i<n;i++){\n...
CDSS_393984
CDSS
#include <stdio.h> #include <stdlib.h> #define D 365 typedef long long ll; int main() { srand(628); scanf("%*d"); int c[26], s[D][26]; int t[D] = {0}; int bestLasts[D][26] = {0}; ll bestSats[D] = {0}; for (int i = 0; i < 26; i++) { scanf("%d", &c[i]); } for (int i = 0; i < D; i++) { for (int j = 0; j < 26;...
1,816
memory_bytes
{'s_id': 's000277043', 'p_id': 'p02618', 'u_id': 'u030504180', 'date': '1593398140', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '190', 'memory': '1816', 'code_size': '1882'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 D 365\ntypedef long long ll;\nint main() {\n\tsrand(628);\n\tscanf(\"%*d\");\n\tint c...
CDSS_700585
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> #include <math.h> int main(void){ int r, g, b; scanf("%d%d%d", &r, &g, &b); int t = g * 10 + b; if(t % 4 == 0){ printf("YES\n"); }else{ printf("NO\n"); } return 0; }
1,588
memory_bytes
{'s_id': 's497099652', 'p_id': 'p03693', 'u_id': 'u746385710', 'date': '1600386880', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1588', '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#include <string.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include <math.h>\n\nint main(void){\n\n int r,...
CDSS_606893
CDSS
#include <stdio.h> int main(int argc, char *argv[]) { long long count; int i, delta; char s[200001]; int s_len; int b_count; scanf("%s", s); count = 0; b_count = 0; for (i = 0; s[i] != 0; i++) { if (s[i] == 'B') {b_count++;} } s_len = i; for (i--; i > 0; ...
384
memory_bytes
{'s_id': 's962871766', 'p_id': 'p03200', 'u_id': 'u676699191', 'date': '1544926638', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '384', 'code_size': '484'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(int argc, char *argv[])\n{\n long long count;\n int i, delta;\n char s[200001];\n int s_len...
CDSS_159046
CDSS
#include <stdio.h> #include <math.h> int main(void) { int n, v, i, a = 0; scanf("%d", &n); while (n--) { scanf("%d", &v); if (v == 2) { a += 1; } else if (v % 2 == 1) { for (i = 3; i < (int)sqrt(v) + 1; i += 2) { if (v % i == 0) { a -= 1; break; } } a += 1; } } printf("%d\n",...
596
memory_bytes
{'s_id': 's592113201', 'p_id': 'p02257', 'u_id': 'u782850731', 'date': '1379667284', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '596', 'code_size': '337'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tint n, v, i, a = 0;\n\n\tscanf(\"%d\", &n);\n\twhile (n--) {\n\t\tscanf(\"%...
CDSS_217093
CDSS
#include<stdio.h> #define MAX 100000 #define NIL -1 typedef struct{ int parent; int left; int right; }Node; Node T[MAX]; int n; int getDep(int u){ int d=0; while(T[u].parent!=NIL){ u=T[u].parent; d++; } return d; } void print(int u){ int i,c; printf("node %d: parent = %d, depth = %d, ...
3,028
memory_bytes
{'s_id': 's555502836', 'p_id': 'p02279', 'u_id': 'u847268197', 'date': '1546570403', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '3028', 'code_size': '1092'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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#define NIL -1\n\n\ntypedef struct{\n int parent;\n int left;\n int right;\n}Node;\n\nNode T...
CDSS_332627
CDSS
#include <stdio.h> int main(void){ // Your code here! int H,W; while(1){ scanf("%d %d",&H,&W); if( (H+W)==0 )break; for(int j=0; j<H; j++){ for(int i=0; i<W; i++){ printf("#"); } printf("\n"); } printf("\n"); } }
1,928
memory_bytes
{'s_id': 's195590387', 'p_id': 'p02403', 'u_id': 'u738622739', 'date': '1542417044', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1928', 'code_size': '293'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n // Your code here!\n\n int H,W;\n \n while(1){\n scanf(\"%d %d\",&H,&W);\n ...
CDSS_700230
CDSS
#include <stdio.h> long amari = 1e9 + 7; long long int fact(int in){ long long int out=1, i; for(i=1; i<=in; ++i){ out *= i; out = out%amari; } return out; } int main(void){ int n, m; long long int na, ma; scanf("%d%d", &n, &m); if (n-m > 1 || m-n >1) { printf("%d\n", 0); return 0; ...
128
memory_bytes
{'s_id': 's417176787', 'p_id': 'p03681', 'u_id': 'u688522869', 'date': '1498359889', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '128', 'code_size': '468'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nlong amari = 1e9 + 7;\n\nlong long int fact(int in){\n long long int out=1, i;\n for(i=1; i<=in; ++i){\n ou...
CDSS_336986
CDSS
#include <stdio.h> int main(void) { int H = 1, W = 1, i, j; while(H && W) { scanf("%d %d", &H, &W); if (H == 0 && W == 0) { break; } for (i = 0; i < H; i++) { for (j = 0; j < W; j++) { if ((i % 2 == 0 && j % 2 ...
2,052
memory_bytes
{'s_id': 's324629735', 'p_id': 'p02405', 'u_id': 'u150900642', 'date': '1585021520', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '596'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int H = 1, W = 1, i, j;\n while(H && W)\n {\n scanf(\"%d %d\", &H, &W);\n ...
CDSS_517786
CDSS
#include<stdio.h> int main(){ int a,b,result; scanf("%d %d",&a,&b); result=a*b; if(a>=1 && a<=9){ if(b>=1 && b<=9) printf("%d\n",result); else printf("-1\n"); } else printf("-1\n"); return 0; }
128
memory_bytes
{'s_id': 's529350468', 'p_id': 'p02879', 'u_id': 'u356553124', 'date': '1572274782', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '238'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,result;\n scanf(\"%d %d\",&a,&b);\n result=a*b;\n if(a>=1 && a<=9){\n if(b...
CDSS_625390
CDSS
#include<stdio.h> int main(){ int a,b; scanf("%d", &a); scanf("%d", &b); printf("%d\n", a*b-a-b+1); return 0; }
128
memory_bytes
{'s_id': 's891808698', 'p_id': 'p03280', 'u_id': 'u156327988', 'date': '1534643191', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '125'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n int a,b;\n scanf(\"%d\", &a);\n scanf(\"%d\", &b);\n\n printf(\"%d\\n\", a*b-a-b+1);\n\n retur...
CDSS_514257
CDSS
#include<stdio.h> int main() { int r,i; scanf("%d",&r); printf("%d",r*r); return 0; }
128
memory_bytes
{'s_id': 's750300346', 'p_id': 'p02859', 'u_id': 'u353919145', 'date': '1583273706', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '103'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int r,i;\n scanf(\"%d\",&r);\n printf(\"%d\",r*r);\n return 0;\n}\n\nPredict its memo...
CDSS_69690
CDSS
solve(i,j){ m[i][j]='0'; if(m[i][j-1]-'0')solve(i,j-1); if(m[i][j-2]-'0')solve(i,j-2); if(m[i][j-3]-'0')solve(i,j-3); if(m[i-1][j]-'0')solve(i-1,j); if(m[i-2][j]-'0')solve(i-2,j); if(m[i-3][j]-'0')solve(i-3,j); if(m[i+1][j]-'0')solve(i+1,j); if(m[i+2][j]-'0')solve(i+2,j); if(m[i+3][j]-'0')solve(i+3...
0
memory_bytes
{'s_id': 's974032700', 'p_id': 'p00071', 'u_id': 'u300645821', 'date': '1247503711', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '728'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\nsolve(i,j){\n m[i][j]='0';\n if(m[i][j-1]-'0')solve(i,j-1);\n if(m[i][j-2]-'0')solve(i,j-2);\n if(m[i][j-3]-'0')solve(i,j-3);\n ...
CDSS_40933
CDSS
#include <stdio.h> int main(void) { int a,b,c,d,t,p; while(scanf("%d",&t) != EOF){ p = 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 == t){ p = p + 1; } } } } } printf("%d\n",p); ...
596
memory_bytes
{'s_id': 's570347503', 'p_id': 'p00008', 'u_id': 'u444407884', 'date': '1441172316', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '345'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 a,b,c,d,t,p;\n\t\twhile(scanf(\"%d\",&t) != EOF){\n\t\t\tp = 0;\n\t\t\tfor (a = 0;a <= 9...
CDSS_112505
CDSS
char*p;i,d;main(c,s){for(p=s;c=~getchar();)~c<33?*p++=48+d,d=0,~c<11?*p++=10:0:d++;p[-5]=0;i=!puts(s);}
0
memory_bytes
{'s_id': 's833259640', 'p_id': 'p00628', 'u_id': 'u399107199', 'date': '1295180506', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '103'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nchar*p;i,d;main(c,s){for(p=s;c=~getchar();)~c<33?*p++=48+d,d=0,~c<11?*p++=10:0:d++;p[-5]=0;i=!puts(s);}\nPredict its memory footprint....
CDSS_92595
CDSS
#include<stdio.h> main(){ int n,ba=0,ban=0; int hito[10]={0}; char mei; int a,b,c,d,e; while(1){ scanf("%d",&n); if(n==0)break; for(a=0;a<100;a++){ scanf(" %c",&mei); if(mei=='M'){ hito[ban]=hito[ban]+1; ...
600
memory_bytes
{'s_id': 's064306620', 'p_id': 'p00275', 'u_id': 'u082259412', 'date': '1432538663', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '1064'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n #include<stdio.h> \n main(){ \n int n,ba=0,ban=0; \n int hito[10]={0}; \n char mei; \n int a,b,c,d,e; ...
CDSS_653199
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...
1,920
memory_bytes
{'s_id': 's342863316', 'p_id': 'p03403', 'u_id': 'u721060623', 'date': '1522026431', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '21', 'memory': '1920', 'code_size': '3302'}
[ { "content": "Your task is to predict the memory 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_132169
CDSS
//Matrix Chain Multiplication #include<stdio.h> #define N 100 #define INF -1 int arr[N],imp[N][N]; int min(int x,int y) { //compare a minimum number if(x<0) return y; else if( y < 0 ) return x; else if( x < y ) return x; else return y; } int main() { int i,j,k,l,n,res; //input data scanf("%d",&...
2,112
memory_bytes
{'s_id': 's764637606', 'p_id': 'p02234', 'u_id': 'u448320468', 'date': '1580267953', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '802'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//Matrix Chain Multiplication\n\n#include<stdio.h>\n#define N 100\n#define INF -1\n\nint arr[N],imp[N][N];\n\nint min(int x,int y)\n{\...
CDSS_563869
CDSS
#include <stdio.h> int main(void){ int n,m,a,i; scanf("%d%d",&n,&m); int dp[n+2],broken[n+1]; for(i=0;i<n;i++){ broken[i]=0; dp[i]=0; } for(i=0;i<m;i++){ scanf("%d",&a); broken[a] = 1; } dp[n]=1; dp[n+1]=0; const long MOD=1000000007; for(i=n-1;...
896
memory_bytes
{'s_id': 's642781826', 'p_id': 'p03013', 'u_id': 'u592248346', 'date': '1590930173', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '896', 'code_size': '433'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int n,m,a,i;\n scanf(\"%d%d\",&n,&m);\n int dp[n+2],broken[n+1];\n for(i=0;i<n;i++){...
CDSS_589214
CDSS
#include<stdio.h> int main(){ int hcell,wcell,hpaint,wpaint,nblack,nwhite; //順にマス行、マス列、塗る行、塗る列、塗られたマス、白いマス scanf("%d %d",&hcell,&wcell); scanf("%d %d",&hpaint,&wpaint); nblack = (wcell*hpaint) + (hcell*wpaint) - (hpaint * wpaint); nwhite = (hcell*wcell) - nblack; printf("%d\n",nwhite); return 0; }
128
memory_bytes
{'s_id': 's722111534', 'p_id': 'p03101', 'u_id': 'u218036413', 'date': '1552431424', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '372'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n int hcell,wcell,hpaint,wpaint,nblack,nwhite;\n //順にマス行、マス列、塗る行、塗る列、塗られたマス、白いマス\n scanf(\"%d %d\",&...
CDSS_219039
CDSS
#include<stdio.h> #define MAX 100000 #define N -1 typedef struct{ int p,l,r; }Node; Node T[MAX]; int n,depth[MAX],height[MAX]; /*void printchild(int x){ int t = T[x].l; int i=0; for(;t!=N;t=T[t].r){ if(i!=0)printf(", "); i=1; printf("%d",t); } }*/ int getdegree(int x){ int n=0; if(T[x].l!=...
2,108
memory_bytes
{'s_id': 's501305101', 'p_id': 'p02280', 'u_id': 'u826160136', 'date': '1547181316', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '1510'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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#define N -1\n\ntypedef struct{\n int p,l,r;\n}Node;\n\nNode T[MAX];\nint n,depth[MAX],height[...
CDSS_100520
CDSS
#include <stdio.h> int main(){ int k,n,a[100000],i,sum,max; while (1) { scanf("%d %d",&n,&k); if (n==0&&k==0) { return 0; } for (i=0; i<n; i++) { scanf("%d",&a[i]); } sum=0; for (i=0; i<k; i++) { sum+=a[i]; } ...
988
memory_bytes
{'s_id': 's229077042', 'p_id': 'p00439', 'u_id': 'u167460441', 'date': '1415001179', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '988', '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\nint main(){\n int k,n,a[100000],i,sum,max;\n while (1) {\n scanf(\"%d %d\",&n,&k);\n if (n==...
CDSS_135655
CDSS
#include <stdio.h> int main(){ int i,j,n,u,k,v,g[105][105]; 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); for(j=0;j<k;j++){ scanf("%d",&v); g[u-1][v-1]=1; } } for(i=0;i<n;i++){ for(j=0;j<n;j++){ if(j) printf(" ...
2,044
memory_bytes
{'s_id': 's052030004', 'p_id': 'p02237', 'u_id': 'u460248758', 'date': '1580190150', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '398'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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,u,k,v,g[105][105];\n scanf(\"%d\",&n);\n for(i=0;i<n;i++){\n for(j=0;j<n;j++) g[i]...
CDSS_494439
CDSS
/* AUTHOR: AKASH JAIN * EMAIL: akash19jain@gmail.com * ID: akash19jain * DATE: 03-02-2020 16:21:07 */ // #include<algorithm> // #include <bits/stdc++.h> // using namespace std; #include<stdio.h> #include<math.h> #include<string.h> #include<stdlib.h> #include<stdbool.h> #include<ctype.h> #define SC1(...
128
memory_bytes
{'s_id': 's908729462', 'p_id': 'p02784', 'u_id': 'u956865570', 'date': '1580755928', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '128', 'code_size': '3417'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/* AUTHOR: AKASH JAIN\n* EMAIL: akash19jain@gmail.com\n* ID: akash19jain \n* DATE: 03-02-2020 16:21:07\n*/\n\n\n// #inc...
CDSS_668099
CDSS
#include<stdio.h> #include<ctype.h> int main() { int a,b,c,d; scanf("%d%d%d%d",&a,&b,&c,&d); if(a+b>c+d){ printf("Left"); } else if(a+b<c+d){ printf("Right"); } else{ printf("Balanced"); } }
128
memory_bytes
{'s_id': 's121282061', 'p_id': 'p03477', 'u_id': 'u863370423', 'date': '1576485864', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '208'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<ctype.h>\n\n\nint main()\n{\n\n\tint a,b,c,d;\n\tscanf(\"%d%d%d%d\",&a,&b,&c,&d);\n\tif(a+b>c+d){\n\t\tpri...
CDSS_287851
CDSS
#include<stdio.h> void swap(int *a, int *b){ int tmp = *a; *a = *b; *b = tmp; } int main() { int a, b, c; scanf("%d %d %d", &a, &b, &c); if(a > b){ swap(&a, &b); } if(a > c){ swap(&a, &c); } if(b > c){ swap(&b, &c); } printf("%d %d %d\n", a, b, c); return 0; }
596
memory_bytes
{'s_id': 's417013988', 'p_id': 'p02393', 'u_id': 'u045912041', 'date': '1393851085', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '289'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 swap(int *a, int *b){\n\tint tmp = *a;\n\t*a = *b;\n\t*b = tmp;\n}\n\nint main()\n{\n\tint a, b, c;\n\tscanf...
CDSS_350386
CDSS
#include<stdio.h> int main(void) { int n, m, x[100][100], y[100], a, b, z[100], k; scanf("%d %d", &n, &m); for (a = 0; a < n; a++) { z[a] = 0; } for (a = 0; a < n; a++) { for (b = 0; b < m; b++) { scanf("%d", &x[a][b]); } } for (a = 0; a < m; a++) { scanf("%d", &y[a]); } for (a = 0; ...
2,104
memory_bytes
{'s_id': 's707733068', 'p_id': 'p02410', 'u_id': 'u808927824', 'date': '1531905541', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '501'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n\n{\n\tint n, m, x[100][100], y[100], a, b, z[100], k;\n\t\n\tscanf(\"%d %d\", &n, &m);\n\tfor (a...
CDSS_534248
CDSS
#include <stdio.h> int main() { int N, H[100005]; scanf("%d", &N); for(int i=0; i<N; i++) scanf("%d", H+i); int max = 0; for (int i=0; i<N-1; i++) { int count = 0; for (int j=i; j<N-1; j++) { if (H[j] >= H[j+1]) { count++; } else { i=j; ...
512
memory_bytes
{'s_id': 's940541780', 'p_id': 'p02923', 'u_id': 'u863598326', 'date': '1567369754', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '14', 'memory': '512', 'code_size': '468'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int N, H[100005];\n \n scanf(\"%d\", &N);\n for(int i=0; i<N; i++) scanf(\"%d\", H+i);\n \n...
CDSS_307367
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int a, b, c, i, n, I=0; scanf("%d %d %d", &a, &b, &c); for(i = a ; i <= b ; i++) { n = c % i; if(n == 0) { I++; } } printf("%d\n",I); return 0; }
2,144
memory_bytes
{'s_id': 's342576266', 'p_id': 'p02398', 'u_id': 'u419229878', 'date': '1568811686', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '217'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main()\n{\n\tint a, b, c, i, n, I=0;\n\tscanf(\"%d %d %d\", &a, &b, &c);\n\tfor(i = a ;...
CDSS_218968
CDSS
#include <stdio.h> #define MAX 10000 #define NIL -1 typedef struct { int parent, left, right;} Node; Node T[MAX]; int n, D[MAX], H[MAX]; void setDepth(int u,int d) { if(u == NIL) return; D[u] = d; setDepth(T[u].left, d+1); setDepth(T[u].right,d+1); } int setHeight(int u) { int h1 = 0, h2 = 0; if(T[u].l...
2,048
memory_bytes
{'s_id': 's564562219', 'p_id': 'p02280', 'u_id': 'u266663425', 'date': '1576480299', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '1641'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 10000\n#define NIL -1\n\ntypedef struct { int parent, left, right;} Node;\n\nNode T[MAX];\nint n, D[...
CDSS_682797
CDSS
#include <stdio.h> int main(){ int a,r=0; scanf("%d",&a); for(;a;a/=10)r+=a%10; printf("%d",r); return 0; }
128
memory_bytes
{'s_id': 's685223901', 'p_id': 'p03587', 'u_id': 'u855016901', 'date': '1561521200', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '117'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int a,r=0;\n scanf(\"%d\",&a);\n for(;a;a/=10)r+=a%10;\n printf(\"%d\",r);\n return 0;\n}\nPred...
CDSS_567408
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int N; int M; scanf("%d", &N); scanf("%d", &M); int *k = malloc((N + 1) * sizeof(int)); int **s = malloc((M + 1) * sizeof(int*)); for (int i = 1; i <= M; i++) { scanf("%d", &k[i]); s[i] = malloc((k[i] + 1) * sizeof(int)); ...
256
memory_bytes
{'s_id': 's412082710', 'p_id': 'p03031', 'u_id': 'u619677540', 'date': '1590102497', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '1147'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 int N;\n int M;\n\n scanf(\"%d\", &N);\n scanf(\"%d\", &M);\n ...
CDSS_316623
CDSS
#include <stdio.h> int main(void){ double r; double are,circ,pi; scanf("%lf",&r); pi=3.141592653589; are=r*r*pi; circ=2*r*pi; printf("%lf %lf\n",are,circ); return 0; }
2,104
memory_bytes
{'s_id': 's005438432', 'p_id': 'p02400', 'u_id': 'u702242181', 'date': '1527483978', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '206'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 double r;\n double are,circ,pi;\n scanf(\"%lf\",&r);\n pi=3.141592653589;\n are=r...
CDSS_674623
CDSS
//#define DEBUG #include<stdio.h> #include<string.h> #include<stdlib.h> #include<math.h> #define MAX_T 200002 #define MAX_N 100000 int main() { #ifdef DEBUG #endif int N, C; int s[MAX_N], t[MAX_N], c[MAX_N]; int tt[MAX_T] = { 0 }; scanf("%d %d", &N, &C); int i,j; for (i = 0; i < N; i++) { scanf("%d %d %d", &s...
2,944
memory_bytes
{'s_id': 's314545309', 'p_id': 'p03504', 'u_id': 'u539339654', 'date': '1512374928', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '37', 'memory': '2944', 'code_size': '1517'}
[ { "content": "Your task is to predict the memory 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 DEBUG\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<math.h>\n#define MAX_T 200002\n#define MAX_N 1000...
CDSS_172276
CDSS
#include<stdio.h> int main(void){ int N; scanf("%d",&N); int i,A[N+1]; for(i=0;i<N;i++){ scanf("%d",&A[i]); } int j,k,minj,t,count; count=0; for(j=0;j<N;j++) { minj=j; for(k=j;k<N;k++) { if(A[k]<A[minj]){ minj=k; } } t=A[j]; A[j]=A[minj]; A[minj]=t; if(A[j]!=A[minj]) { count...
2,092
memory_bytes
{'s_id': 's953255628', 'p_id': 'p02260', 'u_id': 'u393996621', 'date': '1569745481', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2092', 'code_size': '550'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\tint N;\n\tscanf(\"%d\",&N);\n\tint i,A[N+1];\n\t\n\tfor(i=0;i<N;i++){\n\t\tscanf(\"%d\",&A[i])...
CDSS_297763
CDSS
#include <stdio.h> int main() { int i = 1, input; scanf("%d\n", &input); while (input != 0) { printf("Case %d: %d\n", i, input); i++; scanf("%d\n", &input); } return 0; }
1,688
memory_bytes
{'s_id': 's935005414', 'p_id': 'p02396', 'u_id': 'u620516796', 'date': '1515794007', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1688', 'code_size': '220'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n int i = 1, input;\n\n scanf(\"%d\\n\", &input);\n\n while (input != 0) {\n printf...
CDSS_710233
CDSS
/* cat <<EOF >mistaken-paste */ #pragma GCC diagnostic ignored "-Wincompatible-pointer-types" #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> #define BIG 2000000007 #define MOD 1000000007 typedef uint64_t ull; typedef int64_t sll; #define N_MAX...
256
memory_bytes
{'s_id': 's764166385', 'p_id': 'p03734', 'u_id': 'u238041222', 'date': '1514330430', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '256', 'code_size': '8477'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n/*\ncat <<EOF >mistaken-paste\n*/\n\n#pragma GCC diagnostic ignored \"-Wincompatible-pointer-types\"\n\n#include <stdio.h>\n#include <...
CDSS_673620
CDSS
#include <stdio.h> int main(void){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a*b>=c){printf("%d",c);} else{printf("%d",a*b);} return 0; }
128
memory_bytes
{'s_id': 's517137474', 'p_id': 'p03501', 'u_id': 'u129632905', 'date': '1550637331', '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(void){\nint a,b,c;\n scanf(\"%d %d %d\",&a,&b,&c);\n if(a*b>=c){printf(\"%d\",c);}\n else{printf(\"%d\...
CDSS_420283
CDSS
#include<stdio.h> #include<string.h> int main(void){ int a, b, c, k; scanf("%d%d%d%d", &a, &b, &c, &k); if(a>=k){ printf("%d\n", k); }else if(a+b>=k){ printf("%d\n", a); }else{ printf("%d\n", a-(k-a-b)); } return 0; }
1,732
memory_bytes
{'s_id': 's823173675', 'p_id': 'p02682', 'u_id': 'u148856092', 'date': '1589219434', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1732', 'code_size': '243'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main(void){\n int a, b, c, k;\n scanf(\"%d%d%d%d\", &a, &b, &c, &k);\n if(a>=k){\n pr...
CDSS_207478
CDSS
#include <stdio.h> #include <stdlib.h> int main(){ int i,j,n,nn,k=10000,*A,*B,*C; scanf("%d",&n); nn=n; A = malloc(sizeof(int)*n+2); i=1; while(nn--){ scanf("%d",(A+i)); i++; } B = malloc(sizeof(int)*n+2); C = malloc(sizeof(int)*k+2); for(i=0; i<=k; i++){ C[i] = 0; } for(j=1; j<=n; j++){ C[A[j]]++...
16,268
memory_bytes
{'s_id': 's021037326', 'p_id': 'p02275', 'u_id': 'u317403083', 'date': '1432826189', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '390', 'memory': '16268', 'code_size': '521'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(){\n\tint i,j,n,nn,k=10000,*A,*B,*C;\n\tscanf(\"%d\",&n);\n\tnn=n;\n\tA = malloc(s...
CDSS_222429
CDSS
#include<stdio.h> #include<stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL Node root; Node treeMinimum(Node x){ } Node treeMaximum(Node x){ } Node treeSearch(Node u, int k){ } Node treeSuccessor(Node x){ } ...
25,180
memory_bytes
{'s_id': 's011852031', 'p_id': 'p02283', 'u_id': 'u289274598', 'date': '1578553908', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '360', 'memory': '25180', 'code_size': '1598'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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>\nstruct node{\n struct node *right;\n struct node *left;\n struct node *parent;\n int key;\...
CDSS_427033
CDSS
#include <stdio.h> int main() { int i; int n, m; int a; scanf("%d", &a); scanf("%d %d", &n, &m); for(i = n; i <= m; i++) { if(i % a == 0) { printf("OK"); return 0; } } printf("NG"); }
1,728
memory_bytes
{'s_id': 's358879211', 'p_id': 'p02693', 'u_id': 'u297476130', 'date': '1588468447', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1728', 'code_size': '214'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n\tint i;\n\tint n, m;\n\tint a;\n\t\n\tscanf(\"%d\", &a);\n\tscanf(\"%d %d\", &n, &m);\n\t\n\tfor...
CDSS_382601
CDSS
#include <stdio.h> int main(void) { long ans=0,N,ai,i,max=0; scanf("%ld",&N); for(i=0;i<N;i++){ scanf("%ld",&ai); if(ai>max) max=ai; else if(ai<max) ans+=(max-ai); } printf("%ld\n",ans); return 0; }
1,704
memory_bytes
{'s_id': 's077458078', 'p_id': 'p02578', 'u_id': 'u017889047', 'date': '1598125922', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '35', 'memory': '1704', 'code_size': '238'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n long ans=0,N,ai,i,max=0;\n scanf(\"%ld\",&N);\n for(i=0;i<N;i++){\n \tscanf(\"%l...
CDSS_205520
CDSS
#include <stdio.h> #include <math.h> typedef struct Point{ double x; double y; }Point_t; void kock(int n, Point_t a,Point_t b){ if(n == 0)return; Point_t s, t, u; double th = M_PI * 60.0 / 180.0; s.x = (2.0 * a.x + 1.0 * b.x) /3.0; s.y = (2.0 * a.y + 1.0 * b.y) /3.0; t.x = (1.0 * a.x + 2.0 * b.x) /3.0; t...
2,044
memory_bytes
{'s_id': 's894902896', 'p_id': 'p02273', 'u_id': 'u458534054', 'date': '1574575496', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '845'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\n\ntypedef struct Point{ \ndouble x; \ndouble y; \n}Point_t;\n\nvoid kock(int n, Point_t a,Poi...
CDSS_289122
CDSS
#include <stdio.h> #include <stdlib.h> // cl /EHsc itp1_2_d.c // Circle in a Rectangle int main(int arc, char *argv[]) { 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("Yes\n"); } else { printf("No\n"); } return 0; }
584
memory_bytes
{'s_id': 's319823799', 'p_id': 'p02394', 'u_id': 'u774532206', 'date': '1425617981', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '313'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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// cl /EHsc itp1_2_d.c\n// Circle in a Rectangle\nint main(int arc, char *argv[])\n{\n\tint...
CDSS_415541
CDSS
#include<stdio.h> #include<string.h> int main(){ char k[100]; int s; char t[100]; scanf("%d",&s); scanf("%s",k); if(strlen(k)<=s){ printf("%s",k); }else{ strncpy(t,k,s); t[s]='\0'; printf("%s...",t); } return 0; }
1,732
memory_bytes
{'s_id': 's304768750', 'p_id': 'p02676', 'u_id': 'u412896541', 'date': '1594753131', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1732', '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>\n#include<string.h>\n\nint main(){\n char k[100];\n int s;\n char t[100];\n scanf(\"%d\",&s);\n scanf(\"%s...
CDSS_136537
CDSS
#include <stdio.h> #define MAX 101 void dfs(); void reVisit(int); int Adj[MAX][MAX]; int D[MAX]; int F[MAX]; int n, time; int main() { int i, j; int u, v, k; scanf("%d", &n); for(i = 1; i <= n; i++) { for(j = 1; j <= n; j++) { Adj[i][j] = 0; } } for(i = 1; i <= n; i++) { scanf...
640
memory_bytes
{'s_id': 's345968394', 'p_id': 'p02238', 'u_id': 'u408284582', 'date': '1468378987', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '876'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 101\n\nvoid dfs();\nvoid reVisit(int);\n\nint Adj[MAX][MAX];\nint D[MAX];\nint F[MAX];\nint n, time;\n...
CDSS_647692
CDSS
#include<stdio.h> #define size 200 int main( ) { int n , num[size] , i , j , count= 0 , sum , x , max , k ; scanf("%d%d" , &n , &x); for( i = 1 , sum = 0; i <= n ; i++) { scanf("%d" , &num[i] ); sum += num[i] ; } if( (sum-x) == 0) printf("%d\n" , n); ...
2,120
memory_bytes
{'s_id': 's890104346', 'p_id': 'p03370', 'u_id': 'u018679195', 'date': '1601281555', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '12', 'memory': '2120', 'code_size': '786'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define size 200\n\n\nint main( )\n{\n int n , num[size] , i , j , count= 0 , sum , x , max , k ;\n \n sca...
CDSS_103667
CDSS
#include<stdio.h> int main(){ int sum, in, i; while(1){ scanf("%d",&sum); if(sum == 0){ return 0; } for(i = 0; i < 9; i++){ scanf("%d",&in); sum -= in; } printf("%d\n",sum); } }
0
memory_bytes
{'s_id': 's099833284', 'p_id': 'p00466', 'u_id': 'u303602145', 'date': '1316769203', '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:\n#include<stdio.h>\n\nint main(){\n\n int sum, in, i;\n\n\n while(1){\n scanf(\"%d\",&sum);\n\n if(sum == 0){\n return 0;\...
CDSS_443596
CDSS
#include<stdio.h> int main() { int n,a,x,i,cnt; int b[100000]; scanf("%d %d",&n,&a); for(i=0;i<a;i++) { scanf("%d",&b[i]); } cnt=0; for(i=0;i<a;i++) { cnt=cnt+b[i]; } x=n-cnt; if(x>=0) printf("%d",x); else printf("-1"); return 0; }
1,752
memory_bytes
{'s_id': 's555235951', 'p_id': 'p02706', 'u_id': 'u402887661', 'date': '1587346220', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '1752', 'code_size': '298'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int n,a,x,i,cnt;\n int b[100000];\n scanf(\"%d %d\",&n,&a);\n for(i=0;i<a;i++)\n {\n ...
CDSS_303655
CDSS
#include<stdio.h> int main(){ for(int i=0 ; i< 3000 ; i++){ int x, y; scanf("%d%d", &x, &y); if(x==0 && y==0) break; if(x<=y)printf("%d %d\n", x,y); else if(x>y)printf("%d %d\n", y,x); } return 0; }
1,980
memory_bytes
{'s_id': 's975532979', 'p_id': 'p02397', 'u_id': 'u185452862', 'date': '1572517261', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1980', 'code_size': '270'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n for(int i=0 ; i< 3000 ; i++){\n int x, y;\n scanf(\"%d%d\", &x, &y);\n \n ...
CDSS_470708
CDSS
#include <stdio.h> int main(void){ int K,N; int A[2*1000000]; scanf("%d%d",&K,&N); int i; for(i=0;i<N;i++){ scanf("%d",&A[i]); } int max = 0; for(i=0;i<N-1;i++){ if(max<A[i+1]-A[i]){ max = A[i+1]-A[i]; } } if(max<K-A[N-1]+A[0]){ ...
2,944
memory_bytes
{'s_id': 's618152516', 'p_id': 'p02725', 'u_id': 'u792455295', 'date': '1585449080', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '22', 'memory': '2944', 'code_size': '388'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 K,N;\n int A[2*1000000];\n scanf(\"%d%d\",&K,&N);\n \n int i;\n for(i=0;i<...
CDSS_569043
CDSS
#include <stdio.h> int main(){ int r,d,x; scanf("%d %d %d",&r,&d,&x); for(int i=0;i<10;i++){ x=r*x-d; printf("%d\n",x); } return 0; }
128
memory_bytes
{'s_id': 's316262003', 'p_id': 'p03036', 'u_id': 'u419505368', 'date': '1558832841', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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(){\n int r,d,x;\n scanf(\"%d %d %d\",&r,&d,&x);\n for(int i=0;i<10;i++){\n x=r*x-d;\n printf(\...
CDSS_129557
CDSS
#include<stdio.h> int F(int); int Fib[45]; int main() { int n,i; for(i=0;i<45;i++)Fib[i]=0; scanf("%d",&n); printf("%d\n",F(n)); return 0; } int F(int n) { if(n==0||n==1)return Fib[n]=1; if(Fib[n]!=0)return Fib[n]; return Fib[n]=F(n-1)+F(n-2); }
596
memory_bytes
{'s_id': 's740240783', 'p_id': 'p02233', 'u_id': 'u064467943', 'date': '1435238533', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '266'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 F(int);\nint Fib[45];\nint main()\n{\n int n,i;\n for(i=0;i<45;i++)Fib[i]=0;\n scanf(\"%d\",&n);\n printf...
CDSS_474883
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int acs(const void *a, const void *b) { return *(int*)a - *(int*)b; } /* 1,2,3,4.. */ int des(const void *a, const void *b) { return *(int*)b - *(int*)a; } /* 8,7,6,5.. */ int cmp_char(const void *a, const void *b) { return *(char*)a -...
128
memory_bytes
{'s_id': 's374365823', 'p_id': 'p02741', 'u_id': 'u391667116', 'date': '1584234102', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '875'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\nint acs(const void *a, const void *b) { \n return *(...
CDSS_30515
CDSS
#include<stdio.h> main() { int n, a, b, c, cn;//(cn= テδ、テつサテつ甘δ」テつつョn) scanf("%d", &n);//the number of date set for(cn=0 ; cn < n ; cn++){ scanf("%d %d %d", &a, &b, &c); if(a*a== b*b +c*c || b*b== a*a + c*c || c*c == a*a + b*b){ printf("YES\n"); } else{printf("NO\n"); } ...
0
memory_bytes
{'s_id': 's289693535', 'p_id': 'p00003', 'u_id': 'u125634664', 'date': '1306560359', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', '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#include<stdio.h>\nmain()\n{\n int n, a, b, c, cn;//(cn= テδ、テつサテつ甘δ」テつつョn)\n\n scanf(\"%d\", &n);//the number of date set\n\n for(c...
CDSS_231323
CDSS
#include <math.h> #include <stdio.h> #define EPS 1e-10 int rel_s_s( double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4, double *x, double *y ) { double numer = ( x3 - x1 ) * ( y4 - y3 ) - ( x4 - x3 ) * ( y3 - y1 ); double denom = ( x2 - x1 ) * ( y4 - y3 ) - ( x4 - x3 ) * ( y2 - y...
640
memory_bytes
{'s_id': 's505411228', 'p_id': 'p02294', 'u_id': 'u340315059', 'date': '1384576306', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '640', 'code_size': '1653'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <math.h>\n#include <stdio.h>\n\n#define EPS 1e-10\n\nint rel_s_s( double x1, double y1, double x2, double y2, double x3, doub...
CDSS_652958
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int compare_int(const void *a, const void *b) { return *(int*)a - *(int*)b; } int main() { int N; int A[100020] = {}; int i,j; int number; char s[10]; int cnt_sum=0; int cnt=0; int cnt_a=0; int cnt_b=0; int cnt...
1,536
memory_bytes
{'s_id': 's016414940', 'p_id': 'p03401', 'u_id': 'u301843562', 'date': '1522037885', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '1536', 'code_size': '1106'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 compare_int(const void *a, const void *b)\n{\n...
CDSS_444703
CDSS
#include <stdio.h> int main() { int i, N, A[200001]; scanf("%d", &N); for (i = 2; i <= N; i++) scanf("%d", &(A[i])); int count[200001] = {}; for (i = 2; i <= N; i++) count[A[i]]++; for (i = 1; i <= N; i++) printf("%d\n", count[i]); fflush(stdout); return 0; }
3,260
memory_bytes
{'s_id': 's844289371', 'p_id': 'p02707', 'u_id': 'u943800443', 'date': '1596498306', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '47', 'memory': '3260', 'code_size': '270'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n\tint i, N, A[200001];\n\tscanf(\"%d\", &N);\n\tfor (i = 2; i <= N; i++) scanf(\"%d\", &(A[i]));\...
CDSS_293547
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 && (x + r) <= w) && ((y - r) >= 0 && (y + r) <= h)) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
2,140
memory_bytes
{'s_id': 's726140276', 'p_id': 'p02394', 'u_id': 'u445993369', 'date': '1574842395', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2140', 'code_size': '266'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\n if (((x - r) >= ...
CDSS_30254
CDSS
#include<stdio.h> #include<stdlib.h> /* ????§???¢?????????????????????????´?????????????????§??????? */ typedef struct{ int a; int b; int c; }SIDE; /* ????????????????????£?¨? */ void swap(int* x, int* y); /* main??¢??° */ int main(void){ SIDE* side = NULL; int n, temp, i; scanf("%d", &n); side = (SIDE*)mall...
1,780
memory_bytes
{'s_id': 's278290105', 'p_id': 'p00003', 'u_id': 'u575376654', 'date': '1509190948', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1780', 'code_size': '889'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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/* ????§???¢?????????????????????????´?????????????????§??????? */\ntypedef struct{\n\tint a;...
CDSS_412510
CDSS
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #include<stdbool.h> #include<assert.h> typedef long long ll; typedef long double ld; #define rep(i,l,r)for(ll i=(l);i<(r);i++) #define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k)) #define rrep(i,l,r)for(ll i=(l);i>=(r);i--) #define INF (1LL<<60) #defin...
3,780
memory_bytes
{'s_id': 's192734374', 'p_id': 'p02660', 'u_id': 'u004279520', 'date': '1591348503', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '130', 'memory': '3780', 'code_size': '5212'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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#include<string.h>\n#include<stdbool.h>\n#include<assert.h>\ntypedef long lon...
CDSS_76270
CDSS
#include <stdio.h> #include <string.h> #define MAX_LENGTH 1001 int main(void) { int i, n; char sentence[MAX_LENGTH + 1]; char *hoshino; scanf("%d\n", &n); for (i = 0; i < n; i++) { hoshino = sentence; fgets(sentence, MAX_LENGTH + 1, stdin); while ((hoshino = strstr(hoshino, "Hoshino")) != NULL) ho...
608
memory_bytes
{'s_id': 's482650493', 'p_id': 'p00101', 'u_id': 'u086046856', 'date': '1363791279', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', 'code_size': '380'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\n#define MAX_LENGTH 1001\n\nint main(void) \n{\n\tint i, n;\n\tchar sentence[MAX_LENGTH + 1]...
CDSS_39051
CDSS
#include <stdio.h> #include <string.h> int main(void) { char str[21] = {0}; int i; scanf("%s", str); for (i = strlen(str) - 1; i >= 0; i--) { printf("%c", str[i]); } printf("\n"); return 0; }
520
memory_bytes
{'s_id': 's776159234', 'p_id': 'p00006', 'u_id': 'u820929609', 'date': '1377618745', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '520', 'code_size': '212'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(void)\n{\n char str[21] = {0};\n int i;\n\n scanf(\"%s\", str);\n for (i = str...
CDSS_362936
CDSS
#include<stdio.h> char a[1300]; int main(void){ int i; fgets(a,1300,stdin); i = 0; while(a[i] != '\0'){ if(a[i] >= 'A' && a[i] <= 'Z') printf("%c",a[i] + 0x20); else if(a[i] >= 'a' && a[i] <= 'z') printf("%c",a[i] - 0x20); else printf("...
2,108
memory_bytes
{'s_id': 's433162138', 'p_id': 'p02415', 'u_id': 'u217726631', 'date': '1544426623', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', '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>\n \nchar a[1300];\n \nint main(void){\n int i;\n \n fgets(a,1300,stdin);\n \n i = 0;\n while(a[i] != '\\...
CDSS_174866
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> int judge(char *c_d,char *c_o,int *d_d,int *d_o,int N); char delete(char *c,int l); void swap (char *x, char *y); int main() { int N,i,j,flag,tmpi; scanf("%d",&N); char c[N],c_d[N][3],c_b[N][3],c_s[N][3],d[N],tmpc[N]; int d_b[N],d_s[N],d_d[N]; for...
2,052
memory_bytes
{'s_id': 's918344651', 'p_id': 'p02261', 'u_id': 'u483476789', 'date': '1575872709', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '2482'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n\nint judge(char *c_d,char *c_o,int *d_d,int *d_o,int N);\nchar delete(char...
CDSS_720806
CDSS
#include <stdio.h> int main() { int x; scanf("%d", &x); if(x < 1200){ printf("ABC"); } else { printf("ARC"); } return 0; }
128
memory_bytes
{'s_id': 's325419952', 'p_id': 'p03813', 'u_id': 'u459215900', 'date': '1527811076', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '145'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 scanf(\"%d\", &x);\n\n if(x < 1200){\n printf(\"ABC\");\n } else {\n printf(\"...
CDSS_22277
CDSS
#include <stdio.h> int main () { int a[30]; int i, j, n; for (i = 0; i < 10; ++i) scanf("%d", &a[i]); for (i = 0; i < 10; ++i) { for (j = i + 1; j < 10; ++j) { if (a[i] < a[j]) { n = a[i...
2,048
memory_bytes
{'s_id': 's962895277', 'p_id': 'p00001', 'u_id': 'u011621222', 'date': '1545326790', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '534'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n int main ()\n {\n\n int a[30];\n\n int i, j, n;\n for (i = 0; i < 10; ++i)\n\t sc...
CDSS_592716
CDSS
#include <stdio.h> int main(void){ char S[1000100]; scanf("%s",S); int i; int a = 0; int b = 0; for(i = 0; S[i] != '\0';i++){ if(S[i] == '0'){ a++; } else { b++; } } int ans; if(a >= b){ ans = b; } else { ans...
256
memory_bytes
{'s_id': 's367228536', 'p_id': 'p03107', 'u_id': 'u686007983', 'date': '1551649861', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '371'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n \n char S[1000100];\n \n scanf(\"%s\",S);\n \n int i;\n int a = 0;\n int b = 0...
CDSS_21219
CDSS
#include <stdio.h> int main(void) { int i, j; for (i = 1; i < 10; i++) for (j = 1; j < 10; j++) printf("%dx%d=%d\n", i, j, i * j); return 0; }
524
memory_bytes
{'s_id': 's364381106', 'p_id': 'p00000', 'u_id': 'u379719265', 'date': '1362445053', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '161'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n int i, j;\n\n for (i = 1; i < 10; i++)\n for (j = 1; j < 10; j++)\n printf(\"%dx%d=...
CDSS_118216
CDSS
#include <stdio.h> int main(void){ int x,y,s; while(scanf("%d %d %d", &x, &y, &s),x||y||s){ int i,j,max; max=0; for(i=1;i<s;i++){ for(j=1;j+i<=s;j++){ if((i*(100+x))/100+(j*(100+x))/100==s){ if(max<(i*(100+y))/100+(j*(100+y))/100){ ...
600
memory_bytes
{'s_id': 's100767561', 'p_id': 'p00773', 'u_id': 'u696230892', 'date': '1434985495', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '600', 'code_size': '497'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 x,y,s;\n while(scanf(\"%d %d %d\", &x, &y, &s),x||y||s){\n int i,j,max;...
CDSS_351031
CDSS
#include<stdio.h> int main(int argc, char const *argv[]) { int n,m,t,i,j; scanf("%d %d", &n, &m); int a[100][100],b[100],ans[100]; for (i = 0; i < n; i++) { for (j = 0; j < m; j++) { scanf("%d", &a[i][j]); } } for (i = 0; i < m; i++) { scanf("%d", &b[i]); } for (i = 0; i < n; i++) { ...
636
memory_bytes
{'s_id': 's943331293', 'p_id': 'p02410', 'u_id': 'u697328381', 'date': '1496629961', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '636', '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(int argc, char const *argv[]) {\n int n,m,t,i,j;\n\n scanf(\"%d %d\", &n, &m);\n int a[100][100],b[10...
CDSS_438934
CDSS
#include<stdio.h> int main(){ int r; double c; scanf("%d",&r); c=3.1415926*2.0*r; printf("%.2lf\n",c); }
1,740
memory_bytes
{'s_id': 's851458490', 'p_id': 'p02705', 'u_id': 'u507832330', 'date': '1587348256', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1740', 'code_size': '109'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 r;\n\tdouble c;\n\tscanf(\"%d\",&r);\n\tc=3.1415926*2.0*r;\n\tprintf(\"%.2lf\\n\",c);\n}\nPredic...
CDSS_383197
CDSS
#include <stdio.h> #include <string.h> int main() { char sr[3]; scanf("%s", sr); int rc_cnt = 0; int rc_ans = 0; int i; for (i = 0; i < strlen(sr); i++) { if (sr[i] == 'S') { rc_cnt = 0; } else if (sr[i] == 'R') { rc_cnt++; ...
1,720
memory_bytes
{'s_id': 's940265506', 'p_id': 'p02582', 'u_id': 'u171399797', 'date': '1598654224', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1720', 'code_size': '476'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main()\n{\n char sr[3];\n scanf(\"%s\", sr);\n\n int rc_cnt = 0;\n int rc_a...
CDSS_45757
CDSS
#include <stdio.h> int main(void) { int i,s,w,n,a,b,d[32]; for(i = 1;i <= 30;i++){ d[i] = i; } scanf("%d",&w); scanf("%d",&n); for(i = 1;i <= n;i++){ scanf("%d,%d",&a,&b); s = d[a]; d[a] = d[b]; d[b] = s; } for(i = 1;i <= w;i++){ printf("%d\n",d[i]); } return 0; }
592
memory_bytes
{'s_id': 's021300890', 'p_id': 'p00011', 'u_id': 'u444407884', 'date': '1477637810', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '287'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\tint i,s,w,n,a,b,d[32];\n\tfor(i = 1;i <= 30;i++){\n\t\td[i] = i;\n\t}\n\tscanf(\"%d\",&w);\n...
CDSS_568467
CDSS
#include <stdio.h> int main(void) { int A,B; scanf("%d%d",&A,&B); if (A >= 13) { printf("%d\n", B); } else if (6 <= A && A <= 12) { printf("%d\n", B/2); } else { printf("0\n"); } return 0; }
128
memory_bytes
{'s_id': 's529917420', 'p_id': 'p03035', 'u_id': 'u686007983', 'date': '1558832601', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '243'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n\n int A,B;\n scanf(\"%d%d\",&A,&B);\n \n if (A >= 13) {\n printf(\"%d\\n\", B);\...
CDSS_130979
CDSS
#include<stdio.h> #define MAX 44 int fibonacci(int); int f[MAX]; int main(){ int n; scanf("%d", &n); fibonacci(n); printf("%d\n", f[n]); return 0; } int fibonacci(int n){ //nが0,1のとき1を返す if(n == 0 || n == 1){ f[n] = 1; return f[n]; } //値がすでに入っているとき、その値を返す if(f[n] != 0) return f[n]; /...
2,108
memory_bytes
{'s_id': 's528686220', 'p_id': 'p02233', 'u_id': 'u806863554', 'date': '1547526619', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '532'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 44\n\nint fibonacci(int);\n\nint f[MAX];\n\nint main(){\n int n;\n\n scanf(\"%d\", &n);\n\n fibonacc...
CDSS_363767
CDSS
#include<stdio.h> int main(){ while(1){ int i,ans = 0; char x[1001]; scanf("%s",x); if(x[0] == '0') break; for(i = 0; x[i] != '\0'; i++) ans += x[i] - '0'; printf("%d\n",ans); } return 0; }
536
memory_bytes
{'s_id': 's952855117', 'p_id': 'p02416', 'u_id': 'u660238915', 'date': '1479009655', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '536', '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 while(1){\n int i,ans = 0;\n char x[1001];\n scanf(\"%s\",x);\n if(x[0] == '0') break...
CDSS_603749
CDSS
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> long min(long a,long b){ if (a<b)return a; else return b; } int main(void) { int n,W,ans; long w,v,dp[105][100005]; scanf("%d%d",&n,&W); for (int i=0;i<=n;i++){ for (int j=0;j<100005;j++){ dp[i][j] = 10000000000; ...
81,152
memory_bytes
{'s_id': 's943082224', 'p_id': 'p03164', 'u_id': 'u284854859', 'date': '1546960429', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '96', 'memory': '81152', 'code_size': '837'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nlong min(long a,long b){\n if (a<b)return a;\n ...
CDSS_506789
CDSS
#include<stdio.h> int main() { int a,b; scanf("%d%d", &a,&b); if(a==1 && b==2) printf("%d\n", 3); else if(a==2 && b==1) printf("%d\n", 3); else if(a==1 && b==3) printf("%d\n", 2); else if(a==3 && b==1) printf("%d\n", 2); else if(a==2 && b==3) printf("...
128
memory_bytes
{'s_id': 's815399206', 'p_id': 'p02829', 'u_id': 'u089230684', 'date': '1581140175', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '399'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int a,b;\n scanf(\"%d%d\", &a,&b);\n if(a==1 && b==2)\n printf(\"%d\\n\", 3);\n ...
CDSS_129628
CDSS
#include<stdio.h> #define MAX 44 int fibonacci(int ); int F[MAX]; main() { int n, i; scanf("%d", &n); printf("%d\n", fibonacci(n)); return 0; } int fibonacci(int n) { if(n == 0 || n == 1) { F[n] = 1; return F[n]; } if(F[n] != 0) { return F[n]; } return F[n] = fibon...
596
memory_bytes
{'s_id': 's429979216', 'p_id': 'p02233', 'u_id': 'u989100803', 'date': '1435305527', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '349'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 44\n\nint fibonacci(int );\n\nint F[MAX];\n\nmain()\n{\n int n, i;\n\n scanf(\"%d\", &n);\n printf(\...
CDSS_372700
CDSS
#include <stdio.h> #include <stdlib.h> typedef struct { int n; int *arr; } vector; vector A; void pushBack(int x) { A.arr = realloc(A.arr, sizeof(int) * (++A.n)); A.arr[A.n - 1] = x; return; } void randomAccess(int p) { if ( A.n != 0 ) { printf("%d\n", A.arr[p]); } return; } ...
2,672
memory_bytes
{'s_id': 's556824468', 'p_id': 'p02431', 'u_id': 'u490732121', 'date': '1589293904', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2672', 'code_size': '1004'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\ntypedef struct {\n int n;\n int *arr;\n} vector;\n\nvector A;\n\nvoid pushBack(int x)...
CDSS_595289
CDSS
a[50],i,x,n,m,k;main(){for(scanf("%d%d",&n,&m);i<n;i++)for(scanf("%d",&k);k--;a[x]++)scanf("%d",&x);for(i=m,x=0;i;)if(a[i--]==n)x++;printf("%d\n",x);}
128
memory_bytes
{'s_id': 's539471547', 'p_id': 'p03126', 'u_id': 'u238041222', 'date': '1551238661', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '150'}
[ { "content": "Your task is to predict the 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[50],i,x,n,m,k;main(){for(scanf(\"%d%d\",&n,&m);i<n;i++)for(scanf(\"%d\",&k);k--;a[x]++)scanf(\"%d\",&x);for(i=m,x=0;i;)if(a[i--]==n)...
CDSS_263469
CDSS
#include <stdio.h> int main(int argc, const char * argv[]) { int S; int h,m,s; scanf("%d",&S); h=S/3600; m=(S-h*3600)/60; s=S-(h*3600+m*60); printf("%d:%d:%d\n",h,m,s); return 0; }
2,096
memory_bytes
{'s_id': 's489851971', 'p_id': 'p02390', 'u_id': 'u702115148', 'date': '1524470522', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2096', '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(int argc, const char * argv[]) {\n int S;\n int h,m,s;\n scanf(\"%d\",&S);\n h=S/3600;\n ...
CDSS_150869
CDSS
#include <stdio.h> int main(int argc, char* argv[]) { int x = 0, y = 0; scanf("%d %d", &x, &y); if (x > y) { int tmp = x; x = y; y = tmp; } while (1) { int mod = x % y; if (mod == 0) { break; } else { x = y; y = mod; } } printf("%d\r\n", y); return 0; }
592
memory_bytes
{'s_id': 's553528386', 'p_id': 'p02256', 'u_id': 'u524002629', 'date': '1446009709', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '288'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(int argc, char* argv[])\n{\n\tint x = 0, y = 0;\n\tscanf(\"%d %d\", &x, &y);\n\n\tif (x > y) {\n\t\tint...
CDSS_710702
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> int in(void){ int i;scanf("%d",&i); return i; } long long llin(void){ long long i;scanf("%lld",&i); return i; } void print(int a){ printf("%d\n",a); } void llprint(long long a){ printf("%lld\n",a); } void print2(int a,int b){ printf("%...
128
memory_bytes
{'s_id': 's912077363', 'p_id': 'p03737', 'u_id': 'u128527648', 'date': '1492909307', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '614'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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#include <string.h>\n\nint in(void){\n\tint i;scanf(\"%d\",&i);\n\treturn ...
CDSS_518666
CDSS
#include <stdio.h> int main() { int n; scanf("%d",&n); for(int a=1;a<=9;a++) {for(int b=1;b<=9;b++) {if(n==a*b){ puts("Yes"); return 0; } } } puts("No"); return 0; }
128
memory_bytes
{'s_id': 's326757077', 'p_id': 'p02880', 'u_id': 'u108934099', 'date': '1575834357', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '189'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n int n;\n scanf(\"%d\",&n);\n\n for(int a=1;a<=9;a++)\n {for(int b=1;b<=9;b++)\n {if(n==a*b)...
CDSS_155033
CDSS
#include <stdio.h> #include <math.h> int X[10000]; int isprime(int x); int main(void) { int N; int i; int ans; scanf("%d", &N); for ( i = 0 ; i < N ; i++ ) { scanf("%d", &X[i]); } ans = 0; for ( i = 0 ; i < N ; i++ ) { if (isprime(X[i])) { ans++; } } printf("%d\n", ans); return 0; } int is...
624
memory_bytes
{'s_id': 's537678592', 'p_id': 'p02257', 'u_id': 'u320509644', 'date': '1432627555', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '624', 'code_size': '555'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\n\tint X[10000];\n\n\tint isprime(int x);\n\nint main(void)\n{\n\tint N;\n\tint i;\n\n\tint an...