首页 > A×A=B
头像 Ldh1315109
发表于 2025-11-07 16:36:10
def solve(testcase): n = II() m = int(sqrt(n)) while m * m > n: m -= 1 while (m + 1) * (m + 1) <= n: m += 展开全文
头像 木安木安
发表于 2026-02-25 14:37:26
#include <iostream> #include<cmath> using namespace std; int main() { long int a; cin>>a; while(a--){ long long 展开全文
头像 BLUE_RAY
发表于 2026-01-28 09:27:54
#include<stdio.h> #include<math.h> int main() { int t; scanf("%d", &t); while(t--) { long long b; scanf("%lld 展开全文
头像 星汐ya
发表于 2026-01-28 10:51:26
#include<bits/stdc++.h> #include <cmath> using namespace std; #define int long long signed main() { int t; cin>>t; while 展开全文
头像 金刚侠
发表于 2026-04-23 11:02:21
#include <bits/stdc++.h> using namespace std; int main() { int t; cin>>t; long long b,ans=0; while(t--){ cin>& 展开全文
头像 已标记为作弊_歪比八卜
发表于 2025-12-16 09:38:26
#include <iostream>//新人的第3发题解,如有不足请dalao指出,我将改进,感谢! #include <cmath>//首先题目是要我们判断我们输入的数是否存在完全平方数,所以我们直接使用sqrt函数,求其算术平方根,尽管sqrt函数返回值类型是浮点型,我 展开全文
头像 Mariolne
发表于 2026-01-15 20:29:13
#include<bits/stdc++.h> using namespace std; #define int long long #define endl '\n' const int N = 2e5 + 9; void solve(){ int a; cin> 展开全文
头像 无聊的劳伦斯在做测评
发表于 2026-03-20 14:31:31
#include <stdio.h> #include<math.h> int yes_or_no(long long x) { long long a = sqrt(x); if (a*a == x) { return 1; } else { return 展开全文
头像 FuTCodKing
发表于 2026-03-04 14:55:41
#include <iostream> #include<cmath> using namespace std; int main() { int t; cin>>t; long long b,d; for(int i=1;i<=t 展开全文
头像 丘馗
发表于 2026-01-07 17:54:46
#include <iostream> #include <cmath> using namespace std; /*二分法*/ long long sqrt_floor(long long n) { long long left = 1; long lo 展开全文

等你来战

查看全部