# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
367468 | kostia244 | 전차 (CEOI13_tram) | C++17 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#pragma GCC optimize("Ofast,unroll-loops")
#pragma GCC target("avx,avx2,sse,sse2")
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
const int maxn = 150001;
int n, m;
multiset<array<int, 3>> pq;
vector<array<int, 2>> lol;
map<int, int> what;
template<class OwO, class It>
void P(It l, It r, OwO uwu) {
if(++l == what.begin() && r == what.end()) return;
--l;
if(r == what.begin()) {
//cout << "This\n";
l = what.end();
if(r->first == 1) {
if(r->second == 1) uwu(l, r, {1, 2});
if(r->second == 2) uwu(l, r, {1, 1});
} else {
if(r->second == 3) {
uwu(l, r, {1, 1});
uwu(l, r,{1, 2});
}
if(r->second == 1) {
uwu(l, r, {1, 2});
}
if(r->second == 2) {
uwu(l, r, {1, 1});