上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: 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 阅读(59) 评论(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 阅读(71) 评论(0) 推荐(0)
摘要: P3955 图书管理员题解:#include... 阅读全文
posted @ 2020-02-11 16:46 BorisDimitri 阅读(87) 评论(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 阅读(71) 评论(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 阅读(73) 评论(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 阅读(84) 评论(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 阅读(68) 评论(0) 推荐(0)
摘要: CF2A Winner题解:#include #include #include using namespace std;map mp,mpp;int n,a[100001],maxn=-99999999;str... 阅读全文
posted @ 2020-02-10 20:41 BorisDimitri 阅读(50) 评论(0) 推荐(0)
摘要: CF1C Ancient Berland Circus题解:#include using namespace std;char x[1000010];int main() { int n,i,j,k; cin>>... 阅读全文
posted @ 2020-02-10 20:39 BorisDimitri 阅读(75) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 下一页