結果

問題 No.1816 MUL-DIV Game
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2022-01-21 21:51:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 235 bytes
コンパイル時間 537 ms
コンパイル使用メモリ 87,084 KB
実行使用メモリ 92,216 KB
最終ジャッジ日時 2023-08-17 05:42:23
合計ジャッジ時間 4,443 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
71,308 KB
testcase_01 AC 78 ms
71,576 KB
testcase_02 AC 79 ms
71,276 KB
testcase_03 AC 81 ms
71,320 KB
testcase_04 AC 77 ms
71,336 KB
testcase_05 AC 81 ms
71,144 KB
testcase_06 AC 78 ms
71,480 KB
testcase_07 AC 79 ms
71,336 KB
testcase_08 AC 78 ms
71,168 KB
testcase_09 AC 81 ms
75,844 KB
testcase_10 AC 93 ms
81,512 KB
testcase_11 AC 92 ms
80,684 KB
testcase_12 AC 87 ms
79,008 KB
testcase_13 AC 100 ms
84,952 KB
testcase_14 AC 90 ms
79,696 KB
testcase_15 AC 95 ms
81,684 KB
testcase_16 AC 84 ms
75,912 KB
testcase_17 AC 109 ms
89,648 KB
testcase_18 AC 108 ms
88,208 KB
testcase_19 AC 93 ms
80,532 KB
testcase_20 AC 109 ms
89,708 KB
testcase_21 AC 89 ms
78,856 KB
testcase_22 AC 87 ms
77,680 KB
testcase_23 AC 79 ms
71,344 KB
testcase_24 AC 79 ms
71,428 KB
testcase_25 AC 117 ms
92,004 KB
testcase_26 AC 115 ms
92,072 KB
testcase_27 AC 118 ms
92,216 KB
testcase_28 AC 117 ms
91,992 KB
testcase_29 AC 118 ms
92,076 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from heapq import heapify, heappush, heappop
n = int(input())
A = sorted(list(map(int,input().split())))
if n == 1 or n == 2:
    A.append(1)
    print(A[0]*A[1])
    exit()
if n % 2:
    print(1)
    exit()

print(min(A[0]*A[1],A[2]))
0