dalao博客,至少很好看。。

 

因为本人数论实在渣渣,但是考试确是得考的,只好尽早学,尽早掌握。

 

 

普通gcd

O(log(min(a,b)))

1 inline int gcd(int x,int y)
2 {
3     return y == 0 ? x : gcd(y, x % y)
4 }
View Code

相关文章:

  • 2021-10-20
  • 2021-08-05
  • 2021-11-29
  • 2021-04-01
  • 2021-09-25
  • 2021-07-02
  • 2021-10-26
猜你喜欢
  • 2021-07-01
  • 2022-02-27
  • 2021-12-13
  • 2021-12-15
  • 2021-06-26
  • 2022-01-11
  • 2021-12-03
相关资源
相似解决方案