biinfinite
시간 제한2초메모리 제한1024 MB
매개변수 t에 대한 점화식으로 정의된 수열의 n번째 항을 202112210950으로 나눈 나머지를 구한다. |n|은 10^12까지이다.
문제
A bi-infinite sequence means a sequence that is infinite in both directions. In other words, it means a function whose domain is the set of all integers. The writer of this problem defined their bi-infinite sequence and called it "KSA bi-infinite sequence" with a parameter where is a positive integer. It satisfies the following for all integers .
- if
Write a function biinfinite:
- input parameter: two
int-type objects whose values are and , respectively, where and - return value: the
int-type object whose value is where and is the -th term of KSA bi-infinite sequence with a parameter
예제
이 문제는 공개된 예제가 없습니다.