Task: | Järjestys |
Sender: | okkokko |
Submission time: | 2022-01-22 13:06:27 +0200 |
Language: | Python3 (PyPy3) |
Status: | READY |
Result: | 100 |
group | verdict | score |
---|---|---|
#1 | ACCEPTED | 100 |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.07 s | details |
Code
def I(): return map(int, input().split()) def main(): t = int(input()) for _ in range(t): jono = input() print(jono.count("B", 0, jono.count("A"))) if __name__ == "__main__": main()