結果
問題 |
No.996 Phnom Penh
|
ユーザー |
![]() |
提出日時 | 2020-02-21 22:37:44 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 277 bytes |
コンパイル時間 | 229 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 16,256 KB |
最終ジャッジ日時 | 2024-10-08 22:02:57 |
合計ジャッジ時間 | 4,856 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 WA * 16 TLE * 1 -- * 3 |
ソースコード
import re s=input() n = 0 num = -1 while num < n: num = n fd = s.find('phnom') if fd > -1: s = s.replace('phnom', 'penh') n+=1 fd = s.find('h') if fd > -1: s = s.replace('h', '') s = s.replace('e', 'h') n+=1 print(n)