結果
| 問題 | No.638 Sum of "not power of 2" |
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2020-11-22 06:31:46 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 1,000 ms |
| コード長 | 158 bytes |
| 記録 | |
| コンパイル時間 | 136 ms |
| コンパイル使用メモリ | 85,016 KB |
| 実行使用メモリ | 52,068 KB |
| 最終ジャッジ日時 | 2026-04-03 15:10:58 |
| 合計ジャッジ時間 | 1,009 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
ソースコード
n = int(input())
s = {1<<i for i in range(62)}
for i in range(1,n):
if i not in s and n-i not in s:
print(i,n-i)
break
else:
print(-1)
convexineq