fork(3) download
  1. #include <iostream>
  2.  
  3. float dod(float a, float b)
  4. {
  5. return 100.0f - (100.0f * a * 0.01f * b * 0.01f);
  6. }
  7. int main()
  8. {
  9. float a = 0.0f, b = 0.0f;
  10. int d;
  11. std::cin >> d;
  12. for (int i = 0; i < d; i++)
  13. {
  14. std::cin >> a >> b;
  15. printf("%.2f", dod(a, b));
  16. printf("\n");
  17. }
  18. }
  19.  
Success #stdin #stdout 0s 4320KB
stdin
2
50 50
30 54
stdout
75.00
83.80