結果
| 問題 | No.2516 Credit Creation |
| コンテスト | |
| ユーザー |
MasKoaTS
|
| 提出日時 | 2022-08-11 10:35:33 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 289 bytes |
| 記録 | |
| コンパイル時間 | 649 ms |
| コンパイル使用メモリ | 79,104 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-26 23:38:39 |
| 合計ジャッジ時間 | 1,123 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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