随笔分类 -  USACO

USACO 题库中的题目
摘要:"购买巧克力Chocolate Buying" 乍一看以为是背包,然后交了一个感觉没错的背包上去。 结果无情30分。 看了一下数据范围,再仔细想了下,发现不是dp,贪心就可以了,从小到大排序费用,再从小到大买,到买不起为止即可。 Code: 阅读全文
posted @ 2019-06-09 21:11 Mystery_Sky 阅读(126) 评论(0) 推荐(0) 编辑
摘要:"坏掉的项链Broken Necklace" 难度:★ Code: 阅读全文
posted @ 2019-05-30 21:37 Mystery_Sky 阅读(234) 评论(0) 推荐(0) 编辑
摘要:"黑色星期五" 难度:☆ Code: c++ include include include using namespace std; //Mystery_Sky // int day[13] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31} 阅读全文
posted @ 2019-05-30 20:12 Mystery_Sky 阅读(264) 评论(0) 推荐(0) 编辑
摘要:"你的飞碟在这儿" 难度:☆ Code: c++ include include include using namespace std; int jisuan(char a[]); int main() { char a[7] = {}; char b[7] = {}; cin a; cin b; 阅读全文
posted @ 2019-05-30 20:11 Mystery_Sky 阅读(152) 评论(0) 推荐(0) 编辑
摘要:"贪婪的送礼者Greedy Gift Givers" 难度:☆ Code: c++ include include include include using namespace std; //Mystery_Sky // struct People{ char name[20]; int out, 阅读全文
posted @ 2019-05-30 19:26 Mystery_Sky 阅读(230) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示