散列
文章平均质量分 75
小雪乃
这个作者很懒,什么都没留下…
展开
-
PAT 甲级 1039. Course List for Student (25)
Zhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all the courses, you are supposed to output the registered course list for each student who comes原创 2017-09-26 15:38:59 · 167 阅读 · 0 评论 -
PAT 甲级 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 coins as payments. However,原创 2017-09-30 00:50:07 · 178 阅读 · 0 评论 -
PAT 甲级 1050. String Subtraction (20)
Given two strings S1 and S2, S = S1 - S2 is defined to be the remaining string after taking all the characters in S2 from S1. Your task is simply to calculate S1 - S2 for any given strings. However,原创 2017-09-30 01:20:48 · 178 阅读 · 0 评论 -
PAT 甲级 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 to be "H(key) = key %原创 2017-10-04 19:12:32 · 224 阅读 · 0 评论