結果
| 問題 |
No.996 Phnom Penh
|
| コンテスト | |
| ユーザー |
chinchilla
|
| 提出日時 | 2020-02-22 00:17:58 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 165 bytes |
| コンパイル時間 | 90 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 16,384 KB |
| 最終ジャッジ日時 | 2024-10-09 04:41:04 |
| 合計ジャッジ時間 | 4,816 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 TLE * 1 -- * 3 |
ソースコード
s = input()
r = 0
tt = s.maketrans({'h':None, 'e':'h'})
while 'h' in s or 'e' in s:
r += s.count('phnom') + 1
s = s.replace('phnom', 'penh').translate(tt)
print(r)
chinchilla