Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|

Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |

Language: Honeycomb Walk
Description A bee larva living in a hexagonal cell of a large honeycomb decides to creep for a walk. In each “step” the larva may move into any of the six adjacent cells and after Your program has to compute, for a given Input The first line contains an integer giving the number of test cases to follow. Each case consists of one line containing an integer Output For each test case, output one line containing the number of walks. Under the assumption 1 ≤ Sample Input 2 2 4 Sample Output 6 90 Source |

[Submit] [Go Back] [Status] [Discuss]

All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di

Any problem, Please Contact Administrator