結果
問題 |
No.1453 手助け
|
ユーザー |
|
提出日時 | 2021-03-31 21:03:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 218 bytes |
コンパイル時間 | 298 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-15 08:31:54 |
合計ジャッジ時間 | 1,826 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 1 WA * 20 |
ソースコード
a, b, c, d, e = map(int, input().split()) num = b - c now = d ans = d for i in range(1, num): if (i + 1) % 10 != 0: ans += now else: if e <= now: now -= e; ans += now else: ans += now print(ans)