結果

問題 No.1453 手助け
ユーザー MtSaka
提出日時 2021-03-30 12:38:50
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 183 bytes
コンパイル時間 1,518 ms
コンパイル使用メモリ 167,908 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-12-14 03:28:16
合計ジャッジ時間 2,435 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 3 WA * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main(){
  long long A,B,C,D,E;cin>>A>>B>>C>>D>>E;
  int ans=0;
  for(int i=1;i<B-C+1;i++)ans+=max(D-i/10*E,D%E);
  cout<<ans<<endl;
}
0