結果
問題 |
No.638 Sum of "not power of 2"
|
ユーザー |
![]() |
提出日時 | 2020-11-22 06:30:56 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 154 bytes |
コンパイル時間 | 397 ms |
コンパイル使用メモリ | 82,220 KB |
実行使用メモリ | 52,480 KB |
最終ジャッジ日時 | 2024-07-23 16:17:54 |
合計ジャッジ時間 | 1,635 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 5 WA * 7 |
ソースコード
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) break else: print(-1)