
数论
日月火山
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Insomnia cure CodeForces - 148A (数论的扩展解法)
«One dragon. Two dragon. Three dragon», — the princess was counting. She had trouble falling asleep, and she got bored of counting lambs when she was nine. However, just counting dragons was boring a原创 2017-09-13 16:54:50 · 598 阅读 · 0 评论 -
The equation SGU - 106 (exgcd)
There is an equation ax + by + c = 0. Given a,b,c,x1,x2,y1,y2 you must determine, how many integer roots of this equation are satisfy to the following conditions : x1<=x<=x2, y1<=y<=y2. ...原创 2018-07-29 10:14:28 · 377 阅读 · 0 评论 -
牛客多校 Ternary String (数论)
链接:https://www.nowcoder.com/acm/contest/142/A 来源:牛客网 A ternary string is a sequence of digits, where each digit is either 0, 1, or 2. Chiaki has a ternary string s which can self-reproduce. Every sec...原创 2018-07-29 14:06:08 · 544 阅读 · 0 评论 -
F. The Neutral Zone(优化素数筛)
F. The Neutral Zone time limit per test 5 seconds memory limit per test 16 megabytes input standard input output standard output Notice: unusual memory limit! After the war, destroyed cities...原创 2018-08-15 10:58:03 · 345 阅读 · 0 评论