結果
問題 |
No.2516 Credit Creation
|
ユーザー |
|
提出日時 | 2023-10-27 21:24:18 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 312 bytes |
コンパイル時間 | 1,490 ms |
コンパイル使用メモリ | 166,568 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-25 13:22:54 |
合計ジャッジ時間 | 2,047 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 5 WA * 5 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int N; cin >> N; double R; cin >> R; double answer = 0,now = 100; for(int i=0; i<N; i++){ answer += now; now *= (1.0-R); } cout << answer << endl; }