結果

問題 No.701 ひとりしりとり
ユーザー matriematrie
提出日時 2020-12-24 09:43:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 894 ms / 2,000 ms
コード長 161 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 11,852 KB
実行使用メモリ 10,532 KB
最終ジャッジ日時 2023-10-21 15:36:20
合計ジャッジ時間 2,225 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
10,496 KB
testcase_01 AC 31 ms
10,496 KB
testcase_02 AC 31 ms
10,496 KB
testcase_03 AC 32 ms
10,496 KB
testcase_04 AC 31 ms
10,496 KB
testcase_05 AC 32 ms
10,496 KB
testcase_06 AC 31 ms
10,496 KB
testcase_07 AC 32 ms
10,496 KB
testcase_08 AC 32 ms
10,500 KB
testcase_09 AC 40 ms
10,532 KB
testcase_10 AC 118 ms
10,532 KB
testcase_11 AC 894 ms
10,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import random
n=int(input())
a=s='abcdefghijklmopqrstuvwxyz'
for i in range(n):
	s=s[-1]+''.join([random.choice(a) for _ in [0]*18])
	if i==n-1: s+='n'
	print(s)
0