結果

問題 No.2208 Linear Function
ユーザー 👑 KazunKazun
提出日時 2023-02-10 21:20:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 92 ms / 2,000 ms
コード長 193 bytes
コンパイル時間 299 ms
コンパイル使用メモリ 87,052 KB
実行使用メモリ 75,628 KB
最終ジャッジ日時 2023-09-21 22:19:04
合計ジャッジ時間 1,284 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,076 KB
testcase_01 AC 89 ms
75,144 KB
testcase_02 AC 89 ms
75,492 KB
testcase_03 AC 92 ms
75,628 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    L,R,A,B=map(int,input().split())
    return max(A*L+B, A*R+B)

#==================================================
T=int(input())
print(*[solve() for t in range(T)], sep="\n")
0