Hi, could I ask how I can solve this problem in Java using hashtables? Input The input begins with an integer 1 ≤ ? ≤ 10000, the number of frosh. For each frosh, a line follows containing the course...


Hi, could I ask how I can solve this problem in Java using hashtables?


Input


The input begins with an integer 1 ≤ ? ≤ 10000, the number of frosh. For each frosh, a line follows containing the course numbers of five distinct courses selected by the frosh. Each course number is an integer between 100 and 499.


Output


Thepopularity of a combination is the number of frosh selecting exactly the same combination of courses. A combination of courses is consideredmost popular if no other combination has higher popularity. Output a single line giving the total number of students taking some combination of courses that is most popular.


Sample Input 1<br>Sample Output i<br>100 101 102 103 488<br>100 200 300 101 102<br>103 102 101 488 100<br>Sample Input 2<br>Sample Output 2<br>3<br>3<br>200 202 204 206 208<br>123 234 345 456 321<br>100 200 300 400 444<br>

Extracted text: Sample Input 1 Sample Output i 100 101 102 103 488 100 200 300 101 102 103 102 101 488 100 Sample Input 2 Sample Output 2 3 3 200 202 204 206 208 123 234 345 456 321 100 200 300 400 444

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here