# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
786069 | kebine | Exhibition (JOI19_ho_t2) | C++17 | 1059 ms | 8208 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define int long long
const int maks = 1e3 + 5;
int dp[maks][maks];
int n, m, bingkai[maks];
pair<int, int> gambar[maks];
bool com(pair<int, int> a, pair<int, int> b) {
return ((a.first < b.first) or (a.first == b.first and a.second < b.second));
}
signed main() {
cin >> n >> m;
for (int i = 1; i <= n; i++) {
cin >> gambar[i].second >> gambar[i].first;
}
for (int i = 1; i <= m; i++) {
cin >> bingkai[i];
}
sort(bingkai+1, bingkai+1+m);
sort(gambar+1, gambar+1+n, com);
// for (int i = 1; i <= n; i++) cout << gambar[i].first << " " << gambar[i].second << endl;
// cout << endl;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |