結果

問題 No.816 Beautiful tuples
ユーザー pekempeypekempey
提出日時 2019-04-19 21:31:59
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 107 bytes
コンパイル時間 580 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 16,132 KB
最終ジャッジ日時 2023-10-23 23:38:44
合計ジャッジ時間 3,320 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 84 ms
16,124 KB
testcase_02 AC 86 ms
16,124 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 86 ms
16,124 KB
testcase_08 AC 85 ms
16,124 KB
testcase_09 AC 86 ms
16,124 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 87 ms
16,124 KB
testcase_13 AC 86 ms
16,124 KB
testcase_14 AC 85 ms
16,124 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a, b = gets.split.map(&:to_i)
if a > b
  a, b = b, a
end

if 3*a == b
  puts "#{2*a}"
else
  puts "-1"
end
0