イベント巡り 2 (Event Hopping 2)
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
5 4 1 3 2 5 8 9 6 8 10 15
Sample output 1
1 3 4 5
Sample input 2
4 3 1 4 3 5 4 9 7 10
Sample output 2
-1
Sample input 3
10 6 77412002 93858605 244306432 318243514 280338037 358494212 439397354 492065507 485779890 529132783 571714810 632053254 659767854 709114867 718405631 733610573 786950301 815106357 878719468 899999649
Sample output 3
1 2 4 6 7 8
Sample input 4
20 16 250732298 258217736 26470443 34965880 252620676 260043105 692063405 697656580 497457675 504191511 391372149 397942668 858168758 867389085 235756850 241022021 585764751 593366541 207824318 217052204 661682908 671226688 886273261 892279963 770109416 778960597 264372562 270395107 176883483 186662376 509929119 519063796 109491630 118520141 162731982 168101507 662727316 668317158 757072772 765493222
Sample output 4
1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Notes
原典:JOI 2020/2021 春季トレーニング合宿 イベント巡り 2 (Event Hopping 2)、情報オリンピック日本委員会。CC BY-SA 4.0。
Tags
No tags yet