結果

問題 No.701 ひとりしりとり
ユーザー mlihua09mlihua09
提出日時 2020-09-16 03:22:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 168 ms / 2,000 ms
コード長 206 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 87,124 KB
実行使用メモリ 79,772 KB
最終ジャッジ日時 2023-09-04 03:16:22
合計ジャッジ時間 2,436 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,100 KB
testcase_01 AC 70 ms
71,104 KB
testcase_02 AC 70 ms
71,544 KB
testcase_03 AC 69 ms
71,220 KB
testcase_04 AC 75 ms
71,476 KB
testcase_05 AC 70 ms
71,396 KB
testcase_06 AC 70 ms
71,300 KB
testcase_07 AC 70 ms
71,096 KB
testcase_08 AC 73 ms
71,260 KB
testcase_09 AC 89 ms
76,560 KB
testcase_10 AC 119 ms
77,612 KB
testcase_11 AC 168 ms
79,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import product

N = int(input()) - 1

for i in product('abcdefghij', repeat=6):
    if N:
        N -= 1
        print('a', *i, 'a', sep='')
        
    else:
        break
    
print('an')
0