結果

問題 No.2208 Linear Function
ユーザー KuronekoFSKuronekoFS
提出日時 2023-03-02 14:23:59
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 147 bytes
コンパイル時間 94 ms
コンパイル使用メモリ 11,752 KB
実行使用メモリ 10,120 KB
最終ジャッジ日時 2023-10-17 11:25:34
合計ジャッジ時間 749 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,100 KB
testcase_01 AC 34 ms
10,112 KB
testcase_02 AC 38 ms
10,120 KB
testcase_03 AC 37 ms
10,112 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())
for i in range(T):
    L,R,A,B = (int(x) for x in input().split())
    if A>0:
        print(A*R+B)
    else:
        print(A*L+B)
0