結果

問題 No.937 Ultra Sword
ユーザー lam6er
提出日時 2025-04-16 15:48:51
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 191 bytes
コンパイル時間 341 ms
コンパイル使用メモリ 82,384 KB
実行使用メモリ 85,560 KB
最終ジャッジ日時 2025-04-16 15:50:45
合計ジャッジ時間 4,152 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7 WA * 40
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

n = int(input())
a = list(map(int, input().split()))

gcd_all = a[0]
for num in a[1:]:
    gcd_all = math.gcd(gcd_all, num)

total = sum(num // gcd_all for num in a)
print(total)
0