結果
| 問題 | No.2516 Credit Creation |
| コンテスト | |
| ユーザー |
MasKoaTS
|
| 提出日時 | 2022-08-11 10:35:33 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 289 bytes |
| 記録 | |
| コンパイル時間 | 653 ms |
| コンパイル使用メモリ | 67,372 KB |
| 最終ジャッジ日時 | 2025-01-30 20:07:22 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 5 WA * 5 |
ソースコード
// WA(?)
#include <iostream>
#define rep(i, l, n) for (int i = (l); i < (n); i++)
using namespace std;
int main(void) {
int n; cin >> n;
double r; cin >> r;
double ans = 0.0;
double now = 100.0;
rep(i, 0, n) {
ans += now;
now *= 1.0 - r;
}
cout << ans << endl;
return 0;
}
MasKoaTS