結果

問題 No.2208 Linear Function
ユーザー uiofds
提出日時 2023-02-21 21:29:47
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 135 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-07-22 06:17:28
合計ジャッジ時間 1,050 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 1
other RE * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

L,R,A,B = map(int,input().split())

ans = 0
if A == 0:
    ans = B

if A > 0:
    ans = A * R + B
else:
    ans = A * L + B

print(ans)
0