結果
問題 | No.3018 目隠し宝探し |
ユーザー |
![]() |
提出日時 | 2025-03-20 21:05:54 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 502 bytes |
コンパイル時間 | 238 ms |
コンパイル使用メモリ | 82,248 KB |
実行使用メモリ | 84,220 KB |
平均クエリ数 | 1.00 |
最終ジャッジ日時 | 2025-03-20 21:06:01 |
合計ジャッジ時間 | 4,581 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 1 |
other | RE * 21 |
ソースコード
n = int(input())m = int(input())outgoing_links = [[] for _ in range(n)]sum_c = [0] * nfor _ in range(m):a, b, c = map(int, input().split())outgoing_links[a].append((b, c))sum_c[a] += ccurrent = [10.0] * nfor _ in range(100):next_pop = [0.0] * nfor a in range(n):sc = sum_c[a]ca = current[a]for (b, c) in outgoing_links[a]:next_pop[b] += ca * (c / sc)current = next_popfor val in current:print("{0:.6f}".format(val))