随着前几天做了两道有关贪心算法的题目后,终于来到了hdu的steps 里的 Chapter Two   了 下面是题目 Saving HDU Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 8369    Accepted Submission(s): 3837 Pr…

2016年4月1日 0条评论 3点热度 阅读全文

随着前几天做了两道有关贪心算法的题目后,终于来到了hdu的steps 里的 Chapter Two   了 下面是题目 Saving HDU Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 8369    Accepted Submission(s): 3837 Pr…

2016年4月1日 0条评论 6点热度 阅读全文

Description You are given a weighted undirected graph. The vertices are enumerated from 1 to n. Your task is to find the shortest path between the vertex 1 and the vertex n. Input The first line contains two integers n and m (2 ≤ n ≤ 105, 0 ≤ m ≤ 105), where n…

2014年8月3日 0条评论 14点热度 阅读全文

Hardwood Species Time Limit: 10000MS   Memory Limit: 65536K Total Submissions: 17986   Accepted: 7138 Description Hardwoods are the botanical group of trees that have broad leaves, produce a fruit or nut, and generally go dormant …

2014年7月19日 0条评论 4点热度 阅读全文

Sorting It All Out Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 26801   Accepted: 9248 Description An ascending sorted sequence of distinct values is one in which some form of a less-than operator is used to order …

2014年7月16日 0条评论 8点热度 阅读全文

Legal or Not Problem Description ACM-DIY is a large QQ group where many excellent acmers get together. It is so harmonious that just like a big family. Every day,many "holy cows" like HH, hh, AC, ZT, lcc, BF, Qinz and so on chat on-line to exchange their ideas…

2014年5月8日 0条评论 2点热度 阅读全文