結果
| 問題 |
No.2208 Linear Function
|
| コンテスト | |
| ユーザー |
👑 Kazun
|
| 提出日時 | 2023-02-10 21:20:56 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 61 ms / 2,000 ms |
| コード長 | 193 bytes |
| コンパイル時間 | 185 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 63,744 KB |
| 最終ジャッジ日時 | 2024-07-07 15:26:48 |
| 合計ジャッジ時間 | 827 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 3 |
ソースコード
def solve():
L,R,A,B=map(int,input().split())
return max(A*L+B, A*R+B)
#==================================================
T=int(input())
print(*[solve() for t in range(T)], sep="\n")
Kazun