17 条题解

  • 0
    @ 2022-12-4 16:42:33
    • #include <stdio.h>
      #include <iostream>
      #include <math.h>
      #include <iomanip>
      using namespace std;
      int main()
      {
      	int n;
      	cin>>n;
      	if(n % 3 == 0 && n % 5 == 0)
      	{
      		cout<<"YES";
      	}
      	else
      	{
      		cout<<"NO";
      	}
      }
      

      Copy *

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

    信息

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