제출 #380905

#제출 시각아이디문제언어결과실행 시간메모리
380905knightron0게임 (IOI14_game)C++14
100 / 100
457 ms7172 KiB
#include <bits/stdc++.h> #include "game.h" using namespace std; int cnt[1503]; bool done[1506]; int N; void initialize(int n){ for(int i= 0;i<=n+1;i++){ cnt[i] =0; done[i] = 0; } N = n; } int hasEdge(int u, int v){ int mx = max(u, v); if(cnt[mx] == mx-1){ return 1; } cnt[mx]++; return 0; } // signed main() { // ios_base::sync_with_stdio(false); // cin.tie(NULL); // #ifdef LOCAL // freopen("input.txt", "r", stdin); // #endif // int x; // cin>>x; // initialize(x); // for(int i= 0;i<(x*(x-1)/2);i++){ // int t1, t2; // cin>>t1>>t2; // cout<<t1<<' '<<t2<<' '<<hasEdge(t1, t2)<<endl; // } // return 0; // }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...