题解 | B=A×A
B=A×A
https://www.nowcoder.com/practice/21132ecf432b45a5a8187ea074a5d71e
#include <iostream>
#include <cmath>
using namespace std;
int main() {
int t; cin >> t;
while(t--) {
long long b; cin >> b;
cout << int(sqrtl(b)) << endl;
}
}
// 64 位输出请用 printf("%lld")
查看12道真题和解析