Submission #00281


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <bits/stdc++.h>
using namespace std;
#define gcd(x,y)__gcd(x,y)
#define lcm(x,y)x/(__gcd(x,y))*y
int main(){
long long y,c;
double r;
cin >> y >> c >> r;
while(y != 0&&c!=0&&r!=0){
double ans = c;
for(int i=1;i<y;i++){
ans = ans/(1+r/100);
ans += c;
}
long long temp = ans*10;
if(temp %10==0){
cout << temp/10 << endl;
}else{
cout << temp/10+1 << endl;
}
cin >> y >> c >> r;
}
return(0);
}

ステータス

項目 データ
問題 0008 - 毎日がHoliday
ユーザー名 ei2238
投稿日時 2024-03-29 14:53:55
言語 C++17
状態 Wrong Answer
得点 0
ソースコード長 558 Byte
最大実行時間 32 ms
最大メモリ使用量 700 KB

セット

セット 得点 Cases
1 ALL 0 / 30 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
B1 WA 29 ms 604 KB
1
B2 WA 32 ms 700 KB
1
B3 WA 28 ms 668 KB
1
B4 WA 29 ms 508 KB
1