結果
| 問題 | No.1534 おなかがいたい |
| コンテスト | |
| ユーザー |
nohakai3
|
| 提出日時 | 2022-07-01 16:57:56 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 90 ms / 2,000 ms |
| + 651µs | |
| コード長 | 166 bytes |
| 記録 | |
| コンパイル時間 | 57 ms |
| コンパイル使用メモリ | 15,232 KB |
| 実行使用メモリ | 11,392 KB |
| 最終ジャッジ日時 | 2026-09-30 01:18:32 |
| 合計ジャッジ時間 | 2,559 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 19 |
ソースコード
#yuki1534 s=input() pon=0 for i in range(len(s)): if s[i:i+3]=='pon': pon+=1 if s[i:i+4]=='pain': break if pon<=1 or i==len(s)-1: print(-1) else: print(pon-1)
nohakai3