随笔分类 -  散列表

5-17 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. 阅读全文

posted @ 2016-12-14 09:07 于无声出听惊雷 阅读(327) 评论(0) 推荐(0)

PTA 5-14 电话聊天狂人 (25分)
摘要:给定大量手机用户通话记录,找出其中通话次数最多的聊天狂人。 输入格式: 输入首先给出正整数NN(\le 10^5≤10​5​​),为通话记录条数。随后NN行,每行给出一条通话记录。简单起见,这里只列出拨出方和接收方的11位数字构成的手机号码,其中以空格分隔。 输出格式: 在一行中给出聊天狂人的手机号 阅读全文

posted @ 2016-12-13 11:54 于无声出听惊雷 阅读(2035) 评论(1) 推荐(0)

导航