結果
| 問題 |
No.1453 手助け
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-31 21:49:59 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 51 ms / 2,000 ms |
| コード長 | 231 bytes |
| コンパイル時間 | 301 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 59,648 KB |
| 最終ジャッジ日時 | 2024-12-15 17:31:23 |
| 合計ジャッジ時間 | 2,296 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
import sys
input = sys.stdin.readline
from collections import *
A, B, C, D, E = map(int, input().split())
now = D
ans = 0
for i in range(A*(B-C)):
ans += now
if (i+2)%10==0 and E<=now:
now = now-E
print(ans)