1 条题解

  • 0

    #include <iostream>
    #include <unordered_set>
    using namespace std;
    int main()
    {
    unordered_set<long long> perfect_nums = {6, 28, 496, 8128, 33550336, 8589869056};
    long long x;
    for (int i=1;i<=5;i++)
    {
    cin >> x;
    cout << (perfect_nums.count(x) ? "Y" : "N");
    }
    return 0;
    }

  • 1

信息

ID
1782
难度
8
分类
(无)
标签
递交数
210
已通过
24
通过率
11%
被复制
5
上传者