随笔分类 - 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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:B. Divisiblity of Differences time limit per test 1 second memory limit per test 512 megabytes input standard input output standard output B. Divisibl
阅读全文
摘要:很裸的一个DFS,但因为细节wa了10发才过。果然我还是太弱了。。
阅读全文
摘要:一开始想复杂了。 其实很简单。就挨着扫一遍,每次优先排数量大的,然后交替排就好了
阅读全文

浙公网安备 33010602011771号