結果
| 問題 |
No.680 作れる数
|
| コンテスト | |
| ユーザー |
maspy
|
| 提出日時 | 2020-02-27 02:05:39 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 2,000 ms |
| コード長 | 355 bytes |
| コンパイル時間 | 107 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,496 KB |
| 最終ジャッジ日時 | 2024-10-13 15:41:17 |
| 合計ジャッジ時間 | 1,382 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
#!/usr/bin/env python3
# %%
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
# %%
N = int(read())
# %%
def can_make(s, t):
while t:
s -= t
t //= 2
return s == 0
# %%
answer = 'YES' if any(can_make(N, N // 2 + i) for i in range(100)) else 'NO'
print(answer)
maspy