Submission #43619741
Source Code Expand
N = gets.to_i
a = []
b = []
N.times do
s = gets.chomp
s_reverse = s.reverse
if s.size == 1 || s == s_reverse
a << s
else
b << s
b << s_reverse
end
end
puts a.uniq.size + (b.uniq.size / 2)
Submission Info
| Submission Time | |
|---|---|
| Task | C - Reversible |
| User | zeami |
| Language | Ruby (2.7.1) |
| Score | 300 |
| Code Size | 226 Byte |
| Status | AC |
| Exec Time | 187 ms |
| Memory | 29652 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 300 / 300 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example0.txt |
| All | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, 010.txt, 011.txt, 012.txt, 013.txt, 014.txt, 015.txt, 016.txt, 017.txt, 018.txt, 019.txt, 020.txt, 021.txt, example0.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 000.txt | AC | 58 ms | 14664 KiB |
| 001.txt | AC | 58 ms | 14752 KiB |
| 002.txt | AC | 187 ms | 29652 KiB |
| 003.txt | AC | 184 ms | 29620 KiB |
| 004.txt | AC | 101 ms | 23364 KiB |
| 005.txt | AC | 104 ms | 24132 KiB |
| 006.txt | AC | 57 ms | 14708 KiB |
| 007.txt | AC | 56 ms | 14704 KiB |
| 008.txt | AC | 57 ms | 14632 KiB |
| 009.txt | AC | 128 ms | 28796 KiB |
| 010.txt | AC | 83 ms | 18092 KiB |
| 011.txt | AC | 84 ms | 18444 KiB |
| 012.txt | AC | 86 ms | 19412 KiB |
| 013.txt | AC | 131 ms | 28760 KiB |
| 014.txt | AC | 63 ms | 14788 KiB |
| 015.txt | AC | 62 ms | 14780 KiB |
| 016.txt | AC | 63 ms | 14876 KiB |
| 017.txt | AC | 57 ms | 14616 KiB |
| 018.txt | AC | 58 ms | 14820 KiB |
| 019.txt | AC | 57 ms | 14764 KiB |
| 020.txt | AC | 59 ms | 14740 KiB |
| 021.txt | AC | 59 ms | 14860 KiB |
| example0.txt | AC | 59 ms | 14228 KiB |