結果

問題 No.701 ひとりしりとり
ユーザー JunOnumaJunOnuma
提出日時 2018-06-28 11:00:21
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 377 bytes
コンパイル時間 590 ms
コンパイル使用メモリ 6,520 KB
実行使用メモリ 11,692 KB
最終ジャッジ日時 2023-09-13 14:38:26
合計ジャッジ時間 3,723 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

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"
0