結果

問題 No.581 XOR
ユーザー tanukidontanukidon
提出日時 2018-03-23 08:25:28
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 51 bytes
コンパイル時間 62 ms
コンパイル使用メモリ 11,436 KB
実行使用メモリ 15,412 KB
最終ジャッジ日時 2023-09-07 02:19:22
合計ジャッジ時間 1,569 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,036 KB
testcase_01 AC 79 ms
15,108 KB
testcase_02 AC 82 ms
15,160 KB
testcase_03 AC 80 ms
15,224 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 79 ms
15,220 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:2: warning: `-' after local variable or literal is interpreted as binary operator
Main.rb:2: warning: even though it seems like unary operator
Syntax OK

ソースコード

diff #

n = gets.chomp.split.map(&:to_i)
p (n[1] -n[0]).abs
0