結果

問題 No.339 何人が回答したのか
ユーザー kakts
提出日時 2016-01-30 21:06:27
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 342 bytes
コンパイル時間 253 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-09-21 19:28:10
合計ジャッジ時間 3,855 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22 WA * 39
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
min = 100
sum = 0
list = []
for i in range(n):
	per = int(input())
	if per < min:
		min = per
	list.append(per)
	sum += per

isDevide = True
for num in range(len(list)):
	if list[num] % min != 0:
		isDevide = False
		break

ans = 0
if isDevide == True:
	for num in range(len(list)):
		ans += list[num] / min

print(int(ans))
0