#include <bits/stdc++.h>
int main() {
  int q;
  scanf("%d", &q);
  int i, j;
  for (i = 0; i < q; i++) {
    long long int total;
    int one, two;
    scanf("%I64d %d %d", &total, &one, &two);
    if (2 * one == two) {
      printf("%I64d\n", total * one);
    } else if (2 * one < two) {
      printf("%I64d\n", total * one);
    } else if (2 * one > two) {
      if (total % 2 == 0) {
        printf("%I64d\n", (total / 2) * two);
      } else {
        printf("%I64d\n", ((total - 1) / 2) * two + one);
      }
    }
  }
}
