XVIII Open Cup named after E.V. Pankratiev. Grand Prix of Peterhof.

时间:2019-12-15 10:25:50   收藏:0   阅读:87

A. City Wall

一圈一圈绕。


B. Domino Colorings


C. Сounterquestion

枚举 permutation 后 \(O(len)\) 地 check。


D. Galaxy Center


E. IBM 1403

预处理序列自动机,即可求 \(O(|s|)\) 出当前时间 t 下,打印字符串 s 的时间。


F. Line Tracing


G. The Queen and the Knight


H. Product of Roots


I. Safe Landing

如果两个维度都变化了,那倒着走回去即可,否则 -1


J. Perfect Square

选一些质数 p,检验一下 x%p 是否为模 p 的二次剩余。

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!