結果
| 問題 | No.1298 OR XOR |
| コンテスト | |
| ユーザー |
Kude
|
| 提出日時 | 2020-11-27 21:25:29 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 2,000 ms |
| コード長 | 208 bytes |
| 記録 | |
| コンパイル時間 | 128 ms |
| コンパイル使用メモリ | 85,504 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2026-04-03 16:32:45 |
| 合計ジャッジ時間 | 1,225 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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