F - go up stairs (hard)

2 secs 1024 MB
kusirakusira's icon kusirakusira

test_12.txt


入力

出力