結果
| 問題 |
No.1298 OR XOR
|
| コンテスト | |
| ユーザー |
kazu_ey
|
| 提出日時 | 2020-11-27 21:48:07 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 352 bytes |
| コンパイル時間 | 367 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 148,768 KB |
| 最終ジャッジ日時 | 2024-07-26 12:12:46 |
| 合計ジャッジ時間 | 5,477 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 4 TLE * 1 -- * 8 |
ソースコード
n=int(input())
if n==1:
print(-1,-1,-1,sep=" ")
elif n%2!=0:
print(n,n-1,1,sep=" ")
else:
lst=[2**i for i in range(1,n+1)]
if n in lst:
print(-1,-1,-1,sep=" ")
else:
for i in range(n):
if n>>i&1:
t=i
break
n2=n^(1<<t)
n3=1<<t
print(n,n2,n3,sep=" ")
kazu_ey