Task: | Peli |
Sender: | Metabolix |
Submission time: | 2020-11-06 18:41:00 +0200 |
Language: | Python3 (CPython3) |
Status: | READY |
Result: | 100 |
group | verdict | score |
---|---|---|
#1 | ACCEPTED | 35 |
#2 | ACCEPTED | 65 |
test | verdict | time | group | |
---|---|---|---|---|
#1 | ACCEPTED | 0.02 s | 1, 2 | details |
#2 | ACCEPTED | 0.02 s | 2 | details |
Code
#!/usr/bin/python t = int(input()) for _ in range(t): r = input() print((r.rindex("P") - r.index("P")) % 2 + 1)