摘要:
写的东西不一定都讲了。 F - Night of Full Moon 暴力模拟即可。 好像大家不会算复杂度。 D - 约瑟夫问题 oiwiki https://oi-wiki.org/misc/josephus/ 其中大家需要理解记住对数做法中的复杂度的计算。 H - 燃烧权杖 搜索能过。 这差不多 阅读全文
摘要:
Task4 //VEctor.hpp#include<bits/stdc++.h> using namespace std; template<typename T> class Vector{ private: int length; T * base; public: Vector(const 阅读全文
摘要:
task5 //Info.hpp#include<iostream> #include<math.h> #include<string> using namespace std; class Info{ public: Info (string a, string b, string c, int 阅读全文
摘要:
四、组合数学 Prufer序列 long long fa[N], prufer[N], d[N]; long long n, m, ans; void get_Prufer(){ long long p = 1, tot = 0; for(long long i = 1; i <= n - 1; i 阅读全文