| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 12388 | 陈颖钧 | 找亲戚 | C++ | Accepted | 100 | 1 MS | 264 KB | 349 | 2025-07-11 14:12:28 |
#include<bits/stdc++.h> using namespace std; int n,m,a,i,sum; int g(int n,int a){ int b=n,g=a;; while(n!=0){ if(n%10==a){ return 1; } n/=10; } return 0; } int main(){ cin>>a; cin>>n>>m; for(i=n;i<=m;i++){ if(g(i,a)==1){ sum++; } } cout<<sum; }