摘要: D - 3N Numbers Time limit : 2sec / Memory limit : 256MB Score : 500 points Problem Statement Let N be a positive integer. There is a numerical sequenc 阅读全文
posted @ 2017-05-21 13:10 happy_codes 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Chocolate Bar Time limit : 2sec / Memory limit : 256MB Score : 400 points Problem Statement There is a bar of chocolate with a height of H blocks and 阅读全文
posted @ 2017-05-21 13:05 happy_codes 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 仔细的弄懂了一下,优先队列的情况 1 #include <iostream> 2 #include <queue> 3 using namespace std; 4 5 struct Node 6 { 7 int x; 8 bool operator <(const Node& b)const{ 9 阅读全文
posted @ 2017-05-21 12:15 happy_codes 阅读(163) 评论(0) 推荐(0) 编辑