結果

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

ソースコード

diff #

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