#SDNU1683. easy problem Ⅳ
easy problem Ⅳ
Description
定义斐波那契数列,,对于所有的,满足,求与的最大公约数 多组测试用例
Format
Input
多组输入,每组两个整数,
Output
求与的最大公约数,保证结果不超过
Samples
1 2
1
定义斐波那契数列,F(1)=F(2)=1,对于所有的N,满足F(N+2)=F(N+1)+F(N),求F(m)与F(n)的最大公约数 多组测试用例
多组输入,每组两个整数n,m,(1≤n,m≤1000)
求F(m)与F(n)的最大公约数,保证结果不超过263−1
1 2
1
By signing up a GENESIS universal account, you can submit code and join discussions in all online judging services provided by us.