結果

問題 No.1534 おなかがいたい
ユーザー TnaTna
提出日時 2022-07-08 13:09:15
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 139 bytes
コンパイル時間 744 ms
コンパイル使用メモリ 10,592 KB
実行使用メモリ 14,064 KB
最終ジャッジ日時 2023-08-27 06:19:56
合計ジャッジ時間 2,667 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
9,048 KB
testcase_01 AC 27 ms
8,848 KB
testcase_02 WA -
testcase_03 AC 26 ms
8,932 KB
testcase_04 AC 26 ms
8,880 KB
testcase_05 AC 26 ms
8,960 KB
testcase_06 AC 26 ms
8,992 KB
testcase_07 AC 26 ms
8,996 KB
testcase_08 WA -
testcase_09 AC 26 ms
8,904 KB
testcase_10 WA -
testcase_11 AC 25 ms
8,968 KB
testcase_12 AC 27 ms
9,284 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 30 ms
9,672 KB
testcase_17 AC 30 ms
9,568 KB
testcase_18 AC 30 ms
9,720 KB
testcase_19 AC 27 ms
9,164 KB
testcase_20 AC 28 ms
9,192 KB
testcase_21 AC 26 ms
8,808 KB
testcase_22 AC 26 ms
8,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import re
S = input().split("pain")
# print(S)
results = re.findall(r"pon", S[0])
if results:
    print(len(results)-1)
else:
    print(-1)
0