結果
問題 |
No.701 ひとりしりとり
|
ユーザー |
![]() |
提出日時 | 2018-06-16 01:59:53 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 508 bytes |
コンパイル時間 | 161 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 21,552 KB |
最終ジャッジ日時 | 2024-06-30 15:52:34 |
合計ジャッジ時間 | 2,147 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 WA * 3 |
ソースコード
import random def aaa(): while len(shiritori)<a: c = random.randint(0,10) for i in range(c): b = random.choice("abcdefghijklmopqrstuvwxyz") global word word = word + b if i == c-1: if len(shiritori)==a-1: word = word+'n' print(word) shiritori.add(word) word = b a = int(input()) word = random.choice("abcdefghijklmopqrstuvwxyz") shiritori = set() aaa()