
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 · 446 阅读 · 0 评论 -
Codeforces Round #376 (Div. 2) F. Video Cards (数论 前缀和 分块求和)
F. Video Cardstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Vlad is fond of popular computer game原创 2016-10-19 23:44:55 · 509 阅读 · 0 评论 -
Codeforces Round #368 (Div. 2) D. Persistent Bookcase 离线 暴力
参考:http://www.cnblogs.com/qscqesze/p/5791698.html写的超级好,我就懒得写了。。。转载 2016-11-08 20:47:42 · 339 阅读 · 0 评论 -
Codeforces Round #353 (Div. 2) C. Money Transfers (思维题)
C. Money Transferstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are n banks in the city where Vasya原创 2016-05-19 23:50:36 · 668 阅读 · 0 评论 -
Codeforces Round #353 (Div. 2) D. Tree Construction (BST)
D. Tree Constructiontime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputDuring the programming classes Vasya w原创 2016-05-18 22:55:00 · 340 阅读 · 0 评论 -
Codeforces Round #352 (Div. 2) C - Recycling Bottles
C. Recycling Bottlestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIt was recycling day in Kekoland. To c原创 2016-05-12 13:00:58 · 472 阅读 · 1 评论 -
Codeforces Round #306 (Div. 2) B.Preparing Olympiad (位运算)
B. Preparing Olympiadtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have n problems. You have estimat原创 2016-04-12 22:58:06 · 312 阅读 · 0 评论 -
Codeforces Round #305 (Div. 2) D.Mike and Feet
D. Mike and Feettime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMike is the president of country What-The-F转载 2016-03-06 12:45:15 · 326 阅读 · 0 评论 -
Codeforces Round #296 (Div. 2) C. Glass Carving
C. Glass Carvingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLeonid wants to become a glass carver (the转载 2016-03-05 10:39:07 · 295 阅读 · 0 评论 -
Codeforces Round #338 (Div.2) D.Multipliers
D. MultipliersAyrat 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 · 274 阅读 · 0 评论 -
Codeforces Round #319 (Div. 2) B. Modulo Sum
借鉴自http://blog.youkuaiyun.com/u014492306/article/details/48369857B. Modulo Sumtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputs转载 2015-09-17 23:35:40 · 411 阅读 · 0 评论 -
Codeforces Round #320 (Div. 2) C. A Problem about Polyline
C. A Problem about PolylineThere 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 · 316 阅读 · 0 评论 -
codeforces 311(div2)C-Arthur and Table
Arthur and TableArthur 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 · 439 阅读 · 0 评论 -
codeforces427c-Checkposts
CheckpostsTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmitStatusDescriptionYour city has n junctions. There are mone-way roads between the junctions. A原创 2015-08-18 16:41:39 · 422 阅读 · 0 评论 -
Codeforces Round #261 (Div. 2) D. Pashmak and Parmida's problem (树状数组求逆序数 变形)
D. Pashmak and Parmida's problemParmida 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 · 402 阅读 · 0 评论 -
Codeforces Round #378 (Div. 2) C.Epidemic in Monstropolis (分块处理)
C. Epidemic in Monstropolistime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere was an epidemic in Monstro原创 2016-11-01 12:57:17 · 377 阅读 · 0 评论