摘要: 模拟排序概率论解模拟题的方法:(1)认真仔细... 阅读全文
posted @ 2020-02-13 15:58 BorisDimitri 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 哈希表若关键字为k,则其值存放在f(k)的存... 阅读全文
posted @ 2020-02-13 13:56 BorisDimitri 阅读(34) 评论(0) 推荐(0) 编辑
摘要: P1024 一元三次方程求解 题解:#include using namespace std;int main(){ double a,b,c,d; cin>>a>>b>>c>>d; for(doub... 阅读全文
posted @ 2020-02-12 16:27 BorisDimitri 阅读(25) 评论(0) 推荐(0) 编辑
摘要: P1072 Hankson 的趣味题题解: 提交效果图,亲试#include#include#include#define ll long longusing namespace std;int prime[10... 阅读全文
posted @ 2020-02-11 20:02 BorisDimitri 阅读(25) 评论(0) 推荐(0) 编辑
摘要: CF5A Chat Server's Outgoing Traffic题解:#includeusing namespace std;int ans=9,people ;int main() { string k;... 阅读全文
posted @ 2020-02-11 18:03 BorisDimitri 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 题解 CF4B 【Before an Exam】超水的一道贪心题 贪心贪心的定义: 贪心选择是指所求问题的整体最优解可以通过一系列局部最优的选择,即贪心选择来达到。这是贪心算法可行的第一个基本要素,... 阅读全文
posted @ 2020-02-11 17:34 BorisDimitri 阅读(41) 评论(0) 推荐(0) 编辑
摘要: CF3A Shortest path of the king题解:#includeusing namespace std;string s1,s2;int main() { cin>>s1>>s2; int x1... 阅读全文
posted @ 2020-02-11 17:13 BorisDimitri 阅读(36) 评论(0) 推荐(0) 编辑
摘要: P3955 图书管理员题解:#include... 阅读全文
posted @ 2020-02-11 16:46 BorisDimitri 阅读(65) 评论(0) 推荐(0) 编辑
摘要: P1012 拼数题解:#include#include using namespace std;string a[30]; int main(){ int n; cin>>n; for(int... 阅读全文
posted @ 2020-02-11 16:41 BorisDimitri 阅读(34) 评论(0) 推荐(0) 编辑
摘要: P1093 奖学金题解:#include using namespace std;struct node { int a; int b; int c; int d; int w;};bool f(node a,n... 阅读全文
posted @ 2020-02-11 16:39 BorisDimitri 阅读(42) 评论(0) 推荐(0) 编辑