主题思想: 数论 线性同余 参考博客: http://blog.csdn.net/y11201/article/details/8600337 AC 代码: include include using namespace std; int gcd(int m,int n){ if(n==0){return m;}int ans=gcd(n,m%n);return ans;
1222. Queens That Can Attack the King** https://leetcode.com/problems/queens-that-can-attack-the-king/ 题目描述 On an 8x8 chessboard, there can be multiple Black Queens and one White King. Given an ar
LeetCode 1222. Queens That Can Attack the King LeetCode 1222. Queens That Can Attack the King python solution 题目描述 On an 8x8 chessboard, there can be multiple Black Queens and one White King. Given