結果
| 問題 | 
                            No.2208 Linear Function
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2023-02-21 22:01:58 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                RE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 215 bytes | 
| コンパイル時間 | 94 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-07-22 06:32:19 | 
| 合計ジャッジ時間 | 653 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | RE * 1 | 
| other | RE * 3 | 
ソースコード
T = int(input())
ans = 0
L = 0
R = 0
A = 0
B = 0
for i in T:
    L,R,A,B = map(int,input().split())
    if A > 0:
        ans = A * R + B
    elif A < 0:
        ans = A * L + B
    else:
        ans = B
print(ans)