#include <bits/stdc++.h>
using namespace std;
const int N = 105;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int T;
  cin >> T;
  while (T--) {
    long long int n, a, b;
    cin >> n >> a >> b;
    if (n % 2)
      cout << a + min((n / 2) * b, (n - 1) * a);
    else
      cout << min(n * a, (n / 2) * b);
    cout << "\n";
  }
  return 0;
}
