Monday, May 28, 2018

UVA - 305 .cpp file

#include<bits/stdc++.h>
using namespace std;
int Val[17] = {0,2,7,5,30,169,441,1872,7632,1740,93313,459901,1358657,2504881};
int main()
{
    int N;
    while(cin>>N && N)
    {
          cout<<Val[N]<<endl;
    }
    return 0;
}

No comments:

Post a Comment