fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, b, c;
  6. cin >> a >> b >> c;
  7. if (a * a + b * b == c * c) {
  8. cout << "Da";
  9. }
  10. if (a * a + b * b != c * c) {
  11. cout << "Nu";
  12. }
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0.01s 5436KB
stdin
3 4 5

stdout
Da