結果

問題 No.2208 Linear Function
ユーザー H20
提出日時 2023-02-10 22:23:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 64 ms / 2,000 ms
コード長 101 bytes
コンパイル時間 273 ms
コンパイル使用メモリ 82,796 KB
実行使用メモリ 67,072 KB
最終ジャッジ日時 2024-07-07 16:35:00
合計ジャッジ時間 916 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())
for _ in range(T):
    L,R,A,B = map(int, input().split())
    print(max(L*A,R*A)+B)
0