結果
| 問題 |
No.1298 OR XOR
|
| コンテスト | |
| ユーザー |
game_krb
|
| 提出日時 | 2020-12-28 18:03:07 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 278 bytes |
| コンパイル時間 | 205 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 15,872 KB |
| 最終ジャッジ日時 | 2024-10-03 08:48:39 |
| 合計ジャッジ時間 | 4,431 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | AC * 5 TLE * 1 -- * 7 |
ソースコード
n = int(input())
a = n
b = -1
c = -1
if str(bin(a)).count('1') >= 3:
for i in range(0,a):
if a & 1<<i and b != -1:
c = 1<<i
elif a & 1 << i and b == -1:
b = 1<<i
if b==-1 or c==-1:
print("-1 -1 -1")
else:
print(a,b,c)
game_krb