結果

問題 No.1816 MUL-DIV Game
ユーザー warabi0906warabi0906
提出日時 2023-05-09 21:12:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 104 ms / 2,000 ms
コード長 141 bytes
コンパイル時間 291 ms
コンパイル使用メモリ 87,056 KB
実行使用メモリ 92,288 KB
最終ジャッジ日時 2023-08-17 10:32:27
合計ジャッジ時間 4,002 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,260 KB
testcase_01 AC 65 ms
71,376 KB
testcase_02 AC 66 ms
71,448 KB
testcase_03 AC 69 ms
71,352 KB
testcase_04 AC 66 ms
71,248 KB
testcase_05 AC 66 ms
71,200 KB
testcase_06 AC 65 ms
71,216 KB
testcase_07 AC 66 ms
71,464 KB
testcase_08 AC 65 ms
71,588 KB
testcase_09 AC 70 ms
75,836 KB
testcase_10 AC 83 ms
81,360 KB
testcase_11 AC 81 ms
80,496 KB
testcase_12 AC 76 ms
78,892 KB
testcase_13 AC 89 ms
84,764 KB
testcase_14 AC 80 ms
79,448 KB
testcase_15 AC 83 ms
81,716 KB
testcase_16 AC 71 ms
75,676 KB
testcase_17 AC 96 ms
89,592 KB
testcase_18 AC 95 ms
88,128 KB
testcase_19 AC 81 ms
80,532 KB
testcase_20 AC 99 ms
89,692 KB
testcase_21 AC 78 ms
78,760 KB
testcase_22 AC 76 ms
77,728 KB
testcase_23 AC 65 ms
71,576 KB
testcase_24 AC 67 ms
71,264 KB
testcase_25 AC 103 ms
92,044 KB
testcase_26 AC 104 ms
92,288 KB
testcase_27 AC 104 ms
92,032 KB
testcase_28 AC 103 ms
92,176 KB
testcase_29 AC 104 ms
92,128 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))
A=sorted(A)
print(A[0] if N==1 else A[0]*A[1] if N==2 else 1 if N%2 else min(A[0]*A[1],A[2]))
0