結果

問題 No.701 ひとりしりとり
ユーザー MarioMario
提出日時 2018-06-18 23:48:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 245 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 10,676 KB
実行使用メモリ 7,988 KB
最終ジャッジ日時 2023-09-13 06:58:47
合計ジャッジ時間 1,452 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,860 KB
testcase_01 AC 15 ms
7,744 KB
testcase_02 AC 16 ms
7,796 KB
testcase_03 AC 15 ms
7,868 KB
testcase_04 AC 15 ms
7,928 KB
testcase_05 AC 16 ms
7,800 KB
testcase_06 AC 15 ms
7,784 KB
testcase_07 AC 15 ms
7,804 KB
testcase_08 AC 15 ms
7,836 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
alphabet = "abcdefghijklmopqrstuvwxyz"
pre = alphabet[0]
for i in range(n-1):
    last = alphabet[i%25]
    print(pre + alphabet[i//(25**3)] + alphabet[i//(25**2)] + alphabet[i//(25**1)] + last)
    pre = last
print(pre + "n")
0