{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003e\r\n\tGoogle is one of the most famous Internet search engines which hosts and develops a number of Internet-based services and products. On its search engine website, an interesting button `I\u0026#39;m feeling lucky\u0026#39; attracts our eyes. This feature could allow the user skip the search result page and goes directly to the first ranked page. Amazing! It saves a lot of time.\u003c/p\u003e\r\n\u003cp\u003e\r\n\tThe question is, when one types some keywords and presses `I\u0026#39;m feeling lucky\u0026#39; button, which web page will appear? Google does a lot and comes up with excellent approaches to deal with it. In this simplified problem, let us just consider that Google assigns every web page an integer-valued relevance. The most related page will be chosen. If there is a tie, all the pages with the highest relevance are possible to be chosen.\u003c/p\u003e\r\n\u003cp\u003e\r\n\tYour task is simple, given 10 web pages and their relevance. Just pick out all the possible candidates which will be served to the user when `I\u0026#39;m feeling lucky\u0026#39;.\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003e\r\n\tThe input contains multiple test cases. The number of test cases\u0026nbsp;\u003cspan class\u003d\"MATH\"\u003e\u003ci\u003eT\u003c/i\u003e\u003c/span\u003e\u0026nbsp;is in the first line of the input file.\u003c/p\u003e\r\n\u003cp\u003e\r\n\tFor each test case, there are 10 lines, describing the web page and the relevance. Each line contains a character string without any blank characters denoting the URL of this web page and an integer\u0026nbsp;\u003cspan class\u003d\"MATH\"\u003e\u003ci\u003eV\u003c/i\u003e\u003csub\u003ei\u003c/sub\u003e\u003c/span\u003e\u0026nbsp;denoting the relevance of this web page. The length of the URL is between 1 and 100 inclusively. (\u0026nbsp;\u003cspan class\u003d\"MATH\"\u003e\u003cspan data-scayt_word\u003d\"1Vi100\" data-scaytid\u003d\"1\"\u003e1\u003cimg align\u003d\"MIDDLE\" alt\u003d\"$ \\le$\" border\u003d\"0\" height\u003d\"31\" src\u003d\"http://uva.onlinejudge.org/external/120/12015img1.png\" width\u003d\"18\" /\u003e\u003ci\u003eV\u003c/i\u003e\u003csub\u003ei\u003c/sub\u003e\u003cimg align\u003d\"MIDDLE\" alt\u003d\"$ \\le$\" border\u003d\"0\" height\u003d\"31\" src\u003d\"http://uva.onlinejudge.org/external/120/12015img1.png\" width\u003d\"18\" /\u003e100\u003c/span\u003e\u003c/span\u003e)\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003e\r\n\tFor each test case, output several lines which are the URLs of the web pages which are possible to be chosen. The order of the URLs is the same as the input. Please look at the sample output for further information of output format.\u003c/p\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre\u003e\r\n2\r\nwww.youtube.com 1\r\nwww.google.com 2\r\nwww.google.com.hk 3\r\nwww.alibaba.com 10\r\nwww.taobao.com 5\r\nwww.bad.com 10\r\nwww.good.com 7\r\nwww.fudan.edu.cn 8\r\nwww.university.edu.cn 9\r\nacm.university.edu.cn 10\r\nwww.youtube.com 1\r\nwww.google.com 2\r\nwww.google.com.hk 3\r\nwww.alibaba.com 11\r\nwww.taobao.com 5\r\nwww.bad.com 10\r\nwww.good.com 7\r\nwww.fudan.edu.cn 8\r\nacm.university.edu.cn 9\r\nacm.university.edu.cn 10\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre\u003e\r\nCase #1:\r\nwww.alibaba.com\r\nwww.bad.com\r\nacm.university.edu.cn\r\nCase #2:\r\nwww.alibaba.com\u003c/pre\u003e"}}]}