結果
| 問題 | No.701 ひとりしりとり |
| コンテスト | |
| ユーザー |
JunOnuma
|
| 提出日時 | 2018-06-28 11:00:21 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 377 bytes |
| コンパイル時間 | 137 ms |
| コンパイル使用メモリ | 77,520 KB |
| 最終ジャッジ日時 | 2025-12-04 01:14:09 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 12 |
ソースコード
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