結果
| 問題 |
No.2208 Linear Function
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-29 18:37:20 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 2,000 ms |
| コード長 | 177 bytes |
| コンパイル時間 | 279 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-07-06 08:57:59 |
| 合計ジャッジ時間 | 668 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 3 |
ソースコード
T = int(input())
for _ in range(T):
s = list(map(int, input().split()))
if s[2] <= 0:
print(s[2] * s[0] + s[3])
else:
print(s[2] * s[1] + s[3])