結果
問題 |
No.638 Sum of "not power of 2"
|
ユーザー |
|
提出日時 | 2018-03-03 12:16:01 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 1,000 ms |
コード長 | 133 bytes |
コンパイル時間 | 187 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-06-23 21:32:59 |
合計ジャッジ時間 | 1,213 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 12 |
ソースコード
n=int(input()) v=(-1) for i in range(n): if '1' in bin(i)[3:] and '1' in bin(n-i)[3:]: v=str(i)+' '+str(n-i) break print(v)