結果
問題 |
No.1453 手助け
|
ユーザー |
![]() |
提出日時 | 2021-03-31 21:03:05 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 228 bytes |
コンパイル時間 | 499 ms |
コンパイル使用メモリ | 82,420 KB |
実行使用メモリ | 59,336 KB |
最終ジャッジ日時 | 2024-12-15 08:30:43 |
合計ジャッジ時間 | 2,278 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 19 WA * 2 |
ソースコード
a,b,c,d,e=map(int,input().split()) b-=c b*=a ans=d num=d for i in range(2,b+1): if i%10!=0: ans+=num else: if e<=num: num-=e ans+=num else: ans+=num print(ans)