打表水过:

#include<iostream>  
using namespace std;  
int n;  
long long a[20] = {0,2,7,5,30,169,441,1872,7632,1740,93313,459901,1358657,2504881,0};  
int main()  
{  
    while(cin>>n && n!=0){  
      cout<<a[n]<<endl;  
    }  
    return 0;  
}

 

相关文章:

  • 2022-12-23
  • 2021-12-28
  • 2021-07-12
  • 2022-03-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-24
  • 2021-11-30
  • 2022-01-10
  • 2021-06-08
  • 2021-09-20
相关资源
相似解决方案