Gowdham C

Gowdham C

  • NA
  • 10
  • 556

Please help me solve this console application

Mar 19 2022 8:28 PM

We have three segments those booth names, party names, number of votes.Sometimes same party can participate in different booths.following questions.

Based on those three details you have to provide solution for

1. Winners of each booth.

2. Parties along with votes with irrespective of booths i.e.,

if same party participated in other booths then count the total votes. 3. Parties along with their seats i.e., how many times it participated.

Sample Input:

5

Booth1 BJQ 3400

Booth1 DMR 4300

Booth1 YSR 3499

Booth2 DMR 89

Booth2 ADEP 5000

Sample Output:

Booth1 Winner: DMR-4300

Booth2 Winner: ADEP - 5000

Total Votes:

BJQ-3400

DMR-4389

YSR-3499

ADEP-5000


Answers (2)