結果
問題 |
No.1453 手助け
|
ユーザー |
|
提出日時 | 2021-05-14 12:55:10 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 262 bytes |
コンパイル時間 | 949 ms |
コンパイル使用メモリ | 81,664 KB |
実行使用メモリ | 58,624 KB |
最終ジャッジ日時 | 2024-10-01 18:15:03 |
合計ジャッジ時間 | 2,431 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 WA * 11 |
ソースコード
A,B,C,D,E = map(int,input().split()) guest = B-C candy = A*(B-C) ans = 0 cost = D for i in range(candy): if i == 0: ans += cost else: cost = cost-E if i%10 == 0 and E <= cost else cost ans += cost print(ans)