結果

問題 No.937 Ultra Sword
ユーザー gew1fw
提出日時 2025-06-12 18:57:04
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 206 bytes
コンパイル時間 425 ms
コンパイル使用メモリ 82,240 KB
実行使用メモリ 84,580 KB
最終ジャッジ日時 2025-06-12 18:57:09
合計ジャッジ時間 4,709 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7 WA * 40
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
from functools import reduce

def compute_gcd(arr):
    return reduce(math.gcd, arr)

n = int(input())
a = list(map(int, input().split()))
gcd = compute_gcd(a)
total = sum(a) // gcd
print(total)
0