fork(1) download
  1. #include <iostream>
  2. #include <bits/stdc++.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. for(long long i=2;i<=40;++i){
  8. for(long long j=0;j<=10;++j){
  9. if( ((long long)ceil(pow(i,j)) - (long long)pow(i,j)) !=0 ){
  10. cout<<i<<" "<<j<<"\n";
  11. }
  12. }
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0s 3408KB
stdin
Standard input is empty
stdout
Standard output is empty