結果
| 問題 |
No.1033 乱数サイ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-24 23:00:58 |
| 言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 325 bytes |
| コンパイル時間 | 2,058 ms |
| コンパイル使用メモリ | 161,840 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-30 17:41:07 |
| 合計ジャッジ時間 | 2,784 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | WA * 15 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main()
{
double n,k;
cin>>n>>k;
double sum = 0.0;
n = n+1;
double total = (n*(n+1))/2;
//cout<<total<<endl;
total = (1.00/total);
//cout<<total<<endl;
for(int i=0; i<n; i++)
{
sum+=(k*i);
}
printf("%.5f\n",sum*total);
}