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

    Type: Default 1000ms 256MiB

C++-函数-Pell数列

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

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.

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

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
9
Start at
2024-5-5 17:00
End at
2024-5-27 9:00
Duration
520 hour(s)
Host
Partic.
14