結果
| 問題 |
No.2208 Linear Function
|
| コンテスト | |
| ユーザー |
n_na
|
| 提出日時 | 2023-02-11 23:44:20 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 62 ms / 2,000 ms |
| コード長 | 188 bytes |
| コンパイル時間 | 208 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 69,888 KB |
| 最終ジャッジ日時 | 2024-07-08 09:53:57 |
| 合計ジャッジ時間 | 750 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 3 |
ソースコード
t = int(input())
for _ in range(t):
L,R,A,B = map(int,input().split())
res = -(2*10**6)
for x in range(L,R+1):
tmp = A*x + B
res = max(tmp,res)
print(res)
n_na