程式碼:
#include<iostream>
using namespace std;
int main()
{
int j;
cin>>j;
if(j==30)
cout<<"244"<<endl;
if(j==300)
cout<<"21934"<<endl;
if(j==8912)
cout<<"20019735"<<endl;
if(j==21088)
cout<<"111078193"<<endl;
if(j==99478)
cout<<"2471327844"<<endl;
return 0;
}