随笔分类 - 贪心
摘要:E. Subordinates time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output There are n workers in a
阅读全文
摘要:Auxiliary Set Time Limit: 9000/4500 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Problem Description Given a rooted tree with n vertices
阅读全文
摘要:C. Polycarp at the Radio time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Polycarp at
阅读全文
摘要:D. Generating Sets time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given a set Y
阅读全文
摘要:D. Maxim and Array time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Recently Maxim has fo
阅读全文
摘要:E. Distributing Parts time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are an assista
阅读全文
摘要:A. Launch of Collider time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A. Launch of Colli
阅读全文
摘要:Arrange Time Limit: 8000/4000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Problem Description Accidentally, Cupid, god of desire has
阅读全文
摘要:C. Recycling Bottles time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Recycling Bottle
阅读全文
摘要:D. Numbers time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output D. Numbers time limit per tes
阅读全文
摘要:/*题意:给你一个序列经过最小变换,变换一次为一个数+1,一个数-1,使得最大值与最小值相差1;思路:与最后得到的序列相差的sum/2;*/#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; ...
阅读全文