fork(1) download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. int main(){
  6. vector<int> t(4);
  7. cin >> t[0] >> t[1] >> t[2] >> t[3];
  8. if (t[1] / t[0] == t[2] / t[1] && t[2] / t[1] == t[3] / t[2]) {
  9. cout << "DA";
  10. return 0;
  11. }
  12. cout << "NU";
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5276KB
stdin
2 4 -8 16
stdout
NU