[Solution] Count the Notebooks solution codechef

Count the Notebooks solution codechef – You know that 11 kg of pulp can be used to make 10001000 pages and 11 notebook consists of 100100 pages.

Suppose a notebook factory receives NN kg of pulp, how many notebooks can be made from that?

Count the Notebooks solution codechef

  • First line will contain TT, the number of test cases. Then the test cases follow.
  • Each test case contains a single integer NN – the weight of the pulp the factory has (in kgs).

Output Format

For each test case, output the number of notebooks that can be made using NN kgs of pulp.

Constraints

  • 1T1001≤T≤100
  • 1N1001≤N≤100

Count the Notebooks solution codechef

 

3
1
100
50

Sample Output 1 

10
1000
500

Count the Notebooks solution codechef

Test case-1: 11 kg of pulp can be used to make 10001000 pages which can be used to make 1010 notebooks.

Test case-2: 100100 kg of pulp can be used to make 100000100000 pages which can be used to make 10001000 notebooks.

Test case-3: 5050 kg of pulp can be used to make 5000050000 pages which can be used to make 500500 notebooks.

Leave a Comment