結果

問題 No.1033 乱数サイ
ユーザー 29da164
提出日時 2020-07-31 09:53:39
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 220 bytes
コンパイル時間 592 ms
コンパイル使用メモリ 65,040 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-05 21:11:18
合計ジャッジ時間 1,273 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 5 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

int main(void){
  using namespace std;
  int n,k,s=0;

  cin >> n >> k;
  //cout << n << " " << k;

  for(int i=1;i<n+1;i++){
    s += i*k;
  }

  cout << (double)(s/n/k) << endl;  
  return 0;    
}
0