結果

問題 No.1816 MUL-DIV Game
ユーザー pluto77pluto77
提出日時 2022-02-04 11:09:38
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 171 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 10,524 KB
実行使用メモリ 18,920 KB
最終ジャッジ日時 2023-09-02 03:28:52
合計ジャッジ時間 2,591 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,832 KB
testcase_01 AC 16 ms
7,752 KB
testcase_02 AC 16 ms
7,788 KB
testcase_03 AC 15 ms
7,960 KB
testcase_04 AC 16 ms
7,848 KB
testcase_05 AC 16 ms
7,756 KB
testcase_06 AC 16 ms
7,844 KB
testcase_07 AC 15 ms
7,896 KB
testcase_08 AC 16 ms
7,892 KB
testcase_09 AC 20 ms
9,156 KB
testcase_10 AC 38 ms
13,012 KB
testcase_11 AC 36 ms
12,556 KB
testcase_12 AC 31 ms
11,224 KB
testcase_13 AC 48 ms
14,756 KB
testcase_14 AC 32 ms
11,768 KB
testcase_15 AC 38 ms
13,020 KB
testcase_16 AC 20 ms
9,296 KB
testcase_17 AC 61 ms
17,088 KB
testcase_18 AC 56 ms
16,396 KB
testcase_19 AC 35 ms
12,476 KB
testcase_20 AC 61 ms
17,240 KB
testcase_21 AC 30 ms
11,244 KB
testcase_22 AC 27 ms
10,628 KB
testcase_23 AC 15 ms
7,820 KB
testcase_24 AC 16 ms
7,848 KB
testcase_25 AC 69 ms
18,836 KB
testcase_26 AC 70 ms
18,760 KB
testcase_27 AC 70 ms
18,812 KB
testcase_28 AC 68 ms
18,880 KB
testcase_29 AC 70 ms
18,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki1816
n=int(input())
a=sorted(list(map(int,input().split())))
if n==1:
 print(a[0])
elif n==2:
 print(a[0]*a[1])
elif n%2:
 print(1)
else:
 print(min(a[0]*a[1],a[2]))
0