結果
| 問題 |
No.701 ひとりしりとり
|
| コンテスト | |
| ユーザー |
JunOnuma
|
| 提出日時 | 2018-06-28 11:04:40 |
| 言語 | Python2 (2.7.18) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 378 bytes |
| コンパイル時間 | 279 ms |
| コンパイル使用メモリ | 7,200 KB |
| 実行使用メモリ | 18,720 KB |
| 最終ジャッジ日時 | 2024-06-30 23:19:41 |
| 合計ジャッジ時間 | 4,887 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(18)
while s in ls:
s = randomString(18)
ls.append(s)
print "a" + s + "a"
s = randomString(18)
while s in ls:
s = randomString(18)
print "a" + s + "n"
JunOnuma