結果
| 問題 |
No.701 ひとりしりとり
|
| コンテスト | |
| ユーザー |
JunOnuma
|
| 提出日時 | 2018-06-28 11:03:31 |
| 言語 | Python2 (2.7.18) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 378 bytes |
| コンパイル時間 | 103 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 18,720 KB |
| 最終ジャッジ日時 | 2024-06-30 23:19:33 |
| 合計ジャッジ時間 | 4,919 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / 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(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"
JunOnuma