# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
999548 | gmroh06 | Matryoshka (JOI16_matryoshka) | C++14 | 114 ms | 18776 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#import <bits/stdc++.h>
using namespace std;
using ll = long long;
inline void init() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
}
int main() {
init();
ll n, q;
cin >> n >> q;
vector<pair<ll, ll>> v(n);
vector<tuple<ll, ll, ll>> query(q);
for (auto& [a, b] : v) {
cin >> a >> b;
b *= -1;
}
sort(v.rbegin(), v.rend());
for (ll i = 0, a, b; i < q; i++) {
cin >> a >> b;
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |