結果
| 問題 | No.1298 OR XOR |
| コンテスト | |
| ユーザー |
Kude
|
| 提出日時 | 2020-11-27 21:25:29 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 35 ms / 2,000 ms |
| + 947µs | |
| コード長 | 208 bytes |
| 記録 | |
| コンパイル時間 | 88 ms |
| コンパイル使用メモリ | 64,560 KB |
| 実行使用メモリ | 53,580 KB |
| 最終ジャッジ日時 | 2026-11-16 21:17:41 |
| 合計ジャッジ時間 | 2,126 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 15 |
ソースコード
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