Huge Fn mod m - IGGI

  • 1.4 MB

    文件大小

  • Android 1.6+

    Android OS

关于Huge Fn mod m - IGGI

高级问题:巨大的Fibonacci数模m

http://appinventor.mit.edu/explore/master-trainers.html#nguyen

This app is created using MIT App Inventor to demonstrate its ability in CS courses, especially Algorithms.

=================

Problem Introduction: The Fibonacci numbers are defined as follows: F0 = 0, F1 = 1, and Fi = Fi−1 + Fi−2 for i ≥ 2.

Task: Given two integers n and m, output Fn mod m (that is, the remainder of Fn when divided by m).

Input Format: The input consists of two integers n and m given on the same line (separated by a space).

Constraints: 1 ≤ n ≤ 1018, 2 ≤ m ≤ 105

Output Format: Output Fn mod m.

.==================

更多收起

最新版本1.6的更新日志

Last updated on 2019年01月03日
Minor bug fixes and improvements. Install or update to the newest version to check it out!

Huge Fn mod m - IGGI历史版本

在APKPure上极速安全下载应用

一键安装安卓XAPK/APK文件!

下载 APKPure