結果
| 問題 | No.1478 Simple Sugoroku |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-04-27 11:52:04 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 281 bytes |
| 記録 | |
| コンパイル時間 | 125 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 21,940 KB |
| 最終ジャッジ日時 | 2024-07-06 05:55:17 |
| 合計ジャッジ時間 | 4,369 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 38 |
ソースコード
N, M = map(int, input().split())
B = list(map(int, input().split()))
minB = min(B)
maxB = max(B)
cnt = minB - 1
W =[]
for b in B:
if maxB - b < M and b - minB > M:
W.append(N-b)
if len(W) > 0:
cnt += (sum(W)+M)/len(W)
else:
cnt += N - minB