摘要: 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) 编辑
摘要: P1068 分数线划定 题解:#includeusing namespace std;long long n,m,f=0,x=0,r=0;long long k[100000],s[100000];int mai... 阅读全文
posted @ 2020-02-11 16:37 BorisDimitri 阅读(50) 评论(0) 推荐(0) 编辑
摘要: P158 导弹拦截题解:#includeusing namespace std;struct ca{ int o,p;}o[100005];int cmp(ca a,ca b){ return a.o... 阅读全文
posted @ 2020-02-11 16:35 BorisDimitri 阅读(48) 评论(0) 推荐(0) 编辑