G. Money Buys Less Happiness Now

原题链接 题解 假如最后有 \(k\) 个月购买过幸福,那么这 \(k\) 个月的价格一定是前 \(k\) 小的 code #include<bits/stdc++.h> #define ll long long using namespace std; int main() { ios::sync
posted @ 2024-05-22 16:24  纯粹的  阅读(11)  评论(0编辑  收藏  举报