結果
| 問題 | No.1298 OR XOR |
| コンテスト | |
| ユーザー |
wolgnik
|
| 提出日時 | 2020-11-27 21:25:29 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 25 ms / 2,000 ms |
| コード長 | 210 bytes |
| 記録 | |
| コンパイル時間 | 234 ms |
| コンパイル使用メモリ | 84,848 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2026-04-03 16:32:38 |
| 合計ジャッジ時間 | 1,179 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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