結果

問題 No.1816 MUL-DIV Game
ユーザー maguroflymagurofly
提出日時 2022-01-21 21:48:39
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 147 bytes
コンパイル時間 390 ms
コンパイル使用メモリ 11,288 KB
実行使用メモリ 22,148 KB
最終ジャッジ日時 2023-08-17 05:36:56
合計ジャッジ時間 5,530 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,092 KB
testcase_01 AC 86 ms
15,136 KB
testcase_02 AC 84 ms
15,064 KB
testcase_03 AC 84 ms
15,088 KB
testcase_04 AC 85 ms
15,164 KB
testcase_05 AC 85 ms
15,088 KB
testcase_06 AC 84 ms
15,288 KB
testcase_07 AC 85 ms
15,028 KB
testcase_08 AC 86 ms
15,284 KB
testcase_09 AC 88 ms
15,292 KB
testcase_10 AC 102 ms
18,032 KB
testcase_11 AC 102 ms
17,612 KB
testcase_12 AC 97 ms
16,988 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 130 ms
22,020 KB
testcase_27 WA -
testcase_28 AC 129 ms
22,032 KB
testcase_29 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N = gets.to_i
A = gets.split.map(&:to_i)

if N == 1
    puts A[0]
elsif N == 2
    puts A[0] * A[1]
elsif N.odd?
    puts 1
else
    puts A.min
end
0