結果
| 問題 |
No.2516 Credit Creation
|
| コンテスト | |
| ユーザー |
SSRS
|
| 提出日時 | 2023-10-27 21:22:25 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 265 bytes |
| コンパイル時間 | 1,694 ms |
| コンパイル使用メモリ | 192,704 KB |
| 最終ジャッジ日時 | 2025-02-17 14:24:13 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
cout << fixed << setprecision(20);
int N;
cin >> N;
double R;
cin >> R;
double x = 100;
double ans = 0;
for (int i = 0; i < N; i++){
ans += x;
x *= 1 - R;
}
cout << ans << endl;
}
SSRS