# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
515773 | acatmeowmeow | Preokret (COCI18_preokret) | C++11 | 1 ms | 332 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n, cnt = 0;
cin >> n;
vector<pair<int, int>> arr;
for (int i = 1; i <= n; i++) {
int x;
cin >> x;
if(x <= 1440) cnt++;
arr.push_back({x, 1});
}
int m;
cin >> m;
for (int i = 1; i <= m; i++) {
int x;
cin >> x;
if (x <= 1440) cnt++;
arr.push_back({x, 2});
}
sort(arr.begin(), arr.end());
vector<pair<int, int>> res(n + m + 5);
res[0] = (arr[0].second == 1 ? pair<int, int>(1, 0) : pair<int, int>(0, 1));
for (int i = 1; i < arr.size(); i++) {
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |