#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t;
  cin >> t;
  while (t--) {
    long long n, a, b;
    cin >> n >> a >> b;
    long long ans = (a * n);
    long long ans2 = (n / 2) * b;
    if (n % 2 == 1) ans2 += a;
    cout << min(ans, ans2) << endl;
  }
}
