fork download
  1. #include <iostream>
  2. #include <cmath>
  3. #include <iomanip>
  4. using namespace std;
  5.  
  6. int main() {
  7. int S;
  8. double V;
  9. double g = 10;
  10. double T;
  11.  
  12. cin >> S;
  13. cin >> V;
  14.  
  15. T = (2 * V * sin(S * 3.141592653589793 / 180)) / g;
  16.  
  17. cout << fixed << setprecision(3) << T << endl;
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0s 564KB
stdin
37
100
stdout
12.036