摘要: 回文数字 题目链接 思路:DFS尝试每一位 #include <bits/stdc++.h> using namespace std; const int maxn = 2e5 + 10; #define ll long long #define ios std::ios::sync_with_st 阅读全文
posted @ 2020-04-02 21:41 GoodVv 阅读(354) 评论(0) 推荐(0)
摘要: B. Composite Coloring 题目链接 题意: 让你为n个数染色,要让相同颜色的两个数的gcd > 1 , 问怎么染, 题目保证可以让使用的颜色不大于11种。 思路: 偶数 :染颜色1 奇数 ; 染他的最小质因子的指定色 #include <bits/stdc++.h> using n 阅读全文
posted @ 2020-04-02 19:04 GoodVv 阅读(179) 评论(0) 推荐(0)