結果
| 問題 |
No.1453 手助け
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-31 01:24:02 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 238 bytes |
| コンパイル時間 | 2,526 ms |
| コンパイル使用メモリ | 166,112 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-14 03:32:15 |
| 合計ジャッジ時間 | 3,361 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
int A,B,C,D,E; cin>>A>>B>>C>>D>>E;
int ans=0;
int X=D,N=A*(B-C);
for(int i=1;i<=N;i++){
ans+=X;
if(i%10==9 && E<=X)X-=E;
}
cout<<ans<<endl;
}