HDU
比尔吉伯特
还是个大学生正在学习算法,希望能在以后的比赛中能拿到金奖。
展开
-
HDU 4699
Problem Description Sample Input 8 I 2 I -1 I 1 Q 3 L D R Q 2 Sample Output 2 3 Hint The following diagram shows the status of sequence after each instruction:原创 2016-04-25 11:20:18 · 274 阅读 · 0 评论 -
HDU 1686
Problem Description The French author Georges Perec (1936–1982) once wrote a book, La disparition, without the letter 'e'. He was a member of the Oulipo group. A quote from the book: Tout avait原创 2016-04-27 22:48:21 · 149 阅读 · 0 评论 -
HDU 1688
/* 求s到t的最短路与次短路(这里要求只比最短路多1)的条数之和 联想到最小,次小的一种更新关系: if(x<最小)更新最小,次小 else if(==最小)更新方法数 else if(x<次小)更新次小 else if(x==次小)更新方法数 同时记录s到u最短,次短路及方法数 用一个堆每次取最小的,更新完后再入堆 还是那个原理,第一次遇到的就是最优的,然后vi标记为真 方法数注意是加法原原创 2016-04-27 22:52:28 · 301 阅读 · 0 评论 -
HDU 1685
Problem Description The Leiden University Library has millions of books. When a student wants to borrow a certain book, he usually submits an online loan form. If the book is available, then the ne原创 2016-04-27 22:56:00 · 326 阅读 · 0 评论