Submission #986389

#TimeUsernameProblemLanguageResultExecution timeMemory
986389emad234Game (IOI14_game)C++17
100 / 100
231 ms18252 KiB
#pragma once #include "bits/stdc++.h" #define F first #define S second #define ll long long #define pii pair<int,int> const int mxN = 1505; const int mod = 1e9 + 7; using namespace std; vector<int>s[mxN]; int N; int cnt[mxN]; void initialize(int n){ N = n; } int hasEdge(int u, int v){ if(u < v) swap(u,v); cnt[u]++; return cnt[u] == u; }

Compilation message (stderr)

game.cpp:1:9: warning: #pragma once in main file
    1 | #pragma once
      |         ^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...