제출 #1197133

#제출 시각아이디문제언어결과실행 시간메모리
1197133nrg_studio게임 (IOI14_game)C++20
0 / 100
0 ms328 KiB
#include <bits/stdc++.h>
using namespace std;

#define ll long long
#define pb push_back
#define pii pair<int,int>
#define f first
#define s second
#define chmin(a, b) a = min(a,b)
#define chmax(a, b) a = max(a,b)
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define F0R(i, a) for (int i = 0; i < (a); i++)
#define all(x) x.begin(),x.end()
#define vec vector

const int MAX_N = 1500;
int cnt[MAX_N] = {0};
int n;

void initialize(int n1) {n = n1;}
int hasEdge(int u, int v) {
    return (max(++cnt[u],++cnt[v])==n-1);
}

/*int main() {
    ios::sync_with_stdio(false); cin.tie(0);

    
}*/
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...