fork(1) download
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. uint64_t max = 42;
  8.  
  9. for( uint64_t n = 3; n < 8; ++n ) {
  10. for( uint64_t a = 1; a < max; ++a ) {
  11. for( uint64_t b = 1; b < max; ++b ) {
  12. for( uint64_t c = 1; c < max; ++c ) {
  13. if( pow( a, n ) + pow( b, n ) == pow( c, n ) ) {
  14. cout << "Не-не-не, Дэвид Блэйн!!!\n";
  15. break;
  16. }
  17. }
  18. }
  19. }
  20. }
  21.  
  22. cout << "SOSNOOOLEY\n";
  23. }
Success #stdin #stdout 0.1s 4400KB
stdin
Standard input is empty
stdout
SOSNOOOLEY