結果

問題 No.1816 MUL-DIV Game
ユーザー maguroflymagurofly
提出日時 2022-01-21 21:51:11
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 151 bytes
コンパイル時間 424 ms
コンパイル使用メモリ 11,420 KB
実行使用メモリ 23,704 KB
最終ジャッジ日時 2023-08-17 05:41:59
合計ジャッジ時間 4,570 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,056 KB
testcase_01 AC 85 ms
15,032 KB
testcase_02 AC 83 ms
15,232 KB
testcase_03 AC 84 ms
15,156 KB
testcase_04 AC 82 ms
15,128 KB
testcase_05 AC 82 ms
15,032 KB
testcase_06 AC 82 ms
15,080 KB
testcase_07 AC 82 ms
15,144 KB
testcase_08 AC 83 ms
15,288 KB
testcase_09 AC 87 ms
15,320 KB
testcase_10 AC 102 ms
18,020 KB
testcase_11 AC 100 ms
17,772 KB
testcase_12 AC 97 ms
17,156 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 126 ms
21,900 KB
testcase_27 WA -
testcase_28 AC 127 ms
22,144 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.sort[1]
end
0