
贪心
dukig
尽人事,知天命。
展开
-
hdoj6188(贪心)
给你n个数字,2个相同的或者3个连续的就让结果+1,每个数字只能使用一次。 #include<bits\stdc++.h> #include<map> using namespace std; map<int ,int> mmp; int main(void){ std::ios::sync_with_stdio(false); std::...原创 2019-04-10 12:24:02 · 177 阅读 · 0 评论 -
处女座的期末考试(贪心)
链接:https://ac.nowcoder.com/acm/contest/327/J 每次都选最先准备的科目复习就行。 #include<iostream> #include<algorithm> #include<cstdio> #include<cstring> using namespace std; typedef long lon...原创 2019-04-09 16:34:32 · 212 阅读 · 0 评论