結果

問題 No.701 ひとりしりとり
ユーザー xkumiyuxkumiyu
提出日時 2018-06-15 23:06:30
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 219 bytes
コンパイル時間 144 ms
コンパイル使用メモリ 10,520 KB
実行使用メモリ 7,980 KB
最終ジャッジ日時 2023-09-13 05:09:24
合計ジャッジ時間 2,009 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n = int(input())
s = 'abcdefghijklmopqrstuvwxyz'

a = [0] * 18
x = 'a'
for i in range(n - 1):
    res = x
    for j in range(18):
        res += s[a[j]]
    x = res[-1]
    a[i // 25] += 1
    print(res)
print(x + 'n')
0