結果
問題 | No.638 Sum of "not power of 2" |
ユーザー |
|
提出日時 | 2020-12-05 20:04:35 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 40 ms / 1,000 ms |
コード長 | 234 bytes |
コンパイル時間 | 320 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 51,840 KB |
最終ジャッジ日時 | 2024-09-16 00:43:19 |
合計ジャッジ時間 | 1,391 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 12 |
ソースコード
N = int(input()) if N < 6 or N == 7: print(-1) else: if bin(N - 3).count('1') != 1: print(3, N - 3) elif bin(N - 5).count('1') != 1: print(5, N - 5) else: print(6, N - 6)