結果
問題 | No.701 ひとりしりとり |
ユーザー |
![]() |
提出日時 | 2020-07-02 19:33:00 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 1,142 ms / 2,000 ms |
コード長 | 247 bytes |
コンパイル時間 | 94 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,136 KB |
最終ジャッジ日時 | 2024-09-15 02:48:10 |
合計ジャッジ時間 | 2,923 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
from random import choiceimport stringN = int(input())t = 'a'for _ in range(N - 1):p = [choice(string.ascii_lowercase) for _ in range(19)]if p[-1] == 'n':p[-1] = 'a'print(t + ''.join(p))t = p[-1]print(t + 'n')