# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1165138 | altern23 | Exhibition (JOI19_ho_t2) | C++20 | 0 ms | 324 KiB |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pii pair<ll, ll>
#define fi first
#define sec second
#define ld long double
const ll N = 3e5;
const ll INF = 4e18;
const ll MOD = 1e9 + 7;
int main(){
ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
int tc = 1;
// cin >> tc;
for(;tc--;){
ll n, m; cin >> n >> m;
vector<pii> a(n + 5);
for(int i = 1; i <= n; i++){
cin >> a[i].fi >> a[i].sec;
}
sort(a.begin() + 1, a.begin() + 1 + n, [&](pii a, pii b){
return a.sec < b.sec;
});
vector<ll> c(m + 5);
for(int i = 1; i <= m; i++){
cin >> c[i];
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |