結果

問題 No.701 ひとりしりとり
ユーザー 12354865271235486527
提出日時 2020-01-09 11:28:58
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 222 ms / 2,000 ms
コード長 171 bytes
コンパイル時間 295 ms
コンパイル使用メモリ 10,736 KB
実行使用メモリ 7,992 KB
最終ジャッジ日時 2023-08-15 01:11:18
合計ジャッジ時間 1,939 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,888 KB
testcase_01 AC 15 ms
7,892 KB
testcase_02 AC 15 ms
7,924 KB
testcase_03 AC 14 ms
7,952 KB
testcase_04 AC 15 ms
7,812 KB
testcase_05 AC 15 ms
7,892 KB
testcase_06 AC 15 ms
7,812 KB
testcase_07 AC 15 ms
7,752 KB
testcase_08 AC 15 ms
7,992 KB
testcase_09 AC 16 ms
7,952 KB
testcase_10 AC 33 ms
7,832 KB
testcase_11 AC 222 ms
7,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
for i in range(N):
    a = i
    s = 'a'
    while a >= 0:
        s += chr(a%26 + 97)
        a = a//26 -1
    print(s + 'n' if i == N - 1 else s + 'a')
0