結果

問題 No.2208 Linear Function
ユーザー 森雄大
提出日時 2023-08-13 19:03:59
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 128 bytes
コンパイル時間 177 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-11-21 15:24:14
合計ジャッジ時間 711 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

for i in range(int(input())):
  l, r, a, b = map(int, input().split())
  if a < 0:
    print(a*l + b)
  else:
    print(a*r + b)
0