結果
| 問題 | No.1453 手助け |
| コンテスト | |
| ユーザー |
shiomusubi496
|
| 提出日時 | 2021-03-31 01:24:02 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 238 bytes |
| 記録 | |
| コンパイル時間 | 1,229 ms |
| コンパイル使用メモリ | 180,040 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-24 22:04:18 |
| 合計ジャッジ時間 | 1,995 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
shiomusubi496