結果

問題 No.1816 MUL-DIV Game
ユーザー 👑 H20H20
提出日時 2022-01-21 22:39:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 206 bytes
コンパイル時間 250 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 84,864 KB
最終ジャッジ日時 2024-05-04 13:52:53
合計ジャッジ時間 3,050 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
53,376 KB
testcase_01 AC 46 ms
53,376 KB
testcase_02 AC 45 ms
53,504 KB
testcase_03 AC 44 ms
53,760 KB
testcase_04 AC 45 ms
53,248 KB
testcase_05 AC 46 ms
53,632 KB
testcase_06 AC 41 ms
53,376 KB
testcase_07 AC 42 ms
53,376 KB
testcase_08 AC 41 ms
53,632 KB
testcase_09 AC 47 ms
61,184 KB
testcase_10 AC 55 ms
69,760 KB
testcase_11 AC 54 ms
68,608 KB
testcase_12 AC 52 ms
66,176 KB
testcase_13 AC 68 ms
74,880 KB
testcase_14 AC 58 ms
67,584 KB
testcase_15 AC 62 ms
70,144 KB
testcase_16 AC 49 ms
61,952 KB
testcase_17 AC 85 ms
80,896 KB
testcase_18 AC 74 ms
79,104 KB
testcase_19 AC 58 ms
68,864 KB
testcase_20 AC 75 ms
81,408 KB
testcase_21 AC 56 ms
66,688 KB
testcase_22 AC 54 ms
65,152 KB
testcase_23 AC 42 ms
53,376 KB
testcase_24 AC 42 ms
53,120 KB
testcase_25 AC 86 ms
84,864 KB
testcase_26 AC 69 ms
83,328 KB
testcase_27 AC 84 ms
84,608 KB
testcase_28 AC 69 ms
83,456 KB
testcase_29 AC 88 ms
84,736 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

0