| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 1650 | A班-岑思熠 | 找亲戚 | C++ | Accepted | 100 | 1 MS | 260 KB | 414 | 2024-12-07 11:44:14 |
#include<bits/stdc++.h> using namespace std; int main() { int m,n,sum=0,x,k; cin>>x; cin>>m>>n; for(int i=m;i<=n;i++) { k=i; while(k) { if(k%10==x) { sum++; break; } else { k/=10; } } } cout<<sum; return 0; }