結果
問題 |
No.1453 手助け
|
ユーザー |
|
提出日時 | 2021-04-12 17:49:08 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 365 bytes |
コンパイル時間 | 1,583 ms |
コンパイル使用メモリ | 128,416 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 14:43:41 |
合計ジャッジ時間 | 1,946 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 WA * 11 |
ソースコード
#include <stdio.h> #include <iostream> #include <vector> #include <algorithm> 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 = 0; i < A * B; i++) { ans += val; if (i % 10 == 0 && E <= val) { val -= E; } } cout << ans << endl; return 0; }