随笔分类 - codeforces
摘要:E. Short Code time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output E. Short Code time limit pe
阅读全文
摘要:B. Destruction of a Tree time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output B. Destruction o
阅读全文
摘要:F. Machine Learning time limit per test 4 seconds memory limit per test 512 megabytes input standard input output standard output F. Machine Learning
阅读全文
摘要:H. Queries for Number of Palindromes time limit per test 5 seconds memory limit per test 256 megabytes input standard input output standard output H.
阅读全文
摘要:F. Cutlet time limit per test 4 seconds memory limit per test 256 megabytes input standard input output standard output Arkady wants to have a dinner.
阅读全文
摘要:B. A Leapfrog in the Array time limit per test 2 seconds memory limit per test 512 megabytes input standard input output standard output B. A Leapfrog
阅读全文
摘要:E. Maximize! time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output E. Maximize! time limit per
阅读全文
摘要:F. Divisibility time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output F. Divisibility time limi
阅读全文
摘要:E. Connected Components? time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given a
阅读全文
摘要:E. Congruence Equation time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output Given an integer
阅读全文
摘要:D. MADMAX time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output D. MADMAX time limit per test 1
阅读全文
摘要:C. The Monster time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. The Monster time limit
阅读全文
摘要:E. Jamie and Tree time limit per test 2.5 seconds memory limit per test 256 megabytes input standard input output standard output E. Jamie and Tree ti
阅读全文
摘要:F. Letters Removing time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output F. Letters Removing
阅读全文
摘要:大意:给出一个有向图,问能否在只去掉一条边的情况下破掉所有的环 解析:最直接的是枚举每个边,将其禁用,然后在图中找环,如果可以就YES,都不行就NO 复杂度O(N*M)看起来不超时 但是实现了以后发现即使优化到不清空vis数组(时间戳标记),也仍然超时。 因为O(N*M)已经很接近时间复杂度上界,常
阅读全文
摘要:time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output time limit per test 3 seconds memory lim
阅读全文
摘要:F. Restoring the Expression time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output F. Restoring
阅读全文

浙公网安备 33010602011771号