結果

問題 No.1298 OR XOR
ユーザー shakayamishakayami
提出日時 2020-11-27 21:23:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 214 bytes
コンパイル時間 1,372 ms
コンパイル使用メモリ 86,940 KB
実行使用メモリ 71,532 KB
最終ジャッジ日時 2023-10-01 04:31:48
合計ジャッジ時間 2,999 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,468 KB
testcase_01 AC 72 ms
71,452 KB
testcase_02 AC 71 ms
71,420 KB
testcase_03 AC 71 ms
71,064 KB
testcase_04 AC 72 ms
71,420 KB
testcase_05 AC 71 ms
71,528 KB
testcase_06 AC 69 ms
71,392 KB
testcase_07 AC 69 ms
71,316 KB
testcase_08 AC 71 ms
71,192 KB
testcase_09 AC 73 ms
71,452 KB
testcase_10 AC 74 ms
71,292 KB
testcase_11 AC 71 ms
71,288 KB
testcase_12 AC 70 ms
71,124 KB
testcase_13 AC 72 ms
71,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
X=[0,0,0]
cnt=0
for i in range(32):
    if (N>>i)&1:
        for j in range(3):
            X[j]|=(1<<i)
        X[cnt%3]^=(1<<i)
        cnt+=1
if min(X)==0:
    print(-1,-1,-1)
else:
    print(*X)
0