Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
151193 赖泓宇 满足条件的数II C++ Wrong Answer 1 MS 272 KB 563 2026-04-10 18:58:55

Tests(0/3):


Code:

#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){ cout<<"YES"; if(g==3||s==3||b==3||q==3||w==3){ cout<<"YES"; }else{ cout<<"NO"; } } }


Run Info:

------Input------
43833 3
------Answer-----
YES
------Your output-----
YESYES