結果
| 問題 |
No.2208 Linear Function
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-02-10 21:23:36 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 60 ms / 2,000 ms |
| コード長 | 305 bytes |
| コンパイル時間 | 218 ms |
| コンパイル使用メモリ | 81,920 KB |
| 実行使用メモリ | 65,408 KB |
| 最終ジャッジ日時 | 2024-07-07 15:30:47 |
| 合計ジャッジ時間 | 936 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 3 |
ソースコード
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()