結果
問題 | No.1033 乱数サイ |
ユーザー |
|
提出日時 | 2020-04-25 01:03:10 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 604 bytes |
コンパイル時間 | 1,479 ms |
コンパイル使用メモリ | 166,264 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-15 04:07:08 |
合計ジャッジ時間 | 2,114 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 |
ソースコード
#include<bits/stdc++.h>using namespace std;#define rep(i, a, n) for(int i=a; i<n; i++)#define ll long long#define all(x) begin(x), end(x)#define toInt(x) (x - '0')#define pll pair<ll, ll>#define pli pair<ll, int>const long long INF = 1LL<<60;const int inf = 1 << 30;const int mod = 1e9+7;template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }const int MAX = 5000;int main(){int n, k;cin >> n >> k;cout << (long double)(n+1) * n /(2 * ((n+1))) << endl;}