Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
308156 | 钱凯 | 【C3-T】同构数 | C++ | 通过 | 100 | 5 MS | 252 KB | 230 | 2025-01-05 19:59:55 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,s=0; cin>>n; for(int i=1;i<=n;i++){ int t=i,t1=1; while(t>0){ t1*=10; t=t/10; } if(i*i%t1==i){ s++; } } cout<<s; return 0; }