結果
問題 |
No.1453 手助け
|
ユーザー |
|
提出日時 | 2021-06-29 23:31:29 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 448 bytes |
コンパイル時間 | 152 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-26 02:09:42 |
合計ジャッジ時間 | 2,014 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 WA * 11 |
ソースコード
a, b, c, d, e = list(map(int, input().split())) come = b - c buy = come * a sum = 0 if come != 0: x = 0 for i in range(buy): res = 0 if i == 0: res = d else: if i % 10 != 0: res = x elif i % 10 == 0 and e <= x: res = x - e elif i % 10 == 0 and e >= x: res = x x = res sum += res print(sum)