結果
問題 | No.2208 Linear Function |
ユーザー | machoniump |
提出日時 | 2023-09-18 20:07:48 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 488 ms / 2,000 ms |
コード長 | 197 bytes |
コンパイル時間 | 474 ms |
コンパイル使用メモリ | 10,524 KB |
実行使用メモリ | 7,940 KB |
最終ジャッジ日時 | 2023-09-18 20:07:50 |
合計ジャッジ時間 | 1,568 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
7,804 KB |
testcase_01 | AC | 23 ms
7,896 KB |
testcase_02 | AC | 296 ms
7,732 KB |
testcase_03 | AC | 488 ms
7,940 KB |
ソースコード
t=int(input()) def solve(x,a,b): return a*x+b for i in range(t): l,r,a,b=map(int,input().split()) ans=-10**18 for j in range(l,r+1): ans=max(ans,solve(j,a,b)) print(ans)