| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 308157 | 钱凯 | 【C3-T】同构数 | C++ | Accepted | 100 | 3 MS | 252 KB | 307 | 2025-01-05 20:00:24 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,g,s=0,sf,f,b,q,w; cin>>n; for(int i=1;i<=n;i++){ g=(i*i)/1; sf=(i*i)%10; f=(i*i)%100; b=(i*i)%1000; q=(i*i)%10000; w=(i*i)%100000; if(g==i||sf==i||f==i||b==i||q==i||w==i){ s++; } } cout<<s; return 0; }