結果
| 問題 |
No.1298 OR XOR
|
| コンテスト | |
| ユーザー |
rlangevin
|
| 提出日時 | 2024-07-04 08:55:35 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 41 ms / 2,000 ms |
| コード長 | 275 bytes |
| コンパイル時間 | 133 ms |
| コンパイル使用メモリ | 82,508 KB |
| 実行使用メモリ | 53,912 KB |
| 最終ジャッジ日時 | 2024-07-04 08:55:37 |
| 合計ジャッジ時間 | 1,652 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 13 |
ソースコード
N = int(input())
ans = [0, 0, 0]
cnt = 0
for i in range(65):
if (N >> i) & 1:
ans[0] += 1 << i
if cnt % 2:
ans[1] += 1 << i
else:
ans[2] += 1 << i
cnt += 1
print(*ans) if 0 not in ans else print(-1, -1, -1)
rlangevin