結果

問題 No.1816 MUL-DIV Game
ユーザー KudeKude
提出日時 2022-01-21 21:31:41
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 111 ms / 2,000 ms
コード長 173 bytes
コンパイル時間 501 ms
コンパイル使用メモリ 87,040 KB
実行使用メモリ 91,368 KB
最終ジャッジ日時 2023-08-17 05:04:29
合計ジャッジ時間 4,445 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,364 KB
testcase_01 AC 70 ms
71,284 KB
testcase_02 AC 72 ms
71,108 KB
testcase_03 AC 73 ms
71,116 KB
testcase_04 AC 72 ms
71,116 KB
testcase_05 AC 72 ms
71,256 KB
testcase_06 AC 72 ms
71,380 KB
testcase_07 AC 72 ms
71,128 KB
testcase_08 AC 71 ms
71,272 KB
testcase_09 AC 77 ms
75,520 KB
testcase_10 AC 88 ms
80,904 KB
testcase_11 AC 86 ms
80,204 KB
testcase_12 AC 84 ms
78,304 KB
testcase_13 AC 95 ms
84,120 KB
testcase_14 AC 85 ms
78,916 KB
testcase_15 AC 90 ms
81,068 KB
testcase_16 AC 77 ms
75,616 KB
testcase_17 AC 104 ms
88,728 KB
testcase_18 AC 100 ms
87,376 KB
testcase_19 AC 86 ms
80,028 KB
testcase_20 AC 105 ms
88,900 KB
testcase_21 AC 85 ms
78,244 KB
testcase_22 AC 82 ms
77,380 KB
testcase_23 AC 71 ms
71,336 KB
testcase_24 AC 72 ms
71,284 KB
testcase_25 AC 110 ms
91,368 KB
testcase_26 AC 110 ms
91,140 KB
testcase_27 AC 111 ms
91,032 KB
testcase_28 AC 111 ms
91,036 KB
testcase_29 AC 110 ms
90,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = sorted(map(int, input().split()))
if n % 2 == 1:
    print(1 if n > 1 else a[0])
else:
    a.insert(0, a.pop(0) * a.pop(0))
    a.sort()
    print(a[0])
0