Submission #168886
Source Code Expand
n = gets.to_i ballot = {} n.times do input = gets if ballot.keys.include? input ballot[input] += 1 else ballot[input] = 1 end end p ballot.max_by { |k,v| v }
Submission Info
Submission Time | |
---|---|
Task | B - 投票 |
User | lambdasawa |
Language | Ruby (1.9.3) |
Score | 0 |
Code Size | 187 Byte |
Status | WA |
Exec Time | 62 ms |
Memory | 4180 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample_01.txt, sample_02.txt, sample_03.txt |
All | sample_01.txt, sample_02.txt, sample_03.txt, case_01.txt, case_02.txt, case_03.txt, case_04.txt, case_05.txt, case_06.txt, case_07.txt, case_08.txt, case_09.txt, case_10.txt, case_11.txt, case_12.txt, case_13.txt, case_14.txt, case_15.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
case_01.txt | WA | 55 ms | 4136 KB |
case_02.txt | WA | 57 ms | 4128 KB |
case_03.txt | WA | 55 ms | 4132 KB |
case_04.txt | WA | 57 ms | 4128 KB |
case_05.txt | WA | 60 ms | 4180 KB |
case_06.txt | WA | 56 ms | 4128 KB |
case_07.txt | WA | 58 ms | 4132 KB |
case_08.txt | WA | 58 ms | 4128 KB |
case_09.txt | WA | 58 ms | 4136 KB |
case_10.txt | WA | 62 ms | 4136 KB |
case_11.txt | WA | 55 ms | 4136 KB |
case_12.txt | WA | 56 ms | 4128 KB |
case_13.txt | WA | 55 ms | 4132 KB |
case_14.txt | WA | 54 ms | 4128 KB |
case_15.txt | WA | 54 ms | 4136 KB |
sample_01.txt | WA | 57 ms | 4128 KB |
sample_02.txt | WA | 54 ms | 4136 KB |
sample_03.txt | WA | 56 ms | 4132 KB |