収穫 (Harvest)
Unrated
日本語
Language
Contribute a translation- Time limit
- 3000 ms
- Memory limit
- 512 MB
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
3 2 7 3 1 4 6 0 5 3 1 7 2 3 3 8
Sample output 1
2 1 1
Sample input 2
5 3 20 6 0 4 8 12 16 2 11 14 9 4 1932 2 93787 1 89 5 98124798 1 2684 1 137598 3 2 3 8375 4 237
Sample output 2
146 7035 7 7359360 202 10320 0 628 18
Sample input 3
8 15 217 33608 0 12 71 96 111 128 152 206 4 34 42 67 76 81 85 104 110 117 122 148 166 170 212 14 2 223544052420046341 3 86357593875941375 4 892813012303440034 1 517156961659770735 7 415536186438473633 6 322175014520330760 7 557706040951533058 6 640041274241532527 5 286263974600593111 8 349405886653104871 1 987277313830536091 5 989137777159975413 2 50689028127994215 7 445686748471896881
Sample output 3
33230868503053 3 5 1 123542793648997 8 165811220737767 8 7 1 1 7 7535161012043 132506837660717
Notes
原典:JOI 2019/2020 春季トレーニング合宿 収穫 (Harvest)、情報オリンピック日本委員会。CC BY-SA 4.0。
Tags
No tags yet