結果
問題 | No.638 Sum of "not power of 2" |
ユーザー |
![]() |
提出日時 | 2020-04-12 11:42:41 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 48 ms / 1,000 ms |
コード長 | 195 bytes |
コンパイル時間 | 1,962 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 51,968 KB |
最終ジャッジ日時 | 2024-09-22 02:18:07 |
合計ジャッジ時間 | 1,752 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 12 |
ソースコード
N=int(input()) if N<=5: print(-1) else: if N==7: print(-1) else: v=N-3 if v&(v-1)!=0: print(' '.join([str(3),str(N-3)])) else: print(' '.join([str(5),str(N-5)]))