# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
926893 |
2024-02-14T03:58:34 Z |
Nurislam |
Game (IOI14_game) |
C++14 |
|
0 ms |
348 KB |
#include<bits/stdc++.h>
using namespace std;
#include<bits/stdc++.h>
using namespace std;
const int N = 1600;
set<int> g[N];
void initialize(int n) {
for(int i = 0; i < n; i++){
for(int j = i+1; j < n; j++){
g[i].insert(j);
g[j].insert(i);
}
}
}
int hasEdge(int u, int v) {
if(u > v)swap(u, v);
if(g[u].size() == 1)return 1;
g[u].erase(v);
g[v].erase(u);
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Incorrect |
0 ms |
344 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |