結果
問題 | No.2208 Linear Function |
ユーザー | roaris |
提出日時 | 2023-02-18 04:52:06 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 80 ms / 2,000 ms |
コード長 | 140 bytes |
コンパイル時間 | 1,089 ms |
コンパイル使用メモリ | 87,068 KB |
実行使用メモリ | 75,616 KB |
最終ジャッジ日時 | 2023-09-27 00:53:44 |
合計ジャッジ時間 | 1,576 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 68 ms
71,384 KB |
testcase_01 | AC | 80 ms
75,508 KB |
testcase_02 | AC | 78 ms
75,508 KB |
testcase_03 | AC | 79 ms
75,616 KB |
ソースコード
import sys input = sys.stdin.readline for _ in range(int(input())): L, R, A, B = map(int, input().split()) print(max(A*L+B, A*R+B))