[Solution] Chess Time solution codechef

Chess Time solution codechef – Chef has recently started playing chess, and wants to play as many games as possible.

Table of Contents

[Solution] Chess Time solution codechef

He calculated that playing one game of chess takes at least 2020 minutes of his time.

Chef has NN hours of free time. What is the maximum number of complete chess games he can play in that time?

Input Format

  • The first line of input will contain a single integer TT, denoting the number of test cases.
  • Each test case consists of a single line containing a single integer, NN.

Output Format

For each test case, output on a new line the maximum number of complete chess games Chef can play in NN hours.

[Solution] Chess Time solution codechef

  • 1T101≤T≤10
  • 1N101≤N≤10

Sample Input 1 

4
1
10
7
3

Sample Output 1 

3
30
21
9

[Solution] Chess Time solution codechef

Test case 11: If every game Chef plays takes 2020 minutes, he can play 33 games in one hour.

Test case 22: If every game Chef plays takes 2020 minutes, he can play 3030 games in 1010 hours.

Test case 33: If every game Chef plays takes 2020 minutes, he can play 2121 games in 77 hours.

Test case 44: If every game Chef plays takes 2020 minutes, he can play 99 games in 33 hours.

For Solution

Click Here

Leave a Comment