結果
問題 |
No.1534 おなかがいたい
|
ユーザー |
|
提出日時 | 2022-07-08 13:12:37 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 206 bytes |
コンパイル時間 | 200 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 11,136 KB |
最終ジャッジ日時 | 2024-12-26 17:08:11 |
合計ジャッジ時間 | 2,120 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 3 |
other | AC * 9 WA * 10 |
ソースコード
import re import sys S = input() if S not in "pain": print(-1) sys.exit() S = S.split("pain") # print(S) results = re.findall(r"pon", S[0]) if results: print(len(results)-1) else: print(-1)