結果

問題 No.1816 MUL-DIV Game
ユーザー 👑 H20H20
提出日時 2022-01-21 22:39:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 137 ms / 2,000 ms
コード長 206 bytes
コンパイル時間 340 ms
コンパイル使用メモリ 86,712 KB
実行使用メモリ 92,416 KB
最終ジャッジ日時 2023-08-17 06:59:08
合計ジャッジ時間 5,101 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 95 ms
71,292 KB
testcase_01 AC 97 ms
71,480 KB
testcase_02 AC 94 ms
71,240 KB
testcase_03 AC 94 ms
71,684 KB
testcase_04 AC 94 ms
71,284 KB
testcase_05 AC 94 ms
71,288 KB
testcase_06 AC 94 ms
71,372 KB
testcase_07 AC 94 ms
71,488 KB
testcase_08 AC 95 ms
71,776 KB
testcase_09 AC 99 ms
76,928 KB
testcase_10 AC 110 ms
82,084 KB
testcase_11 AC 107 ms
80,992 KB
testcase_12 AC 105 ms
78,972 KB
testcase_13 AC 121 ms
85,472 KB
testcase_14 AC 110 ms
80,520 KB
testcase_15 AC 113 ms
82,220 KB
testcase_16 AC 104 ms
76,884 KB
testcase_17 AC 130 ms
89,920 KB
testcase_18 AC 128 ms
88,812 KB
testcase_19 AC 111 ms
81,284 KB
testcase_20 AC 133 ms
90,372 KB
testcase_21 AC 107 ms
78,932 KB
testcase_22 AC 105 ms
78,204 KB
testcase_23 AC 94 ms
71,288 KB
testcase_24 AC 93 ms
71,528 KB
testcase_25 AC 135 ms
92,240 KB
testcase_26 AC 122 ms
91,824 KB
testcase_27 AC 137 ms
92,416 KB
testcase_28 AC 121 ms
91,640 KB
testcase_29 AC 136 ms
92,300 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