| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1316331 | ezzzay | 축제 (IOI25_festival) | C++20 | 0 ms | 0 KiB |
//#include "festival.h"
#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define ff first
#define ss second
#define ll long long
std::vector<int> max_coupons(int A, std::vector<int> P, std::vector<int> T) {
int n = P.size();
vector<int> order(n);
for(int i = 0; i < n; i++)
{
order[i] = i;
}
sort(all(order), [&](int i, int j)
{
ll x = P[i], y = P[j], t1 = T[i], t2 = T[j];
return t1 * t2 * x + y * t2 < t1 * t2 * y + x * t1;
});
return order;
}
