제출 #201265

#제출 시각아이디문제언어결과실행 시간메모리
201265BTheroMeetings (JOI19_meetings)C++17
17 / 100
3065 ms504 KiB
// Why am I so dumb? :c
// chrono::system_clock::now().time_since_epoch().count()
                                                  
#include<bits/stdc++.h>
#include "meetings.h"
//#include<ext/pb_ds/assoc_container.hpp>
//#include<ext/pb_ds/tree_policy.hpp>

#define pb push_back
#define mp make_pair

#define all(x) (x).begin(), (x).end()

#define fi first
#define se second

using namespace std;
//using namespace __gnu_pbds;

typedef long long ll;   
typedef pair<int, int> pii;
//template<typename T> using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;

int n;

void Solve(int N) {
    n = N;

    for (int a = 0; a < n; ++a) {
        for (int b = a + 1; b < n; ++b) {
            bool ok = 1;

            for (int c = 0; c < n; ++c) {
                if (c != a && c != b) {
                    int x = Query(a, b, c);
                    ok &= (x == a || x == b);
                }                
            }

            if (ok) {
                Bridge(a, b);
            }
        }
    }   
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...