結果
問題 |
No.1453 手助け
|
ユーザー |
|
提出日時 | 2021-04-12 17:55:05 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 349 bytes |
コンパイル時間 | 563 ms |
コンパイル使用メモリ | 120,832 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 14:48:13 |
合計ジャッジ時間 | 1,395 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
#include <stdio.h> #include <iostream> #include <vector> using namespace std; int main() { int A, B, C, D, E; cin >> A >> B >> C >> D >> E; B -= C; int ans = 0; int val = D; for (int i = 1; i <= A * B; i++) { if (i % 10 == 0 && E <= val) { val -= E; } ans += val; } cout << ans << endl; return 0; }