← Back to List

15881번: Pen Pineapple Apple Pen ↗

Solutions

Python 3
42 B | 42 chars
n=input()
s=input()
print(s.count("pPAp"))