結果
| 問題 |
No.1298 OR XOR
|
| コンテスト | |
| ユーザー |
nehan_der_thal
|
| 提出日時 | 2020-11-27 21:26:03 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 2,000 ms |
| コード長 | 154 bytes |
| コンパイル時間 | 653 ms |
| コンパイル使用メモリ | 82,436 KB |
| 実行使用メモリ | 53,636 KB |
| 最終ジャッジ日時 | 2024-07-23 22:00:05 |
| 合計ジャッジ時間 | 1,572 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 13 |
ソースコード
N, = map(int, input().split())
d = 0
for c in bin(N):
if c == "1":
d += 1
if d == 1:
print(-1, -1, -1)
else:
print(N&-N, N-(N&-N), N)
nehan_der_thal