結果
問題 | No.701 ひとりしりとり |
ユーザー |
![]() |
提出日時 | 2020-10-22 00:19:55 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 296 ms / 2,000 ms |
コード長 | 230 bytes |
コンパイル時間 | 527 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 18,560 KB |
最終ジャッジ日時 | 2024-07-21 09:11:24 |
合計ジャッジ時間 | 1,800 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
def conv(i):return ''.join(chr(ord('a') + int(c)) for c in str(i))n = int(input())result = []for i in range(n - 1):result.append('a' + conv(i) + 'a')result.append('a' + conv(n - 1) + 'n')print(*result, sep='\n')