結果
| 問題 |
No.1453 手助け
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-04-12 17:50:39 |
| 言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 350 bytes |
| コンパイル時間 | 2,999 ms |
| コンパイル使用メモリ | 120,192 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-28 14:45:12 |
| 合計ジャッジ時間 | 3,431 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 WA * 11 |
ソースコード
#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 = 0; i < A * B; i++) {
ans += val;
if ((i + 1) % 10 == 0 && E <= val) {
val -= E;
}
}
cout << ans << endl;
return 0;
}