結果

問題 No.1816 MUL-DIV Game
ユーザー ikomaikoma
提出日時 2022-01-21 22:41:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 104 ms / 2,000 ms
コード長 229 bytes
コンパイル時間 257 ms
コンパイル使用メモリ 87,124 KB
実行使用メモリ 90,644 KB
最終ジャッジ日時 2023-08-17 07:00:35
合計ジャッジ時間 4,220 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,528 KB
testcase_01 AC 69 ms
71,528 KB
testcase_02 AC 73 ms
71,324 KB
testcase_03 AC 67 ms
71,496 KB
testcase_04 AC 67 ms
71,084 KB
testcase_05 AC 70 ms
71,300 KB
testcase_06 AC 68 ms
71,260 KB
testcase_07 AC 67 ms
71,336 KB
testcase_08 AC 69 ms
71,128 KB
testcase_09 AC 72 ms
76,096 KB
testcase_10 AC 86 ms
80,900 KB
testcase_11 AC 83 ms
80,196 KB
testcase_12 AC 79 ms
78,416 KB
testcase_13 AC 90 ms
83,952 KB
testcase_14 AC 80 ms
79,308 KB
testcase_15 AC 84 ms
81,012 KB
testcase_16 AC 72 ms
76,088 KB
testcase_17 AC 97 ms
88,360 KB
testcase_18 AC 94 ms
87,048 KB
testcase_19 AC 79 ms
80,040 KB
testcase_20 AC 99 ms
88,536 KB
testcase_21 AC 77 ms
78,428 KB
testcase_22 AC 75 ms
77,644 KB
testcase_23 AC 65 ms
71,196 KB
testcase_24 AC 66 ms
71,220 KB
testcase_25 AC 104 ms
90,604 KB
testcase_26 AC 104 ms
90,484 KB
testcase_27 AC 104 ms
90,524 KB
testcase_28 AC 104 ms
90,284 KB
testcase_29 AC 104 ms
90,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

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