結果
| 問題 |
No.1298 OR XOR
|
| コンテスト | |
| ユーザー |
trineutron
|
| 提出日時 | 2020-11-27 21:25:38 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 177 bytes |
| コンパイル時間 | 82 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-07-23 21:57:58 |
| 合計ジャッジ時間 | 2,253 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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