随笔分类 -  Codeforce

摘要:time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given an array aa consisting of  阅读全文
posted @ 2019-04-23 10:21 行远山 阅读(553) 评论(0) 推荐(0)
摘要:D1. Great Vova Wall (Version 1) time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output D1. Grea 阅读全文
posted @ 2018-12-19 23:38 行远山 阅读(233) 评论(0) 推荐(0)
摘要:Let's call an undirected graph G=(V,E)G=(V,E) relatively prime if and only if for each edge (v,u)∈E(v,u)∈E GCD(v,u)=1GCD(v,u)=1 (the greatest common d 阅读全文
posted @ 2018-07-18 10:20 行远山 阅读(213) 评论(0) 推荐(0)
摘要:time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output time limit per test 2 seconds time limit 阅读全文
posted @ 2018-06-11 18:54 行远山 阅读(473) 评论(0) 推荐(0)
摘要:Some company is going to hold a fair in Byteland. There are nn towns in Byteland and mm two-way roads between towns. Of course, you can reach any town 阅读全文
posted @ 2018-06-06 21:15 行远山 阅读(186) 评论(0) 推荐(0)
摘要:You are given kk sequences of integers. The length of the ii-th sequence equals to nini. You have to choose exactly two sequences ii and jj (i≠ji≠j) s 阅读全文
posted @ 2018-06-02 17:33 行远山 阅读(225) 评论(0) 推荐(0)
摘要:time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output time limit per test 1 second time limit p 阅读全文
posted @ 2018-05-28 21:31 行远山 阅读(127) 评论(0) 推荐(0)
摘要:Kuro is living in a country called Uberland, consisting of nn towns, numbered from 11 to nn, and n−1n−1 bidirectional roads connecting these towns. It 阅读全文
posted @ 2018-05-17 11:54 行远山 阅读(390) 评论(0) 推荐(0)
摘要:You are given several queries. Each query consists of three integers pp, qq and bb. You need to answer whether the result of p/qp/q in notation with b 阅读全文
posted @ 2018-05-17 11:16 行远山 阅读(242) 评论(0) 推荐(0)
摘要:time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output time limit per test 1 second time limit p 阅读全文
posted @ 2018-05-15 10:53 行远山 阅读(772) 评论(0) 推荐(0)
摘要:time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output time limit per test 1 second time limit p 阅读全文
posted @ 2018-05-15 10:48 行远山 阅读(204) 评论(0) 推荐(0)
摘要:time limit per test 1.5 seconds memory limit per test 256 megabytes input standard input output standard output time limit per test 1.5 seconds time l 阅读全文
posted @ 2018-05-11 21:59 行远山 阅读(163) 评论(0) 推荐(0)
摘要:C. Valhalla Siege time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Valhalla Siege time 阅读全文
posted @ 2018-05-11 21:50 行远山 阅读(151) 评论(0) 推荐(0)
摘要:In Aramic language words can only represent objects. Words in Aramic have special properties: A word is a root if it does not contain the same letter 阅读全文
posted @ 2018-05-02 19:34 行远山 阅读(468) 评论(0) 推荐(0)
摘要:output standard output output standard output output The weather is fine today and hence it's high time to climb the nearby pine and enjoy the landsca 阅读全文
posted @ 2018-04-25 20:13 行远山 阅读(239) 评论(0) 推荐(0)
摘要:output standard output output standard output output Attention: we lost all the test cases for this problem, so instead of solving the problem, we nee 阅读全文
posted @ 2018-04-24 11:29 行远山 阅读(261) 评论(0) 推荐(0)
摘要:B. Divisiblity of Differences time limit per test 1 second memory limit per test 512 megabytes input standard input output standard output B. Divisibl 阅读全文
posted @ 2018-04-23 20:39 行远山 阅读(199) 评论(0) 推荐(0)
摘要:只有你自己够强,你才能carry动你想carry的人 阅读全文
posted @ 2018-04-23 17:57 行远山 阅读(101) 评论(0) 推荐(0)
摘要:很裸的一个DFS,但因为细节wa了10发才过。果然我还是太弱了。。 阅读全文
posted @ 2018-04-17 15:51 行远山 阅读(151) 评论(0) 推荐(0)
摘要:一开始想复杂了。 其实很简单。就挨着扫一遍,每次优先排数量大的,然后交替排就好了 阅读全文
posted @ 2018-04-16 20:44 行远山 阅读(120) 评论(0) 推荐(0)