結果

問題 No.701 ひとりしりとり
ユーザー kyo1kyo1
提出日時 2020-12-21 12:14:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
OLE  
実行時間 -
コード長 235 bytes
コンパイル時間 440 ms
コンパイル使用メモリ 11,772 KB
実行使用メモリ 14,340 KB
最終ジャッジ日時 2023-10-21 11:36:49
合計ジャッジ時間 14,682 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 OLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools
import string

N = int(input())

i = 0
for s in itertools.product(string.ascii_lowercase, repeat=10):
    print("a" + "".join(s) + "a")
    i += 1
    if i == N - 1:
        print("a" + "".join(s) + "n")
        break
0