結果
| 問題 | No.680 作れる数 | 
| コンテスト | |
| ユーザー |  vjudge1 | 
| 提出日時 | 2025-09-20 18:38:15 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 599 bytes | 
| コンパイル時間 | 1,324 ms | 
| コンパイル使用メモリ | 155,836 KB | 
| 実行使用メモリ | 15,944 KB | 
| 最終ジャッジ日時 | 2025-09-20 18:38:24 | 
| 合計ジャッジ時間 | 8,195 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | WA * 8 OLE * 2 -- * 10 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define int ll
signed main()
{
    // freopen("gen.in", "r", stdin);
    // freopen("gen.out", "w", stdout);
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    int T;
    cin >> T;
    while (T--)
    {
        int n;
        cin >> n;
        bool f = 1;
        for (int i = 30; i >= 0; i--)
        {
            if (i == __builtin_popcount(n + i))
            {
                puts("YES");
                f = 0;
                break;
            }
        }
        if (f)
            puts("NO");
    }
}
            
            
            
        