結果
| 問題 | No.3483 A Forbidden Fruit |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-03-27 22:07:34 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 477 bytes |
| 記録 | |
| コンパイル時間 | 2,189 ms |
| コンパイル使用メモリ | 329,532 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2026-03-27 22:07:40 |
| 合計ジャッジ時間 | 4,787 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 2 WA * 14 |
ソースコード
#include <bits/stdc++.h>
#define int long long
#define endl "\n"
using namespace std;
void solve()
{
int n,m,k;cin>>n>>m>>k;
long double deno = n*m;
long double num = 0;
if (k>(n-1)*m)
{
num = n-1 + (k-(n-1)*m);
}
else
{
num = (k+m-1)/m;
}
cout << 1.0 - num/deno << endl;
}
signed main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
cout<<setprecision(15)<<fixed;
int t;cin>>t;while(t--)
solve();
}