結果

問題 No.2208 Linear Function
ユーザー katonyonkokatonyonko
提出日時 2023-02-10 21:21:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 171 bytes
コンパイル時間 287 ms
コンパイル使用メモリ 86,936 KB
実行使用メモリ 75,112 KB
最終ジャッジ日時 2023-09-21 22:20:35
合計ジャッジ時間 1,149 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,244 KB
testcase_01 AC 81 ms
75,112 KB
testcase_02 AC 83 ms
75,112 KB
testcase_03 AC 84 ms
75,040 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
def input():
  return sys.stdin.readline()[:-1]
t=int(input())
for _ in range(t):
  L,R,A,B=map(int,input().split())
  if A>0: print(A*R+B)
  else: print(A*L+B)
0