結果

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

ソースコード

diff #

T = int(input())
L = int(input())
R = int(input())
A = int(input())
B = int(input())

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

print(ans)
0