Submission #331642

#TimeUsernameProblemLanguageResultExecution timeMemory
331642rocks03Game (IOI14_game)C++14
0 / 100
1 ms384 KiB
#include "game.h" #pragma GCC target("avx2") #pragma GCC optimization("O3") #pragma GCC optimization("unroll-loops") #include<bits/stdc++.h> using namespace std; #define ll long long #define pii pair<int, int> #define pll pair<ll, ll> #define ff first #define ss second #define pb push_back #define SZ(x) ((int)(x).size()) #define all(x) x.begin(), x.end() mt19937 rng(chrono::steady_clock::now().time_since_epoch().count()); vector<int> cnt; void initialize(int n) { cnt.resize(n, n-1); } int hasEdge(int u, int v){ cnt[u]--, cnt[v]--; if(cnt[u] && cnt[v]) return 0; else return 1; }

Compilation message (stderr)

game.cpp:3: warning: ignoring #pragma GCC optimization [-Wunknown-pragmas]
    3 | #pragma GCC optimization("O3")
      | 
game.cpp:4: warning: ignoring #pragma GCC optimization [-Wunknown-pragmas]
    4 | #pragma GCC optimization("unroll-loops")
      |
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...