結果
| 問題 | No.680 作れる数 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2022-02-23 22:29:28 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 43 ms / 2,000 ms | 
| コード長 | 157 bytes | 
| コンパイル時間 | 572 ms | 
| コンパイル使用メモリ | 82,560 KB | 
| 実行使用メモリ | 51,968 KB | 
| 最終ジャッジ日時 | 2024-07-01 22:58:22 | 
| 合計ジャッジ時間 | 2,410 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 20 | 
ソースコード
N = int(input())
import sys
q = (N + 1) // 2
for t in range(q,q + 31):
    if 2 * t - bin(t).count('1') == N:
        print('YES')
        exit()
print('NO')
            
            
            
        