結果
問題 | No.638 Sum of "not power of 2" |
ユーザー |
![]() |
提出日時 | 2020-06-03 19:51:32 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 40 ms / 1,000 ms |
コード長 | 351 bytes |
コンパイル時間 | 181 ms |
コンパイル使用メモリ | 82,220 KB |
実行使用メモリ | 53,280 KB |
最終ジャッジ日時 | 2024-11-25 09:07:15 |
合計ジャッジ時間 | 1,211 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 12 |
ソースコード
mod = 1000000007 eps = 10**-9 def main(): import sys input = sys.stdin.readline N = int(input()) A = set() for i in range(100): A.add(1<<i) for a in range(1, N): b = N - a if a not in A and b not in A: print(a, b) exit() print(-1) if __name__ == '__main__': main()