
Codeforces
Y幽谷客
stay hungry stay foolish
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Codeforces Round #467 (Div. 2) 937ABC
第一题: A. Olympiad time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output The recent All-Berland Olympiad in Informatics featured n partic...原创 2018-02-26 12:20:27 · 320 阅读 · 0 评论 -
810C. Do you want a date?
题目链接:http://codeforces.com/contest/810/problem/C 题目大意: 告诉你一个含有n个互不相同的元素的集合,求它的所有非空子集中元素最大值与元素最小值之差的和。结果很大,输出它%1e9+7后的结果。 推倒: 先对A排序,然后不妨枚举子集的最小元素,看一下它对答案的贡献 考虑一个数列1 3 5 7 9,假设1是子集的最小元素 再考虑集合的最大元素...原创 2017-06-05 11:18:11 · 384 阅读 · 0 评论 -
odeforces 615A. Bulbs
codeforces 615A. Bulbs A. Bulbs time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Vasya wants to turn on Christmas lights consistin...原创 2016-12-11 14:15:42 · 388 阅读 · 0 评论 -
750B. New Year and North Pole
B. New Year and North Pole time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output In this problem we assume the Earth to be a completely...原创 2016-12-31 11:03:02 · 352 阅读 · 2 评论 -
750A- New Year and Hurry
A. New Year and Hurry time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Limak is going to participate in a contest on the last day o...原创 2016-12-31 09:14:32 · 357 阅读 · 0 评论 -
753 A. Santa Claus and Candies
A. Santa Claus and Candies time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Santa Claus has n candies, he dreams to give them as gi...原创 2016-12-30 00:08:04 · 609 阅读 · 0 评论 -
A. Crazy Computer
A. Crazy Computer time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output ZS the Coder is coding on a crazy computer. If you don’t type in a word...原创 2016-12-17 14:25:57 · 522 阅读 · 0 评论 -
A. Buy a Shovel
A. Buy a Shovel time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Polycarp urgently needs a shovel! He comes to the shop and chooses...原创 2016-12-16 00:10:43 · 471 阅读 · 0 评论 -
CF 2018, XI Samara Regional Intercollegiate Programming Contest 习题总结
题目:A. Restoring Numbers Pavel had two positive integers a and b. He found their sum s and greatest common divisor g, and forgot a and b after that. Help him to restore the original numbers. Input A ...原创 2018-04-18 11:57:40 · 920 阅读 · 0 评论