mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
596be6ae11
5000-5099
16 lines
263 B
C++
16 lines
263 B
C++
#include <iostream>
|
|
#include <cstdio>
|
|
using namespace std;
|
|
int main()
|
|
{
|
|
int T,N;
|
|
int array[8] = {1,9,18,54,90,174,258};
|
|
scanf("%d",&T);
|
|
while(T--)
|
|
{
|
|
scanf("%d",&N);
|
|
printf("%d\n",array[N]);
|
|
}
|
|
return 0;
|
|
}
|