#include using namespace std; namespace jumpmelon { struct range { int l, r; double s; }; const int MAXX = 400; double F[MAXX + 1]; vector V = {{95, 100, 4.3}, {90, 94, 4.0}, {85, 89, 3.7}, {80, 84, 3.3}, {75, 79, 3.0}, {70, 74, 2.7}, {67, 69, 2.3}, {65, 66, 2.0}, {62, 64, 1.7}, {60, 61, 1.0}, {0, 59, 0.0}}; void work() { for (int i = 1; i <= MAXX; i++) F[i] = -INFINITY; for (int q = 0; q < 4; q++) for (int i = 0; i <= MAXX; i++) for (auto &&r : V) for (int j = r.r; j >= r.l; j--) if (i >= j) F[i] = max(F[i], F[i - j] + r.s); int kase; scanf("%d", &kase); while (kase--) { int x; scanf("%d", &x); printf("%.1f\n", F[x]); } } } int main() { jumpmelon::work(); return 0; }