hdu 1029(hash)
摘要:
传送门:Ignatius and the Princess IV题意:给n个数,找出出现次数大于等于(n+1)/2的那个数。分析:大水题,排个序输出中间那个即可,这里随便写个HASHMAP找出次数最大那个。#include #include #include #define N 1000010#de... 阅读全文
posted @ 2015-03-10 23:50 lienus 阅读(178) 评论(0) 推荐(0)
浙公网安备 33010602011771号