結果
| 問題 | No.3483 A Forbidden Fruit |
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2026-03-27 22:05:06 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 259 ms / 2,000 ms |
| コード長 | 306 bytes |
| 記録 | |
| コンパイル時間 | 232 ms |
| コンパイル使用メモリ | 84,980 KB |
| 実行使用メモリ | 81,512 KB |
| 最終ジャッジ日時 | 2026-03-27 22:05:23 |
| 合計ジャッジ時間 | 14,844 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 16 |
ソースコード
from sys import stdin
input = stdin.readline
for _ in range(int(input())):
N, M, K = map(int, input().split())
ans1, ans2 = 0, 0
cnt = (K+M-1)//M
ans1 = (N-cnt)/N/M
now = 1
cnt = K-(N-1)*M-1
ans2 = (M-1)/M
if 1 <= cnt:
ans2 *= (M-1-cnt)/(M-1)
print(ans1+ans2)
detteiuu