Submission #986462

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
9864622024-05-20 15:20:55Yazan_SAGame (IOI14_game)C++14
0 / 100
1 ms348 KiB
//#pragma once
#include "bits/stdc++.h"
using namespace std;
int N=1e9;
map<pair<int,int>,int>mp2;
map<pair<int,int>,bool>mp3;
vector<vector<int>>gr;
bool able(int x, int u, int v, vector<bool>&vis)
{
if(x==v)return 1;
vis[x]=1;
for(auto c:gr[x])
{
if(vis[c] || (x==u && c==v) || mp3[{u,v}])continue;
if(able(c,u,v,vis))return 1;
}
return 0;
}
void initialize(int n)
{
gr.resize(n);
for(int i=0; i<n; i++)
{
for(int j=0;j<n; j++)
{
if(i==j)continue;
gr[i].push_back(j);
}
}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...