Submission #1028892

#TimeUsernameProblemLanguageResultExecution timeMemory
1028892dozerGame (IOI14_game)C++14
100 / 100
211 ms16464 KiB
#include "game.h" #include <bits/stdc++.h> #pragma GCC Optimize("Ofast") using namespace std; #define sp " " #define endl "\n" #define fileio() freopen("input.txt", "r", stdin), freopen("output.txt","w", stdout) #define fastio() cin.tie(0), ios_base::sync_with_stdio(0) #define pb push_back #define pii pair<int, int> #define st first #define nd second #define LL node * 2 #define RR node * 2 #define mid (l + r) / 2 #define ll long long #define MAXN 1600 const int modulo = 1e9 + 7; const ll INF = 2e18 +7; int cnt[MAXN], N; void initialize(int n) { N = n; for (int i = 0; i < n; i++){ cnt[i] = i; } } int hasEdge(int u, int v) { if (u > v) swap(u, v); if (cnt[v] == 1) return 1; cnt[v]--; return 0; }

Compilation message (stderr)

game.cpp:3: warning: ignoring '#pragma GCC Optimize' [-Wunknown-pragmas]
    3 | #pragma GCC Optimize("Ofast")
      |
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...