結果
問題 | No.701 ひとりしりとり |
ユーザー |
![]() |
提出日時 | 2018-09-30 19:44:17 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 725 ms / 2,000 ms |
コード長 | 253 bytes |
コンパイル時間 | 99 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,264 KB |
最終ジャッジ日時 | 2024-10-12 09:16:37 |
合計ジャッジ時間 | 2,190 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
import randomn = int(input())moji = list("abcdefghijklmopqrstuvwxyz")last = "a"for i in range(n):x = random.sample(moji, 12)if i != n-1:print(last + "".join(x))last = x[-1]else:print(last + "".join(x) + "n")