17 条题解

  • 0
    @ 2023-8-12 11:33:24
    #include <iostream>
    #include <stdio.h>
    #include <iomanip>
    #include <math.h>
    using namespace std;
    const int N = 1e6 + 10;
    const int INF = 0x3f3f3f3f;
    int main()
    {
    	int a;
    	cin >> a;
    	if( a % 3 == 0 && a % 5 == 0 )
    	{
    		cout << "YES";
    	}
    	else
    	{
    		cout << "NO";
    	}
    	return 0;
    }
    

    判断一个数能否同时被3和5整除

    信息

    ID
    870
    时间
    1000ms
    内存
    128MiB
    难度
    4
    标签
    递交数
    647
    已通过
    314
    上传者