Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
91914 sh25_shenpy 202406-GESP-二级-平方之和 C++ Output Limit Exceeded 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 ; }


Judgement Protocol: