結果
| 問題 | No.1298 OR XOR |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-11-27 21:24:38 |
| 言語 | Python3 (3.15.2 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 17 ms / 2,000 ms |
| + 188µs | |
| コード長 | 149 bytes |
| 記録 | |
| コンパイル時間 | 56 ms |
| コンパイル使用メモリ | 14,720 KB |
| 実行使用メモリ | 10,112 KB |
| 最終ジャッジ日時 | 2026-11-16 21:17:10 |
| 合計ジャッジ時間 | 1,977 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 15 |
ソースコード
N = int(input())
if bin(N).count('1') <= 1:
print(-1, -1, -1)
exit()
i = 0
while not (N >> i) & 1:
i += 1
print(N, 1 << i, N - (1 << i))