結果
| 問題 | No.2516 Credit Creation |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-10-27 21:23:12 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 254 bytes |
| 記録 | |
| コンパイル時間 | 609 ms |
| コンパイル使用メモリ | 73,684 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-25 13:21:33 |
| 合計ジャッジ時間 | 1,105 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
#include<iostream>
#include<cassert>
#include<cmath>
#include<iomanip>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
int N;
long double R;
cin>>N>>R;
cout<<fixed<<setprecision(16)<<(100-100*pow(1-R,N))/R<<endl;
}