結果
| 問題 |
No.701 ひとりしりとり
|
| コンテスト | |
| ユーザー |
maspy
|
| 提出日時 | 2020-01-29 10:32:05 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 1,044 ms / 2,000 ms |
| コード長 | 328 bytes |
| コンパイル時間 | 110 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 11,136 KB |
| 最終ジャッジ日時 | 2024-09-16 00:43:16 |
| 合計ジャッジ時間 | 2,867 ms |
|
ジャッジサーバーID (参考情報) |
judge6 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
import random
N = int(read())
alphabets = tuple(chr(ord('a')+x) for x in range(26))
for _ in range(N-1):
word = 'a' + ''.join(random.choice(alphabets) for _ in range(18)) + 'a'
print(word)
print('an')
maspy