题解 | 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")

全部评论

相关推荐

明天不下雨了:这个项目 这个简历 这个模板 莫不是一个开源的
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务