結果
| 問題 |
No.1298 OR XOR
|
| コンテスト | |
| ユーザー |
Kude
|
| 提出日時 | 2020-11-27 21:25:29 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 2,000 ms |
| コード長 | 208 bytes |
| コンパイル時間 | 342 ms |
| コンパイル使用メモリ | 82,260 KB |
| 実行使用メモリ | 53,728 KB |
| 最終ジャッジ日時 | 2024-07-23 21:57:47 |
| 合計ジャッジ時間 | 1,496 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 13 |
ソースコード
n = int(input())
a, b, c = 0, 0, 0
for d in range(31, -1, -1):
if n >> d & 1:
a |= 1 << d
b |= 1 << d
a, b, c = b, c, a
if 0 in (a, b, c):
a, b, c = -1, -1, -1
print(a, b, c)
Kude