![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
陷阱水题
ctrss
这个作者很懒,什么都没留下…
展开
-
codeforces#324(div2)B Kolya and Tanya(数论水)
题意:有3n 个小人坐在一个圆环上,每个小人的硬币数为 a[i],(1 一开始想着顺着推,一共n组人,其中某一组和不为六有20种,为六有7种。选一组和不为六为20*7^n-1,选两组20^2*7^n-2,选三组20^3*7^bn-3…… 总和由二项式定理可得为(20+7)^n-7^n。 要求对1e9+7取摸,水同余 注意:27^n%(1e9+7)-7^n%(1e9+7)有原创 2016-01-29 00:40:17 · 387 阅读 · 0 评论 -
codeforces 585A - Gennady the Dentist(模拟)
A. Gennady the Dentist time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Gennady is one of the best child dent原创 2016-02-02 03:39:31 · 319 阅读 · 0 评论 -
hdu 2112HDU Today 最短路+map
HDU Today Time Limit: 15000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 23041 Accepted Submission(s): 5515 Problem Description 经过锦囊相助,海东集团终于度过了危机原创 2016-04-27 19:22:08 · 372 阅读 · 0 评论