#2676. P3289 - [ABC319G] Counting Shortest Paths - JOYSKID

P3289 - [ABC319G] Counting Shortest Paths - JOYSKID

输出格式

如果不存在,则输出 -1。否则输出方案数。