Th3NiKo

Kalibracja lasera

Apr 6th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int ile;
  8.     cin >> ile;
  9.     for(int k = 0; k < ile; k++){
  10.         float a;
  11.         float b;
  12.         cin >> a >> b;
  13.         float halfA = a / 2;
  14.         cout << (int)((90 - b) / halfA)<< endl;
  15.     }
  16.     return 0;
  17. }
Add Comment
Please, Sign In to add comment