結果
| 問題 |
No.1298 OR XOR
|
| ユーザー |
|
| 提出日時 | 2020-11-28 00:05:47 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 90 ms / 2,000 ms |
| コード長 | 136 bytes |
| コンパイル時間 | 601 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-07-26 20:39:23 |
| 合計ジャッジ時間 | 3,109 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 13 |
コンパイルメッセージ
Syntax OK
ソースコード
n = gets.to_s.to_i
t = n
t /= 2 while t.even?
if t == 1
puts "-1 -1 -1"
exit
end
c = n
a = n & -n
b = a ^ c
puts "#{a} #{b} #{c}"