H2

Ph.D. Candidate @ PKU · WebGPU · Neural Rendering · OI

  1. Links
  2. Archives
  3. Search
    1. Dark Mode

Table of contents

  1. Description
  2. Input & Output
  3. Sample Input
  4. Sample Output
  5. Constraint
  6. Solution
OI

AHSDFZ 模拟赛 偏题

Feb 04, 2020
1 minute read

Description

pic

Input & Output

I&O

Sample Input

1
2 3 100 6

Sample Output

1
82

Constraint

对于100%的数据,0 ≤ n ≤ 10^9 ,1 ≤ M ≤ 10^9 ,1 ≤ F_0 ≤ F_1 ≤ 10^6

Solution

sol

快速幂 斐波那契 矩阵快速幂

Related content

51nod 1355 斐波那契的最小公倍数

「2017 山东一轮集训 Day1」Sum

BZOJ 1009: [HNOI2008]GT考试

20170116 AHSDFZ day3 NOI 模拟赛解题报告

AHSDFZ 20170301 树 (tree.pas/c/cpp)

© 2016 - 2026 H2
Built with Hugo
Theme Stack designed by Jimmy