結果

問題 No.1816 MUL-DIV Game
ユーザー ShirotsumeShirotsume
提出日時 2022-01-21 21:59:44
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 266 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 82,644 KB
実行使用メモリ 86,752 KB
最終ジャッジ日時 2024-05-04 12:53:19
合計ジャッジ時間 2,704 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
53,576 KB
testcase_01 AC 32 ms
53,232 KB
testcase_02 AC 32 ms
52,752 KB
testcase_03 AC 32 ms
53,224 KB
testcase_04 AC 34 ms
53,576 KB
testcase_05 AC 31 ms
52,868 KB
testcase_06 AC 33 ms
52,268 KB
testcase_07 AC 38 ms
51,904 KB
testcase_08 AC 34 ms
53,504 KB
testcase_09 AC 37 ms
61,076 KB
testcase_10 AC 49 ms
69,492 KB
testcase_11 AC 51 ms
68,308 KB
testcase_12 AC 45 ms
65,716 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 71 ms
83,540 KB
testcase_27 WA -
testcase_28 AC 73 ms
83,776 KB
testcase_29 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int,input().split()))
a.sort()
if n == 1:
    print(a[0])
elif n == 2:
    print(a[0] * a[1])
elif n % 2 == 1:
    print(1)
else:
    now = 0
    for i in range(n - 1):
        if i % 2 == 0:
            now += 1
    print(a[now])
    
0