
贪心
文章平均质量分 54
fantaticmen
如果有讲的不详细的或者错误的可以加鹅细聊+934591874
展开
-
ACM 删数问题 SDUT 2072
http://acm.sdut.edu.cn/onlinejudge2/index.php/Home/Index/problemdetail/pid/2072.html删数问题 Time Limit: 1000MS Memory Limit: 65536KB Submit Statistic Discuss Problem Description键盘输入一个高精度的正整数n(≤100位),去原创 2017-01-26 13:02:53 · 915 阅读 · 0 评论 -
HDU 6015 Skip the Class 优先队列 map的使用
Skip the ClassTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 1028 Accepted Submission(s): 599Problem Description Finally term begins. lura原创 2017-05-09 19:19:04 · 331 阅读 · 0 评论 -
HDU 1873 看病要排队 优先队列
Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 9539 Accepted Submission(s): 4034Problem Description 看病要排队这个是地球人都知道的常识。 不过经过细心的0068的观察,他发现原创 2017-05-09 19:23:49 · 373 阅读 · 0 评论 -
hdu 2824 欧拉函数 O(nlogn) 和O(n)
裸题O(nlogn):#include <cstdio>#include <iostream>#include <algorithm>using namespace std;typedef long long ll;const int maxn=3000000+100;int phi[maxn];void init() { for(int i=2;i<maxn;i++) phi[原创 2017-07-15 13:51:45 · 544 阅读 · 0 评论