摘要:
You have a playlist consisting of nn songs. The ii th song is characterized by two numbers titi and bibi — its length and beauty respectively. The ple 阅读全文
摘要:
这道题当初还以为是什么高深莫测的算法,dp还是搜索剪枝,没想到居然是道普普通通的贪心+模拟。这都没看出来,服了。 这道题错在两个地方: 数学推导有问题。我推导到了 n(n+1)/2 using namespace std; vector va,vb; int main() { int a,b; ci 阅读全文