| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 56140 | 许兴平 | 含k个3的数 | C++ | Accepted | 1 MS | 240 KB | 262 | 2024-11-09 14:34:11 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; for(int i=0;i<6;i++){ int weishu=1; for(int k=0;k<i;k++){ weishu*=10; } if(a/weishu%10==b){ cout<<"YES"; return 0; } } cout<<"NO"; return 0; }