結果

問題 No.1298 OR XOR
ユーザー persimmon-persimmonpersimmon-persimmon
提出日時 2021-02-15 10:59:43
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 169 bytes
コンパイル時間 834 ms
コンパイル使用メモリ 87,148 KB
実行使用メモリ 71,648 KB
最終ジャッジ日時 2023-09-30 04:48:03
合計ジャッジ時間 3,919 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 76 ms
71,576 KB
testcase_02 AC 78 ms
71,304 KB
testcase_03 AC 76 ms
71,584 KB
testcase_04 AC 76 ms
71,444 KB
testcase_05 AC 74 ms
71,508 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
ary=[]
for i in range(31):
  if (n>>i)&1:ary.append(i)
if len(ary)==1:
  print(-1,-1,-1)
else:
  a=n^(1<<ary[0])
  b=n^(a<<ary[1])
  c=a^b
  print(a,b,c)
0