結果
問題 | No.2208 Linear Function |
ユーザー | タコイモ |
提出日時 | 2023-02-10 21:22:07 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 108 ms / 2,000 ms |
コード長 | 614 bytes |
コンパイル時間 | 280 ms |
コンパイル使用メモリ | 86,928 KB |
実行使用メモリ | 76,108 KB |
最終ジャッジ日時 | 2023-09-21 22:21:54 |
合計ジャッジ時間 | 1,357 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 94 ms
71,584 KB |
testcase_01 | AC | 108 ms
75,980 KB |
testcase_02 | AC | 105 ms
75,796 KB |
testcase_03 | AC | 106 ms
76,108 KB |
ソースコード
import time import sys #sys.setrecursionlimit(500000) def I(): return int(sys.stdin.readline().rstrip()) def MI(): return map(int,sys.stdin.readline().rstrip().split()) def TI(): return tuple(map(int,sys.stdin.readline().rstrip().split())) def LI(): return list(map(int,sys.stdin.readline().rstrip().split())) def S(): return sys.stdin.readline().rstrip() def LS(): return list(sys.stdin.readline().rstrip()) #for i, pi in enumerate(p): from collections import defaultdict,deque import bisect import itertools dic = defaultdict(int) d = deque() T = I() for _ in range(T): L,R,A,B = MI() print(max(L*A+B,R*A+B))