結果

問題 No.1816 MUL-DIV Game
ユーザー MasKoaTSMasKoaTS
提出日時 2022-01-21 21:30:42
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 750 bytes
コンパイル時間 229 ms
コンパイル使用メモリ 82,008 KB
実行使用メモリ 105,068 KB
最終ジャッジ日時 2024-05-04 12:02:33
合計ジャッジ時間 5,325 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
86,936 KB
testcase_01 AC 115 ms
86,504 KB
testcase_02 AC 111 ms
86,848 KB
testcase_03 AC 112 ms
86,928 KB
testcase_04 AC 108 ms
86,508 KB
testcase_05 AC 110 ms
86,788 KB
testcase_06 AC 110 ms
86,720 KB
testcase_07 AC 109 ms
86,528 KB
testcase_08 AC 115 ms
86,964 KB
testcase_09 AC 118 ms
89,692 KB
testcase_10 AC 131 ms
94,256 KB
testcase_11 AC 131 ms
93,264 KB
testcase_12 AC 127 ms
91,484 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 148 ms
104,860 KB
testcase_27 WA -
testcase_28 AC 149 ms
104,628 KB
testcase_29 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools as iter
import collections as coll
import heapq as hq
import bisect as bis
from decimal import Decimal as dec
from copy import deepcopy as dcopy
import math
import sys
sys.setrecursionlimit(10**6)
def input():
    return sys.stdin.readline().rstrip()
def getN():
	return int(sys.stdin.readline())
def getNs():
	return map(int,sys.stdin.readline().split())
def getList():
	return list(map(int,sys.stdin.readline().split()))
def strinps(n):
	return [sys.stdin.readline().rstrip() for _ in range(n)]
pi = 3.141592653589793
mod = 10**9+7
MOD = 998244353
INF = math.inf
dx = [1,0,-1,0];	dy = [0,1,0,-1]


"""
Main Code
"""

n = getN()
a = list(sorted(getList()))
if(n == 1):
	print(a[0])
elif(n == 2):
	print(a[0] * a[1])
else:
	print(1)
0