document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #include<iostream>
  2. #include <math.h>
  3. using namespace std;
  4.  
  5.  
  6. int main()
  7. {
  8. int a,n;
  9. while(cin>>a>>n)
  10. {
  11. if(a==0 && n==0)
  12. {
  13. break;
  14. }
  15. long long int ans= pow((double)a,n);
  16. printf("%d\\n",ans);
  17. //cout<<ans<<endl;
  18. }
  19. int count=0;
  20. while(cin>>a>>n)
  21. {
  22. count++;
  23. }
  24. //cout<<"All Over. Exceeded "<<count<<" lines!"<<endl;
  25. printf("All Over. Exceeded %d lines!\\n",count);
  26.  
  27. return 0;
  28. }
');