摘要:
简单版和加强版的区别就是数据范围扩大到了long long,并且加了限制条件。用IDA*算法即可解决。 #include using namespace std;typedef long long LL;LL maxd, ans[10240], v[10240];set ban;LL gcd(L... 阅读全文
摘要:
#include "iostream"#include "vector"#include "iterator"#include "ctime"#include "random"templateinline void Swap(T & a, T & b){ //交换变量 T tmp = a; a... 阅读全文