結果

問題 No.1816 MUL-DIV Game
ユーザー horitaka1999horitaka1999
提出日時 2022-01-21 23:01:55
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 212 bytes
コンパイル時間 319 ms
コンパイル使用メモリ 87,024 KB
実行使用メモリ 91,320 KB
最終ジャッジ日時 2023-08-17 07:30:39
合計ジャッジ時間 4,407 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,256 KB
testcase_01 AC 72 ms
71,516 KB
testcase_02 AC 75 ms
71,456 KB
testcase_03 AC 74 ms
71,404 KB
testcase_04 AC 74 ms
71,328 KB
testcase_05 AC 75 ms
71,208 KB
testcase_06 AC 75 ms
71,212 KB
testcase_07 AC 75 ms
71,328 KB
testcase_08 AC 74 ms
71,468 KB
testcase_09 AC 78 ms
75,920 KB
testcase_10 AC 91 ms
81,372 KB
testcase_11 AC 88 ms
80,520 KB
testcase_12 AC 85 ms
78,476 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 112 ms
91,168 KB
testcase_27 WA -
testcase_28 AC 112 ms
91,320 KB
testcase_29 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

print(out)
0