codeforces
文章平均质量分 82
lljjccsskk
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Codeforces Round #305 (Div. 2) C. Mike and Frog
刚开始以为主要难在优化时间,结果发现其实难点在考虑周全…… 首先用数组x和y保存下来h1与h2对m取余的数,并用t1、t2表示h1与h2的循环节长度,s1、s2表示首次取到a1、a2时的秒数。 当s1或s2为0时,即未从x、y中找到a1、a2,直接输出-1即可。 当s1与s2都找到后,由于部分h1与h2的数据不一定在循环节中,用x[h1]与y[h2]分别表示二者进入循环节之前的时间,先将二者原创 2015-05-30 11:04:55 · 469 阅读 · 0 评论 -
Codeforces Round #376 (Div. 2) F. Video Cards (数论 前缀和 分块求和)
F. Video Cards time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Little Vlad is fond of popular computer game原创 2016-10-19 23:44:55 · 548 阅读 · 0 评论 -
Codeforces Round #368 (Div. 2) D. Persistent Bookcase 离线 暴力
参考:http://www.cnblogs.com/qscqesze/p/5791698.html 写的超级好,我就懒得写了。。。转载 2016-11-08 20:47:42 · 363 阅读 · 0 评论 -
Codeforces Round #353 (Div. 2) C. Money Transfers (思维题)
C. Money Transfers time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output There are n banks in the city where Vasya原创 2016-05-19 23:50:36 · 695 阅读 · 0 评论 -
Codeforces Round #353 (Div. 2) D. Tree Construction (BST)
D. Tree Construction time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output During the programming classes Vasya w原创 2016-05-18 22:55:00 · 370 阅读 · 0 评论 -
Codeforces Round #352 (Div. 2) C - Recycling Bottles
C. Recycling Bottles time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output It was recycling day in Kekoland. To c原创 2016-05-12 13:00:58 · 497 阅读 · 1 评论 -
Codeforces Round #306 (Div. 2) B.Preparing Olympiad (位运算)
B. Preparing Olympiad time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You have n problems. You have estimat原创 2016-04-12 22:58:06 · 335 阅读 · 0 评论 -
Codeforces Round #305 (Div. 2) D.Mike and Feet
D. Mike and Feet time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Mike is the president of country What-The-F转载 2016-03-06 12:45:15 · 345 阅读 · 0 评论 -
Codeforces Round #296 (Div. 2) C. Glass Carving
C. Glass Carving time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Leonid wants to become a glass carver (the转载 2016-03-05 10:39:07 · 318 阅读 · 0 评论 -
Codeforces Round #338 (Div.2) D.Multipliers
D. Multipliers Ayrat has number n, represented as it's prime factorization pi of size m, i.e. n = p1·p2·...·pm. Ayrat got secret information that that the product of all divisors of n taken mod原创 2016-01-15 10:59:35 · 294 阅读 · 0 评论 -
Codeforces Round #319 (Div. 2) B. Modulo Sum
借鉴自http://blog.youkuaiyun.com/u014492306/article/details/48369857 B. Modulo Sum time limit per test 2 seconds memory limit per test 256 megabytes input standard input output s转载 2015-09-17 23:35:40 · 436 阅读 · 0 评论 -
Codeforces Round #320 (Div. 2) C. A Problem about Polyline
C. A Problem about Polyline There is a polyline going through points (0, 0) – (x, x) – (2x, 0) – (3x, x) – (4x, 0) – ... - (2kx, 0) – (2kx + x, x) – .... We know that the polyline passes thr原创 2015-09-17 10:37:18 · 342 阅读 · 0 评论 -
codeforces 311(div2)C-Arthur and Table
Arthur and Table Arthur has bought a beautiful big table into his new flat. When he came home, Arthur noticed that the new table is unstable. In total the table Arthur bought has n legs, the lengt原创 2015-08-19 22:36:40 · 496 阅读 · 0 评论 -
codeforces427c-Checkposts
CheckpostsTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u SubmitStatus Description Your city has n junctions. There are mone-way roads between the junctions. A原创 2015-08-18 16:41:39 · 439 阅读 · 0 评论 -
Codeforces Round #261 (Div. 2) D. Pashmak and Parmida's problem (树状数组求逆序数 变形)
D. Pashmak and Parmida's problem Parmida is a clever girl and she wants to participate in Olympiads this year. Of course she wants her partner to be clever too (although he's not)! Parmida has pr转载 2015-08-16 09:52:40 · 425 阅读 · 0 评论 -
Codeforces Round #378 (Div. 2) C.Epidemic in Monstropolis (分块处理)
C. Epidemic in Monstropolis time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output There was an epidemic in Monstro原创 2016-11-01 12:57:17 · 405 阅读 · 0 评论
分享