TouchStone
  Please Login
Login Sign Up
距离明年CSP第一轮: ??天 距离CSP第二轮: ??天 距离NOIP还有: ??天
 Homepage  Problem Set  Examinations  Submissions  Discussions  Statistics
  • Home
  • Problem Set
  • P3441
  • Problem
  • P3441【HN Training 2015 Round5】lucas的数论
    Limits : Time Limit : - MS   Memory Limit : 265536 KB
    Judgment Tips : 3s
    Description

    Input Format

    InputFormat

    Output Format

    OutputFormat

    Sample Input 1

    2

    Sample Output 1

    8

    Sample Input 2

    8

    Sample Output 2

    326

    Sample Input 3

    19

    Sample Output 3

    2865

    Hint

    对于20%的数据:n<=20
    对于30%的数据:n<=5000
    对于50%的数据:n<=200000
    对于60%的数据:n<=30000000
    对于80%的数据:n<=100000000
    对于20%的数据:n<=1000000000