結果
問題 | No.2208 Linear Function |
ユーザー | n_na |
提出日時 | 2023-02-11 23:44:20 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 103 ms / 2,000 ms |
コード長 | 188 bytes |
コンパイル時間 | 1,068 ms |
コンパイル使用メモリ | 86,716 KB |
実行使用メモリ | 76,840 KB |
最終ジャッジ日時 | 2023-09-22 18:41:47 |
合計ジャッジ時間 | 1,958 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 70 ms
71,376 KB |
testcase_01 | AC | 103 ms
76,664 KB |
testcase_02 | AC | 91 ms
76,712 KB |
testcase_03 | AC | 102 ms
76,840 KB |
ソースコード
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)