摘要:
题目:http://codeforces.com/contest/1435/problem/D 要是当时看看这个D题就好了,血亏 简单的用栈模拟即可 #include<bits/stdc++.h> using namespace std; typedef long long ll; #define 阅读全文
摘要:
题目:http://codeforces.com/contest/1419/problem/D2 本来写的是easy version的代码,交hard version竟然能过 #include<bits/stdc++.h> using namespace std; typedef long long 阅读全文
摘要:
题目:https://ac.nowcoder.com/acm/contest/7818/B 经典TSP问题,推荐看这篇文章:https://www.cnblogs.com/smashfun/p/11432110.html 模版: for (int i = 1; i <= n; i++) dp[1<< 阅读全文
摘要:
题目:https://ac.nowcoder.com/acm/contest/7830/B n和m都很少,可以1e4次建图+dij暴力算期望 1 #include<bits/stdc++.h> 2 using namespace std; 3 typedef long long ll; 4 type 阅读全文
摘要:
Traveler ZOJ - 4103 The famous traveler BaoBao is visiting the Dream Kingdom now. There are nn cities in Dream Kingdom, numbered from 11 to nn. The ci 阅读全文