identifier
string
space
string
input
string
target
float64
metric_type
string
metadata
string
messages
list
CDSS_205506
CDSS
#include<stdio.h> #include<math.h> struct Point{ double x,y; }; void koch(int n, struct Point a, struct Point b){ if(n==0){return;} struct Point 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.y=(1.0*a.y+2.0*b.y)/3.0; u.x=(t.x-s.x)*cos(...
2,144
memory_bytes
{'s_id': 's554441981', 'p_id': 'p02273', 'u_id': 'u177158537', 'date': '1575617478', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2144', 'code_size': '755'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nstruct Point{\n\tdouble x,y;\n};\n\nvoid koch(int n, struct Point a, struct Point b){\n\tif(n==...
CDSS_88480
CDSS
#include<stdio.h> #define NUM 10 void hist(int); int main() { int ice[NUM]; int i,n; while(1) { scanf("%d",&n); if(n==0) break; for(i=0;i<NUM;i++) ice[i]=0; for(;n>0;n--) { scanf("%d",&i); ice[i]++; } for(i=0;i<NUM;i++) hist(ice[i]); } return 0; } void hist(int x) { if(x) { for(;x>0;x--) printf("*"); } else printf("-")...
572
memory_bytes
{'s_id': 's560667340', 'p_id': 'p00219', 'u_id': 'u710890480', 'date': '1503988825', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '572', '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#define NUM 10\nvoid hist(int);\nint main()\n{\nint ice[NUM];\nint i,n;\nwhile(1)\n{\nscanf(\"%d\",&n);\nif(n==0) b...
CDSS_370935
CDSS
// CardGame.c // 太郎と花子がカードゲームをする。 // 二人はそれぞれn枚のカードを持っており、nターンの勝負を行う。 // 各ターンではそれぞれ1枚ずつカードを出す。 // カードにはアルファベットからなる動物の名前が書かれており、 // 辞書順で大きいものがそのターンの勝者となる。 // 勝者には3ポイント、引き分けの場合にはそれぞれ1ポイントが加算される。 // // 太郎と花子の手持ちのカードの情報を読み込み、 // ゲーム終了後のそれぞれの得点を出力するプログラムを作成せよ。 // // 【制約】 // ・入力で与えられるnが1000を超えることはない。 // ・与えられる文字列の長さは100以下であり、...
2,044
memory_bytes
{'s_id': 's908822852', 'p_id': 'p02421', 'u_id': 'u614317997', 'date': '1545492313', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '1887'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// CardGame.c\n// 太郎と花子がカードゲームをする。\n// 二人はそれぞれn枚のカードを持っており、nターンの勝負を行う。\n// 各ターンではそれぞれ1枚ずつカードを出す。\n// カードにはアルファベットからなる動物の名前が書かれており、\n//...
CDSS_71594
CDSS
#include <stdio.h> int main(void) { int y, m, d, date; while (scanf("%d%d%d", &y, &m, &d) != EOF){ date = y * 10000 + m * 100 + d; if (date >= 19890108){ printf("heisei %d %d %d\n", y - 1988, m, d); } else if (date >= 19261225){ printf("showa %d %d %d\n", y - 1925, m, d); } else if (date >= 19...
608
memory_bytes
{'s_id': 's011996505', 'p_id': 'p00083', 'u_id': 'u334031393', 'date': '1409232273', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '608', '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\nint main(void)\n{\n\tint y, m, d, date;\n\t\n\twhile (scanf(\"%d%d%d\", &y, &m, &d) != EOF){\n\t\tdate = y * 100...
CDSS_364675
CDSS
#include <stdio.h> int main(void){ char number[1001]; char *np; int i,sum; np = number; while(1){ scanf("%s", number); if(number[0] == '0'){ return 0; } sum = 0; for(i = 0; *(np+i) != '\0';i++){ sum += *(np+i) - '0'; } printf("%d\n", sum); } return 0; }
536
memory_bytes
{'s_id': 's546512872', 'p_id': 'p02416', 'u_id': 'u910769350', 'date': '1369115107', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '536', 'code_size': '285'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tchar number[1001];\n\tchar *np;\n\tint i,sum;\n\tnp = number;\n\n\twhile(1){\n\t\tscanf(\"%s\...
CDSS_108466
CDSS
#include<stdio.h> int main(){ int a,b=0,i; for(i=0;i<5;i++){ scanf("%d\n",&a); if(a<40){ b=b+40; } else{ b=a+b; } } printf("%d\n",b/5); return 0; }
1,932
memory_bytes
{'s_id': 's156932924', 'p_id': 'p00515', 'u_id': 'u222399748', 'date': '1542630959', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1932', 'code_size': '149'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(){\nint a,b=0,i;\nfor(i=0;i<5;i++){\nscanf(\"%d\\n\",&a);\nif(a<40){\nb=b+40;\n}\nelse{\nb=a+b;\n}\n}\npri...
CDSS_703366
CDSS
#include <stdio.h> int main(){ char S[30]; gets(S); int len=strlen(S); int a=0; for(int i=0;i<len;i++){ for(int j=i+1;j<len;j++) if(S[i]==S[j]) {a++;break;} if(a==1) break; } if(a==0) printf("yes"); else printf("no"); return 0; }
128
memory_bytes
{'s_id': 's331394606', 'p_id': 'p03698', 'u_id': 'u089230684', 'date': '1497584997', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '302'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n char S[30];\n gets(S);\n int len=strlen(S);\n int a=0;\n for(int i=0;i<len;i++){\n ...
CDSS_730509
CDSS
#include <stdio.h> int main (void){ long long how_box; long long limit; scanf("%lld%lld",&how_box,&limit); long long loop1; long long ct=0; long long data[how_box]; for(loop1=0;loop1<how_box;loop1++){ scanf("%lld",&data[loop1]); } for(loop1=0;loop1<how_box-1;loop1++){ ...
896
memory_bytes
{'s_id': 's239113180', 'p_id': 'p03862', 'u_id': 'u926548116', 'date': '1482100326', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1311', 'memory': '896', 'code_size': '1104'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main (void){\n long long how_box;\n long long limit;\n scanf(\"%lld%lld\",&how_box,&limit);\n lo...
CDSS_546817
CDSS
#include <stdio.h> int main(){ int r,area; scanf("%d",&r); area=3*(r*r); printf("%d",area); }
128
memory_bytes
{'s_id': 's450399449', 'p_id': 'p02969', 'u_id': 'u816631826', 'date': '1571204903', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '100'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n\tint r,area;\n\tscanf(\"%d\",&r);\n\tarea=3*(r*r);\n\tprintf(\"%d\",area);\n\t\n}\nPredict its mem...
CDSS_69852
CDSS
#include <stdio.h> typedef struct { int from, to; int weight; } Edge; const int INF = 10000000000; int main(void) { Edge edges[10000]; int n, m; int i, j; int a, b, v; int min, sum; int ch[105], ind; while (1){ scanf("%d", &n); if (n == 0){ break; } scanf("%d", &m); for (i = 0; i < m; ...
664
memory_bytes
{'s_id': 's720884992', 'p_id': 'p00072', 'u_id': 'u860328676', 'date': '1403515608', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '664', 'code_size': '1050'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\ntypedef struct {\n\tint from, to;\n\tint weight;\n} Edge;\n\nconst int INF = 10000000000;\n\nint main(void)\n{\n...
CDSS_390389
CDSS
#include <stdio.h> #include <stdlib.h> int main(void) { int n; scanf("%d",&n); int x,y,z,count=0; for(int i=1;i<=n;i++){ count=0; for(x=1;x<10000;x++){ for(y=1;y<10000-x;y++){ for(z=1;z<10000-x-y;z++){ if((x*x)+(y*y)+(z*z)+(x*y)+(y*z)+(z*x) == i){ count++; } if(((x*x)+(y*y)+(z*z)+(x...
1,676
memory_bytes
{'s_id': 's598586348', 'p_id': 'p02608', 'u_id': 'u382425831', 'date': '1594517942', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1259', 'memory': '1676', 'code_size': '450'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(void) {\n\tint n;\n\tscanf(\"%d\",&n);\n\tint x,y,z,count=0;\n\tfor(int i=1;i<=n;i...
CDSS_532017
CDSS
#include <stdio.h> #include <string.h> int main(void) { char S[4]; char T[4]; int count = 0; scanf("%s %s", &S, &T); for (int i = 0; i < 3; i++) { if (S[i] == T[i]) count++; } printf("%d", count); return 0; }
128
memory_bytes
{'s_id': 's808113579', 'p_id': 'p02921', 'u_id': 'u756415797', 'date': '1570607874', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', '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#include <string.h>\n\nint main(void)\n{\n char S[4];\n char T[4];\n int count = 0;\n\n scanf(\"%s %s\...
CDSS_104729
CDSS
#include <stdio.h> int main(void) { int a,b,c,d; scanf("%d %d %d %d",&a,&b,&c,&d); printf("%d\n%d\n",(a+b+c+d)/60,(a+b+c+d)%60); return 0; }
596
memory_bytes
{'s_id': 's559934542', 'p_id': 'p00477', 'u_id': 'u107631366', 'date': '1464250442', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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(void) {\n\tint a,b,c,d;\n\tscanf(\"%d %d %d %d\",&a,&b,&c,&d);\n\tprintf(\"%d\\n%d\\n\",(a+b+c+d)/60,(a...
CDSS_138148
CDSS
#include<stdio.h> #define N 100 #define INF -1 int Q[N], M[N][N], head,tail; int d[N]; //距離で訪問状態を管理する int n; int dequeue(); void enqueue(int q); int enpty(); void bfs(int); int main(){ int a,b,c; int i,j; scanf("%d",&n); for(i=0;i<n;i++){ for(j=0;j<n;j++){ M[i][j] = 0; } } for(i=0;i<n;i...
2,036
memory_bytes
{'s_id': 's612536002', 'p_id': 'p02239', 'u_id': 'u494156948', 'date': '1580574053', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', 'code_size': '1127'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#define N 100\n#define INF -1\n\nint Q[N], M[N][N], head,tail;\nint d[N]; //距離で訪問状態を管理する\nint n;\nint dequeue();\...
CDSS_217982
CDSS
#include <stdio.h> #define N 100000 typedef struct{ int p,r,l; }Node; Node T[N]; int n,D[N],H[N]; int depth(int); int degree(int); int hight(int); int subiling(int); void print(int); int main() { int i,j,p,l,r,n; scanf("%d", &n); for(i=0; i<n; i++){ T[i].p = -1; T[i].l = -1; T[i].r = -1; } for(i=0; i<n;...
620
memory_bytes
{'s_id': 's008991435', 'p_id': 'p02280', 'u_id': 'u666494266', 'date': '1466517911', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '620', 'code_size': '1467'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#define N 100000\n\ntypedef struct{\n int p,r,l;\n}Node;\n\nNode T[N];\nint n,D[N],H[N];\n\nint depth(int);\nint ...
CDSS_524914
CDSS
#include <stdio.h> int main(void){ int n,k,i,count=0; scanf("%d%d",&n,&k); int h[n]; for(i=0;i<n;i++) scanf("%d",&h[i]); for(i=0;i<n;i++){ if(h[i]>=k) count++; } printf("%d\n",count); return 0; }
512
memory_bytes
{'s_id': 's032848895', 'p_id': 'p02898', 'u_id': 'u112319905', 'date': '1586641084', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '512', 'code_size': '236'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n int n,k,i,count=0;\n scanf(\"%d%d\",&n,&k);\n\n int h[n];\n for(i=0;i<n;i++)\n sc...
CDSS_509224
CDSS
#include <stdio.h> int main(void){ int a1, a2, a3; scanf("%d %d %d", &a1, &a2, &a3); int Ten = a1 + a2 + a3; if (Ten >= 22){ printf("bust\n"); } else { printf("win\n"); } return 0; }
128
memory_bytes
{'s_id': 's214974759', 'p_id': 'p02835', 'u_id': 'u818573308', 'date': '1586741337', '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(void){\n int a1, a2, a3;\n scanf(\"%d %d %d\", &a1, &a2, &a3);\n int Ten = a1 + a2 + a3;\n ...
CDSS_291251
CDSS
int main(int argc, const char * argv[]) { int W,H,x,y,r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(-100<=x&&x<=100&&-100<=y&&y<=100&&0<W&&W<=100&&0<H&&H<=100&&0<r&&r<=100){ if(0<=x-r&&x+r<=W&&0<=y-r&&y+r<=H){ printf("Yes\n"); }else{ printf("No\n"); } ...
584
memory_bytes
{'s_id': 's157738893', 'p_id': 'p02394', 'u_id': 'u677269303', 'date': '1491973254', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '346'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nint main(int argc, const char * argv[]) {\n int W,H,x,y,r;\n scanf(\"%d %d %d %d %d\",&W,&H,&x,&y,&r);\n if(-100<=x&&x<=100&&...
CDSS_237562
CDSS
#include <stdio.h> void Dice(int num[6], char cmd); int main(){ int num[6]; int i; char cmd[101]; for(i=0; i<6; i++) scanf("%d", &num[i]); scanf("%s", cmd); for(i=0; cmd[i]!='\0'; i++){ Dice(num, cmd[i]); } printf("%d\n", num[0]); return 0; } void Dice(int num[6], cha...
596
memory_bytes
{'s_id': 's852878847', 'p_id': 'p02383', 'u_id': 'u663449350', 'date': '1496639335', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '1011'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 Dice(int num[6], char cmd);\n\nint main(){\n int num[6];\n int i;\n char cmd[101];\n \n for(...
CDSS_617911
CDSS
// A - Maximize the Formula // main.c #include <stdio.h> int main(int argc, const char * argv[]) { int a,b,c,d,e = 0; scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); if(a >= b){ e = b; if(c >= a){ d = (c * 10) + a; }else{ d = (a * 10...
128
memory_bytes
{'s_id': 's391808902', 'p_id': 'p03250', 'u_id': 'u857217912', 'date': '1567893023', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '518'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// A - Maximize the Formula\n// main.c\n\n#include <stdio.h>\n\nint main(int argc, const char * argv[]) {\n \n int a,b,c,d,e =...
CDSS_260713
CDSS
#include<stdio.h> int main(void) { int S,h,m,s; scanf("%d",&S); h=S/3600; S=S%3600; m=S/60; s=S%60; printf("%d:%d:%d\n",h,m,s); return 0; }
592
memory_bytes
{'s_id': 's682434283', 'p_id': 'p02390', 'u_id': 'u576267051', 'date': '1466572362', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '592', 'code_size': '148'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint S,h,m,s;\n\tscanf(\"%d\",&S);\n\th=S/3600;\n\tS=S%3600;\n\tm=S/60;\n\ts=S%60;\n\tprintf(\"...
CDSS_59778
CDSS
#include <stdio.h> int sumofintegers(int n,int s,int t,int u,int v){ int a=0,b,c,d,i; b=t+1; for(i=v;i<10;i++){ if((c=u+i)>s) break; if(n==b && s==c){ a=1; break; } else { if((d=i+1)>9) break; a+=sumofintegers(n,s,b,c,d); } } return a; } int main(){ int n,s; while...
0
memory_bytes
{'s_id': 's113614655', 'p_id': 'p00030', 'u_id': 'u715881598', 'date': '1342279272', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '434'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint sumofintegers(int n,int s,int t,int u,int v){\n int a=0,b,c,d,i;\n b=t+1;\n for(i=v;i<10;i++){\n if((c...
CDSS_28580
CDSS
#include <stdio.h> int main( void ) { int a, b, d, tmp; while ( scanf( "%d %d", &a, &b ) == 2 ) { tmp = a + b; for ( d = 1; tmp /= 10; d++ ) ; printf( "%d\n", d ); } return 0; }
600
memory_bytes
{'s_id': 's379592104', 'p_id': 'p00002', 'u_id': 'u340315059', 'date': '1373159216', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '191'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main( void ) {\n\tint a, b, d, tmp;\n\n\twhile ( scanf( \"%d %d\", &a, &b ) == 2 ) {\n\t\ttmp = a + b;\n\t\t...
CDSS_286143
CDSS
#include <stdio.h> int main(void) { int a, b, c, d; scanf("%d %d %d", &a, &b, &c); if(a <= b){ if(b <= c){ } else { d = c; c = b; b = d; } } else { d = b; b = a; a = d; if(b <= c){ } else { d = c; c = b; b = d; } } if(a <= b){ ...
1,816
memory_bytes
{'s_id': 's939600821', 'p_id': 'p02393', 'u_id': 'u863854320', 'date': '1508293415', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '1816', 'code_size': '414'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void)\n{\n int a, b, c, d;\n\n scanf(\"%d %d %d\", &a, &b, &c);\n\n if(a <= b){\n if(b <= c){\n ...
CDSS_610107
CDSS
#include <stdio.h> #include <string.h> int main() { char s[11]; scanf("%s",s); int len = strlen(s); int num,dif,min = 999; for(int count = 0;count < len - 2;count++) { num = (s[count] - '0') * 100 + (s[count+1] - '0') * 10 + (s[count+2] - '0'); if(num < 753) dif = 753 - num; ...
128
memory_bytes
{'s_id': 's679108205', 'p_id': 'p03211', 'u_id': 'u326645237', 'date': '1543804895', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '420'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <string.h>\nint main() {\n char s[11];\n scanf(\"%s\",s);\n int len = strlen(s);\n int num,di...
CDSS_172465
CDSS
#include<stdio.h> int main() { int i,j,s,count=0,a[100],n,temp,minj; scanf("%d",&n); for(s=0;s<n;s++) { scanf("%d",&a[s]); } for(i=0;i<=n-1;i++) { minj=i; for(j=i;j<=n-1;j++) { if(a[j]<a[minj]) { minj=j; } } temp=a[i]; a[i]=a[minj]; ...
2,124
memory_bytes
{'s_id': 's432369054', 'p_id': 'p02260', 'u_id': 'u951545849', 'date': '1544169242', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2124', 'code_size': '516'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main()\n{\n int i,j,s,count=0,a[100],n,temp,minj;\n\n scanf(\"%d\",&n);\n for(s=0;s<n;s++)\n {\n s...
CDSS_655909
CDSS
#include<stdio.h> int main() { int N; scanf("%d",&N); printf("%d",N/3); }
1,724
memory_bytes
{'s_id': 's942917016', 'p_id': 'p03423', 'u_id': 'u353919145', 'date': '1596078163', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '4', 'memory': '1724', 'code_size': '82'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n\tint N;\n\tscanf(\"%d\",&N);\n\t\n\t\tprintf(\"%d\",N/3);\n\t\n\n}\nPredict its memory footprint.",...
CDSS_153916
CDSS
#include <stdio.h> int gcd(int, int); int main(void) { int x, y, a; scanf("%d %d", &x, &y); a=gcd(x,y); printf("%d\n", a); return 0; } gcd(int x, int y) { int z; while((z=x%y)!=0) { x=y; y=z; } return y; }
2,076
memory_bytes
{'s_id': 's436026261', 'p_id': 'p02256', 'u_id': 'u531160833', 'date': '1573125902', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2076', '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 gcd(int, int);\n\nint main(void)\n{\n int x, y, a;\n scanf(\"%d %d\", &x, &y);\n a=gcd(x,y);\n p...
CDSS_273835
CDSS
// // main.c // Hello_world // // Created by 関根 歩 on 2014/06/16. // Copyright (c) 2014年 Ayumu Sekine. All rights reserved. // #include <stdio.h> int main(int argc, const char * argv[]) { int a,b; scanf("%d %d",&a,&b); if(a > b){ printf("a > b\n"); }else if(a == b){ printf("a == b\n"...
580
memory_bytes
{'s_id': 's647370786', 'p_id': 'p02391', 'u_id': 'u726905441', 'date': '1402915978', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '580', 'code_size': '393'}
[ { "content": "Your task is to predict the memory 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// main.c\n// Hello_world\n//\n// Created by 関根 歩 on 2014/06/16.\n// Copyright (c) 2014年 Ayumu Sekine. All rights reserved.\n/...
CDSS_691773
CDSS
#include <stdio.h> #include <math.h> #include <stdlib.h> #include <string.h> //prototype declaration //gloval variable double PI = 3.1415926535897932384626433; int MOD = 10007; int main(void){ char s[100]; scanf("%s", &s); int l = strlen(s); printf("%c%d%c\n", s[0], l-2, s[l-1]); return 0; }
1,720
memory_bytes
{'s_id': 's943985126', 'p_id': 'p03636', 'u_id': 'u324881146', 'date': '1597701160', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '6', 'memory': '1720', 'code_size': '315'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <math.h>\n#include <stdlib.h>\n#include <string.h>\n//prototype declaration\n\n//gloval variable\ndouble ...
CDSS_96900
CDSS
#include<stdio.h> int main(void) { int i,n,a,b,x,y; scanf("%d",&n); while(n!=0) { x=0; y=0; for(i=1;i<=n;i++) { scanf("%d %d",&a,&b); if(a>b) { x=x+a+b; } else if(a<b) { y=y+a+b; } else { x=x+a; y=y+b; } } printf("%d %d\n",x,y); scanf("%d",&n); } return 0; }
600
memory_bytes
{'s_id': 's428562633', 'p_id': 'p00423', 'u_id': 'u089494965', 'date': '1353202040', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '311'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint i,n,a,b,x,y;\n\tscanf(\"%d\",&n);\n\twhile(n!=0) {\n\t\tx=0;\n\t\ty=0;\n\t\tfor(i=1;i<=n;i...
CDSS_238956
CDSS
#include <stdio.h> #include <string.h> //Structure definition----------------------------------------------------------------------------------------- typedef struct{ int top; int front; int right; int left; int back; int under; } DICE; //Macro--------------------------------------------------------------...
2,132
memory_bytes
{'s_id': 's800375651', 'p_id': 'p02385', 'u_id': 'u889404428', 'date': '1595401186', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2132', 'code_size': '3885'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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//Structure definition---------------------------------------------------------------------...
CDSS_532814
CDSS
#include <stdio.h> int main() { int a, b, i; scanf("%d",&a); scanf("%d",&b); for (i = 0; ; i++) if (1 + (a - 1) * i >= b) break; printf("%d", i); return 0; }
128
memory_bytes
{'s_id': 's664224008', 'p_id': 'p02922', 'u_id': 'u395356028', 'date': '1583128633', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '176'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main() {\n\tint a, b, i;\n\n\tscanf(\"%d\",&a);\n scanf(\"%d\",&b);\n\n\tfor (i = 0; ; i++)\n\t\tif (1 + (a...
CDSS_304602
CDSS
#include <stdio.h> int main(int argc, char **argv){ int a,b,c; int i,n; scanf("%d %d %d",&a, &b, &c); n = 0; for(i=a;i<=b;i++){ if( c % i == 0 ){ n++; } } printf("%d\n",n); return 0; }
596
memory_bytes
{'s_id': 's652969166', 'p_id': 'p02398', 'u_id': 'u697154185', 'date': '1446433666', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', 'code_size': '205'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\tint a,b,c;\n\tint i,n;\n\t\n\tscanf(\"%d %d %d\",&a, &b, &c);\n\n\tn = 0;\n\...
CDSS_281849
CDSS
#include <stdio.h> int main (){ int a[3],i,j,tem; for(i=0;i<3;i++) scanf("%d",&a[i]); for(i=0;i<2;i++) for(j=i;j<3;j++) if(a[i]>a[j]){ tem = a[i]; a[i] = a[j]; a[j] = tem; } printf("%d %d %d\n",a[0],a[1],a[2]); return 0; }
596
memory_bytes
{'s_id': 's584298641', 'p_id': 'p02393', 'u_id': 'u411540321', 'date': '1429173962', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '596', '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 int a[3],i,j,tem;\n\n for(i=0;i<3;i++) scanf(\"%d\",&a[i]);\n for(i=0;i<2;i++) for(j=i;j<3;j++...
CDSS_307576
CDSS
#include <stdio.h> int main(void) { int a, b, c; int i, j=0; scanf("%d%d%d",&a,&b,&c); for(i=a;i<=b;i++) if(c%i==0) j++; printf("%d\n",j); return 0; }
2,108
memory_bytes
{'s_id': 's487235435', 'p_id': 'p02398', 'u_id': 'u639886339', 'date': '1533476243', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '193'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void)\n{\n int a, b, c;\n int i, j=0;\n scanf(\"%d%d%d\",&a,&b,&c);\n for(i=a;i<=b;i++)\n...
CDSS_654510
CDSS
#include <stdio.h> int main(void){ int i; char C[3][3]; for(i=0;i<3;i++){ scanf("%s",C[i]); } for(i=0;i<3;i++) printf("%c",C[i][i]); return(0); }
128
memory_bytes
{'s_id': 's011800065', 'p_id': 'p03415', 'u_id': 'u284501132', 'date': '1555003436', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '194'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int i;\n char C[3][3];\n for(i=0;i<3;i++){\n scanf(\"%s\",C[i]);\n }\n f...
CDSS_183588
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct process { char name[16]; int time; } process; /* copy the process ** from q to p ** */ void processcpy(process *p, process *q){ strcpy(p->name, q->name); p->time = q->time; } /* double-linked linear list of process (to implement pr...
4,048
memory_bytes
{'s_id': 's648987738', 'p_id': 'p02264', 'u_id': 'u788270302', 'date': '1589169290', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '4048', 'code_size': '2447'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\ntypedef struct process {\n char name[16];\n int time;\n} process;\n\...
CDSS_563472
CDSS
#include <stdio.h> int main(void){ int n,i,j,s1=0,s2=0,min,d; min = 10000; scanf("%d",&n); int w[n]; for(i=0;i<n;i++){ scanf("%d",&w[i]); } for(i=0;i<n;i++){ s1 = 0; s2 =0; for(j=0;j<=i;j++){ s1 += w[j]; } for(j=i+1;j<n;j++){ ...
128
memory_bytes
{'s_id': 's889618975', 'p_id': 'p03012', 'u_id': 'u658441673', 'date': '1565113857', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '451'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(void){\n int n,i,j,s1=0,s2=0,min,d;\n min = 10000;\n scanf(\"%d\",&n);\n int w[n];\n \n fo...
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 must 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,i...
CDSS_236927
CDSS
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <ctype.h> #include <math.h> int main(){ int num; int x[100]; int y[100]; int i; double re[4]={0.0, 0.0, 0.0, 0.0}; scanf("%d", &num); for(i=0; i< num; i++){ scanf("%d", &x[i]); } for(i=0; i<num; i++){ scanf("%d", &y[i]); } for(i=0; i<...
2,100
memory_bytes
{'s_id': 's090036436', 'p_id': 'p02382', 'u_id': 'u590441150', 'date': '1524358648', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', '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 <stdlib.h>\n#include <stdio.h>\n#include <string.h>\n#include <ctype.h>\n#include <math.h>\n\nint main(){\n\tint num;\n\tint ...
CDSS_368294
CDSS
#include <stdio.h> int main(void){ char s[100]; char p[100]; char ss[200]; scanf("%s", s); scanf("%s", p); strcpy(ss, s); strcat(ss, s); if(strstr(ss, p) == NULL){ printf("No\n"); } else{ printf("Yes\n"); } return 0; }
2,112
memory_bytes
{'s_id': 's119455348', 'p_id': 'p02418', 'u_id': 'u765483726', 'date': '1533481031', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '314'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(void){\n char s[100];\n char p[100];\n char ss[200];\n \n scanf(\"%s\", s);\n scanf(...
CDSS_58632
CDSS
#include <stdio.h> int main() { int num, month, day, pass = 0; int date[12][2] = { {1, 31}, {2, 29}, {3, 31}, {4, 30}, {5, 31}, {6, 30}, {7, 31}, {8, 31}, {9, 30}, {10, 31}, {11, 30}, {12, 31}}; char *weeks[7] = {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"}; scanf("%d ...
584
memory_bytes
{'s_id': 's649234987', 'p_id': 'p00027', 'u_id': 'u492566253', 'date': '1373645314', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '670'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 num, month, day, pass = 0;\n int date[12][2] = {\n {1, 31}, {2, 29}, {3, 31}, {4, 30}, {...
CDSS_246964
CDSS
#include<stdio.h> int main(void){ int x; scanf("%d",&x); printf("%d\n",x*x*x); return(0); }
2,036
memory_bytes
{'s_id': 's731104417', 'p_id': 'p02388', 'u_id': 'u183136594', 'date': '1523588322', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2036', '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>\n\nint main(void){\n int x;\n scanf(\"%d\",&x);\n printf(\"%d\\n\",x*x*x);\n return(0);\n}\n\nPredict it...
CDSS_603047
CDSS
#include <stdio.h> int n; int a[100100][4]; int dp[100100][4]; int max(int a, int b) { return (a > b ? a : b); } int main() { scanf("%d", &n); for (int i = 1; i <= n; i++) { for (int j = 1; j <= 3; j++) scanf("%d", &a[i][j]); } for (int i = 1; i <= 3; i++) dp[1][i] = a[1][i]; for (int...
3,328
memory_bytes
{'s_id': 's576037582', 'p_id': 'p03162', 'u_id': 'u390783404', 'date': '1575931085', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '33', 'memory': '3328', 'code_size': '635'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint n;\nint a[100100][4];\nint dp[100100][4];\n\nint max(int a, int b) {\n return (a > b ? a : b);\n}\n\nint ...
CDSS_218957
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,108
memory_bytes
{'s_id': 's123609615', 'p_id': 'p02280', 'u_id': 'u183183774', 'date': '1577081830', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '1671'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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_616269
CDSS
#include <stdio.h> int main(void) { //変数の宣言 int n; int ans; //データの読み込み scanf("%d",&n); // printf("nは%dです\n", n); // printf("データの読み込み終了\n"); //実際の処理 ans = 1110-n; // printf("計算部分終了\n"); //出力 printf("%d",ans); // printf("結果の出力終了\n"); return 0; }
128
memory_bytes
{'s_id': 's707620450', 'p_id': 'p03242', 'u_id': 'u705931757', 'date': '1542639503', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '365'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n\n#include <stdio.h>\n\n\n\nint main(void)\n{\n\t//変数の宣言\n\tint n;\n\tint ans;\n\t\n\t//データの読み込み\n\tscanf(\"%d\",&n);\n//\tprintf(\"nは...
CDSS_208081
CDSS
#include<stdio.h> #include<stdlib.h> #define MAX 2000001 int B[10001]; int main(){ unsigned short *A,*C; int i,sumdata; scanf("%d",&sumdata); A = malloc(sizeof(short)*sumdata+1); C = malloc(sizeof(short)*sumdata +1); for(i = 0; i < sumdata; i++){ scanf("%d",&A[i]); B[A[i]] = B[A[i]] ...
8,452
memory_bytes
{'s_id': 's541069367', 'p_id': 'p02275', 'u_id': 'u060671672', 'date': '1464750146', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '380', 'memory': '8452', 'code_size': '735'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\n#define MAX 2000001\n\nint B[10001];\n \nint main(){\n \n unsigned short *A,*C;\n int i,sum...
CDSS_471935
CDSS
#include <stdio.h> #include <stdlib.h> int main() { int n,m; scanf("%d %d",&n,&m); if(n<0||n>100||m<0||m>100||n+m<2) return 0; //if((m==0&&n==0)||(m==1&&n==0)||(n==1&&m==0)) printf("0"); printf("%d",(n*(n-1)/2)+(m*(m-1)/2)); //if((m==1||m==0)&&n!=1) printf("%d",n*(n-1)/2); //if((n==1|...
128
memory_bytes
{'s_id': 's866615509', 'p_id': 'p02729', 'u_id': 'u599597776', 'date': '1584927811', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '375'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n\nint main()\n{\n int n,m;\n scanf(\"%d %d\",&n,&m);\n\n if(n<0||n>100||m<0||m>100||...
CDSS_574147
CDSS
//set many funcs template //Ver.20181228 #include<stdio.h> #include<string.h> #include<stdlib.h> #include<stdbool.h> #include<time.h> #define inf 1072114514 #define llinf 4154118101919364364 #define mod 1000000007 #define pi 3.1415926535897932384 int max(int a,int b){if(a>b){return a;}return b;} int min(int a,int b){i...
55,424
memory_bytes
{'s_id': 's375892182', 'p_id': 'p03051', 'u_id': 'u721060623', 'date': '1557630808', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '86', 'memory': '55424', 'code_size': '5513'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n//set many funcs template\n//Ver.20181228\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<stdbool.h>\n#include<ti...
CDSS_372534
CDSS
#include <stdio.h> #include <string.h> #define Num 1001 void print (char* str,int a,int b); void reverse (char* str,int a,int b); void replace (char* str,int a,int b,char* rep); int main () { char str[Num],func[Num],rep[Num]; int a,b; int command; scanf ("%s",&str); //操作する文字列 scanf ("%d"...
2,112
memory_bytes
{'s_id': 's872236844', 'p_id': 'p02422', 'u_id': 'u843817460', 'date': '1564101789', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '1331'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 Num 1001\n \nvoid print (char* str,int a,int b);\nvoid reverse (char* str,int a,in...
CDSS_283504
CDSS
#include<stdio.h> int main(void) { int a, b, c; scanf("%d %d %d\n", &a, &b, &c); if(a <= b){ if(b <= c){ printf("%d %d %d\n", a, b, c); }else{ if(a <= c){ printf("%d %d %d\n", a, c, b); }else{ printf("%d %d %d\n", c, a, b); } } }else{ if(c <= b){ printf("%d %d %d\n", c, b, a); }e...
600
memory_bytes
{'s_id': 's357724646', 'p_id': 'p02393', 'u_id': 'u276902185', 'date': '1466617336', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '445'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n\tint a, b, c;\n\n\tscanf(\"%d %d %d\\n\", &a, &b, &c);\n\n\tif(a <= b){\n\t\tif(b <= c){\n\t\...
CDSS_614252
CDSS
#include<stdio.h> int main(void){ int n,a,b; scanf("%d",&n); if(n == 1){ printf("Hello World"); }else{ scanf("%d",&a); scanf("%d",&b); printf("%d",a+b); } return 0; }
128
memory_bytes
{'s_id': 's962108081', 'p_id': 'p03238', 'u_id': 'u933623750', 'date': '1549642315', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '225'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void){\n\n int n,a,b;\n scanf(\"%d\",&n);\n if(n == 1){\n printf(\"Hello World\");\n ...
CDSS_614703
CDSS
#include<stdio.h> int main() { int N, T, min; scanf("%d %d", &N, &T); int c[N], t[N]; for(int i = 0; i < N; i++) { scanf("%d %d", &c[i], &t[i]); } min = 1001; for(int i = 0; i < N; i++) { if(c[i] < min && t[i] <= T) { min = c[i]; } } if(min == 1001) { printf("TLE\n"); } els...
128
memory_bytes
{'s_id': 's984603580', 'p_id': 'p03239', 'u_id': 'u167364350', 'date': '1592254087', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '354'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main() {\n int N, T, min;\n scanf(\"%d %d\", &N, &T);\n int c[N], t[N];\n for(int i = 0; i < N; i++) {\n ...
CDSS_113987
CDSS
#include <stdio.h> #include <string.h> char max[72]; char matrix[72][72]; char num[72][72][72]; int large(char *num1, char *num2) { if (strlen(num1) < strlen(num2)){ return (-1); } if (strlen(num1) == strlen(num2)){ return (strcmp(num1, num2)); } return (1); } int main(void) { int W, H, C; int i, j; int...
984
memory_bytes
{'s_id': 's143642255', 'p_id': 'p00707', 'u_id': 'u648926140', 'date': '1419893692', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '984', 'code_size': '1255'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nchar max[72];\nchar matrix[72][72];\nchar num[72][72][72];\n\nint large(char *num1, char *n...
CDSS_725836
CDSS
#include<stdio.h> int main() { int a,b,e; char op; scanf("%d %c %d",&a,&op,&b); if(op=='+') { printf("%d",a+b); } else { printf("%d",a-b); } return 0; }
1,680
memory_bytes
{'s_id': 's578632337', 'p_id': 'p03844', 'u_id': 'u338425314', 'date': '1600066693', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1680', '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 int a,b,e;\n char op;\n scanf(\"%d %c %d\",&a,&op,&b);\n if(op=='+')\n {\n ...
CDSS_648582
CDSS
#pragma warning(disable:4996) #include <stdio.h> #include <stdlib.h> #include <string.h> #define _USE_MATH_DEFINES #include <math.h> #include <float.h> #pragma region 定義 typedef long long ll; typedef unsigned long long ull; #define _itoa(A,N) sprintf(A, "%d", N); int i_dsort(const void* a, const void* b); int i...
1,712
memory_bytes
{'s_id': 's436594416', 'p_id': 'p03373', 'u_id': 'u918599282', 'date': '1594991726', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '5', 'memory': '1712', 'code_size': '4221'}
[ { "content": "Your task is to predict the memory 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#pragma warning(disable:4996)\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#define _USE_MATH_DEFINES\n#include <...
CDSS_358702
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #define CheckNumber(number, limitLow, limitHigh) ( (number) >= (limitLow) && (number) <= (limitHigh) ) typedef struct { int** matrix; int rowSize; int columnSize; int* rowSum; int* columnSum; int sumSum; } Matrix; void InputNumber(int* number, int limi...
2,052
memory_bytes
{'s_id': 's551073451', 'p_id': 'p02413', 'u_id': 'u603747343', 'date': '1586499779', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2052', 'code_size': '2843'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#define CheckNumber(number, limitLow, limitHigh) ( (number) >= (limitL...
CDSS_350133
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #define _USE_MATH_DEFINES #include <math.h> #define ABS(x) ( (x)>0 ? x : -(x) ) #define MIN(x,y) ( (x) < (y) ? (x) : (y) ) #define MAX(x,y) ( (x) > (y) ? (x) : (y) ) #define INF 1000000000 int main() { int n; int room[4][3][10] = { 0 }; int i, j,k; int ...
2,044
memory_bytes
{'s_id': 's473630946', 'p_id': 'p02409', 'u_id': 'u129426219', 'date': '1584709404', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2044', 'code_size': '681'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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#define _USE_MATH_DEFINES\n#include <math.h>\n\n#define ABS(x) ( (x)>0 ?...
CDSS_693878
CDSS
#include<stdio.h> #include<string.h> int main(void) { int n; scanf("%d",&n); if(n==1){ printf("1\n"); } else if(2<=n && n<=3){ printf("2\n"); } else if(4<= n && n <=7){ printf("4\n"); } else if(8<= n && n <=15){ printf("8\n"); } else if(16<= n && n <=31){ printf("16\n"); } else if(32<= n && n <=...
128
memory_bytes
{'s_id': 's121989794', 'p_id': 'p03644', 'u_id': 'u856874613', 'date': '1539724726', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '128', 'code_size': '387'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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{\t\n\tint n;\n\tscanf(\"%d\",&n);\n\tif(n==1){\n\t\tprintf(\"1\\n\");\n\t}\n\t...
CDSS_185070
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct node{ int key; struct node* next; struct node* prev; }Node; Node *NIL; void init(void); void printList(void); Node* listSearch(int); void insert(int); void deleteNode(Node *); void deleteLast(void); void deleteKey(int); void deleteFirst...
31,788
memory_bytes
{'s_id': 's113666795', 'p_id': 'p02265', 'u_id': 'u409954594', 'date': '1498113846', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '340', 'memory': '31788', 'code_size': '1643'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 \ntypedef struct node{\n int key;\n struct node* next;\n struct node...
CDSS_624529
CDSS
#include<stdio.h> #include<stdlib.h> #define NEW(p,n){p=malloc((n)*sizeof(p[0]));if(p==NULL){printf("not enough memory\n");exit(1);};} //pの型の変数n個の要素分のメモリを確保し、そのアドレスをpに代入するマクロ #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define MIN(a, b) ((a) < (b) ? (a) : (b)) //昇順 int asc(const void* a, const void* b){ return *(i...
512
memory_bytes
{'s_id': 's860288350', 'p_id': 'p03274', 'u_id': 'u941434715', 'date': '1573587077', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '13', 'memory': '512', 'code_size': '929'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\n\n#define NEW(p,n){p=malloc((n)*sizeof(p[0]));if(p==NULL){printf(\"not enough memory\\n\");exit...
CDSS_726750
CDSS
#include<stdio.h> int main(void) { int n,m; int t[120]; int p[120]; int x[120]; scanf("%d",&n); for(int i=0;i<n;i++){ scanf("%d",&t[i]); } scanf("%d",&m); for(int i=0;i<m;i++){ scanf("%d %d",&p[i],&x[i]); } for(int i=0;i<m;i++){ int sum=0; for(int j=0;j<n;j++){ if(j!=p[i]-1...
128
memory_bytes
{'s_id': 's703323992', 'p_id': 'p03845', 'u_id': 'u566317458', 'date': '1591891342', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '403'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n int n,m;\n int t[120];\n int p[120];\n int x[120];\n scanf(\"%d\",&n);\n for(int i=0;i<...
CDSS_537800
CDSS
#include<stdio.h> #include<stdlib.h> typedef struct edge{ int x; struct edge* next; }edge; typedef struct node{ long long int value; edge* fst; edge* lst; }node; void init(node* p){ p->value = 0; p->fst = NULL; p->lst = NULL; } void add(node* p, int x){ if(p->fst == NULL){ ...
32,000
memory_bytes
{'s_id': 's740374819', 'p_id': 'p02936', 'u_id': 'u071680334', 'date': '1573934694', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '143', 'memory': '32000', 'code_size': '1372'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 edge{\n int x;\n struct edge* next;\n}edge;\n\ntypedef struct node{\n ...
CDSS_293354
CDSS
#include <stdio.h> int main(int argc, const char * argv[]) { int W; int H; int x; int y; int r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (0<=x-r && x+r<=W && 0<=y-r && y+r<=H) { printf("Yes\n"); } if (0>x-r || x+r>W || 0>y-r || y+r>H) { printf("No\n...
2,096
memory_bytes
{'s_id': 's835356618', 'p_id': 'p02394', 'u_id': 'u634623346', 'date': '1593245310', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2096', 'code_size': '356'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(int argc, const char * argv[]) {\n \n int W;\n int H;\n int x;\n int y;\n int r;\n ...
CDSS_249225
CDSS
#include<stdio.h> int main(){ int x; scanf("%d",&x); printf("%d\n",x*x*x); return 0; }
2,108
memory_bytes
{'s_id': 's938043138', 'p_id': 'p02388', 'u_id': 'u037034101', 'date': '1545183586', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2108', 'code_size': '101'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 x;\n scanf(\"%d\",&x);\n printf(\"%d\\n\",x*x*x);\n return 0;\n}\n\nPredict its memor...
CDSS_95799
CDSS
#include<stdio.h> int main(void) { int a,b,c; scanf("%d",&a); b=a-30; c=b/2; printf("%d\n",c); return 0; }
2,064
memory_bytes
{'s_id': 's390429556', 'p_id': 'p00375', 'u_id': 'u432821577', 'date': '1581471895', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2064', 'code_size': '114'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main(void)\n{\n\tint a,b,c;\n\tscanf(\"%d\",&a);\n\tb=a-30;\n\tc=b/2;\n\tprintf(\"%d\\n\",c);\n\treturn 0;\n}...
CDSS_723558
CDSS
#include<stdio.h> #include<stdlib.h> long cmp(const void *a,const void *b){ return *(long*)a - *(long*)b; } int main(){ long n; long a; long b; long x[100010] = {}; long diff[100010] = {}; long i; long sum=0; long cnt = 0; scanf("%ld %ld %ld",&n,&a,&b); for(i=0;i<n;i++){ scanf("%ld",&x[i]);...
2,556
memory_bytes
{'s_id': 's868846442', 'p_id': 'p03831', 'u_id': 'u185050799', 'date': '1575480942', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '25', 'memory': '2556', 'code_size': '619'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<stdlib.h>\nlong cmp(const void *a,const void *b){\n return *(long*)a - *(long*)b;\n}\n\nint main(){\n lo...
CDSS_89832
CDSS
a,b;char*z;main(){for(;scanf("%d",&b)*b;puts(z))for(z=&a;b;b=(*z-48-b)/10)*--z=(b%10+10)%10+48;}
0
memory_bytes
{'s_id': 's120187520', 'p_id': 'p00233', 'u_id': 'u479246559', 'date': '1326015591', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '96'}
[ { "content": "Your task is to predict the 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,b;char*z;main(){for(;scanf(\"%d\",&b)*b;puts(z))for(z=&a;b;b=(*z-48-b)/10)*--z=(b%10+10)%10+48;}\nPredict its memory footprint.", ...
CDSS_426871
CDSS
#include<stdio.h> int main() { int K; int A; int B; scanf("%d %d %d",&K, &A, &B); for(int i=1;i<1001;i++) { int Ki=i*K; if(( Ki <= B) && (Ki>=A)) { printf("OK\n"); return 0; } } printf("NG\n"); return 0; }
1,620
memory_bytes
{'s_id': 's236011053', 'p_id': 'p02693', 'u_id': 'u265756457', 'date': '1588468674', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1620', '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()\n{\n\tint K;\n\tint A;\n\tint B;\n\n\tscanf(\"%d %d %d\",&K, &A, &B);\n for(int i=1;i<1001;i++)...
CDSS_411988
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main(void) { long double a, b; scanf("%Lf %Lf", &a, &b); printf("%lld\n", (long long int) (a * b)); return 0; }
1,760
memory_bytes
{'s_id': 's679640753', 'p_id': 'p02659', 'u_id': 'u143118232', 'date': '1590976152', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1760', 'code_size': '203'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <math.h>\n\nint main(void) {\n long double a, b;\n scanf(\"%L...
CDSS_318713
CDSS
#include<stdio.h> int main() { int a, b, calc; char op; while (1) { scanf("%d %c %d", &a, &op, &b); switch (op) { case '?': return 0; break; case '+': calc = a + b; break; case '-': calc = a - b; break; case '*': calc = a*b; break; case '/': calc = a / b; break; defau...
600
memory_bytes
{'s_id': 's174612482', 'p_id': 'p02401', 'u_id': 'u291301362', 'date': '1479600499', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '600', 'code_size': '377'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n\nint main() {\n\tint a, b, calc;\n\tchar op;\n\twhile (1) {\n\t\tscanf(\"%d %c %d\", &a, &op, &b);\n\t\tswitch (op...
CDSS_576478
CDSS
#include <stdio.h> int gcd(int a, int b){ int r; if(a<b){ r=a; a=b; b=r; } if(b==0){ return a; } while(1){ r=a%b; if(r==0){ return(b); } a=b; b=r; } } int max(int a, int b){ if(a>b){ return a; } return b; } int main(){ int N; scanf("%d",&N); int A[100000]; int i; for(i=0;i<N;i++...
1,280
memory_bytes
{'s_id': 's628314591', 'p_id': 'p03061', 'u_id': 'u166970909', 'date': '1556505727', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '15', 'memory': '1280', 'code_size': '561'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint gcd(int a, int b){\n\tint r;\n\tif(a<b){\n\t\tr=a;\n\t\ta=b;\n\t\tb=r;\n\t}\n\tif(b==0){\n\t\treturn a;\n\t}...
CDSS_84427
CDSS
// AOJ 0172: Doctor's Research Rooms // 2018.1.24 bal4u@uu #include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct { char rm; int light; } Q; Q q[491520]; int top, end; Q *used[15][32768]; int rm[15][15], s_rm[15]; int sw[15][15], s_sw[15]; char *msg[7] = {0, "You can go home in %d steps.\n", "You...
5,860
memory_bytes
{'s_id': 's598339511', 'p_id': 'p00172', 'u_id': 'u847467233', 'date': '1516796386', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '5860', 'code_size': '2470'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n// AOJ 0172: Doctor's Research Rooms\n// 2018.1.24 bal4u@uu\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\ntypedef...
CDSS_469519
CDSS
#include <stdio.h> int main() { int x,a,b,h; scanf("%d",&x); a=x/500; b=(x%500)/5; h=a*1000+b*5; printf("%d",h); }
128
memory_bytes
{'s_id': 's518801488', 'p_id': 'p02724', 'u_id': 'u909868158', 'date': '1586642552', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', '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 must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main() {\n int x,a,b,h;\n scanf(\"%d\",&x);\n a=x/500;\n b=(x%500)/5;\n h=a*1000+b*5;\n printf(\"%d\",...
CDSS_77635
CDSS
#include<stdio.h> #include<math.h> int main(void){ int tate,yoko,takasa; int n; int r; int i; int tmp; while(1){ scanf("%d %d %d",&tate,&yoko,&takasa); if(tate+yoko+takasa==0) break; scanf("%d",&n); if(tate>yoko){ tmp=tate; tate=yoko; yoko=tmp; } if(yoko>taka...
584
memory_bytes
{'s_id': 's798320629', 'p_id': 'p00107', 'u_id': 'u083853290', 'date': '1433759708', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '584', 'code_size': '542'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\n#include<math.h>\nint main(void){\n int tate,yoko,takasa;\n int n;\n int r;\n int i;\n int tmp;\n\n while(1){...
CDSS_620038
CDSS
#include <stdio.h> int main() { int a, b; scanf("%d%d", &a, &b); if (a % 2 == 1 && b % 2 == 1) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
128
memory_bytes
{'s_id': 's811400193', 'p_id': 'p03260', 'u_id': 'u030504180', 'date': '1585598908', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '163'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main() {\n\tint a, b;\n\tscanf(\"%d%d\", &a, &b);\n\tif (a % 2 == 1 && b % 2 == 1) {\n\t\tprintf(\"Yes\\n\");\...
CDSS_336744
CDSS
#include <stdio.h> int main(void){ int h,w,i,j; while(1){ scanf("%d %d",&h,&w); if( h==0 && w==0) break; for(i=1; i<=h; i++){ for(j=1; j<=w; j++){ if((i+j)%2 == 0) printf("#"); else pri...
2,032
memory_bytes
{'s_id': 's218764410', 'p_id': 'p02405', 'u_id': 'u678843586', 'date': '1529976520', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2032', 'code_size': '423'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n \nint main(void){\n int h,w,i,j;\n while(1){\n scanf(\"%d %d\",&h,&w);\n if(...
CDSS_62964
CDSS
t[9999][999],j;main(p,W,a,b,c){for(;scanf("%d",&W),W;printf("Case %d:\n%d\n%d\n",p++,t[0][W],j)){for(scanf("%d",&c);c&&scanf("%d,%d",&b,&a);j=c--)for(j=0;j<=W;j++)t[c-1][j]=j<a?t[c][j]:fmax(t[c][j],(t[c][j-a]+b));for(;t[0][++j]-t[0][W];);}}
0
memory_bytes
{'s_id': 's507866215', 'p_id': 'p00042', 'u_id': 'u611853667', 'date': '1317554838', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '0', 'code_size': '241'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\nt[9999][999],j;main(p,W,a,b,c){for(;scanf(\"%d\",&W),W;printf(\"Case %d:\\n%d\\n%d\\n\",p++,t[0][W],j)){for(scanf(\"%d\",&c);c&&scanf(...
CDSS_408483
CDSS
#include <stdio.h> long long a [100010]; int main (){ int n; scanf("%d",&n); for(int i=0;i<n;i++) scanf("%lld",&a[i]); int zero =0; for(int i=0;i<n;i++)if(a[i]==0) zero ++; if(zero >0){ printf("0\n"); return 0; } long long prod =1; for(int i=0;i<n;i++){ if(a[i ] <=1000000000000000000/ prod ){ prod *=a[i]; }else{ printf...
2,464
memory_bytes
{'s_id': 's147427764', 'p_id': 'p02658', 'u_id': 'u219646039', 'date': '1591567078', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '27', 'memory': '2464', 'code_size': '370'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nlong long a [100010];\nint main (){\nint n;\nscanf(\"%d\",&n);\nfor(int i=0;i<n;i++) scanf(\"%lld\",&a[i]);\nint z...
CDSS_264156
CDSS
#include <stdio.h> int main(int argc, const char * argv[]) { // insert code here... int T,h,m,s; scanf("%d",&T); h = T / 3600; T = T % 3600; m = T / 60; T = T % 60; s = T; printf("%d:%d:%d\n",h,m,s); return 0; }
2,112
memory_bytes
{'s_id': 's255405254', 'p_id': 'p02390', 'u_id': 'u853759892', 'date': '1594002569', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2112', 'code_size': '254'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 // insert code here...\n int T,h,m,s;\n scanf(\"%d\",&T);\n...
CDSS_82240
CDSS
#include<stdio.h> int main(void) { double n,m; int a[2]={0},b[2]={0},c[2]={0},d[2]={0}; while(scanf("%lf%lf",&n,&m)==2){ if(n>=1.1)a[0]++; else if(n>=0.6)b[0]++; else if(n>=0.2)c[0]++; else d[0]++; if(m>=1.1)a[1]++; else if(m>=0.6)b[1]++; else if(m>=0.2)c[1]++; else d[1]++; }...
0
memory_bytes
{'s_id': 's820480259', 'p_id': 'p00149', 'u_id': 'u756656224', 'date': '1300923525', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '0', 'code_size': '458'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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 double n,m;\n int a[2]={0},b[2]={0},c[2]={0},d[2]={0};\n while(scanf(\"%lf%lf\",&n,&m)==2){\...
CDSS_534780
CDSS
#include <stdio.h> int main(){ long n; scanf("%ld",&n); printf("%ld\n",n*(n-1)/2); return 0; }
128
memory_bytes
{'s_id': 's935807146', 'p_id': 'p02924', 'u_id': 'u337657882', 'date': '1567367769', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '110'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\n\nint main(){\n long n;\n \n scanf(\"%ld\",&n);\n printf(\"%ld\\n\",n*(n-1)/2);\n return 0;\n}\n\nPredict ...
CDSS_82682
CDSS
#include<stdio.h> const int MAX_V=1000000; int main() { int i,k,n,mini=0,big=0,prime[MAX_V+1]; for(i=2;i<=MAX_V;i++) { prime[i]=1; } for(i = 2; i*i <= MAX_V; i++) { if(prime[i]) { for(k = 2 * i; k <= MAX_V; k += i) { prime[k] = 0; } } } while(1) { scanf("%d", &n); if(n==0) break; for(i=3;i<...
5,584
memory_bytes
{'s_id': 's162318659', 'p_id': 'p00150', 'u_id': 'u245495144', 'date': '1513065414', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '30', 'memory': '5584', 'code_size': '472'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nconst int MAX_V=1000000;\nint main() {\n\tint i,k,n,mini=0,big=0,prime[MAX_V+1];\n\tfor(i=2;i<=MAX_V;i++) {\n\t\tpr...
CDSS_363882
CDSS
#include<stdio.h> int main(void) { char x[1001]; int sum[10000]; int number; int i, j; int last = 0; for(i = 0; last != 1; i++) { scanf("%s", x); for(j = 0; x[j] != '\0'; j++) { if(j == 0) { sum[i] = (int)(x[j] - '0'); ...
540
memory_bytes
{'s_id': 's554797907', 'p_id': 'p02416', 'u_id': 'u106156046', 'date': '1481187912', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '540', 'code_size': '644'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 x[1001];\n int sum[10000];\n int number;\n int i, j;\n int last = 0;\n ...
CDSS_557596
CDSS
#include <stdio.h> #include <math.h> int main(void) { int N, L; int i; int taste=0, min=0; scanf("%d %d", &N, &L); min = L; for (i=0;i<N;i++){ taste += L+i; if(abs(L+i)<=abs(min)) min = L+i; } taste -= min; printf("%d\n", taste); }
128
memory_bytes
{'s_id': 's020916708', 'p_id': 'p02994', 'u_id': 'u171364956', 'date': '1561253983', '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#include <math.h>\n\nint main(void)\n{\n int N, L;\n int i;\n int taste=0, min=0;\n\n scanf(\"%d %d\", &N, &L)...
CDSS_627146
CDSS
#include<stdio.h> int main( void ) { int n, k, i, a; scanf("%d %d", &n, &k); a=n%k; if(a==0){ printf("0\n"); } else { printf("1\n"); } return 0; }
128
memory_bytes
{'s_id': 's211973103', 'p_id': 'p03284', 'u_id': 'u987798477', 'date': '1544369490', 'language': 'C', 'original_language': 'C (Clang 3.8.0)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '156'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main( void )\n{\n\tint n, k, i, a;\n\tscanf(\"%d %d\", &n, &k);\n\ta=n%k;\n\tif(a==0){\n\t\tprintf(\"0\\n\");\n...
CDSS_680511
CDSS
#include <stdio.h> int main(void){ int N, K, i, ans = 1 ; /*N, K < 10*/ scanf("%d %d", &N, &K); for(i = 0; i < N; i++){ if(ans < K) ans *= 2; else ans += K; } printf("%d", ans); }
128
memory_bytes
{'s_id': 's893612340', 'p_id': 'p03564', 'u_id': 'u632976750', 'date': '1512143220', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '199'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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\nint N, K, i, ans = 1 ; /*N, K < 10*/\n\nscanf(\"%d %d\", &N, &K);\n\nfor(i = 0; i < N; i+...
CDSS_541339
CDSS
#include <stdio.h> int main(){ int A, B, C; scanf("%d" "%d" "%d", &A, &B, &C); int ans = C - (A - B); if(ans < 0){ printf("0\n"); }else{ printf("%d\n", ans); } return 0; }
128
memory_bytes
{'s_id': 's405109268', 'p_id': 'p02951', 'u_id': 'u477415442', 'date': '1565829362', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '194'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include <stdio.h>\nint main(){\n int A, B, C;\n scanf(\"%d\" \"%d\" \"%d\", &A, &B, &C);\n int ans = C - (A - B);\n if(ans < 0){\...
CDSS_130884
CDSS
#include<stdio.h> int dp[50]; int fib(int n){ if(n==0 || n==1) return dp[n]=1; if(dp[n] != -1) return dp[n]; return dp[n]=fib(n-1)+fib(n-2); } int main(){ int n,i; for(i=0;i<50;i++)dp[i]=-1; scanf("%d",&n); printf("%d\n",fib(n)); return 0; }
2,048
memory_bytes
{'s_id': 's585384759', 'p_id': 'p02233', 'u_id': 'u386898472', 'date': '1548058405', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2048', 'code_size': '267'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 dp[50];\n\nint fib(int n){\n if(n==0 || n==1) return dp[n]=1;\n if(dp[n] != -1) return dp[n];\n return dp[...
CDSS_193861
CDSS
#include<stdio.h> #include<stdlib.h> int BinarySearch(int*, int, int); int main(){ int i,j,n,q,c=0; int *S,*T; scanf("%d",&n); S=(int *)malloc(n*sizeof(int)); for(i=0;i<n;i++){ scanf("%d",&S[i]); } scanf("%d",&q); T=(int *)malloc(q*sizeof(int)); for(i=0;i<q;i++){ scanf("%d",&T[i]); } ...
2,288
memory_bytes
{'s_id': 's748018261', 'p_id': 'p02268', 'u_id': 'u889908059', 'date': '1530586145', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '10', 'memory': '2288', 'code_size': '682'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 BinarySearch(int*, int, int);\n\nint main(){\n int i,j,n,q,c=0;\n int *S,*T;\n\n scanf...
CDSS_579752
CDSS
# include <stdio.h> int main(){ int a, b, sum; scanf("%d%d", &a, &b); if(a == b) { sum = a + b; } else if(a > b){ sum += a; a--; if(a >= b) sum += a; if(a < b) sum += b; } else if(a < b){ sum += b; b--; if(a >= b) sum += a; if(a < b) sum += b; } printf("%d", s...
128
memory_bytes
{'s_id': 's393242230', 'p_id': 'p03071', 'u_id': 'u540350602', 'date': '1555423690', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '329'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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, sum;\n scanf(\"%d%d\", &a, &b);\n \n if(a == b) {\n sum = a + b;\n }\n else if...
CDSS_368600
CDSS
#define dbg(fmt,...) fprintf(stderr,fmt,__VA_ARGS__) #define dpri(x) dbg(#x ": %d\n", x) #define dprs(x) dbg(#x ": %s\n", x) #include <stdio.h> #include <string.h> #include <ctype.h> typedef long long ll; const int INF = 1e9+7; void stoupper(char *s) { char *p; for (p = s; *p != '\0'; p++) { *p = toupper(*p); } }...
548
memory_bytes
{'s_id': 's994432041', 'p_id': 'p02419', 'u_id': 'u514153326', 'date': '1434465837', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '548', 'code_size': '602'}
[ { "content": "Your task is to predict the memory 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 dbg(fmt,...) fprintf(stderr,fmt,__VA_ARGS__)\n#define dpri(x) dbg(#x \": %d\\n\", x)\n#define dprs(x) dbg(#x \": %s\\n\", x)\n...
CDSS_632326
CDSS
#include<stdio.h> int main() { int a,b; scanf("%d%d",&a,&b); if(a+b==15) { printf("+\n"); } else if(a*b==15) { printf("*\n"); } else{ printf("x\n"); } return 0; }
128
memory_bytes
{'s_id': 's206415067', 'p_id': 'p03302', 'u_id': 'u089230684', 'date': '1568394765', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '198'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int a,b;\n scanf(\"%d%d\",&a,&b);\n if(a+b==15)\n {\n printf(\"+\\n\");\n }\nelse if(...
CDSS_413198
CDSS
#include <stdio.h> int main(){ int h1,m1,h2,m2,k; scanf("%d%d%d%d%d",&h1,&m1,&h2,&m2,&k); int benkyoTime = 0; benkyoTime = (60*h2 + m2) - (60*h1 + m1); if(benkyoTime>k){ printf("%d",benkyoTime - k); }else{ printf("0"); } }
1,708
memory_bytes
{'s_id': 's963449435', 'p_id': 'p02663', 'u_id': 'u815628714', 'date': '1590887084', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '1708', '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 int h1,m1,h2,m2,k;\n scanf(\"%d%d%d%d%d\",&h1,&m1,&h2,&m2,&k);\n\n int benkyoTime = 0;\n ...
CDSS_656107
CDSS
#include<stdio.h> int main(void) { int n,x; scanf("%d",&n); x=n/3; printf("%d\n",x); return 0; }
256
memory_bytes
{'s_id': 's424905643', 'p_id': 'p03423', 'u_id': 'u490089586', 'date': '1533744318', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '2', 'memory': '256', 'code_size': '101'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main(void)\n{\n\tint n,x;\n\tscanf(\"%d\",&n);\n\tx=n/3;\n\tprintf(\"%d\\n\",x);\n\treturn 0;\n}\nPredict its m...
CDSS_80717
CDSS
#include <stdio.h> #define abs(x, y) ((x) > (y) ? (x) - (y) : (y) - (x)) #define atoi(x) ((x) - '0') #define min(x, y) ((x) > (y) ? (y) : (x)) int main(){ double h, m, angle, s, l; char t[8]; int n; scanf("%d", &n); while(n--){ scanf("%s", t); h = atoi(t[0]) * 10 + atoi(t[1]); m = atoi(t[3]) * 1...
576
memory_bytes
{'s_id': 's700860285', 'p_id': 'p00135', 'u_id': 'u709185111', 'date': '1394235928', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '576', 'code_size': '554'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 abs(x, y) ((x) > (y) ? (x) - (y) : (y) - (x))\n#define atoi(x) ((x) - '0')\n#define min(x, y) ((x) > (y)...
CDSS_312052
CDSS
#include <stdio.h> int main(){ int a,b,d,r; double f; scanf("%d%d", &a,&b); d = a / b; r = a % b; f = (double)a / b; printf("%d %d %.8lf\n",d,r,f); return 0; }
2,100
memory_bytes
{'s_id': 's969442890', 'p_id': 'p02399', 'u_id': 'u798159403', 'date': '1592461336', 'language': 'C', 'original_language': 'C', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '0', 'memory': '2100', 'code_size': '192'}
[ { "content": "Your task is to predict the memory footprint (bytes) of 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,d,r;\n double f;\n scanf(\"%d%d\", &a,&b);\n d = a / b;\n r = a % b;\n f =...
CDSS_665651
CDSS
#include<stdio.h> int main() { int n,y,sen,gosen,man; scanf("%d %d",&n,&y); for(sen=0;sen<=n;sen++){ for(gosen=0;gosen<=n;gosen++){ man=n-(sen+gosen); if(sen*1000+gosen*5000+man*10000==y&& sen+gosen+man==n&&man>=0){ printf("%d %d %d",man,gosen,sen); return 0; } } } p...
1,732
memory_bytes
{'s_id': 's284748467', 'p_id': 'p03471', 'u_id': 'u850645161', 'date': '1594846777', 'language': 'C', 'original_language': 'C (GCC 9.2.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '11', 'memory': '1732', 'code_size': '356'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code written in C. Your answer must be a numerical value, with no extra text or explanation.\nThe code is:\n#include<stdio.h>\nint main()\n{\n int n,y,sen,gosen,man;\n scanf(\"%d %d\",&n,&y);\n for(sen=0;sen<=n;sen++){\n for(gosen=0;gos...
CDSS_588404
CDSS
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <memory.h> #include <math.h> int pop(int n, int i, int a[]) { int val; int ptr; val = a[i]; for(ptr = i; ptr < n - 1; ptr++) { a[ptr] = a[ptr + 1]; } return val; } int solve(int n, int a[], int b[]) { int i, j; ...
128
memory_bytes
{'s_id': 's591225255', 'p_id': 'p03089', 'u_id': 'u676699191', 'date': '1553375669', 'language': 'C', 'original_language': 'C (GCC 5.4.1)', 'filename_ext': 'c', 'status': 'Accepted', 'cpu_time': '1', 'memory': '128', 'code_size': '1181'}
[ { "content": "Your task is to predict the memory footprint (bytes) of code 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 <memory.h>\n#include <math.h>\n\nint pop(int n, int i, int a[])...