結果
| 問題 | No.1298 OR XOR |
| コンテスト | |
| ユーザー |
Kude
|
| 提出日時 | 2020-11-27 21:25:29 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 64 ms / 2,000 ms |
| + 432µs | |
| コード長 | 208 bytes |
| 記録 | |
| コンパイル時間 | 234 ms |
| コンパイル使用メモリ | 96,112 KB |
| 実行使用メモリ | 78,848 KB |
| 最終ジャッジ日時 | 2026-08-24 08:57:09 |
| 合計ジャッジ時間 | 2,250 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_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