Logo
(追記) (追記ここまで)

30174번 - Filling Diamonds 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB25515713067.010%

문제

You have integer $n$. Calculate how many ways are there to fully cover belt-like area of 4ドルn-2$ triangles with diamond shapes.

Diamond shape consists of two triangles. You can move, rotate or flip the shape, but you cannot scale it.

2ドル$ coverings are different if some 2ドル$ triangles are covered by the same diamond shape in one of them and by different diamond shapes in the other one.

Please look at pictures below for better understanding.

On the left you can see the diamond shape you will use, and on the right you can see the area you want to fill.

These are the figures of the area you want to fill for $n = 1, 2, 3, 4$.

You have to answer $t$ independent test cases.

입력

The first line contains a single integer $t$ (1ドル \le t \le 10^{4}$) --- the number of test cases.

Each of the next $t$ lines contains a single integer $n$ (1ドル \le n \le 10^{9}$).

출력

For each test case, print the number of ways to fully cover belt-like area of 4ドルn-2$ triangles using diamond shape. It can be shown that under given constraints this number of ways doesn't exceed 10ドル^{18}$.

제한

예제 입력 1

2
2
1

예제 출력 1

2
1

노트

In the first test case, there are the following 2ドル$ ways to fill the area:

In the second test case, there is a unique way to fill the area:

출처

Contest > Codeforces > Codeforces Round 633 (Div. 2) A번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /