結果
問題 |
No.701 ひとりしりとり
|
ユーザー |
![]() |
提出日時 | 2018-06-28 11:02:30 |
言語 | Python2 (2.7.18) |
結果 |
TLE
|
実行時間 | - |
コード長 | 378 bytes |
コンパイル時間 | 53 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 18,464 KB |
最終ジャッジ日時 | 2024-06-30 23:19:24 |
合計ジャッジ時間 | 5,035 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 TLE * 1 |
ソースコード
import string import random def randomString(l): return ''.join([random.choice(string.ascii_lowercase) for _ in range(l)]) n = int(raw_input()) ls = [] for _ in range(n-1): s = randomString(10) while s in ls: s = randomString(10) ls.append(s) print "a" + s + "a" s = randomString(10) while s in ls: s = randomString(10) print "a" + s + "n"