identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_251044
CDSS
#include<stdio.h> int main(){ int a,b; scanf("%d %d",&a,&b); printf("%d %d\n",a*b,a*2+2*b); return 0; }
596
memory_bytes
{'s_id': 's810564017', 'p_id': 'p02389', 'u_id': 'u753783391', 'date': '1445328308', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '104'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\nint a,b;\nscanf(\"%d %d\",&a,&b);\n\nprintf(\"%d %d\\n\",a*b,a*2+2*b);\nreturn 0;\n}\nPredict its me...
CDSS_418640
CDSS
#include<stdio.h> #include<string.h> void main(){ char S[100], T[100]; scanf("%s%s",S ,T ); for(int i=0; i<strlen(S); i++){ if(S[i]==T[i]) continue; else{ printf("No\n"); return 0; } } printf("Yes\n"); return 0; }
1,652
memory_bytes
{'s_id': 's334003884', 'p_id': 'p02681', 'u_id': 'u477233273', 'date': '1590957490', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '1652', 'code_size': '259'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\n\nvoid main(){\n char S[100], T[100];\n scanf(\"%s%s\",S ,T );\n \n for(int i=0; i<strlen...
CDSS_122968
CDSS
#include <stdio.h> int main(void){ int n,a,b,c,x,y[100],i,cnt; while(1){ BACK: scanf("%d %d %d %d %d",&n,&a,&b,&c,&x); if(!n) break; for(i=0;i<n;i++) scanf("%d",&y[i]); cnt=0; i=0; while(1){ if(x==y[i]) i++; if(i==n) break; x=(a*x+b)%c; cnt++; if...
612
memory_bytes
{'s_id': 's195214309', 'p_id': 'p01267', 'u_id': 'u505651850', 'date': '1482547067', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '20', 'memory': '612', 'code_size': '413'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int n,a,b,c,x,y[100],i,cnt;\n while(1){\n BACK:\n scanf(\"%d %d %d %d %d\",&n,&a,&b,&c,&...
CDSS_622205
CDSS
/* ex7_1 kt125 */ #include<stdio.h> //頂点を表す構造体 typedef struct point{ int x_elem; int y_elem; }point; //p2を中心にp1を90°回転した点を返す関数 point shift_point(point p1, point p2){ point p3; //p1からp2への方向ベクトルを反時計回り90°回転させて、p2に足してp3を求める p3.x_elem = p2.x_elem + (p2.y_elem - p1.y_elem); p3.y_elem = p2.y_elem +...
1,712
memory_bytes
{'s_id': 's003123439', 'p_id': 'p03265', 'u_id': 'u186076419', 'date': '1594660868', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1712', 'code_size': '811'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n/* ex7_1\n kt125 */\n\n#include<stdio.h>\n\n//頂点を表す構造体\ntypedef struct point{\n int x_elem;\n int y_elem;\n}point;\n\n//p2を中心...
CDSS_106496
CDSS
#include <stdio.h> #include <stdlib.h> int compare_int(const void *a, const void *b); int main(void){ int N, A, B, C; int D[10000]; int best_pizza_cpp, pizza_cpp, calorie, price; int i; scanf("%d", &N); scanf("%d %d", &A, &B); scanf("%d", &C); for(i = 0; i < N; i++){ scanf("%d", &D[i]...
2,048
memory_bytes
{'s_id': 's254555333', 'p_id': 'p00490', 'u_id': 'u729274656', 'date': '1577149013', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '787'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint compare_int(const void *a, const void *b);\n\nint main(void){\n\tint N, A, B, C;\n ...
CDSS_735151
CDSS
#include <stdio.h> long main(){ long n,i,j,anow,tnow,anew,tnew,atime,ttime,realtime; long t[1010],a[1010]; scanf("%ld",&n); for(i=0;i<n;i++){ scanf("%ld %ld",&t[i],&a[i]); } anow = a[0]; tnow = t[0]; for(i=0;i<(n-1);i++){ atime = anow/a[i+1]; if(anow%a[i+1]!=0){ atime++; } tti...
128
memory_bytes
{'s_id': 's567518622', 'p_id': 'p03964', 'u_id': 'u399527088', 'date': '1517331120', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '576'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nlong main(){\n long n,i,j,anow,tnow,anew,tnew,atime,ttime,realtime;\n long t[1010],a[1010];\n scanf(\"%ld\"...
CDSS_743883
CDSS
#include <stdio.h> int main(int argc, char *argv[]) { int a,b,c; scanf("%d %d %d", &a, &b, &c); if( (a==5 && b==7 && c==5) || (a==5 && b==5 && c==7) || (a==7 && b==5 && c==5) ) printf("YES"); else printf("NO"); return 0; }
2,092
memory_bytes
{'s_id': 's250902432', 'p_id': 'p04043', 'u_id': 'u337018543', 'date': '1594429896', 'language': 'C', 'original_language': 'C (Clang 10.0.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '2092', 'code_size': '232'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 a,b,c;\n\tscanf(\"%d %d %d\", &a, &b, &c);\n\n\tif( (a==5 && b==7 &...
CDSS_78908
CDSS
#include <stdio.h> char mp[102][102];//mp[w][h] void dfs(int wj,int hi,char c){ mp[wj][hi] = '.'; if(mp[wj+1][hi] == c) dfs(wj+1,hi,c); if(mp[wj-1][hi] == c) dfs(wj-1,hi,c); if(mp[wj][hi+1] == c) dfs(wj,hi+1,c); if(mp[wj][hi-1] == c) dfs(wj,hi-1,c); return; } int main(){ int w,h,i,j; while(1){ ...
1,072
memory_bytes
{'s_id': 's741361241', 'p_id': 'p00118', 'u_id': 'u834298964', 'date': '1395670511', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1072', 'code_size': '760'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nchar mp[102][102];//mp[w][h]\n\nvoid dfs(int wj,int hi,char c){\n mp[wj][hi] = '.';\n if(mp[wj+1][hi] == c) df...
CDSS_737604
CDSS
#include <stdio.h> int main(void){ int a,b,h; scanf("%d",&a); scanf("%d",&b); scanf("%d",&h); printf("%d\n",(a+b)*h/2); return 0; }
128
memory_bytes
{'s_id': 's431436948', 'p_id': 'p03997', 'u_id': 'u744321408', 'date': '1473644838', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '139'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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,h;\n\tscanf(\"%d\",&a);\n\tscanf(\"%d\",&b);\n\tscanf(\"%d\",&h);\n\tprintf(\"%d\\n...
CDSS_406022
CDSS
#include <stdio.h> void main() { int n, k, a[200001], b[200001], flag; scanf("%d %d", &n, &k); for (int i = 0; i < n; i++) scanf("%d", &a[i]); while (k--) { flag = 0; for (int i = 0; i < n; i++) b[i] = 0; for (int i = 0; i < n; i++) { ...
3,260
memory_bytes
{'s_id': 's674473960', 'p_id': 'p02647', 'u_id': 'u395125142', 'date': '1592143723', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '57', 'memory': '3260', 'code_size': '1175'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nvoid main()\n{\n int n, k, a[200001], b[200001], flag;\n\n scanf(\"%d %d\", &n, &k);\n\n for (int i =...
CDSS_533031
CDSS
#include <stdio.h> #include <math.h> int main() { int a,b,soc=1,cnt=0; scanf("%d %d",&a,&b); while(soc<b){ soc--; soc+=a; cnt++; } printf("%d",cnt); }
128
memory_bytes
{'s_id': 's842390399', 'p_id': 'p02922', 'u_id': 'u530497183', 'date': '1571395275', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '161'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\nint main()\n{\n\tint a,b,soc=1,cnt=0;\n\tscanf(\"%d %d\",&a,&b);\n\twhile(soc<b){\n\t\tsoc--;...
CDSS_398468
CDSS
#include<stdio.h> int main(){ char word; scanf("%c", &word); if(word>='A' && word<='Z'){ printf("A"); } else if(word>='a' && word <= 'z'){ printf("a"); } return 0; }
1,516
memory_bytes
{'s_id': 's156272265', 'p_id': 'p02627', 'u_id': 'u089230684', 'date': '1598664730', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1516', 'code_size': '179'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\tchar word;\n\tscanf(\"%c\", &word);\n\tif(word>='A' && word<='Z'){\n\t\tprintf(\"A\");\n\t}\n\te...
CDSS_660433
CDSS
#include <stdio.h> int main() { int x,a,b; scanf("%d%d%d",&x,&a,&b); if(x==a) printf("0\n"); else printf("%d\n",(x-a)%b); return 0; }
128
memory_bytes
{'s_id': 's694887791', 'p_id': 'p03447', 'u_id': 'u811796052', 'date': '1517259838', '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 should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main()\n{\n int x,a,b;\n scanf(\"%d%d%d\",&x,&a,&b);\n if(x==a) printf(\"0\\n\");\n ...
CDSS_676626
CDSS
#include <stdio.h> #define INF 1001001001 typedef long long ll; int min(int x, int y) { return x > y ? y : x; } int max(int x, int y) { return x < y ? y : x; } int main() { int h, w, dp[10][10]; for (int i = 0; i < 10; i++) { for (int j = 0; j < 10; j++) { dp[i][j] = INF; } } scanf("%d%d", &h, &w); for (i...
1,720
memory_bytes
{'s_id': 's405051952', 'p_id': 'p03546', 'u_id': 'u030504180', 'date': '1593657810', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '1720', 'code_size': '840'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define INF 1001001001\ntypedef long long ll;\nint min(int x, int y) {\n\treturn x > y ? y : x;\n}\nint max(int ...
CDSS_496694
CDSS
#include <stdio.h> int main(){ int n,m; scanf("%d %d",&n,&m); if(n==m){ printf("Yes"); }else{ printf("No"); } return 0; }
128
memory_bytes
{'s_id': 's042327066', 'p_id': 'p02789', 'u_id': 'u118225776', 'date': '1581278048', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '162'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int n,m;\n scanf(\"%d %d\",&n,&m);\n if(n==m){\n printf(\"Yes\");\n }else{\n ...
CDSS_732757
CDSS
#include <stdio.h> int main(){ int W,H,N; scanf("%d %d %d",&W,&H,&N); int realm[W][H]; for(int i=0;i<W;i++){ for(int j=0;j<H;j++){ realm[i][j]=1; } } int x,y,a; while(scanf("%d %d %d",&x,&y,&a)!=EOF){ for(int i=0;i<W;i++){ for(int j=0;j<H;j++){ if((i<x&&a==1)||(i>=x&&a==2)||(j<y&&a==3)||(j>=y&&a...
256
memory_bytes
{'s_id': 's168579767', 'p_id': 'p03944', 'u_id': 'u780950519', 'date': '1479441649', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '3', 'memory': '256', 'code_size': '488'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\tint W,H,N;\n\tscanf(\"%d %d %d\",&W,&H,&N);\n\tint realm[W][H];\n\tfor(int i=0;i<W;i++){\n\t\tf...
CDSS_692144
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> int main(void){ char s[101]; scanf("%s",s); printf("%c%d%c",s[0],strlen(s)-2,s[strlen(s)-1]); return 0; }
128
memory_bytes
{'s_id': 's500006176', 'p_id': 'p03636', 'u_id': 'u853477575', 'date': '1537196949', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '128', 'code_size': '169'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nint main(void){\n\tchar s[101];\n\tscanf(\"%s\",s);\n\tprintf(\"%c%d...
CDSS_315492
CDSS
#include <stdio.h> #include <math.h> int main(void) { double r; double men; double shu; scanf("%lf", &r); if( r<0 || r>10000 ) { return 1; } men = r * r * M_PI; shu = ( r + r ) * M_PI; printf("%lf %lf \n", men, shu); return 0; }
648
memory_bytes
{'s_id': 's951600205', 'p_id': 'p02400', 'u_id': 'u124543070', 'date': '1498195703', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '248'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n\nint main(void)\n{\n\tdouble r;\n\tdouble men;\n\tdouble shu;\n\n\tscanf(\"%lf\", &r);\n\n\t...
CDSS_684804
CDSS
#include <stdio.h> int main(void){ char a[3]; scanf("%s",a); ((a[0]=='9')||(a[1]=='9')) ? printf("Yes") : printf("No"); }
128
memory_bytes
{'s_id': 's484822570', 'p_id': 'p03605', 'u_id': 'u013213797', 'date': '1583204223', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '124'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n\tchar a[3];\n\tscanf(\"%s\",a);\n\t((a[0]=='9')||(a[1]=='9')) ? printf(\"Yes\") : printf(\"No\...
CDSS_564869
CDSS
typedef long unsigned int size_t; extern int printf (const char *__restrict __format, ...); extern int scanf (const char *__restrict __format, ...) ; extern int getchar (void); extern int putchar (int __c); int nextInt(){int f=0;char s=0;char c=getchar();while((c<48)||(57<c)){if(c==45){s=1;c=getchar();break;}c=getchar(...
384
memory_bytes
{'s_id': 's833578677', 'p_id': 'p03017', 'u_id': 'u292252214', 'date': '1559788276', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '384', 'code_size': '1835'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\ntypedef long unsigned int size_t;\nextern int printf (const char *__restrict __format, ...);\nextern int scanf (const char *__restri...
CDSS_356370
CDSS
#include <stdio.h> int main(){ int i, j, k; int n, x; int count; while(1){ scanf("%d %d ", &n, &x); if(n==0&&x==0)break; count=0; for(i=1;3*i+3<=x;i++){ for(j=i+1;i+2*j+1<=x;j++){ for(k=n;k>j;k--){ if(x==i+j+k){ ...
2,052
memory_bytes
{'s_id': 's526347087', 'p_id': 'p02412', 'u_id': 'u214526598', 'date': '1530579473', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '553'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){ \nint i, j, k; \nint n, x; \nint count; \nwhile(1){ \nscanf(\"%d %d \", &n, &x); ...
CDSS_133974
CDSS
#include<stdio.h> #include<string.h> #include<math.h> #define MAX 150 #define LEN 1000 int max(int a,int b){ return (a > b)? a : b; } int lcs(char *x, char *y){ int i, j, lenx, leny; int c[LEN + 1][LEN + 1] = {}; lenx = strlen(x); leny = strlen(y); // 0 A C D B A //0 0 0 0 0 0 0 //A 0 1 1 1 1 1 /...
5,776
memory_bytes
{'s_id': 's183737064', 'p_id': 'p02235', 'u_id': 'u426293744', 'date': '1533651815', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '5776', 'code_size': '758'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\n#define MAX 150\n#define LEN 1000\n\nint max(int a,int b){\n return (a >...
CDSS_508073
CDSS
#include <stdio.h> int main(void) { long A, B; scanf("%ld %ld", &A, &B); for (int i=1; i < 100000; i++) { if ((A * i) % B == 0) { printf("%ld", A * i); break; } } return 0; }
128
memory_bytes
{'s_id': 's490581770', 'p_id': 'p02831', 'u_id': 'u610775603', 'date': '1577640590', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '238'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void) {\n long A, B;\n\n scanf(\"%ld %ld\", &A, &B);\n\n for (int i=1; i < 100000; i++) {\n ...
CDSS_645278
CDSS
#include <stdio.h> #define N 100000 typedef struct element { struct element *next; } element; typedef struct { int n; element *head; element *tail; } set; int l[N+1]; set *f[N+1]; int n; element elements[N+1]; set sets[N]; int next_set = 0; void initialize(int n) { int i; for (i = 1; i <= ...
3,584
memory_bytes
{'s_id': 's343512088', 'p_id': 'p03356', 'u_id': 'u801476312', 'date': '1526590702', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '40', 'memory': '3584', 'code_size': '2029'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define N 100000\ntypedef struct element {\n struct element *next;\n} element;\n\ntypedef struct {\n int n...
CDSS_103715
CDSS
#include <stdio.h> int main(void){ int sum,i; int book[9]; for(i=0;i<9;i++){ book[i] = 0; } while(1){ scanf("%d",&sum); for(i=0;i<9;i++){ scanf("%d",&book[i]); if(sum == 0){ goto finish; } sum -= book[i]; } printf("%d\n",sum); sum = 0; } finish: return 0; }
600
memory_bytes
{'s_id': 's509456372', 'p_id': 'p00466', 'u_id': 'u619300234', 'date': '1347114141', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '318'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n int main(void){\n int sum,i;\n int book[9];\nfor(i=0;i<9;i++){\n book[i] = 0;\n }\nwhile(1){\n sca...
CDSS_128045
CDSS
// AOJ 2801: Suntan // 2017.11.20 bal4u@uu #include <stdio.h> #include <stdlib.h> long long s[100001], t[100001]; int N; long long a[100001]; char buf[50], *p; long long getlong() { long long n = 0; while (*p >= '0') n = (n<<3) + (n<<1) + (*p++ & 0xf); return n; } int bsch(long long x) { int m, l = 0, r = N+1; ...
4,124
memory_bytes
{'s_id': 's594504740', 'p_id': 'p01901', 'u_id': 'u847467233', 'date': '1511157824', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '4124', 'code_size': '968'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n// AOJ 2801: Suntan\n// 2017.11.20 bal4u@uu\n\n#include <stdio.h>\n#include <stdlib.h>\n\nlong long s[100001], t[100001]; int N;\nlo...
CDSS_343725
CDSS
#include<stdio.h> int main(void) { int n,i,a[100]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a[i]); } for(i=n-1;i>=0;i--){ printf("%d",a[i]); if(i)printf(" "); } printf("\n"); return 0; }
600
memory_bytes
{'s_id': 's708239829', 'p_id': 'p02407', 'u_id': 'u537544773', 'date': '1366787016', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '205'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint n,i,a[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<n;i++){\n\t\tscanf(\"%d\",&a[i]);\n\t}\n\t...
CDSS_611730
CDSS
//b.c B-Palace #include<stdio.h> double iabs(double x){ if(x<0){ return -x; } return x; } int main(void){ int n,t,a; scanf("%d",&n); scanf("%d %d",&t,&a); int h[n]; for(int i=0;i<n;++i){ scanf("%d",&h[i]); } double ans; int num = 0; ans = (double)t - (d...
128
memory_bytes
{'s_id': 's915404081', 'p_id': 'p03220', 'u_id': 'u043363214', 'date': '1586031441', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '586'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n//b.c B-Palace\n#include<stdio.h>\n\ndouble iabs(double x){\n if(x<0){\n return -x;\n }\n return x;\n}\n\nint main(v...
CDSS_745287
CDSS
#include <stdio.h> #include <stdlib.h> struct iro { char A[200]; }; /* int compare4(const void *a, const void *b) { return ((struct iro *)a)->A[4] - ((struct iro *)b)->A[4]; } int compare3(const void *a, const void *b) { return ((struct iro *)a)->A[3] - ((struct iro *)b)->A[3]; } int compare2(const void ...
256
memory_bytes
{'s_id': 's248286701', 'p_id': 'p04044', 'u_id': 'u224085427', 'date': '1586566896', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '1559'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nstruct iro\n{\n char A[200];\n};\n/*\nint compare4(const void *a, const void *b)\n{\n ...
CDSS_681009
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main(void){ char s2[50], t[50]; int ls2, lt, i, j, k; scanf("%s",s2); scanf("%s",t); ls2 = strlen(s2); lt = strlen(t); //printf("%d %d\n",ls2,lt); for(i=ls2-lt;i>=0;i--){ for(j=0;j<lt;j++) if(t[j]!=s2[i+j] && s2[i+j]!...
128
memory_bytes
{'s_id': 's562533331', 'p_id': 'p03565', 'u_id': 'u335733930', 'date': '1509240578', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '612'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\n\nint main(void){\n char s2[50], t[50];\n int l...
CDSS_524813
CDSS
#include <stdio.h> #include <string.h> int main(){ int N,K; scanf("%d %d", &N, &K); int H[N]; for(int i=0; i<N; i++){ scanf("%d", &H[i]); } int canRide = 0; for(int j=0; j<N; j++){ if(H[j] >= K) canRide++; } printf("%d", canRide); }
512
memory_bytes
{'s_id': 's930923659', 'p_id': 'p02898', 'u_id': 'u815628714', 'date': '1590440386', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '512', 'code_size': '268'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(){\n int N,K;\n scanf(\"%d %d\", &N, &K);\n \n int H[N];\n for(int i=0; i<N...
CDSS_288133
CDSS
#include <stdio.h> void cmp(int *a, int *b) { int s; if (*a >*b) { s = *a; *a = *b; *b = s; } return; } int main(void) { int a, b, c; scanf("%d%d%d", &a, &b, &c); cmp(&a, &b); cmp(&b, &c); cmp(&a, &b); printf("%d %d %d\n", a, b, c); return 0; }
2,112
memory_bytes
{'s_id': 's906308687', 'p_id': 'p02393', 'u_id': 'u621641560', 'date': '1585018052', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '264'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nvoid cmp(int *a, int *b) {\n\tint s;\n\tif (*a >*b) {\n\t\ts = *a;\n\t\t*a = *b;\n\t\t*b = s;\n\t}\n\treturn;\...
CDSS_95980
CDSS
#include <stdio.h> int main() { int n; int c; int p; int sum = 0; int ans; int i; scanf("%d%d", &n, &c); for(i = 0; i < c; i++) { scanf("%d", &p); sum = sum + p; } if(sum % (n + 1) > 0) { ans = sum / (n + 1) + 1; } else { ...
2,112
memory_bytes
{'s_id': 's287615644', 'p_id': 'p00377', 'u_id': 'u512447752', 'date': '1553168554', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '384'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 int c;\n int p;\n int sum = 0;\n int ans;\n int i;\n \n scanf...
CDSS_54554
CDSS
#include<stdio.h> int main(void){ int n, i; float x1, x2, x3, x4, y1, y2, y3, y4, x, y; scanf("%d", &n); for ( i = 0; i < n; i++ ) { scanf("%f %f %f %f %f %f %f %f", &x1, &y1, &x2, &y2, &x3, &y3, &x4, &y4); if ( ( y2 - y1 ) / ( x2 - x1 ) == ( ( y4 - y3 ) / ( x4 - x3 ) ) )printf("YES\n");...
1,732
memory_bytes
{'s_id': 's669963188', 'p_id': 'p00021', 'u_id': 'u328199937', 'date': '1511769006', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1732', 'code_size': '371'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void){\n int n, i;\n float x1, x2, x3, x4, y1, y2, y3, y4, x, y;\n scanf(\"%d\", &n);\n for ...
CDSS_630501
CDSS
#include<stdio.h> void swap(int*, int*); int main(void){ int a, b, c, s=0, t; scanf("%d %d %d", &a, &b, &c); if(a > b) swap( &a, &b); if(b > c) swap( &b, &c); if(a > b) swap( &a, &b); printf("%d\n", c - a); return 0; } void swap( int *x, int *y){ int t; t = *x; *x = *y; *y = ...
128
memory_bytes
{'s_id': 's372903572', 'p_id': 'p03292', 'u_id': 'u538438162', 'date': '1532613404', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '324'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nvoid swap(int*, int*);\n\nint main(void){\n int a, b, c, s=0, t;\n\n scanf(\"%d %d %d\", &a, &b, &c);\n if(a ...
CDSS_560700
CDSS
#include <stdio.h> int main(void){ int N, X, L[105], i, D[105], c; scanf("%d %d", &N, &X); D[1]=0; c=0; for (i=1; i<=N; i++) { scanf("%d", &L[i]); D[i+1]=D[i]+L[i]; } for (i=1; i<=N+1; i++) { if (D[i]<=X) c++; } printf("%d", c); }
128
memory_bytes
{'s_id': 's475470195', 'p_id': 'p03000', 'u_id': 'u279160680', 'date': '1560712289', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '287'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int N, X, L[105], i, D[105], c;\n scanf(\"%d %d\", &N, &X);\n D[1]=0; c=0;\n for (...
CDSS_508478
CDSS
#include<stdio.h> int main(void) { int n,cnt=0; scanf("%d",&n); for(int i=0;i<n;i++){ int tmp; scanf("%d",&tmp); if(tmp==cnt+1) cnt++; } if(cnt==0) printf("-1"); else printf("%d",n-cnt); return 0; }
128
memory_bytes
{'s_id': 's108744850', 'p_id': 'p02832', 'u_id': 'u399091677', 'date': '1591659661', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '22', 'memory': '128', 'code_size': '237'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include<stdio.h>\n\nint main(void)\n\n{\n\n int n,cnt=0;\n\n scanf(\"%d\",&n);\n\n for(int i=0;i<n;i++){\n\n int tmp;\n\n ...
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 should 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(\"%...
CDSS_518970
CDSS
#include<stdio.h> int main() { int n; int i,j; scanf("%d",&n); for(i=1;i<10;i++) for(j=1;j<10;j++) if(i*j==n) { printf("Yes"); return 0; } printf("No"); return 0; }
128
memory_bytes
{'s_id': 's493342739', 'p_id': 'p02880', 'u_id': 'u024208318', 'date': '1572277540', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '181'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint n;\n\tint i,j;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<10;i++)\n\tfor(j=1;j<10;j++)\n\tif(i*j==n)\...
CDSS_76354
CDSS
#include<stdio.h> int main(){ int num[11][11]; int n,i,j; while(1){ scanf("%d",&n); if(n==0)break; for(i=0;i<=n;i++){ for(j=0;j<=n;j++)num[i][j]=0; } for(i=0;i<n;i++){ for(j=0;j<n;j++)scanf("%d",&num[i][j]); } for(i=0;i<n;i++){ for(j=0;j<n;j++)num[i][n]+=num[i][j]; } for(i=0;i<n;i++...
604
memory_bytes
{'s_id': 's880328411', 'p_id': 'p00102', 'u_id': 'u416593310', 'date': '1430601244', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '803'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n\tint num[11][11];\n\tint n,i,j;\n\t\n\twhile(1){\n\t\tscanf(\"%d\",&n);\n\t\tif(n==0)break;\n\t\tfo...
CDSS_724110
CDSS
#include<stdio.h> int main() { char s[20]; scanf("%s", s); s[5] = ' '; s[13] = ' '; printf("%s\n", s); return 0; }
128
memory_bytes
{'s_id': 's251060471', 'p_id': 'p03834', 'u_id': 'u538438162', 'date': '1502311013', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '127'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n char s[20];\n scanf(\"%s\", s);\n s[5] = ' ';\n s[13] = ' ';\n printf(\"%s\\n\", s);\n re...
CDSS_37096
CDSS
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> int main(int argc, const char * argv[]){ int f = 0,len; char ch[21],temp; scanf("%s",ch); len = (int)strlen(ch) - 1; //ch[(int)strlen(ch)] = "\0"; while(1){ if(len < f || len == f ){ print...
524
memory_bytes
{'s_id': 's153328481', 'p_id': 'p00006', 'u_id': 'u635105781', 'date': '1405406424', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '542'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 main(int argc, const char * argv[]){\n \n ...
CDSS_74100
CDSS
#include <stdio.h> int main(void){ int a,b; double s; scanf("%d %d", &a,&b); s=a*b/3.305785; printf("%lf", s); return 0; }
632
memory_bytes
{'s_id': 's422379506', 'p_id': 'p00094', 'u_id': 'u677738777', 'date': '1444179846', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '632', 'code_size': '162'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 double s;\n \n scanf(\"%d %d\", &a,&b);\n s=a*b/3.305785;\n ...
CDSS_91228
CDSS
// Aizu 0258: Kitchen Garden // 2017.9.8 bal4u@uu #include <stdio.h> #include <stdlib.h> typedef struct { int d, c; } T; T tbl[4]; int len; int h[103], d[103]; int cmp(T *a, T *b) { return b->c - a->c; } int main() { int n, i, j, dd, ans; while (scanf("%d", &n) && n) { scanf("%d", h); for (i = 1; i <= n; i+...
1,860
memory_bytes
{'s_id': 's457813581', 'p_id': 'p00253', 'u_id': 'u847467233', 'date': '1504903637', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1860', 'code_size': '964'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n// Aizu 0258: Kitchen Garden\n// 2017.9.8 bal4u@uu\n\n#include <stdio.h>\n#include <stdlib.h>\n\ntypedef struct { int d, c; } T;\nT ...
CDSS_205514
CDSS
#include<stdio.h> #include<math.h> void koch(int n, double xx, double xy, double yx, double yy) { if( n == 0 ){ return; } double sx, sy, tx, ty, ux, uy; sx = (2.0*xx+1.0*yx) / 3.0; sy = (2.0*xy+1.0*yy) / 3.0; tx = (1.0*xx+2.0*yx) / 3.0; ty = (1.0*xy+2.0*yy) / 3.0; ux = (tx-sx)*cos(M_PI/3) - (ty-sy)*sin(M...
2,072
memory_bytes
{'s_id': 's882246586', 'p_id': 'p02273', 'u_id': 'u909805707', 'date': '1575605656', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2072', 'code_size': '843'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n\nvoid koch(int n, double xx, double xy, double yx, double yy)\n{\n\tif( n == 0 ){\n\t\treturn;...
CDSS_733119
CDSS
#include<stdio.h> #include<string.h> int main() { char s[100000]; scanf("%s", s); int l,p=0; l=strlen(s); for(int i=0;i<l-1;i++) { if(s[i]!=s[i+1]) { p++; } } printf("%d\n", p); return 0; }
256
memory_bytes
{'s_id': 's882509406', 'p_id': 'p03947', 'u_id': 'u863370423', 'date': '1563515150', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '256', 'code_size': '262'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<string.h>\nint main()\n{\n char s[100000];\n scanf(\"%s\", s);\n int l,p=0;\n l=strlen(s);\n...
CDSS_138075
CDSS
#include <stdio.h> #include <stdlib.h> struct node_t { int key; struct node_t *next; }; typedef struct node_t Node; Node *enqueue(Node *node, int key) { Node *p, *q; if (node == NULL) { node = malloc(sizeof(Node)); node->key = key; node->next = NULL; return node; } for (p = node; p != NULL; p = p->nex...
648
memory_bytes
{'s_id': 's775265308', 'p_id': 'p02239', 'u_id': 'u782850731', 'date': '1380701982', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '648', 'code_size': '1154'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nstruct node_t {\n\tint key;\n\tstruct node_t *next;\n};\ntypedef struct node_t Node;\n\nN...
CDSS_662288
CDSS
#include <stdio.h> int main(){ int a,b; scanf("%d %d",&a,&b); if((a*b)%2==0)printf("Even\n"); else printf("Odd\n"); return 0; }
128
memory_bytes
{'s_id': 's653637782', 'p_id': 'p03455', 'u_id': 'u740900993', 'date': '1562441722', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '138'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int a,b;\n scanf(\"%d %d\",&a,&b);\n if((a*b)%2==0)printf(\"Even\\n\");\n else printf(\"Odd\\n...
CDSS_230789
CDSS
#include<stdio.h> #define NIL -2000000001 #define INFTY 2000000001 int H=1; int A[INFTY-1]; void maxHeapify(int i){ int l,r,largest,x; l = 2*i; r = 2*i+1; if ((l <= H) &&( A[l] > A[i])) largest = l; else largest = i; if ((r<= H)&&( A[r] > A[largest])) largest = r; if (largest != i){ ...
5,708
memory_bytes
{'s_id': 's441196493', 'p_id': 'p02289', 'u_id': 'u831730719', 'date': '1581540096', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '290', 'memory': '5708', 'code_size': '1194'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n#define NIL -2000000001\n#define INFTY 2000000001\n\nint H=1;\nint A[INFTY-1];\n\nvoid maxHeapify(int i){\n in...
CDSS_569051
CDSS
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> //関数宣言 //int func(int x, int y); int main(void){ //スカラー入力 int r,D,A; scanf("%d %d %d", &r, &D, &A); int ans=A; for(int i=0; i<10; i++){ ans = ans*r - D; printf("%d\n", ans); } return 0; }
128
memory_bytes
{'s_id': 's956372653', 'p_id': 'p03036', 'u_id': 'u004843292', 'date': '1558832806', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '309'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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\n//関数宣言\n//int func(int x, int y);\n\nint main(void){\...
CDSS_70954
CDSS
#include <stdio.h> #include <string.h> int m[15][15]; int n,h,w; void put(int i) { if(w>=n) w = 0; else if(w<0) w = n-1; if(h>=n) h = 0; if(m[h][w] != 0) { h++; w--; put(i); }else{ m[h][w] = i; } } int main() { int k; for(;;){ scanf("%d",&n); if(n == 0) break; memset(m,0,sizeof(m...
0
memory_bytes
{'s_id': 's265402583', 'p_id': 'p00078', 'u_id': 'u324171823', 'date': '1321238803', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '546'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint m[15][15];\nint n,h,w;\nvoid put(int i)\n{\n if(w>=n) w = 0;\n else if(w<0) w = n-1;\...
CDSS_522400
CDSS
#include <stdio.h> #include <stdlib.h> int compare_int(const void *a, const void *b) { return *(int*)a - *(int*)b; } int main(void) { int n; scanf("%d", &n); int l[n]; for (int i = 0;i < n;i++) { scanf("%d", &l[i]); } qsort(l, n, sizeof(int), compare_int); long long ans = 0; int tmp = 0; for (int a ...
1,728
memory_bytes
{'s_id': 's069373465', 'p_id': 'p02888', 'u_id': 'u731412691', 'date': '1600928720', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '743', 'memory': '1728', 'code_size': '500'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint compare_int(const void *a, const void *b) {\n return *(int*)a - *(int*)b;\n}\n\nin...
CDSS_640659
CDSS
#include <malloc.h> #include <math.h> #include <stdio.h> #include <string.h> #include <stdlib.h> //ABC99C int main(void) { int n, k, i, cou=0, tmp, six[10], nin[10]; scanf("%d", &n); int dp[n+1]; for(i=0; i<10; i++){ six[i]=pow(6, i+1), nin[i]=pow(9, i+1); } for(i=0; i<=n; i++){ dp[i]=i; } for...
512
memory_bytes
{'s_id': 's502581042', 'p_id': 'p03329', 'u_id': 'u859946952', 'date': '1589491234', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '512', 'code_size': '641'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <malloc.h>\n#include <math.h>\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\n//ABC99C\nint main(void) {\n...
CDSS_659233
CDSS
#include<stdio.h> int main(){ char m[52][52]; int d[50][50],x[4]={0,0,1,-1},y[4]={1,-1,0,0},p[2500]={},q[2500]={},h,w,k=1,s,t,i,j; scanf("%d%d",&h,&w);d[0][0]=1; for(i=0;i<h;i++)scanf("%s",&m[i+1][j+1]); for(i=0;i<h*w;i++)for(j=0;j<4;j++){ if(i>=k){printf("-1");return 0;} s=p[i]+x[j];t=q[i]+y[j]; ...
1,760
memory_bytes
{'s_id': 's089486561', 'p_id': 'p03436', 'u_id': 'u218346293', 'date': '1594351613', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1760', 'code_size': '531'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\n char m[52][52];\n int d[50][50],x[4]={0,0,1,-1},y[4]={1,-1,0,0},p[2500]={},q[2500]={},h,w,k=1,s,t...
CDSS_550250
CDSS
#include<stdio.h> int main() { int n,a,b,t,T; scanf("%d %d %d",&n,&a,&b); T=n*a; if(T==b) printf("%d",T); else if(T>b) printf("%d",b); else printf("%d",T); return 0; }
128
memory_bytes
{'s_id': 's135997541', 'p_id': 'p02981', 'u_id': 'u353919145', 'date': '1571379102', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '223'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int n,a,b,t,T;\n scanf(\"%d %d %d\",&n,&a,&b);\n T=n*a;\n if(T==b)\n printf(\"...
CDSS_620269
CDSS
#include<stdio.h> int main(void){ int a,b,c; scanf("%d%d",&a,&b); if(a*b%2==1){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }
128
memory_bytes
{'s_id': 's988851977', 'p_id': 'p03260', 'u_id': 'u895954008', 'date': '1540685405', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '182'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\n int a,b,c;\n scanf(\"%d%d\",&a,&b);\n\n if(a*b%2==1){\n printf(\"Yes\\n\");...
CDSS_65123
CDSS
#include <stdio.h> main(){ int s,a=0,b=0,ab=0,o=0; char blood[3]; while(scanf("%d,%s",&s,blood) !=EOF){ if(blood[0]=='A'&&blood[1]=='B') ab++; else if(blood[0]=='B') b++; else if(blood[0]=='A') a++; else if(blood[0]=='O') o++; } printf("%d\n%d\n%d\n%d\n",a,b,ab,o); return 0; }
0
memory_bytes
{'s_id': 's535874839', 'p_id': 'p00049', 'u_id': 'u915493477', 'date': '1273898897', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '307'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nmain(){\n int s,a=0,b=0,ab=0,o=0;\n char blood[3];\n while(scanf(\"%d,%s\",&s,blood) !=EOF){\n if(blood[0]...
CDSS_293476
CDSS
#include<stdio.h> int main() { int a,b,c,d,r; scanf("%d %d %d %d %d",&a,&b,&c,&d,&r); if(0<=(c-r) && (c+r)<=a && 0 <=(d-r) && (d+r)<=b) { printf("Yes\n"); } else { printf("No\n"); } }
2,112
memory_bytes
{'s_id': 's993506580', 'p_id': 'p02394', 'u_id': 'u895733325', 'date': '1585562966', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '198'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint a,b,c,d,r;\n\tscanf(\"%d %d %d %d %d\",&a,&b,&c,&d,&r);\n\tif(0<=(c-r) && (c+r)<=a && 0 <=(d...
CDSS_541640
CDSS
#include<stdio.h> #include<math.h> #include<stdlib.h> int main(){ int A,B,C; scanf("%d %d %d",&A,&B,&C); if(A-B>=C){ printf("0\n"); } else{ C=C-(A-B); printf("%d\n",C); } return 0; }
128
memory_bytes
{'s_id': 's221105190', 'p_id': 'p02951', 'u_id': 'u348231925', 'date': '1564967154', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '234'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\n#include<stdlib.h>\nint main(){\n int A,B,C;\n scanf(\"%d %d %d\",&A,&B,&C);\n if(A-B>...
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 should 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;...
CDSS_406349
CDSS
#include<stdio.h> int main(void) { int a,b; scanf("%d %d",&a,&b); printf("%d\n",a*b); return 0; }
1,728
memory_bytes
{'s_id': 's302463673', 'p_id': 'p02657', 'u_id': 'u770716178', 'date': '1599596214', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1728', 'code_size': '101'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint a,b;\n\tscanf(\"%d %d\",&a,&b);\n\tprintf(\"%d\\n\",a*b);\n\treturn 0;\n}\nPredict its m...
CDSS_527296
CDSS
#include <stdio.h> int main(void) { char s[100]; scanf("%s",s); if(s[0] == 'S'){ printf("Cloudy\n"); } else if(s[0] == 'C'){ printf("Rainy\n"); } else { printf("Sunny\n"); } return 0; }
128
memory_bytes
{'s_id': 's171204763', 'p_id': 'p02909', 'u_id': 'u506314975', 'date': '1587084215', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '241'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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[100];\n\n scanf(\"%s\",s);\n\n if(s[0] == 'S'){\n printf(\"Cloudy\\...
CDSS_185835
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> struct node{ int key; struct node *next; struct node *prev; }; typedef struct node * NodePointer; NodePointer nil; NodePointer listSearch(int key){ NodePointer cur = nil->next; while( cur != nil && cur->key != key ){ cur = cur->next; } return...
15,000
memory_bytes
{'s_id': 's683292604', 'p_id': 'p02265', 'u_id': 'u435226340', 'date': '1335191324', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '540', 'memory': '15000', 'code_size': '1866'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 *next;\n struct node *prev;\n}...
CDSS_145256
CDSS
#include <stdio.h> int main(){ int n, i, j, k, v; int N = 100; int a[N]; scanf("%d", &n); for(i = 0;i < n;i++){ scanf("%d", &a[i]); } for(i = 0;i < n;i++){ printf("%d", a[i]); if(i < n-1){ printf(" "); } } printf("\n"); for(i = 1;i < n...
604
memory_bytes
{'s_id': 's022891649', 'p_id': 'p02255', 'u_id': 'u139212708', 'date': '1479791336', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '604', 'code_size': '665'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n int n, i, j, k, v;\n int N = 100;\n int a[N];\n scanf(\"%d\", &n);\n for(i = 0;i ...
CDSS_449646
CDSS
#include<stdio.h> #include<string.h> int main(void) { char s[3]; scanf("%s",s); int i=0; while(s[i]){ if(s[i]=='7'){ printf("Yes\n"); return 0; } i++; } printf("No\n"); return 0; }
1,660
memory_bytes
{'s_id': 's796283626', 'p_id': 'p02711', 'u_id': 'u282902995', 'date': '1586742394', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1660', 'code_size': '257'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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{\n char s[3];\n scanf(\"%s\",s);\n int i=0;\n while(s[i]){\n ...
CDSS_660866
CDSS
#include <stdio.h> int main(void){ int a[4]; int i,j,k; for(i=0;i<4;i++)scanf("%d",&a[i]); int temp,ans=0; for(i=0;i<=a[0];i++){ for(j=0;j<=a[1];j++){ for(k=0;k<=a[2];k++){ temp = 500*i + 100*j + 50*k; if(temp==a[3])ans++; } } } printf("%d",ans); return 0; }
128
memory_bytes
{'s_id': 's714380842', 'p_id': 'p03448', 'u_id': 'u168774513', 'date': '1555484409', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '285'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\tint a[4];\n\tint i,j,k;\n\tfor(i=0;i<4;i++)scanf(\"%d\",&a[i]);\n\tint temp,ans=0;\n\tfor(i...
CDSS_64259
CDSS
float x,n=1e9,t;main(){for(;~scanf("%f",&t)?x<t?x=t:1:!printf("%f\n",x-n);t<n?n=t:0);}
644
memory_bytes
{'s_id': 's816553276', 'p_id': 'p00046', 'u_id': 'u340315059', 'date': '1377378645', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '644', 'code_size': '86'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\nfloat x,n=1e9,t;main(){for(;~scanf(\"%f\",&t)?x<t?x=t:1:!printf(\"%f\\n\",x-n);t<n?n=t:0);}\nPredict its memory footprint.", "ro...
CDSS_112454
CDSS
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> #define FOR(n) for(int i=0;i<n;i++) #define FORJ(n) for(int j=0;j<n;j++) #define PRN(n) printf("%d\n",n) #define PRF(n) printf("%lf\n",n) #define PRL(n) printf("%lld\n",n) #define PRS(s) printf("%s\n",s) #define PRC(c) printf("%c",c) #define INF 1...
2,036
memory_bytes
{'s_id': 's116113682', 'p_id': 'p00627', 'u_id': 'u029152603', 'date': '1570247755', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '1112'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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 FORJ(n) fo...
CDSS_678785
CDSS
#include <stdio.h> #include <stdlib.h> int jagh(int n){ int i=1; while(i>0){ if(pow(i,2)>n){ return pow(i-1,2); } i++; } } int main(){ int n,c=0; scanf("%d",&n); printf("%d",jagh(n)); }
128
memory_bytes
{'s_id': 's366446855', 'p_id': 'p03556', 'u_id': 'u375695365', 'date': '1571804733', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '220'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint jagh(int n){\n int i=1;\n while(i>0){\n if(pow(i,2)>n){\n return pow(i-1,2)...
CDSS_95671
CDSS
#include <stdio.h> int d[300005]; int check1(int s); int check2(int s,int N); int main(void) { int N,i,f; scanf("%d",&N); for(i=0;i<N;i++){ scanf("%d",&d[i]); } f=check1(N-1); if(f==0){printf("no\n");return 0;} f=check2(0,N-1); if(f==0){printf("no\n");return 0;} else {printf("yes\n");} return 0; } int ch...
7,568
memory_bytes
{'s_id': 's049920122', 'p_id': 'p00357', 'u_id': 'u993045812', 'date': '1526520429', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '7568', 'code_size': '660'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint d[300005];\n\nint check1(int s);\nint check2(int s,int N);\n\nint main(void) {\n\tint N,i,f;\n\tscanf(\"%d\"...
CDSS_208628
CDSS
#include <stdio.h> void CountingSort(int[], int[], int); int n, A[2000001], B[2000001]; int main(){ int i; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&A[i]); } CountingSort(A, B, 10000); for (i=1;i<=n;i++){ if (i>1) printf(" "); printf("%d",B[i]); } printf("\n"); return 0;...
16,264
memory_bytes
{'s_id': 's935611297', 'p_id': 'p02275', 'u_id': 'u429172325', 'date': '1496372236', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '400', 'memory': '16264', 'code_size': '678'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nvoid CountingSort(int[], int[], int);\n\nint n, A[2000001], B[2000001];\n\nint main(){\n int i;\n \n scanf(...
CDSS_305335
CDSS
#include <stdio.h> int main() { int a, b, c, cnt = 0, num = 0; scanf("%d%d%d", &a, &b, &c); for (; a <= b; a++) { num = c % a; if (num == 0) { cnt++; } } printf("%d\n", cnt); return 0; }
596
memory_bytes
{'s_id': 's707727883', 'p_id': 'p02398', 'u_id': 'u358840634', 'date': '1476362076', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '207'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main()\n{\n\tint a, b, c, cnt = 0, num = 0;\n\tscanf(\"%d%d%d\", &a, &b, &c);\n\tfor (; a <= b; a++)\n\t{\...
CDSS_116778
CDSS
/* * 1167.c: Pollock's conjecture */ #include <stdio.h> #include <stdlib.h> #include <string.h> /* constant */ #define MAX_N (1000000) #define MAX_THN (200) /* global variables */ static int sums[MAX_N + 1], osums[MAX_N + 1]; static int thns[MAX_THN], othns[MAX_THN]; /* subroutines */ void min_sums(int *sums, ...
8,412
memory_bytes
{'s_id': 's556332156', 'p_id': 'p00748', 'u_id': 'u137027976', 'date': '1419321511', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '210', 'memory': '8412', 'code_size': '1039'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n/*\n * 1167.c: Pollock's conjecture\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n/* constant */\n\n#defin...
CDSS_386702
CDSS
#include<stdio.h> int main() { long N,D; scanf("%ld %ld",&N,&D); long X[200010],Y[200010]; for(int i=0;i<N;i++){ scanf("%ld %ld",&X[i],&Y[i]); } int count=0; for(int i=0;i<N;i++){ if(X[i]*X[i] + Y[i]*Y[i] <= D*D){count++;} } printf("%d",count); }
4,856
memory_bytes
{'s_id': 's220191451', 'p_id': 'p02595', 'u_id': 'u041213561', 'date': '1596421013', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '54', 'memory': '4856', 'code_size': '272'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n long N,D;\n scanf(\"%ld %ld\",&N,&D);\n long X[200010],Y[200010];\n for(int i=0;i<N;i++){\n ...
CDSS_607707
CDSS
#include <stdio.h> int main (void) { int n; scanf("%d", &n); if (n == 25) { puts("Christmas"); } else if (n == 24) { puts("Christmas Eve"); } else if (n == 23) { puts("Christmas Eve Eve"); } else if (n == 22) { puts("Christmas Eve Eve Eve"); } return 0; }
128
memory_bytes
{'s_id': 's231917619', 'p_id': 'p03206', 'u_id': 'u968950181', 'date': '1544321735', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '272'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main (void) {\n\tint n;\n\tscanf(\"%d\", &n);\n\tif (n == 25) {\n\t\tputs(\"Christmas\");\n\t} else if (n ==...
CDSS_447708
CDSS
#include <stdio.h> int main(void){ int N, a, b, c, cnt = 0; scanf("%d", &N); a = N / 100; N = N%100; b = N/10; c = N%10; if(a == 7 || b == 7 || c == 7){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
1,604
memory_bytes
{'s_id': 's827598702', 'p_id': 'p02711', 'u_id': 'u818573308', 'date': '1593270355', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '7', 'memory': '1604', 'code_size': '277'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int N, a, b, c, cnt = 0;\n \n scanf(\"%d\", &N);\n \n a = N / 100;\n N = N%1...
CDSS_541158
CDSS
#include<stdio.h> int main(){ //nを入力 int a, b, c; scanf("%d", &a); scanf("%d", &b); scanf("%d", &c); //計算 c = c - (a - b); if(c < 0){ c = 0; } //表示 printf("%d", c); return 0; }
128
memory_bytes
{'s_id': 's537876955', 'p_id': 'p02951', 'u_id': 'u057786470', 'date': '1571233385', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '206'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(){\n\t//nを入力\n\tint a, b, c;\n\tscanf(\"%d\", &a);\n\tscanf(\"%d\", &b);\n\tscanf(\"%d\", &c);\n\t//計算...
CDSS_580283
CDSS
#include<stdio.h> int main() { int N,i,j,count=1, max; scanf("%d", &N); int H[N]; for(i=0; i<N;i++) scanf("%d", &H[i]); max = H[0]; for(j=1; j<N; j++) { if(H[j]>=max) { max = H[j]; count++; } } printf("%d\n", count); return ...
1,688
memory_bytes
{'s_id': 's559841744', 'p_id': 'p03072', 'u_id': 'u089230684', 'date': '1600214747', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1688', 'code_size': '326'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int N,i,j,count=1, max;\n scanf(\"%d\", &N);\n int H[N];\n for(i=0; i<N;i++)\n s...
CDSS_718581
CDSS
#include<stdio.h> int main(void) { long long int n, m; long long int ans; scanf("%lld %lld", &n, &m); if (n >= m/2) { ans = m / 2; } else { ans = n + (m - 2 * n) / 4; } printf("%lld\n", ans); return 0; }
128
memory_bytes
{'s_id': 's120371861', 'p_id': 'p03799', 'u_id': 'u993235301', 'date': '1492489745', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '220'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n\tlong long int n, m;\n\tlong long int ans;\n\tscanf(\"%lld %lld\", &n, &m);\n\n\tif (n >= m...
CDSS_711369
CDSS
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <math.h> #include <limits.h> #define Max(a, b) ((a) > (b) ? (a) : (b)) #define Min(a, b) ((a) > (b) ? (b) : (a)) #define abs(x) ((x) > 0 ? (x) : -(x)) #define MOD (ll)1000000007 //10^9 + 7 #define endl printf("\n") typedef long lon...
128
memory_bytes
{'s_id': 's624643596', 'p_id': 'p03740', 'u_id': 'u801102476', 'date': '1566958716', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '511'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include <string.h>\n#include <math.h>\n#include <limits.h>\n#define ...
CDSS_190035
CDSS
#include <stdio.h> int a[10500],n; int linearSearch(int key){ int i; a[n]=key; for(i=0; i<n; i++) if(key==a[i]) return 1; return 0; } int main(){ int count=0,i,q,b; scanf("%d",&n); for(i=0; i<n; i++) scanf("%d",&a[i]); scanf("%d",&q); for(i=0; i<q; i++){ scanf("%d",&b); ...
2,104
memory_bytes
{'s_id': 's503986602', 'p_id': 'p02267', 'u_id': 'u097555122', 'date': '1530499441', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2104', 'code_size': '424'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint a[10500],n;\n\nint linearSearch(int key){\n int i;\n \n a[n]=key;\n \n for(i=0; i<n; i++)\n if(key...
CDSS_383732
CDSS
#include<stdio.h> int main(void) { int i,t=0,f=0; char s[10]; scanf("%s",s); for(i=0;i<3;i++){ if(s[i]=='R'&&f==0){ t++; } else if(s[i]=='S'&&t>0){ f=1; } } printf("%d\n",t); return 0; }
1,724
memory_bytes
{'s_id': 's893216485', 'p_id': 'p02582', 'u_id': 'u218315167', 'date': '1597519052', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1724', 'code_size': '230'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n int i,t=0,f=0;\n char s[10];\n scanf(\"%s\",s);\n for(i=0;i<3;i++){\n if(s[i]=='R'&&f=...
CDSS_276251
CDSS
#include<stdio.h> int main(void) { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a<b&&b<c){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }
580
memory_bytes
{'s_id': 's034443021', 'p_id': 'p02392', 'u_id': 'u283685418', 'date': '1461293240', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '153'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n\n{\n\tint a,b,c;\n\tscanf(\"%d %d %d\",&a,&b,&c);\n\tif(a<b&&b<c){\n\t\tprintf(\"Yes\\n\");\n\t}...
CDSS_203519
CDSS
#include <stdio.h> #include <limits.h> #define ARRAY_SIZE 500000 #define DIV_SIZE 250001 int A[ARRAY_SIZE]; int L[DIV_SIZE]; int R[DIV_SIZE]; int count; void merge(int left, int mid, int right) { int i, j, k, n1, n2; n1 = mid - left; n2 = right - mid; count += right - left; for (i = 0; i < n1; i++) L[i] = A[l...
5,624
memory_bytes
{'s_id': 's779813836', 'p_id': 'p02272', 'u_id': 'u641702731', 'date': '1513167737', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '100', 'memory': '5624', 'code_size': '946'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <limits.h>\n\n#define ARRAY_SIZE 500000\n#define DIV_SIZE 250001\n\nint A[ARRAY_SIZE];\nint L[DIV_SIZE]...
CDSS_222889
CDSS
#include <stdio.h> #include <stdlib.h> struct Node { int key; struct Node *parent,*left,*right; }; void insert(int); struct Node *find(struct Node *,int); void inorder(struct Node *); void preorder(struct Node *u); struct Node *root,*NIL; int main(){ int m,i,k; char com[20]; scanf("%d",&m); for(i=...
20,604
memory_bytes
{'s_id': 's916048013', 'p_id': 'p02284', 'u_id': 'u953743009', 'date': '1531750711', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '290', 'memory': '20604', 'code_size': '1431'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nstruct Node {\n int key;\n struct Node *parent,*left,*right;\n};\n\nvoid insert(int...
CDSS_286456
CDSS
#include<stdio.h> int main() { int a,b,c,i,j; scanf("%d%d%d",&a,&b,&c); if(a>b && a>c) { if(b>c) printf("%d %d %d\n",c,b,a); else printf("%d %d %d\n",b,c,a); } else if(b>a && b>c) { if(a>c) printf("%d %d %d\n",c,a,b); else printf("%d %d %d\n",a,c,b); } els...
1,796
memory_bytes
{'s_id': 's859693742', 'p_id': 'p02393', 'u_id': 'u011621222', 'date': '1511366909', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1796', 'code_size': '458'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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,i,j;\n scanf(\"%d%d%d\",&a,&b,&c);\n if(a>b && a>c)\n{\n if(b>c)\n p...
CDSS_345440
CDSS
#include <stdio.h> void to_card(int idx, char *suit, int *rank) { switch (idx/13) { case 0: *suit = 'S'; break; case 1: *suit = 'H'; break; case 2: *suit = 'C'; break; case 3: *suit = 'D'; break; } *rank = idx%13 + 1; } void to_idx(char suit, int rank, int *idx) { switch (suit) { case 'S': *idx = 0*13 + (r...
600
memory_bytes
{'s_id': 's138815209', 'p_id': 'p02408', 'u_id': 'u347010700', 'date': '1474270331', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '865'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nvoid\nto_card(int idx, char *suit, int *rank)\n{\n\tswitch (idx/13)\n\t{\n\tcase 0: *suit = 'S'; break;\n\tcas...
CDSS_109504
CDSS
#include<stdio.h> int h ,w ; int mx[] = { 1 ,1 ,1 ,-1 ,-1 ,-1 ,0 ,0 } ; int my[] = { 1 ,-1 ,0 ,1 ,-1 ,0 ,1 ,-1 } ; char castle[ 1000 ][ 1000 ] ; char castles[ 1000 ][ 1000 ] ; char sand[ 1000 ][ 1000 ] ; int del[ 999 * 999 ][ 2 ] ; int DEL ; #define x j + mx[ k ] #define y i + my[ k ] #define dy [ 0 ] #defin...
11,504
memory_bytes
{'s_id': 's096906974', 'p_id': 'p00535', 'u_id': 'u302788563', 'date': '1509863727', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '60', 'memory': '11504', 'code_size': '2716'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\n\n\nint h ,w ;\n\nint mx[] = { 1 ,1 ,1 ,-1 ,-1 ,-1 ,0 ,0 } ;\nint my[] = { 1 ,-1 ,0 ,1 ,-1 ,0 ,1 ,-1 } ;\n\n\nc...
CDSS_361475
CDSS
#include<stdio.h> #include<ctype.h> int main(){ char ch; while(1){ scanf("%c",&ch); if(ch=='\n')break; if(islower(ch)){ ch = toupper(ch); }else if(isupper(ch)){ ch = tolower(ch); } printf("%c",ch); } printf("\n"); return 0; }
524
memory_bytes
{'s_id': 's167297608', 'p_id': 'p02415', 'u_id': 'u955830252', 'date': '1433594488', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '524', 'code_size': '282'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<ctype.h>\n\nint main(){\n char ch;\n\n while(1){\n scanf(\"%c\",&ch);\n if(ch=='\\n')break;\n\n ...
CDSS_367812
CDSS
#include <stdio.h> #include <string.h> int main(){ int i,lenp; char moji_s[202],moji_p[202],moji_x[202],moji_y[202],*sp,*p; scanf("%s",moji_s); scanf("%s",moji_p); i=0; lenp=strlen(moji_s); sp=moji_s; for (i=0;i<lenp;++i){ strcpy(moji_x,sp+1); ...
540
memory_bytes
{'s_id': 's447154142', 'p_id': 'p02418', 'u_id': 'u239600616', 'date': '1503040989', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '540', 'code_size': '589'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\n\nint main(){\n\n int i,lenp;\n char moji_s[202],moji_p[202],moji_x[202],moji_y[202],...
CDSS_340414
CDSS
#include <stdio.h> int main() { int x,i,n; scanf("%d",&n); for(i=1; i<=n; i++) { x = i; if(x %3 == 0) { printf(" %d",i); } else if(x % 10 == 3) { printf(" %d",i); } else { while(x != 0) { x /=10; if(x % 10 == 3) { printf(" %d",i); break; } } } } printf("\n"); return 0; }
2,064
memory_bytes
{'s_id': 's972941337', 'p_id': 'p02406', 'u_id': 'u477123882', 'date': '1528790050', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '301'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h> \nint main() \n{ \nint x,i,n; \nscanf(\"%d\",&n); \nfor(i=1; i<=n; i++) \n{ \nx = i; \nif(x %3 == 0) \n{ \nprintf...
CDSS_613156
CDSS
#include<stdio.h> int main() { int i = 0; char s[4], tmp; scanf("%s", s); while (s[i] != '\0') { i++; } if (i == 3) { tmp = s[0]; s[0] = s[2]; s[2] = tmp; printf("%s\n", s); } else { printf("%s\n", s); } return 0; }
128
memory_bytes
{'s_id': 's430333233', 'p_id': 'p03227', 'u_id': 'u125051909', 'date': '1540691614', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '242'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n\tint i = 0;\n\tchar s[4], tmp;\n\tscanf(\"%s\", s);\n\n\twhile (s[i] != '\\0') {\n\t\ti++;\n\t}...
CDSS_392032
CDSS
#include<stdio.h> int main(void){ int n,c; scanf("%d",&n); for(c= 0; c < n;){ c = c + 1000; } printf("%d",c-n); return 0; }
1,736
memory_bytes
{'s_id': 's848010685', 'p_id': 'p02612', 'u_id': 'u382716774', 'date': '1593997529', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1736', 'code_size': '157'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n int n,c;\n scanf(\"%d\",&n);\n\n for(c= 0; c < n;){\n c = c + 1000;\n }\n ...
CDSS_347034
CDSS
#include <stdio.h> int main(void){ int cards[128][14] = {{0}}; int i, N; scanf("%d", &N); for(i = 0; i < N; i++) { char c; int cn; scanf("%c", &c); scanf("%c %d", &c, &cn); cards[c][cn] = 1; } for(i = 1; i <= 13; i++) { if(cards['S'][i] == 0) { ...
2,100
memory_bytes
{'s_id': 's842539291', 'p_id': 'p02408', 'u_id': 'u433250944', 'date': '1530578684', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '697'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int cards[128][14] = {{0}};\n int i, N;\n scanf(\"%d\", &N);\n for(i = 0; i < N; i...
CDSS_402769
CDSS
#include <stdlib.h> #include <stdio.h> int main(){ int x,y,i; int turtle =4; int crane = 2; scanf("%d",&x); scanf("%d",&y); int a = x; for(i=0; i <=x;i++){ if(i * 2 + a *4 == y){ printf("Yes"); return 0; } a--; } printf("No"); ...
1,720
memory_bytes
{'s_id': 's244363154', 'p_id': 'p02640', 'u_id': 'u200769489', 'date': '1592479558', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1720', 'code_size': '338'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdlib.h>\n#include <stdio.h>\n\n\nint main(){\n int x,y,i;\n int turtle =4;\n int crane = 2;\n scanf(\"%d\",&...
CDSS_654901
CDSS
#include<stdio.h> int main(void) { int a,b,i,j,k,n,ans=0; scanf("%d%d",&a,&b); for(i=1;i<=9;i++){ for(j=0;j<=9;j++){ for(k=0;k<=9;k++){ n=10001*i+1010*j+100*k; if(n>=a && n<=b) ans++; } } } printf("%d",ans); return 0; }
128
memory_bytes
{'s_id': 's446707500', 'p_id': 'p03416', 'u_id': 'u151785909', 'date': '1587517095', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '249'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n\tint a,b,i,j,k,n,ans=0;\n\tscanf(\"%d%d\",&a,&b);\n\tfor(i=1;i<=9;i++){\n\t\tfor(j=0;j<=9;j...
CDSS_150104
CDSS
#include<stdio.h> int main() { int i, j, k, n, a[1000], v; scanf("%d", &n); for(i = 0; i < n; i++){ scanf("%d", &a[i]); } for(i = 1; i < n; i++){ for(k = 0; k < n; k++){ printf("%d",a[k]); if(k != n - 1) printf(" "); else printf("\n"); } v = a[i]; j = i - 1; while...
2,072
memory_bytes
{'s_id': 's563166850', 'p_id': 'p02255', 'u_id': 'u075006557', 'date': '1543900048', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2072', 'code_size': '528'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main() {\n int i, j, k, n, a[1000], v;\n\n scanf(\"%d\", &n);\n for(i = 0; i < n; i++){\n scanf(\"%d\...
CDSS_425160
CDSS
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #define F(i,a,n) for(int i=a; i<n; i++) #define INF 100000000000 // long only int compare(const void *b1, const void *b2){ // 昇順 if((long)b1 > b2) return 1; else if(b1 < b2) return -1; else return 0; } int cmp(long *b1, long *b2){ /...
7,796
memory_bytes
{'s_id': 's062814890', 'p_id': 'p02691', 'u_id': 'u110006361', 'date': '1588999064', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '71', 'memory': '7796', 'code_size': '1043'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should 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#define F(i,a,n) for(int i=a; i<n; i++)\n#define INF 10...
CDSS_115408
CDSS
#include <stdio.h> int main(void){ int i; int judge_number; int result_point; while(1){ int points[101]={0}; int max_point=0; int min_point=0; int max_index=0; int min_index=0; int sum=0; scanf("%d",&judge_number); if(judge_number==0){ break; } for(i=...
600
memory_bytes
{'s_id': 's988728296', 'p_id': 'p00728', 'u_id': 'u864732357', 'date': '1439953497', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '815'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n\n int i;\n int judge_number;\n int result_point;\n\n while(1){\n \n int points[101...
CDSS_593162
CDSS
#include <stdio.h> int main(void) { int y, m, d; char a; scanf("%d%c%d%c%d", &y, &a, &m, &a, &d); if (m <= 4) { printf("Heisei"); } else { printf("TBD"); } return 0; }
128
memory_bytes
{'s_id': 's131629617', 'p_id': 'p03109', 'u_id': 'u471251895', 'date': '1560254990', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '223'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer should be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n int y, m, d;\n char a;\n scanf(\"%d%c%d%c%d\", &y, &a, &m, &a, &d);\n if (m <= 4...