Hash
云淡风轻jzl
一路脚踏实地,不忘仰望星空。
展开
-
简单hash-给你n个整数,请按从大到小的顺序输出其中前m大的数。
题目描述:给你n个整数,请按从大到小的顺序输出其中前m大的数。输入描述:每组测试数据有两行,第一行有两个数n,m(0<n,m<1000000),第二行包含n个各不相同,且都处于区间[-500000,500000]的整数。输出描述:对每组测试数据按从大到小的顺序输出前m大的数。输入样例:5 33 -35 92 213 -644输出样例:213 92 3核心思想:...原创 2019-07-20 08:46:20 · 4506 阅读 · 0 评论 -
2019CCPC-江西省赛-Traffic-简单Hash
Problem DescriptionAvin is observing the cars at a crossroads. He finds that there are n cars running in the east-west direction with the i-th car passing the intersection at time ai . There are anot...原创 2019-07-21 16:12:14 · 431 阅读 · 0 评论