2 条题解

  • 1
    @ 2026-5-23 15:34:47

    #include <bits/stdc++.h> using namespace std;

    int main() { long long n; cin >> n; if (n % 3 == 0 && n % 5 == 0) { cout << "YES"; } else { cout << "NO"; } return 0; }

    • 1
      @ 2026-5-23 11:39:12

      #include <bits/stdc++.h> using namespace std;

      int main() { int n; cin >> n; if (n%3==0) { cout << "YES"; } else { cout << "NO"; } return 0; }

      • @ 2026-5-23 11:41:13

        这个是错的,对的是 #include <bits/stdc++.h> using namespace std;

        int main() { int n; cin >> n; if (n%30&&n%50) { cout << "YES"; } else { cout << "NO"; } return 0; }

    • 1

    信息

    ID
    30928
    时间
    1000ms
    内存
    256MiB
    难度
    4
    标签
    (无)
    递交数
    75
    已通过
    32
    上传者