| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1321048 | Hercule_Poirot | September (APIO24_september) | C++20 | 0 ms | 0 KiB |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
//change this back
typedef int ll;
//const ll MOD=1e9+7;
int solve(int N,int M,vector<int> F,vector<vector<int>> S){
vector<vector<ll>> adj(n);
for(ll i=0;i<=(n-1);i++){
adj[i].push_back(F[i]);
adj[F[i]].push_back(i);
}
return n-1;
}
/*
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
//dra
}
*/
