Triangle Platinum?
1847E2900· international gm2s256 MB⇄ interactive
Examples
Sample 1of 5
Input
363
Output
? 1 2 3! -1
Sample 2of 5
Input
60006315135
Output
? 1 2 3? 2 3 4? 4 5 6? 1 5 6? 3 5 6? 1 2 4! 3 2 1 4 2 2
Sample 3of 5
Input
15333330
Output
? 1 2 3? 4 6 7? 8 9 10? 11 12 13? 13 14 15? 4 5 6! -1
Sample 4of 5
Input
153150333
Output
? 1 2 3? 3 4 5? 4 5 6? 7 8 9? 10 11 12? 13 14 15! 1 1 1 2 2 4 1 1 1 1 1 1 1 1 1 1
Sample 5of 5
Input
10348348630
Output
? 1 3 5? 4 6 8? 1 5 9? 6 8 10? 4 2 6? 7 10 8! 1 3 1 2 1 2 4 2 1 2
58%
1847E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)