結果
| 問題 |
No.2226 Hello, Forgotten World!
|
| コンテスト | |
| ユーザー |
𖧱𖦸𖥩𖥣𖥩𖥣
|
| 提出日時 | 2024-05-02 11:11:37 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 246 bytes |
| コンパイル時間 | 132 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-23 00:30:49 |
| 合計ジャッジ時間 | 1,046 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 1 |
| other | RE * 9 |
ソースコード
for i in range(int(input())): n = int(input()) s = input() c = 0 for i in range(len(s)): if s[i] == "helloworld"[c] or s[i] == "?": c += 1 if c == 10: print(c[:i-9] + "helloworld" + c[i+1:]) break else: c = 0 print(-1)
𖧱𖦸𖥩𖥣𖥩𖥣