結果
| 問題 | No.1453 手助け |
| コンテスト | |
| ユーザー |
あかりき
|
| 提出日時 | 2021-04-13 16:39:12 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 196 bytes |
| 記録 | |
| コンパイル時間 | 207 ms |
| コンパイル使用メモリ | 84,780 KB |
| 実行使用メモリ | 60,332 KB |
| 最終ジャッジ日時 | 2026-03-19 12:24:17 |
| 合計ジャッジ時間 | 1,636 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 WA * 11 |
ソースコード
a,b,c,d,e=map(int,input().split())
n=(b-c)*a
p=d
ans=0
for i in range(1,n+1):
if i==1:
ans+=p
else:
if (i-1)%10==0 and e<=p:
ans+=p-e
p-=e
else:
ans+=p
print(ans)
あかりき