算法----5.贪心
文章平均质量分 68
ur_ytii
这个作者很懒,什么都没留下…
展开
-
贪心----Stall Reservations
Stall Reservations Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 18736 Accepted: 6502 Special Judge Description Oh those picky N (1 <= N <= 50,000) cows! They are so picky that each one will only be milked o...原创 2021-03-16 09:49:15 · 106 阅读 · 0 评论 -
区间贪心
#include<cstdio> #include<stdlib.h> #include<iostream> #include<algorithm> #include<cmath> #include<cstring> #pragma warning(disable:4996) using namespace std; #include<string> #include<vector> #include<m.原创 2021-03-15 16:25:25 · 80 阅读 · 0 评论 -
贪心+复杂模拟---1033 To Fill or Not to Fill (25 分)
1033 To Fill or Not to Fill (25 分) With highways available, driving a car from Hangzhou to any other city is easy. But since the tank capacity of a car is limited, we have to find gas stations on the way from time to time. Different gas station may give d原创 2021-03-01 19:13:55 · 88 阅读 · 0 评论