哈希
高自期许
华为前员工,现武大在读硕。欢迎大家找我交流
展开
-
PAT (Advanced Level) Practice 1078 Hashing(hash)
1078 Hashing (25 分) The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of the input numbers. The hash function is defined t...原创 2019-08-24 19:21:06 · 129 阅读 · 0 评论 -
PAT (Advanced Level) Practice 1048 Find Coins(hash)
1048 Find Coins (25 分) Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which could accept all kinds of coin...原创 2019-08-24 20:28:56 · 128 阅读 · 0 评论 -
HDUOJ 1280 前m大的数 (hash)
Problem Description 给定一个包含N(N<=3000)个正整数的序列,每个数不超过5000,对它们两两相加得到的N*(N-1)/2个和,求出其中前M大的数(M<=1000)并按从大到小的顺序排列。 Input 输入可能包含多组数据,其中每组数据包括两行: 第一行两个数N和M, 第二行N个数,表示该序列。 Output 对于输入的每组数据,输出M个数,表示结果。输出应当...原创 2019-08-25 12:35:58 · 459 阅读 · 0 评论