Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
86868 sh25_zhangyy 对称平方数1 C++ Accepted 0 MS 184 KB 315 2026-04-10 14:33:10

Tests(1/1):


#include <cstdio> int l; int t[10]; int main() { for(int i = 0; i <= 256; i++) { l = 0; int tmp = i * i; while(tmp) { t[++l] = tmp % 10; tmp /= 10; } bool ok = true; for(int i = 1; i <= l; i++) if(t[i] != t[l + 1 - i]) ok = false; if(ok) printf("%d\n", i); } return 0; }


Judgement Protocol: