| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1326184 | hehe | Festival (IOI25_festival) | C++20 | 0 ms | 0 KiB |
#include <bits/stdc++.h>
using namespace std;
#define int long long
vector<int> max_coupons(int a, vector<int> price, vector<int> type){
int n = price.size();
sort(price.begin(), price.end());
int i = 0;
vector<int> ans;
while(i < n && a >= price[i]){
a-= price[i];
ans.push_back(price[i]);
i++;
}
return ans;
}
