【CodeForces】CodeForces Round #464 (Div. 2) 题解

【比赛连接】c++ 点击打开连接 【题解连接】git 点击打开连接 【A】Love Triangle数组 【思路要点】函数 按照题意寻找三角形便可。即若存在一个点\(i\)使得\(f[f[f[i]]]==i\),答案为Yes,不然为No。 时间复杂度\(O(N)\)。 【代码】优化 #include<bits/stdc++.h> using namespace std; const int MAX
相关文章
相关标签/搜索