結果

問題 No.2208 Linear Function
ユーザー 👑 H20H20
提出日時 2023-02-10 22:23:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 98 ms / 2,000 ms
コード長 101 bytes
コンパイル時間 275 ms
コンパイル使用メモリ 87,284 KB
実行使用メモリ 76,224 KB
最終ジャッジ日時 2023-09-21 23:38:44
合計ジャッジ時間 1,320 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,328 KB
testcase_01 AC 95 ms
76,148 KB
testcase_02 AC 98 ms
76,224 KB
testcase_03 AC 93 ms
76,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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