結果
問題 |
No.1033 乱数サイ
|
ユーザー |
|
提出日時 | 2020-04-25 01:00:59 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 613 bytes |
コンパイル時間 | 1,785 ms |
コンパイル使用メモリ | 165,076 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-15 04:06:44 |
合計ジャッジ時間 | 1,991 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 12 WA * 3 |
ソースコード
#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 * k/ (2 * ((n+1) * k)) << endl; }