結果
| 問題 | No.3623 2-Letter Shiritori 2 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-14 22:20:46 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 59 ms / 2,000 ms |
| + 154µs | |
| コード長 | 266 bytes |
| 記録 | |
| コンパイル時間 | 255 ms |
| コンパイル使用メモリ | 95,592 KB |
| 実行使用メモリ | 78,352 KB |
| 最終ジャッジ日時 | 2026-08-14 22:20:52 |
| 合計ジャッジ時間 | 1,171 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
ans = []
def dfs(c):
ans.append((c, c))
for nc in range(c + 2, 26):
ans.append((c, nc))
ans.append((nc, c))
if c != 25:
ans.append((c, c + 1))
dfs(c + 1)
ans.append((c + 1, c))
dfs(0)
for c1, c2 in ans:
print(chr(ord('A') + c1) + chr(ord('A') + c2))