結果

問題 No.701 ひとりしりとり
ユーザー nadarenadare
提出日時 2018-06-15 22:56:17
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 167 ms / 2,000 ms
コード長 359 bytes
コンパイル時間 198 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-06-30 15:13:54
合計ジャッジ時間 1,446 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-
from itertools import combinations_with_replacement
from string import ascii_lowercase
def inpl(): return map(int, input().split())

N = int(input())

i = 0
for x in combinations_with_replacement(ascii_lowercase, 18):
    i += 1
    if i == N:
        print("a{}n".format("".join(x)))
        break
    print("a{}a".format("".join(x)))
0