結果

問題 No.1816 MUL-DIV Game
ユーザー marroncastlemarroncastle
提出日時 2022-01-21 22:13:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 111 ms / 2,000 ms
コード長 181 bytes
コンパイル時間 1,435 ms
コンパイル使用メモリ 86,492 KB
実行使用メモリ 91,000 KB
最終ジャッジ日時 2023-08-17 06:21:05
合計ジャッジ時間 4,718 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,116 KB
testcase_01 AC 70 ms
71,044 KB
testcase_02 AC 71 ms
71,128 KB
testcase_03 AC 70 ms
71,316 KB
testcase_04 AC 70 ms
70,988 KB
testcase_05 AC 69 ms
70,824 KB
testcase_06 AC 69 ms
70,972 KB
testcase_07 AC 70 ms
71,040 KB
testcase_08 AC 70 ms
71,332 KB
testcase_09 AC 78 ms
75,460 KB
testcase_10 AC 86 ms
80,656 KB
testcase_11 AC 85 ms
79,916 KB
testcase_12 AC 81 ms
78,116 KB
testcase_13 AC 93 ms
84,024 KB
testcase_14 AC 83 ms
78,836 KB
testcase_15 AC 87 ms
80,812 KB
testcase_16 AC 77 ms
75,480 KB
testcase_17 AC 108 ms
88,552 KB
testcase_18 AC 103 ms
87,252 KB
testcase_19 AC 89 ms
80,036 KB
testcase_20 AC 108 ms
88,828 KB
testcase_21 AC 86 ms
78,200 KB
testcase_22 AC 83 ms
77,164 KB
testcase_23 AC 71 ms
71,080 KB
testcase_24 AC 69 ms
71,144 KB
testcase_25 AC 109 ms
91,000 KB
testcase_26 AC 110 ms
90,808 KB
testcase_27 AC 108 ms
90,820 KB
testcase_28 AC 111 ms
90,880 KB
testcase_29 AC 111 ms
90,860 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==1:
    print(1)
else:
    print(min(A[0]*A[1],A[2]))
0