結果

問題 No.1816 MUL-DIV Game
ユーザー warabi0906warabi0906
提出日時 2023-05-09 21:13:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 106 ms / 2,000 ms
コード長 137 bytes
コンパイル時間 739 ms
コンパイル使用メモリ 87,292 KB
実行使用メモリ 92,176 KB
最終ジャッジ日時 2023-08-17 10:34:00
合計ジャッジ時間 4,305 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,064 KB
testcase_01 AC 67 ms
71,244 KB
testcase_02 AC 67 ms
71,104 KB
testcase_03 AC 68 ms
71,224 KB
testcase_04 AC 68 ms
71,076 KB
testcase_05 AC 66 ms
71,448 KB
testcase_06 AC 67 ms
71,220 KB
testcase_07 AC 66 ms
71,344 KB
testcase_08 AC 66 ms
71,248 KB
testcase_09 AC 72 ms
75,740 KB
testcase_10 AC 82 ms
81,412 KB
testcase_11 AC 83 ms
80,540 KB
testcase_12 AC 78 ms
78,768 KB
testcase_13 AC 92 ms
84,900 KB
testcase_14 AC 79 ms
79,552 KB
testcase_15 AC 84 ms
81,400 KB
testcase_16 AC 73 ms
75,672 KB
testcase_17 AC 99 ms
89,548 KB
testcase_18 AC 104 ms
88,152 KB
testcase_19 AC 81 ms
80,448 KB
testcase_20 AC 100 ms
89,756 KB
testcase_21 AC 79 ms
78,824 KB
testcase_22 AC 76 ms
77,936 KB
testcase_23 AC 68 ms
71,532 KB
testcase_24 AC 68 ms
71,196 KB
testcase_25 AC 106 ms
92,016 KB
testcase_26 AC 106 ms
92,056 KB
testcase_27 AC 106 ms
92,088 KB
testcase_28 AC 104 ms
92,176 KB
testcase_29 AC 104 ms
92,040 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=sorted(list(map(int,input().split())))
print(A[0] if N==1 else A[0]*A[1] if N==2 else 1 if N%2 else min(A[0]*A[1],A[2]))
0