2014年4月26日

HDU1896 Stones 简单队列

摘要: 优先队列 1 #include 2 #include 3 using namespace std; 4 struct node 5 { 6 int p,d; 7 friend bool operatorb.d;10 return a.p>b.p;11 } ... 阅读全文

posted @ 2014-04-26 23:51 >_< 阅读(139) 评论(0) 推荐(0) 编辑

HDU 2037 今年暑假不AC 快排+贪心

摘要: 快排+贪心 1 #include 2 int a[110],b[110]; 3 void quicksort(int a[],int low,int high) 4 { 5 int i=low; 6 int j=high; 7 int temp=a[i]; 8 int... 阅读全文

posted @ 2014-04-26 16:44 >_< 阅读(112) 评论(0) 推荐(0) 编辑

HDU 1029 Ignatius and the Princess IV 简单map

摘要: 简单map 1 #include 2 #include 3 using namespace std; 4 int main() 5 { 6 int n; 7 int temp; 8 mapa; 9 map::iterator iter;10 while(sca... 阅读全文

posted @ 2014-04-26 16:35 >_< 阅读(136) 评论(0) 推荐(0) 编辑

导航