結果
| 問題 | No.2925 2-Letter Shiritori |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-10-12 16:47:06 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
RE
不安定
|
| 実行時間 | - |
| コード長 | 443 bytes |
| 記録 | |
| コンパイル時間 | 56 ms |
| コンパイル使用メモリ | 14,848 KB |
| 実行使用メモリ | 13,568 KB |
| 平均クエリ数 | 1.00 |
| 最終ジャッジ日時 | 2026-09-14 22:54:08 |
| 合計ジャッジ時間 | 2,158 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 10 |
ソースコード
from string import ascii_lowercase used = set() while True: typ = input() if len(typ) == 1: reply = typ + typ print(reply) used.add(letter) else: r, w = typ.split() if r == '!': exit() else: a, b = list(w) used.add(a) used.add(b) flag = False for c in ascii_lowercase: if c not in used: reply = b + c print(reply) used.add(c) Flag = True break if not(flag): print(b + 'a')