current position:Home>Output an integer indicating how many bridge laying methods are available

Output an integer indicating how many bridge laying methods are available

2022-06-24 08:14:54CSDN Q & A

Our school built a new bridge connecting the teaching area and the accommodation area for the safety of students the year before last , Designed bridge length N rice , wide 2 rice , Floor tiles for existing bridges , Long 2 rice , wide 1 rice . The length of the bridge is given N, Please program and calculate how many bridge laying methods there are ?( Floor tiles are placed in different ways ) The first line gives an integer M, Express M Group test sample .
Next M Line gives an integer N,N The meaning of is as shown above ,N(0 < N <= 50). Output an integer indicating how many bridge laying methods there are .

img

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/175/202206171545326991.html

Random recommended