| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151199 | 赖泓宇 | 满足条件的数II | C++ | Wrong Answer | 1 MS | 268 KB | 519 | 2026-04-10 19:08:01 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main( ){ int m,k,g,s,b,q,w; cin>>m>>k; g=m%10; s=m%10/10; b=m%10/10/10; q=m%10/10/10/10; w=m%10/10/10/10/10; if(m%19==0&&k==3&&(g==3||s==3||b==3||q==3||w==3)){ cout<<"YES"; }else{ cout<<"NO"; } }
------Input------
45372 1
------Answer-----
YES
------Your output-----
NO