結果
| 問題 | No.701 ひとりしりとり |
| コンテスト | |
| ユーザー |
Salmonize
|
| 提出日時 | 2020-03-10 12:27:06 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 350 ms / 2,000 ms |
| コード長 | 279 bytes |
| 記録 | |
| コンパイル時間 | 544 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-05-11 01:32:56 |
| 合計ジャッジ時間 | 3,235 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
n = int(input())
l = [0]*20
oa = ord('a')
for i in range(n-1):
s = ''.join(map(lambda x:chr(oa+x), l))
print(s)
l[18] += 1
if l[18] > 25:
idx = 18
while l[idx] > 25:
l[idx] = 0
l[idx-1] += 1
idx -= 1
print('an')
Salmonize