This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |