首页 > 小红的数字分裂
头像 Ldh1315109
发表于 2025-11-09 16:36:40
def solve(testcase): n = II() A = LII() g = 0 for a in A: g = gcd(g, a) print(sum(a // g - 1 for a in A)) for testc 展开全文
头像 自由的风0450
发表于 2025-11-14 22:30:13
#include <iostream> #include<vector> #include<algorithm> using namespace std; int gcd(int a,int b){ while(b!=0){ int t=b 展开全文

等你来战

查看全部