結果
| 問題 |
No.701 ひとりしりとり
|
| コンテスト | |
| ユーザー |
xkumiyu
|
| 提出日時 | 2018-06-15 22:33:35 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 387 bytes |
| コンパイル時間 | 102 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 19,612 KB |
| 最終ジャッジ日時 | 2024-06-30 15:03:33 |
| 合計ジャッジ時間 | 6,514 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 10 TLE * 1 |
ソースコード
import random
import string
n = int(input())
a = []
def gen():
while True:
s = ''.join([
random.choice(string.ascii_lowercase)
for i in range(random.randint(1, 19))
])
if s[-1] != 'n' and s not in a:
a.append(s)
break
return s
for i in range(n - 1):
s = gen()
print(s)
s = gen()
print(s + 'n')
xkumiyu