Ankit_132

B

Jun 12th, 2024
513
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5.     int t;
  6.     cin>>t;
  7.    
  8.     while(t--){
  9.         int x, y;
  10.         cin >> x >> y;
  11.        
  12.         double h = (10.0 * (y-x))/(100-y);
  13.         int hours = ceil(h);
  14.        
  15.         cout << hours << endl;
  16.     }
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment