Submission #10196043


Source Code Expand

Copy
n = gets.to_i
an = n.times.map { gets.to_i }
puts an.group_by(&:itself).select { |k, v| v.size.odd? }.count
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
n = gets.to_i
an = n.times.map { gets.to_i }

puts an.group_by(&:itself).select { |k, v| v.size.odd? }.count

Submission Info

Submission Time
Task C - Write and Erase
User akht
Language Ruby (2.3.3)
Score 300
Code Size 113 Byte
Status AC
Exec Time 166 ms
Memory 22580 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 3
AC × 11
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
01.txt AC 71 ms 3764 KB
02.txt AC 71 ms 3764 KB
03.txt AC 166 ms 22580 KB
04.txt AC 72 ms 3452 KB
05.txt AC 120 ms 12724 KB
06.txt AC 76 ms 3892 KB
07.txt AC 64 ms 3764 KB
08.txt AC 76 ms 4148 KB
sample_01.txt AC 7 ms 1788 KB
sample_02.txt AC 7 ms 1788 KB
sample_03.txt AC 7 ms 1788 KB


2025-04-03 (Thu)
18:43:54 +00:00