Advertisement
DriplZip

A-2018

Nov 20th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.60 KB | None | 0 0
  1. #define _USE_MATH_DEFINES
  2. #include <fstream>
  3. #include <vector>
  4. #include <iostream>
  5. #include <algorithm>
  6. #include <math.h>
  7. #include <cmath>
  8. #include <string>
  9. #include <set>
  10. #include <deque>
  11. #include <cctype>
  12. #include <iomanip>
  13. #include <stdlib.h>
  14. #include <queue>
  15. #pragma comment(linker, "/STACK:2000000")
  16.  
  17. using namespace std;
  18.  
  19.  
  20.  
  21. int main()
  22. {
  23.     ifstream in("input.txt");
  24.     ofstream out("output.txt");
  25.     int w, l, h;
  26.     in >> w >> l >> h;
  27.     if (min(w, l) / h >= 2 && max(w, l) / min(w, l) < 2)
  28.     {
  29.         out << "good";
  30.     }
  31.     else
  32.     {
  33.         out << "bad";
  34.     }
  35.     in.close();
  36.     out.close();
  37.     return 0;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement