Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main() {
- int t;
- cin>>t;
- while(t--){
- int x, y;
- cin >> x >> y;
- double h = (10.0 * (y-x))/(100-y);
- int hours = ceil(h);
- cout << hours << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment