# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
287116 | theStaticMind | 게임 (IOI14_game) | C++14 | 1094 ms | 12800 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#define pb push_back
#define ii pair<int,int>
#define all(x) (x).begin(),(x).end()
#define sz(x) ((int)(x).size())
#define INF 100000000000000000
#define modulo 1000000007
#define mod 998244353
using namespace std;
#include "game.h"
set<int> adj[1500];
vector<bool> vis(1500, false);
int cnt = 0;
int n;
void dfs(int x){
vis[x] = true;
cnt++;
for(auto y : adj[x]){
if(!vis[y]) dfs(y);
}
}
void initialize(int n) {
::n = n;
for(int i = 0; i < n; i++){
for(int j = i + 1; j < n; j++){
adj[j].insert(i);
adj[i].insert(j);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |