fork 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 " << "\n";
  9. } else {
  10. cout << " NU " << "\n";
  11. }
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
 NU