# https://codeforces.com/problemset/problem/1955/A # line 1 : t = number of test cases # line 2 : n, a, b t = int(input()) for _ in range(t): n, a, b = [int(x) for x in input().split()] minimum_cost = (n // 2) * b + (n % 2) * a if a * 2 > b else n * a print(minimum_cost)