Submission #169004


Source Code Expand

Copy
n = gets.to_i
a = Hash.new
while n > 0
	name = gets.chomp
	if a[name] == nil
		a[name] = 0
	end
	a[name] = a[name] + 1
	n = n-1
end

b = 0
a.each_value { |v|
	b = v if v > b
}
print("#{a.key(b)}")

Submission Info

Submission Time
Task B - 投票
User pneu
Language Ruby (1.9.3)
Score 0
Code Size 213 Byte
Status WA
Exec Time 75 ms
Memory 4212 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 100
Status
WA × 3
WA × 18
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 53 ms 4208 KB
case_02.txt WA 56 ms 4212 KB
case_03.txt WA 57 ms 4208 KB
case_04.txt WA 58 ms 4212 KB
case_05.txt WA 57 ms 4208 KB
case_06.txt WA 58 ms 4208 KB
case_07.txt WA 57 ms 4212 KB
case_08.txt WA 54 ms 4212 KB
case_09.txt WA 56 ms 4192 KB
case_10.txt WA 57 ms 4212 KB
case_11.txt WA 57 ms 4212 KB
case_12.txt WA 61 ms 4212 KB
case_13.txt WA 57 ms 4212 KB
case_14.txt WA 58 ms 4212 KB
case_15.txt WA 55 ms 4212 KB
sample_01.txt WA 60 ms 4212 KB
sample_02.txt WA 70 ms 4204 KB
sample_03.txt WA 75 ms 4208 KB