結果
| 問題 |
No.1298 OR XOR
|
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2020-11-27 21:43:10 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 267 bytes |
| コンパイル時間 | 309 ms |
| コンパイル使用メモリ | 82,308 KB |
| 実行使用メモリ | 53,948 KB |
| 最終ジャッジ日時 | 2024-07-26 12:04:37 |
| 合計ジャッジ時間 | 2,399 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 6 WA * 7 |
ソースコード
N = int(input())
NBIT = N
cnt = 0
A = 0
B = 0
while NBIT:
if NBIT & 1 == 1:
cnt+=1
if cnt % 2==0:
A+=1
else:
B+=1
A <<= 1
B <<= 1
NBIT >>= 1
if cnt%2==1:
print(-1,-1,-1)
else:
print(N,A>>1,B>>1)
H20