摘要: 基本思路 $$ \begin{array}{l} k,n,a,b,假设能完成游戏,则有\\ x_1+x_2=n\\ x_1 a+x_2 b using namespace std; typedef long long ll; ll q,k,n,a,b; int main() { cin q; whi 阅读全文
posted @ 2019-07-22 18:55 一块钱的争论 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 补题 原CF 1141F Graph Without Long Directed Paths 基本思路 染色问题,u和v记录边的两个顶点,dfs遍历。 有个问题是若边数=顶点数,为什么不能直接输出 1? c++ include using namespace std; typedef struct{ 阅读全文
posted @ 2019-07-22 15:50 一块钱的争论 阅读(136) 评论(0) 推荐(0) 编辑