結果

問題 No.1816 MUL-DIV Game
ユーザー nok0nok0
提出日時 2022-01-16 23:03:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 232 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 83,200 KB
最終ジャッジ日時 2024-05-02 18:50:39
合計ジャッジ時間 2,640 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
51,712 KB
testcase_01 AC 34 ms
51,840 KB
testcase_02 AC 33 ms
51,968 KB
testcase_03 AC 33 ms
51,968 KB
testcase_04 AC 34 ms
51,968 KB
testcase_05 AC 33 ms
52,224 KB
testcase_06 AC 32 ms
51,968 KB
testcase_07 AC 36 ms
51,968 KB
testcase_08 AC 34 ms
51,840 KB
testcase_09 AC 41 ms
59,776 KB
testcase_10 AC 55 ms
68,608 KB
testcase_11 AC 53 ms
67,584 KB
testcase_12 AC 49 ms
64,896 KB
testcase_13 AC 60 ms
72,960 KB
testcase_14 AC 50 ms
66,176 KB
testcase_15 AC 53 ms
68,736 KB
testcase_16 AC 41 ms
60,416 KB
testcase_17 AC 72 ms
79,104 KB
testcase_18 AC 72 ms
77,568 KB
testcase_19 AC 55 ms
67,584 KB
testcase_20 AC 71 ms
79,360 KB
testcase_21 AC 48 ms
65,408 KB
testcase_22 AC 46 ms
63,232 KB
testcase_23 AC 35 ms
51,840 KB
testcase_24 AC 34 ms
51,968 KB
testcase_25 AC 75 ms
83,072 KB
testcase_26 AC 74 ms
83,072 KB
testcase_27 AC 74 ms
82,688 KB
testcase_28 AC 74 ms
83,200 KB
testcase_29 AC 76 ms
83,072 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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