結果
問題 | No.701 ひとりしりとり |
ユーザー |
|
提出日時 | 2018-10-09 15:31:16 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 1,156 ms / 2,000 ms |
コード長 | 378 bytes |
コンパイル時間 | 91 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 33,920 KB |
最終ジャッジ日時 | 2024-10-12 16:32:14 |
合計ジャッジ時間 | 2,561 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
import random, stringdef randomname(n):randlst = [random.choice(string.ascii_lowercase) for i in range(n)]return randlstn = int(input())if n == 1:print('n')else:ans = []for i in range(n-1):ls = ['a']lm = randomname(18)le = ['a']ans.append(ls + lm + le)for i in ans:print(''.join(i))print('an')