結果
問題 |
No.638 Sum of "not power of 2"
|
ユーザー |
![]() |
提出日時 | 2023-07-06 07:29:11 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 45 ms / 1,000 ms |
コード長 | 193 bytes |
コンパイル時間 | 194 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 51,968 KB |
最終ジャッジ日時 | 2024-07-20 02:32:09 |
合計ジャッジ時間 | 1,473 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 12 |
ソースコード
N = int(input()) pow2_set = set([2**i for i in range(70)]) if N <= 5 or N == 7: print(-1) exit() for a in range(1,N): if not {a,N-a} & pow2_set: print(a,N-a) exit()