#1819. C++-函数-Pell数列

    ID: 1819 Type: Default 1000ms 256MiB Tried: 46 Accepted: 15 Difficulty: 6 Uploaded By: Tags>CSP厦门信息学厦门创客大赛C++项目信息科技特长生递归

C++-函数-Pell数列

Background

Description

Pell 数列 1,2,3,…a1​,a2​,a3​,… 的定义 image

给出一个正整数n(如:n=60时),试求 Pell 数列的第k 项模上32767是多少。

Format

Input

Output

Samples

60
13237
10
2378

Limitation

1s, 1024KiB for each test case.

Statistics

Related

In following contests:

函数

C++基础知识05(函数)