結果
問題 | No.2208 Linear Function |
ユーザー | liny_tail |
提出日時 | 2023-02-11 09:33:44 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 448 ms / 2,000 ms |
コード長 | 195 bytes |
コンパイル時間 | 72 ms |
コンパイル使用メモリ | 10,636 KB |
実行使用メモリ | 7,916 KB |
最終ジャッジ日時 | 2023-09-22 08:25:52 |
合計ジャッジ時間 | 1,357 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 15 ms
7,916 KB |
testcase_01 | AC | 22 ms
7,844 KB |
testcase_02 | AC | 252 ms
7,852 KB |
testcase_03 | AC | 448 ms
7,848 KB |
ソースコード
T = int(input()) for i in range(T): L, R, A, B = map(int, input().strip().split(' ')) M = -1000000000 for j in range(L, R + 1): tmp = A * j + B M = max(M, tmp) print(M)