結果

問題 No.701 ひとりしりとり
コンテスト
ユーザー JunOnuma
提出日時 2018-06-28 11:03:31
言語 PyPy2
(7.3.15)
結果
TLE  
実行時間 -
コード長 378 bytes
コンパイル時間 152 ms
コンパイル使用メモリ 77,556 KB
最終ジャッジ日時 2025-12-04 01:14:24
ジャッジサーバーID
(参考情報)
judge1 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11 TLE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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(15)
    while s in ls:
        s = randomString(15)
    ls.append(s)
    print "a" + s + "a"
s = randomString(15)
while s in ls:
    s = randomString(15)
print "a" + s + "n"
0