結果

問題 No.701 ひとりしりとり
ユーザー ttrttr
提出日時 2020-02-11 20:39:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 263 bytes
コンパイル時間 218 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 10,112 KB
最終ジャッジ日時 2024-04-08 15:47:57
合計ジャッジ時間 4,734 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 30 ms
9,984 KB
testcase_02 AC 29 ms
9,984 KB
testcase_03 AC 28 ms
9,984 KB
testcase_04 AC 28 ms
9,984 KB
testcase_05 AC 29 ms
9,984 KB
testcase_06 AC 29 ms
9,984 KB
testcase_07 AC 29 ms
9,984 KB
testcase_08 AC 30 ms
9,984 KB
testcase_09 AC 32 ms
10,112 KB
testcase_10 AC 57 ms
10,112 KB
testcase_11 AC 279 ms
10,112 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

L = ["b", "c", "d", "e", "f", "g", "h", "i", "j"]
cnt = 0
import itertools
for p in itertools.permutations(L):
    ans = "a"
    for s in p:
        ans += s
    ans += "a"
    print(ans)
    cnt += 1
    if cnt == N-1:
        break
print("an")
0