結果
| 問題 |
No.1807 UMA Gacha
|
| コンテスト | |
| ユーザー |
ぷら
|
| 提出日時 | 2022-01-14 21:23:14 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 337 bytes |
| コンパイル時間 | 1,821 ms |
| コンパイル使用メモリ | 194,016 KB |
| 最終ジャッジ日時 | 2025-01-27 10:50:54 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 2 |
| other | AC * 6 WA * 15 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main() {
int N;
long double P;
cin >> N >> P;
if(N >= 200) {
cout << 1 << endl;
}
else {
long double ans = 1;
for(int i = 0; i < N; i++) {
ans *= P;
}
cout << fixed << setprecision(18) << 1-ans << endl;
}
}
ぷら