結果

問題 No.2208 Linear Function
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2023-02-10 21:23:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 116 ms / 2,000 ms
コード長 305 bytes
コンパイル時間 268 ms
コンパイル使用メモリ 87,084 KB
実行使用メモリ 77,312 KB
最終ジャッジ日時 2023-09-21 22:23:30
合計ジャッジ時間 1,326 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
72,820 KB
testcase_01 AC 116 ms
77,212 KB
testcase_02 AC 114 ms
77,312 KB
testcase_03 AC 115 ms
77,164 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math
input = sys.stdin.readline

def answer():
    
    L,R,A,B = map(int,input().split())
    f = lambda x: A*x + B
    print(max(f(L),f(R)))
    
    
    
for _ in range(int(input())):
    answer()
0