結果
| 問題 | No.1298 OR XOR |
| コンテスト | |
| ユーザー |
trineutron
|
| 提出日時 | 2020-11-27 21:25:38 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 177 bytes |
| 記録 | |
| コンパイル時間 | 796 ms |
| コンパイル使用メモリ | 20,952 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-04-03 16:32:49 |
| 合計ジャッジ時間 | 3,243 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | AC * 5 WA * 8 |
ソースコード
n = int(input())
x = 1
s = []
while x <= n:
if n & x:
n -= x
s.append(x)
x *= 2
if len(s) == 1:
print(-1, -1, -1)
else:
print(s[0], n - s[0], n)
trineutron