結果
| 問題 | No.701 ひとりしりとり |
| コンテスト | |
| ユーザー |
JunOnuma
|
| 提出日時 | 2018-06-28 11:02:30 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 378 bytes |
| コンパイル時間 | 195 ms |
| コンパイル使用メモリ | 77,344 KB |
| 最終ジャッジ日時 | 2025-12-04 01:14:16 |
|
ジャッジサーバーID (参考情報) |
judge1 / 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(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"
JunOnuma