結果
| 問題 |
No.1033 乱数サイ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-24 21:48:19 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 210 bytes |
| コンパイル時間 | 2,353 ms |
| コンパイル使用メモリ | 191,044 KB |
| 最終ジャッジ日時 | 2025-01-09 23:28:32 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 WA * 2 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, k;
cin >> n >> k;
double ans = 0;
for (int i = 0; i < n; i++) {
ans += double((k*(i+1))) / ((n+1)*k);
}
cout << ans << endl;
}