Task: | Peli |
Sender: | Yytsi |
Submission time: | 2020-11-08 16:29:17 +0200 |
Language: | Ruby |
Status: | READY |
Result: | 100 |
group | verdict | score |
---|---|---|
#1 | ACCEPTED | 35 |
#2 | ACCEPTED | 65 |
test | verdict | time | group | |
---|---|---|---|---|
#1 | ACCEPTED | 0.07 s | 1, 2 | details |
#2 | ACCEPTED | 0.07 s | 2 | details |
Code
gets.to_i.times { s = gets.chomp puts 1 + (s.rindex("P") - s.index("P")) % 2 }