
陷阱水题
文章平均质量分 83
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 · 426 阅读 · 0 评论 -
codeforces 585A - Gennady the Dentist(模拟)
A. Gennady the Dentisttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputGennady is one of the best child dent原创 2016-02-02 03:39:31 · 360 阅读 · 0 评论 -
hdu 2112HDU Today 最短路+map
HDU TodayTime Limit: 15000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 23041 Accepted Submission(s): 5515Problem Description经过锦囊相助,海东集团终于度过了危机原创 2016-04-27 19:22:08 · 401 阅读 · 0 评论