首页 > TAG信息列表 > 交不上

1034 Frogs(uvalive可能交不上) 容斥原理变式

There are m stones lying on a circle, and n frogs are jumping over them. The stones are numbered from 0 to m − 1 and the frogs are numbered from 1 to n. The i-th frog can jump over exactly ai stones in a single step, which means from stone j mod m to ston