| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 1619 | A班-过懿萱 | 找亲戚 | C++ | Accepted | 100 | 1 MS | 264 KB | 438 | 2024-12-07 11:06:40 |
#include <bits/stdc++.h> using namespace std; int main() { int a,m,n,temp = 0; cin>>a>>m>>n; for(int i = m;i <= n;i++) { int qian,bai,shi,ge; qian = i / 1000; bai = i / 100 % 10; shi = i / 10 % 10; ge = i % 10; if(qian == a || bai == a || shi == a || ge == a) { temp += 1; } } cout<<temp<<endl; return 0; }