結果
| 問題 | No.937 Ultra Sword | 
| コンテスト | |
| ユーザー |  gew1fw | 
| 提出日時 | 2025-06-12 13:54:53 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 206 bytes | 
| コンパイル時間 | 514 ms | 
| コンパイル使用メモリ | 82,324 KB | 
| 実行使用メモリ | 85,124 KB | 
| 最終ジャッジ日時 | 2025-06-12 13:56:25 | 
| 合計ジャッジ時間 | 4,566 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 7 WA * 40 | 
ソースコード
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)
            
            
            
        