勇者ビ太郎 3 (Bitaro the Brave 3)
Unrated
日本語
Language
Contribute a translation- Time limit
- 2000 ms
- Memory limit
- 1024 MB
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
2 2 10 0 9 2 8 5 1 3 0 20 40
Sample output 1
0 1 2
Sample input 2
3 1 100000000000 60000000000 30000000000 1 30000000000 45000000000 1 10000000000 10000000000 1 1 0
Sample output 2
0
Sample input 3
3 10000000 100000000 60000000 4 1 30000000 6 1 0 2 1 1 0
Sample output 3
7000000
Sample input 4
5 20 100 0 3 1 20 2 2 40 1 3 60 4 4 80 2 5 11 0 50 100 150 200 250 300 350 400 450 500
Sample output 4
6 8 10 12 13 15 16 18 19 20 20
Sample input 5
15 10000000 1000000000000 160278118759 43084 33592 442653603914 19490 23090 824219815410 50858 89563 502303340628 56629 45080 495062829942 87342 28821 234536700105 45384 34328 396080693809 78081 50812 734374391045 40873 92012 122606844331 25451 30426 204076581972 58431 13989 495156368673 54276 41670 812963939390 27614 50228 405067019838 96324 18477 464546304875 67562 45956 528559327980 41759 15546 10 216000000000000 1728000000000000 5832000000000000 13824000000000000 27000000000000000 46656000000000000 74088000000000000 110592000000000000 157464000000000000 216000000000000000
Sample output 5
995176 1135557 1431775 1824183 2359362 3059523 3942014 5106209 6594716 8448125
Notes
JOI 2024/2025 勇者ビ太郎 3 · JCIOI · CC BY-SA 4.0
Tags
No tags yet