Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
91914 sh25_shenpy 202406-GESP-二级-平方之和 C++ 输出超限 0 MS 248 KB 447 2026-06-19 15:52:34

Tests(0/10):


#include <bits/stdc++.h> using namespace std ; int main() { int n ; cin >> n ; for(int i = 1 ; i <= n ; i++) { int x ; cin >> x ; for(int y = 1 ; y * y < x ; y++) { int tmp = x - y * y ; int tmp2 = sqrt(1.0 * tmp) ; if(tmp * tmp == tmp2) cout << "Yes\n" ; else cout << "No\n" ; } } return 0 ; }


测评信息: