fork download
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int wife, husband, home;
  6. cin >> wife >> husband >> home;
  7. if (wife + husband >= home) {
  8. cout << "DA";
  9. }
  10. if (wife + husband < home ) {
  11. cout << "NU";
  12. }
  13. return 0;
  14. }
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
NU