結果
| 問題 |
No.1298 OR XOR
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-11-27 21:27:49 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 2,000 ms |
| コード長 | 159 bytes |
| コンパイル時間 | 302 ms |
| コンパイル使用メモリ | 82,056 KB |
| 実行使用メモリ | 53,164 KB |
| 最終ジャッジ日時 | 2024-07-23 22:04:32 |
| 合計ジャッジ時間 | 1,649 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 13 |
ソースコード
N = int(input())
A = N
p = 0
while True:
if (N>>p)%2==1:
B = 1<<p
if A==B:
print(-1,-1,-1)
exit()
break
p += 1
C = A^B
print(A,B,C)