eolymp
bolt
Спробуйте наш новий інтерфейс для відправки розв'язків
Задачі

Yummy Triangular Pizza

Yummy Triangular Pizza

Pizzahat has released a new pizza with triangular shaped pieces. This pizza is composed of some equal-sized equilateral triangle. Moreover, all the triangles are connected. Also, if two triangles are directly connected, they must share a common edge. How many different shapes of this kind of N-pieces pizza are there? Two patterns are considered as same if they can completely overlap after rotation and shifting (note that flipping is not included). \InputFile There are multiple test cases. The first line of input contains a single integer denoting the number of test cases. For each test case, there is only one line with only one integer \textbf{N} denoting the number of pieces that can be used. (\textbf{1} ≤ \textbf{N} ≤ \textbf{16}) \OutputFile For each test case, output a single integer denoting the number of possible different shapes of the pizza. \includegraphics{https://static.e-olymp.com/content/16/16aae100af9a484fde08535ee57f12070526d9f5.jpg} Figure for Case 2
Ліміт часу 1 секунда
Ліміт використання пам'яті 64 MiB
Вхідні дані #1
3
2
4
10
Вихідні дані #1
Case #1: 1
Case #2: 4
Case #3: 866
Джерело The 36th ACM-ICPC Asia Shanghai Regional Contest - hosted by Fudan University