結果

問題 No.1298 OR XOR
ユーザー ch1channnch1channn
提出日時 2023-01-27 01:24:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 485 bytes
コンパイル時間 404 ms
コンパイル使用メモリ 87,168 KB
実行使用メモリ 71,392 KB
最終ジャッジ日時 2023-09-09 22:42:49
合計ジャッジ時間 2,415 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,328 KB
testcase_01 AC 71 ms
71,392 KB
testcase_02 AC 70 ms
71,152 KB
testcase_03 AC 71 ms
71,236 KB
testcase_04 AC 71 ms
71,360 KB
testcase_05 AC 72 ms
71,212 KB
testcase_06 AC 70 ms
71,020 KB
testcase_07 AC 70 ms
71,360 KB
testcase_08 AC 71 ms
71,380 KB
testcase_09 AC 72 ms
71,240 KB
testcase_10 AC 71 ms
71,156 KB
testcase_11 AC 71 ms
71,364 KB
testcase_12 AC 70 ms
71,352 KB
testcase_13 AC 71 ms
71,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
if sys.platform =='ios':
	import clipboard
	a=clipboard.get()
	a = a.split('\n')
	text = '\n'.join(a)
	with open('input_file.txt','w') as f:
		f.write(text)
	sys.stdin = open('input_file.txt')
sys.setrecursionlimit(4100000)
stdin = sys.stdin 
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().strip()
nm = lambda: map(int,input().split())

N = ni()
if N == N & -N:
	print(-1,-1,-1)
else:
	print(N,N & -N,N ^ (N & -N))
0