結果

問題 No.1298 OR XOR
ユーザー c-yanc-yan
提出日時 2020-11-27 21:25:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 171 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 10,616 KB
実行使用メモリ 7,940 KB
最終ジャッジ日時 2023-10-01 04:34:18
合計ジャッジ時間 2,863 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

N = int(input())

if str(N).count('1') == 1:
    print(-1, -1, -1)
else:
    print(N, int(str(N).replace('1', '0', 1), 2), int(str(N)[::-1].replace('1', '0', 1)[::1], 2))
0