# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
522421 | KoD | Preokret (COCI18_preokret) | C++17 | 1 ms | 344 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using std::vector;
using std::array;
using std::tuple;
using std::pair;
constexpr int L = 2880;
int main() {
std::ios_base::sync_with_stdio(false);
std::cin.tie(nullptr);
array<array<int, 2>, L> game = {};
int half = 0;
for (int k = 0; k < 2; ++k) {
int n;
std::cin >> n;
while (n--) {
int x;
std::cin >> x;
half += x <= L / 2;
game[x - 1][k] += 1;
}
}
std::cout << half << '\n';
int turn = 0;
array<int, 2> score = {};
array<bool, 2> losing = {};
for (const auto& add : game) {
array<int, 2> next = score;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |