結果
| 問題 |
No.1298 OR XOR
|
| コンテスト | |
| ユーザー |
wolgnik
|
| 提出日時 | 2020-11-27 21:25:29 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 2,000 ms |
| コード長 | 210 bytes |
| コンパイル時間 | 477 ms |
| コンパイル使用メモリ | 82,368 KB |
| 実行使用メモリ | 53,552 KB |
| 最終ジャッジ日時 | 2024-07-23 21:57:35 |
| 合計ジャッジ時間 | 1,899 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 13 |
ソースコード
import sys
input = sys.stdin.readline
N = int(input())
a = N
b = 0
c = 0
for i in range(31):
if N & (1 << i):
b = 1 << i
c = N - b
break
if min(a, b, c) > 0: print(a, b, c)
else: print(-1, -1, -1)
wolgnik