上一页 1 2 3 4 5 6 7 8 9 ··· 35 下一页
摘要: ###题目链接:https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=25&page=show_problem&problem=2346 唯一的问题就是 \(k\) 太大数组开不下,但发现所有位数之和最多 阅读全文
posted @ 2021-08-15 00:44 Tartarus_li 阅读(30) 评论(0) 推荐(0) 编辑
摘要: ###题目链接:https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=244&page=show_problem&problem=3364 设 \(dp[i][j][0/1][0/1][0/1/2][0/ 阅读全文
posted @ 2021-08-15 00:26 Tartarus_li 阅读(41) 评论(0) 推荐(0) 编辑
摘要: ###题目链接:https://acm.hdu.edu.cn/showproblem.php?pid=1663 记录一下某数字出现的次数,每个数字都单独算一遍即可 #include<cstdio> #include<cstring> #include<vector> using namespace 阅读全文
posted @ 2021-08-14 19:21 Tartarus_li 阅读(20) 评论(0) 推荐(0) 编辑
摘要: ###题目链接:https://www.luogu.com.cn/problem/P2657 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int maxn = 30; ll l, r; ll dp[ 阅读全文
posted @ 2021-08-14 15:38 Tartarus_li 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=14&page=show_problem&problem=1178 将棋盘旋转 \(45°\) 后,对角线转化为行和列,而奇数行和偶数行的棋 阅读全文
posted @ 2021-08-13 19:03 Tartarus_li 阅读(29) 评论(0) 推荐(0) 编辑
摘要: ###题目链接:https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=22&page=show_problem&problem=1962 每只麻雀的后代都是独立的,所以单独考虑一只麻雀及其后代 \(m\) 阅读全文
posted @ 2021-08-10 17:45 Tartarus_li 阅读(16) 评论(0) 推荐(0) 编辑
摘要: ###题目链接:https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4035 特别恶心的分类讨论,讨论四个角的放置方法即可 具体讨论见代码 #include<bits/ 阅读全文
posted @ 2021-08-09 06:08 Tartarus_li 阅读(75) 评论(0) 推荐(0) 编辑
摘要: ###题目链接:https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=3793 首先发现按照规定的摆放方法一定会有圈,其中每个圈的相邻两行都有一对棋子位于同一列上 设 \ 阅读全文
posted @ 2021-08-07 22:41 Tartarus_li 阅读(57) 评论(0) 推荐(0) 编辑
摘要: ###题目链接:https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=0&problem=3133&mosmsg=Submission+received+with+ID 阅读全文
posted @ 2021-08-07 16:06 Tartarus_li 阅读(28) 评论(0) 推荐(0) 编辑
摘要: ###题目链接:https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=14&page=show_problem&problem=1212 首先发现,最短的两只筷子一定是相邻的,如果不是,换成相邻的答案一定 阅读全文
posted @ 2021-07-31 20:32 Tartarus_li 阅读(35) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 35 下一页