12345678910111213141516171819202122232425 |
- import java.util.Scanner;
- /**
- * Created by chshru on 2017/11/4.
- */
- public class B {
- public static void main(String[] args) {
- Scanner cin = new Scanner(System.in);
- int t = cin.nextInt();
- while (t-- > 0) {
- int m = cin.nextInt();
- int n = (1200 - 6 * m) / 7;
- if ((1200 - 6 * m) % 7 != 0)
- n++;
- System.out.print(n / 2);
- if (n % 2 != 0)
- System.out.print(".5");
- System.out.println();
- }
- cin.close();
- }
- }
|