結果

問題 No.2208 Linear Function
ユーザー はと
提出日時 2023-07-15 02:25:29
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 35 ms / 2,000 ms
コード長 168 bytes
コンパイル時間 153 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-09-16 11:04:24
合計ジャッジ時間 719 ms
ジャッジサーバーID
(参考情報)
judge1 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())  

for _ in range(T):
    s = list(map(int, input().split())) 

    if s[2] <= 0:
	    print(s[0] * s[2] + s[3])
    else:
	    print(s[1]*s[2] + s[3])
0