摘要: codefroce A.Sum of Odd Integers You are given two integers nn and kk. Your task is to find if nn can be represented as a sum of kk distinct positive o 阅读全文
posted @ 2020-03-24 23:09 嫑 阅读(315) 评论(0) 推荐(0)
摘要: C. Adding Powers Suppose you are performing the following algorithm. There is an array v1,v2,…,vnv1,v2,…,vn filled with zeroes at start. The following 阅读全文
posted @ 2020-03-11 01:14 嫑 阅读(332) 评论(0) 推荐(0)
摘要: Codeforces Round #625 (Div. 2, based on Technocup 2020 Final Round) B. Journey Planning time limit per test 2 seconds memory limit per test 256 megaby 阅读全文
posted @ 2020-03-02 12:10 嫑 阅读(440) 评论(0) 推荐(0)
摘要: 首先我们要明白只有有向无环图(DAG)才有最长路最近在重新看到最长路,总是能看到各种说法说SPFA,Floyd,Dijkstra等能做最短路,比如修改个符号,或者初始化时加个负号,但是前提是这个图必须是有向无环图。在这个前提下,我们使用Floyd,SPFA都可以求最长路,我们给每个边加一个负号,求出 阅读全文
posted @ 2019-12-29 23:01 嫑 阅读(2109) 评论(0) 推荐(0)
摘要: Codeforces Round #609 (Div. 2) D. Domino for Young time limit per test 3 seconds memory limit per test 256 megabytes input standard input output stand 阅读全文
posted @ 2019-12-28 15:54 嫑 阅读(464) 评论(0) 推荐(0)
摘要: Codeforces Round #609 (Div. 2)-C. Long Beautiful Integer time limit per test 3 seconds memory limit per test 256 megabytes input standard input output 阅读全文
posted @ 2019-12-27 00:17 嫑 阅读(331) 评论(0) 推荐(0)
摘要: B. Modulo Equality time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output You are given a posit 阅读全文
posted @ 2019-12-25 21:22 嫑 阅读(232) 评论(0) 推荐(0)
摘要: Educational Codeforces Round 78 (Rated for Div. 2) 1278B - 6 B. A and B time limit per test 1 second memory limit per test 256 megabytes input standar 阅读全文
posted @ 2019-12-21 15:47 嫑 阅读(453) 评论(0) 推荐(0)
摘要: Educational Codeforces Round 78 (Rated for Div. 2) C - Berry Jam C. Berry Jam time limit per test 2 seconds memory limit per test 256 megabytes input 阅读全文
posted @ 2019-12-21 14:07 嫑 阅读(365) 评论(0) 推荐(0)
摘要: C.As Simple as One and Two A. As Simple as One and Two time limit per test 3 seconds memory limit per test 256 megabytes input standard input output s 阅读全文
posted @ 2019-12-17 21:27 嫑 阅读(323) 评论(0) 推荐(0)