結果

問題 No.701 ひとりしりとり
ユーザー nadarenadare
提出日時 2018-06-15 22:56:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 156 ms / 2,000 ms
コード長 359 bytes
コンパイル時間 357 ms
コンパイル使用メモリ 10,528 KB
実行使用メモリ 9,216 KB
最終ジャッジ日時 2023-09-13 05:03:10
合計ジャッジ時間 1,720 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
9,068 KB
testcase_01 AC 27 ms
9,140 KB
testcase_02 AC 26 ms
9,092 KB
testcase_03 AC 27 ms
9,136 KB
testcase_04 AC 27 ms
9,216 KB
testcase_05 AC 26 ms
9,148 KB
testcase_06 AC 27 ms
9,096 KB
testcase_07 AC 26 ms
9,136 KB
testcase_08 AC 26 ms
9,064 KB
testcase_09 AC 28 ms
9,112 KB
testcase_10 AC 40 ms
9,136 KB
testcase_11 AC 156 ms
9,140 KB
権限があれば一括ダウンロードができます

ソースコード

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