結果

問題 No.1033 乱数サイ
ユーザー KKT89KKT89
提出日時 2020-05-27 18:05:47
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 4 ms / 2,000 ms
コード長 285 bytes
コンパイル時間 1,185 ms
コンパイル使用メモリ 93,208 KB
最終ジャッジ日時 2025-01-10 15:58:11
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
#include <stack>
#include <map>
#include <math.h>
using namespace std;
typedef long long int ll;

int main(){
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	double n,k; cin >> n >> k;
	printf("%.10f\n",n*(n+1)/2/(n+1.0));
}
0