結果
問題 |
No.638 Sum of "not power of 2"
|
ユーザー |
|
提出日時 | 2022-02-24 23:29:29 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 44 ms / 1,000 ms |
コード長 | 247 bytes |
コンパイル時間 | 174 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 51,840 KB |
最終ジャッジ日時 | 2024-07-02 14:15:15 |
合計ジャッジ時間 | 1,520 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 12 |
ソースコード
N = int(input()) ans = -1 set2 = set() i = 1 while i <= 10**18: set2.add(i) i *= 2 for i in [3,5,7,9,10,11,12,13,14,15]: a = i b = N-a if b <= 0: break if not b in set2: print(a,b) exit() print(ans)