解法如下:
int a;
scanf("%d", &a);
cout << !(a < 6) * ((a < 12) * 590 + (12 <= a && a < 18) * 790 + (18 <= a && a < 60) * 890 + (a >= 60) * 399) << endl;