题解 | #被5整除问题#
被5整除问题
https://www.nowcoder.com/practice/a4f527b043c04551bf4b80b4275a53bd
#include <cstdio> #include <iostream> using namespace std; int main() { int M=0; cin>>M; if(M>=1 && M<=100000) { if(M%5==0) cout<<"YES"<<endl; else cout<<"NO"<<endl; } return 0; }