Codeforces Round #638 D. Phoenix and Science(贪心/思维好题) Codeforces Round #638 D. Phoenix and Science(贪心/思维好题)