結果

問題 No.2208 Linear Function
ユーザー ttomo2023ttomo2023
提出日時 2023-03-30 11:46:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 131 bytes
コンパイル時間 286 ms
コンパイル使用メモリ 11,768 KB
実行使用メモリ 10,072 KB
最終ジャッジ日時 2023-10-21 21:04:42
合計ジャッジ時間 891 ms
ジャッジサーバーID
(参考情報)
judge9 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,060 KB
testcase_01 AC 38 ms
10,064 KB
testcase_02 AC 36 ms
10,072 KB
testcase_03 AC 37 ms
10,064 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())
for _ in range(T):
    l, r, a, b = map(int, input().split())
    f = lambda x: a*x + b
    print(max(f(l), f(r)))
0