Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _USE_MATH_DEFINES
- #include <fstream>
- #include <vector>
- #include <iostream>
- #include <algorithm>
- #include <math.h>
- #include <cmath>
- #include <string>
- #include <set>
- #include <deque>
- #include <cctype>
- #include <iomanip>
- #include <stdlib.h>
- #include <queue>
- #pragma comment(linker, "/STACK:2000000")
- using namespace std;
- int main()
- {
- ifstream in("input.txt");
- ofstream out("output.txt");
- int w, l, h;
- in >> w >> l >> h;
- if (min(w, l) / h >= 2 && max(w, l) / min(w, l) < 2)
- {
- out << "good";
- }
- else
- {
- out << "bad";
- }
- in.close();
- out.close();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement