結果
| 問題 | No.3483 A Forbidden Fruit |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2026-03-28 01:53:01 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 364 bytes |
| 記録 | |
| コンパイル時間 | 256 ms |
| コンパイル使用メモリ | 85,884 KB |
| 実行使用メモリ | 82,164 KB |
| 最終ジャッジ日時 | 2026-03-28 01:53:08 |
| 合計ジャッジ時間 | 4,270 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 2 WA * 14 |
ソースコード
import sys
input = sys.stdin.readline
T=int(input())
for tests in range(T):
N,M,K=list(map(int,input().split()))
q=K//M
r=K%M
if r>0:
q+=1
# print(q,r)
if q==N:
ANS=1-1/N/M*(q-1)-1/M*r
#ANS2=1-1/N/M*q-1/(M-1)*(r-1)
print(ANS)#,ANS2)
else:
ANS=1-1/N/M*q
print(ANS)
titia