這哪裡錯了?
#include <iostream>
#include <math.h>
using namespace ::std;
int main(){
int n;
while(cin>>n){
cout<<pow(2,n)<<endl;
}
return 0;
}
這哪裡錯了?
#include
#include
using namespace ::std;
int main(){
int n;
while(cin>>n){
cout<<pow(2,n)<<endl;
}
return 0;
}
n <= 5000
用pow肯定overflow