2016年7月28日

cf - 140 C. New Year Snowmen(贪心+优先队列)

摘要: C. New Year Snowmen time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output As meticulous Gerald 阅读全文

posted @ 2016-07-28 10:30 Jstyle 阅读(372) 评论(0) 推荐(0)

cf - 140 A. New Year Table(模拟)

摘要: A. New Year Table time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A. New Year Table time 阅读全文

posted @ 2016-07-28 10:14 Jstyle 阅读(248) 评论(0) 推荐(0)

51nod - 1136 欧拉函数(欧拉函数)

摘要: 题目链接:https://www.51nod.com/onlineJudge/questionCode.html#!problemId=1136 思路:欧拉函数求小于或等于n且与n互质的数字的个数 题目链接:https://www.51nod.com/onlineJudge/questionCode 阅读全文

posted @ 2016-07-28 10:03 Jstyle 阅读(224) 评论(0) 推荐(0)

51nod - 1019 逆序数(归并排序or线段树)

摘要: 思路:利用归并排序,先分解区间。最后合并区间的时候找到逆序的个数。(可以画图来理解归并排序) 代码: 1 #include <iostream> 2 #include <cstring> 3 using namespace std; 4 5 int a[50005]; 6 int res[50005 阅读全文

posted @ 2016-07-28 09:52 Jstyle 阅读(221) 评论(0) 推荐(0)

导航