結果
| 問題 | No.2795 Perfect Number | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2024-06-28 21:55:53 | 
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 261 bytes | 
| コンパイル時間 | 1,290 ms | 
| コンパイル使用メモリ | 96,712 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-06-28 21:55:55 | 
| 合計ジャッジ時間 | 2,393 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 34 WA * 1 | 
ソースコード
#include <iostream>
#include <array>
#include <algorithm>
constexpr std::array<int64_t, 6> a = {6, 28, 496, 8128, 33550336, 8589869056};
int main() {
    int64_t n;
    std::cin >> n;
    std::cout << (std::ranges::binary_search(a, n) ? "Yes" : "No") << '\n';
}
            
            
            
        