結果
問題 | No.1453 手助け |
ユーザー |
![]() |
提出日時 | 2021-04-16 18:33:45 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 40 ms / 2,000 ms |
コード長 | 343 bytes |
コンパイル時間 | 213 ms |
コンパイル使用メモリ | 82,548 KB |
実行使用メモリ | 58,112 KB |
最終ジャッジ日時 | 2024-07-02 18:52:06 |
合計ジャッジ時間 | 1,889 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
a, b, c, d, e = map(int, input().split())n = a*(b-c)if n == 0:print(0)exit()ans = 0x = -1for i in range(1, n+1):if i == 1:ans += dx = dcontinueif i%10 != 0:ans += xelse:if e <= x:ans += x-ex -= eelse:ans += xprint(ans)