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