Problem Description
There is a number N.You should output "YES" if N is a multiple of 2, 3 or 5,otherwise output "NO".
Input
There are multiple test cases, no more than 1000 cases.For each case,the line contains a integer N.(0<1030)
Output
For each test case,output the answer in a line.
Sample Input
2357
Sample Output
YESYESYESNO
Source
读入%s字符串
2和5看大数的最后一位,3就把所有的位加起来看看是不是3的倍数
1 #pragma comment(linker, "/STACK:1024000000,1024000000") 2 #include3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #include