結果
問題 |
No.701 ひとりしりとり
|
ユーザー |
![]() |
提出日時 | 2018-06-28 11:00:21 |
言語 | Python2 (2.7.18) |
結果 |
RE
|
実行時間 | - |
コード長 | 377 bytes |
コンパイル時間 | 472 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 10,240 KB |
最終ジャッジ日時 | 2024-06-30 23:19:00 |
合計ジャッジ時間 | 2,990 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 12 |
ソースコード
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"