mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
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;
|
||
|
}
|