cf/mirror

Snake Instructions

CF
2183G3200· legendary gm3s256 MB⇄ interactive

Examples

Sample 1of 1
Input
7
2
1 2
 
1 1
 
2
1 6
 
2 1 4
 
3
2 3 4
 
2 2 4
 
3
2 3 4
 
3 5 6 7
 
5
1 3 8 14 15
 
5
1 2 3 4 5
 
4
5 6 7 8
Output
? L
 
! 0 1
 
 
? LRLL
 
! 0 1
 
 
? RRR
 
! -1
 
 
? RRR
 
! 1 1 1
 
 
! 2 1 0 0 1
 
 
! 0 2 2 2 0
 
 
! 0 1 2 0
2183G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)