結果

問題 No.1816 MUL-DIV Game
ユーザー tktk_snsntktk_snsn
提出日時 2022-05-13 12:51:41
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 199 bytes
コンパイル時間 135 ms
コンパイル使用メモリ 10,612 KB
実行使用メモリ 18,956 KB
最終ジャッジ日時 2023-09-28 15:53:12
合計ジャッジ時間 4,005 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
8,256 KB
testcase_01 AC 16 ms
8,148 KB
testcase_02 AC 16 ms
8,256 KB
testcase_03 AC 16 ms
8,072 KB
testcase_04 AC 15 ms
8,248 KB
testcase_05 AC 15 ms
8,244 KB
testcase_06 AC 15 ms
8,160 KB
testcase_07 AC 15 ms
8,184 KB
testcase_08 AC 15 ms
8,144 KB
testcase_09 AC 19 ms
9,216 KB
testcase_10 AC 29 ms
12,860 KB
testcase_11 AC 29 ms
12,216 KB
testcase_12 AC 24 ms
11,252 KB
testcase_13 AC 46 ms
14,808 KB
testcase_14 AC 32 ms
11,496 KB
testcase_15 AC 38 ms
12,748 KB
testcase_16 AC 20 ms
9,356 KB
testcase_17 AC 60 ms
17,200 KB
testcase_18 AC 56 ms
16,496 KB
testcase_19 AC 36 ms
12,320 KB
testcase_20 AC 62 ms
17,336 KB
testcase_21 AC 32 ms
11,380 KB
testcase_22 AC 28 ms
10,496 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 70 ms
18,796 KB
testcase_26 AC 47 ms
18,956 KB
testcase_27 AC 70 ms
18,820 KB
testcase_28 AC 46 ms
18,848 KB
testcase_29 AC 68 ms
18,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))

if N == 1:
    print(A[0])
    exit()

if N == 2:
    print(A[0] * A[1])
    exit()

if N % 2 == 1:
    print(1)
    exit()

A.sort()
print(A[2])
0