Submission #441423
Source Code Expand
r = 0
b = 0
gets.to_i.times {
l = gets
r += l.each_char.count {|c|
c == 'R'
}
b += l.each_char.count {|c|
c == 'B'
}
}
if r == b
puts 'DRAW'
elsif r > b
puts 'TAKAHASHI'
else
puts 'AOKI'
end
Submission Info
| Submission Time | |
|---|---|
| Task | A - 床塗り |
| User | hato2000 |
| Language | Ruby (2.1.5p273) |
| Score | 100 |
| Code Size | 257 Byte |
| Status | AC |
| Exec Time | 87 ms |
| Memory | 4952 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 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, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, 01-09.txt, 01-10.txt, 01-11.txt, 01-12.txt, 01-13.txt, 01-14.txt, 01-15.txt, 01-16.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 01-01.txt | AC | 68 ms | 4812 KiB |
| 01-02.txt | AC | 64 ms | 4784 KiB |
| 01-03.txt | AC | 65 ms | 4804 KiB |
| 01-04.txt | AC | 65 ms | 4912 KiB |
| 01-05.txt | AC | 69 ms | 4812 KiB |
| 01-06.txt | AC | 75 ms | 4812 KiB |
| 01-07.txt | AC | 67 ms | 4812 KiB |
| 01-08.txt | AC | 72 ms | 4812 KiB |
| 01-09.txt | AC | 68 ms | 4916 KiB |
| 01-10.txt | AC | 74 ms | 4788 KiB |
| 01-11.txt | AC | 74 ms | 4820 KiB |
| 01-12.txt | AC | 74 ms | 4912 KiB |
| 01-13.txt | AC | 73 ms | 4788 KiB |
| 01-14.txt | AC | 64 ms | 4844 KiB |
| 01-15.txt | AC | 73 ms | 4812 KiB |
| 01-16.txt | AC | 87 ms | 4808 KiB |
| sample-01.txt | AC | 66 ms | 4816 KiB |
| sample-02.txt | AC | 67 ms | 4952 KiB |
| sample-03.txt | AC | 66 ms | 4816 KiB |