結果
問題 |
No.638 Sum of "not power of 2"
|
ユーザー |
|
提出日時 | 2018-01-30 15:15:01 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 192 bytes |
コンパイル時間 | 737 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 52,224 KB |
最終ジャッジ日時 | 2024-12-30 02:56:49 |
合計ジャッジ時間 | 1,837 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 WA * 1 |
ソースコード
import math n = int(input()) for i in range(1, n//2+1): if math.frexp(i)[0] == 0.5: continue elif math.frexp(n-i)[0] != 0.5: print(i, n-i) exit() print('-1')