結果
| 問題 | No.680 作れる数 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-23 22:29:28 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 2,000 ms |
| コード長 | 157 bytes |
| 記録 | |
| コンパイル時間 | 301 ms |
| コンパイル使用メモリ | 84,992 KB |
| 実行使用メモリ | 52,096 KB |
| 最終ジャッジ日時 | 2026-03-23 02:18:27 |
| 合計ジャッジ時間 | 1,726 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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')