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

Tests(1/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; b=m%100; q=m%1000; w=m%10000; if(m%19==0&&k==3&&(g==3||s==3||b==3||q==3||w==3)){ cout<<"YES"; return 0; }else{ cout<<"NO"; } }


Run Info:

------Input------
45372 1
------Answer-----
YES
------Your output-----
NO