結果

問題 No.1534 おなかがいたい
ユーザー rin204
提出日時 2021-08-05 13:27:18
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 112 bytes
コンパイル時間 649 ms
コンパイル使用メモリ 81,792 KB
実行使用メモリ 53,120 KB
最終ジャッジ日時 2024-09-16 15:20:24
合計ジャッジ時間 2,070 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 10 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
if "pain" not in S:
    print(0)
    exit()
S = S.split("pain")[0]
print(max(0, S.count("pon") - 1))
0