# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
680984 | Alexandruabcde | Art Exhibition (JOI18_art) | C++14 | 317 ms | 48264 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.
#include <bits/stdc++.h>
using namespace std;
typedef pair <long long, int> PLLI;
typedef long long LL;
constexpr int NMAX = 5e5 + 5;
constexpr LL INF = 1LL * 1e18;
int N;
PLLI A[NMAX];
LL sp[NMAX];
void Read () {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cin >> N;
for (int i = 1; i <= N; ++ i )
cin >> A[i].first >> A[i].second;
sort(A+1, A+N+1);
}
void Solve () {
for (int i = 1; i <= N; ++ i )
sp[i] = sp[i-1] + 1LL * A[i].second;
# | 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... |