Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
281155 蒋则 【C3-T】同构数 C++ 解答错误 0 0 MS 244 KB 252 2024-07-12 16:12:49

Tests(0/5):


#include <bits/stdc++.h> using namespace std; int main() { int n,x=0; cin>>n; for(int i=1;i<=n;i++) { int t=1; int h=0; for(int j=i*i;j>0;j/=10) { h+=t*(j%10); t*=10; if(h==i)x++; } } cout<<x; return 0; }


测评信息: