結果

問題 No.3008 某マヨネーズの網目柄
ユーザー gemmarogemmaro
提出日時 2020-05-01 15:09:37
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 129 bytes
コンパイル時間 346 ms
コンパイル使用メモリ 11,508 KB
実行使用メモリ 15,332 KB
最終ジャッジ日時 2023-08-25 19:11:36
合計ジャッジ時間 3,635 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
15,240 KB
testcase_01 AC 76 ms
15,228 KB
testcase_02 AC 72 ms
15,100 KB
testcase_03 WA -
testcase_04 AC 75 ms
15,148 KB
testcase_05 AC 72 ms
15,012 KB
testcase_06 AC 70 ms
15,260 KB
testcase_07 WA -
testcase_08 AC 70 ms
15,200 KB
testcase_09 AC 70 ms
15,228 KB
testcase_10 WA -
testcase_11 AC 73 ms
15,040 KB
testcase_12 AC 73 ms
15,128 KB
testcase_13 WA -
testcase_14 AC 70 ms
15,084 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 72 ms
15,020 KB
testcase_18 AC 73 ms
15,152 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 73 ms
15,212 KB
testcase_22 AC 72 ms
15,312 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

# frozen_string_literal: true

def solve
  N.odd? == M.odd? ? [N, M].min : 1
end

N, M = gets.chomp.split.map(&:to_i)

puts solve
0