結果
| 問題 |
No.1453 手助け
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-21 20:47:56 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 219 bytes |
| コンパイル時間 | 215 ms |
| コンパイル使用メモリ | 82,320 KB |
| 実行使用メモリ | 58,240 KB |
| 最終ジャッジ日時 | 2024-09-20 12:09:48 |
| 合計ジャッジ時間 | 1,801 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 19 WA * 2 |
ソースコード
a,b,c,d,e = map(int,input().split())
num = a * (b - c)
ans = d
now = d
for i in range(2,num + 1):
if i % 10 != 0:
ans += now
else:
if now >= e:
now -= e
ans += now
print(ans)