GUPTA MECHANICAL

IN THIS WEBSITE I CAN TELL ALL ABOUT TECH. TIPS AND TRICKS APP REVIEWS AND UNBOXINGS ALSO TECH. NEWS .............

Saturday, 30 July 2022

[Solution] Chess Time CodeChef Solution



Chef has recently started playing chess, and wants to play as many games as possible.

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

Chef has N 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 T, denoting the number of test cases.
Solution Click Below:-  👉CLICK HERE👈
👇👇👇👇👇


  • Each test case consists of a single line containing a single integer, N.

Output Format

For each test case, output on a new line the maximum number of complete chess games Chef can









 play in N hours.

Constraints

  • 1T10
  • 1N10

Sample Input 1

No comments:

Post a Comment