結果
問題 |
No.701 ひとりしりとり
|
ユーザー |
![]() |
提出日時 | 2021-03-17 20:33:44 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 152 ms / 2,000 ms |
コード長 | 319 bytes |
コンパイル時間 | 264 ms |
コンパイル使用メモリ | 82,248 KB |
実行使用メモリ | 84,024 KB |
最終ジャッジ日時 | 2024-11-15 15:12:06 |
合計ジャッジ時間 | 2,016 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
n = int(input())-1 s = set() x = "a" L = "abcdefghijklmopqrstuvwxyz" from random import choice while n: y = x[-1] for i in range(19): if y not in s: print(y) n -= 1 x = y s.add(y) break else: y += choice(L) print(x[-1]+"n")