随笔分类 -  比赛

摘要:#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> P; bool cmp(P a, P b) { if(a.first == b.first) { return a.sec 阅读全文
posted @ 2020-11-21 18:07 LightAc 阅读(531) 评论(0) 推荐(0)
摘要:前两题就是憨批题,从第三道开始补题吧 第三题 一个简单的DFS。看错题意了以为是==8皇后,事实上就是个不断模拟进行搜索的过程,用个deep记录遍历深度即可。 #include <bits/stdc++.h> using namespace std; int N, K; int a[10][10]; 阅读全文
posted @ 2020-11-15 22:25 LightAc 阅读(108) 评论(0) 推荐(0)
摘要:题目链接:https://vjudge.net/contest/398996 榜单:https://ccpc.io/index.php/a/185.html 获奖名单:https://ccpc.io/index.php/a/191.html A题 差分约束,最短路,会了再写,金牌题 https:// 阅读全文
posted @ 2020-10-04 15:27 LightAc 阅读(615) 评论(0) 推荐(1)
摘要:2020年7月5日 参赛论文注意事项: 摘要中一定要给出求解的答案(没有准确的答案是硬伤) 可以通过给定模型之后利用差分遍历的方法找到最优解 程序尽量都给出流程图 常微分方程部分多看。学会建立出微分方程模型。 Matlab需要熟练掌握。今天学习了matlab前四章基础知识 解题思路有通过构建出动态规 阅读全文
posted @ 2020-07-05 16:44 LightAc 阅读(544) 评论(0) 推荐(0)
摘要:A. B. D 阅读全文
posted @ 2019-04-12 23:38 LightAc 阅读(127) 评论(0) 推荐(0)
摘要:题意: 第一行输入代表下面输入的测试数对的个数 接下来的每个数对中 两个数中可以任意选择一个作为判断数字 选完n个之后 这些数对的最小公因数即为答案 换言之第一组选18 15 12得3,也可以选18 24 12得6或3或2 输出一个答案即可。 阅读全文
posted @ 2019-04-04 20:16 LightAc 阅读(224) 评论(0) 推荐(0)
摘要:5 23 4 7 2 63 5 2 9 03 8 5 7 32 5 3 1 49 8 6 3 5 15 阅读全文
posted @ 2019-03-30 11:38 LightAc 阅读(134) 评论(0) 推荐(0)
摘要:问题一 Input: 5 50 0 5 0 00 4 3 8 29 5 7 2 71 9 6 5 41 0 0 6 2 Output: 4 Input: 10 100 0 0 0 0 0 0 0 0 00 5 2 6 4 3 1 7 8 00 6 4 2 3 5 1 4 6 00 3 6 4 1 2 阅读全文
posted @ 2019-03-22 20:34 LightAc 阅读(178) 评论(0) 推荐(0)

返回顶端