結果
| 問題 | No.937 Ultra Sword | 
| コンテスト | |
| ユーザー |  lam6er | 
| 提出日時 | 2025-04-15 22:02:29 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 191 bytes | 
| コンパイル時間 | 150 ms | 
| コンパイル使用メモリ | 81,552 KB | 
| 実行使用メモリ | 84,728 KB | 
| 最終ジャッジ日時 | 2025-04-15 22:03:49 | 
| 合計ジャッジ時間 | 3,757 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 7 WA * 40 | 
ソースコード
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)
            
            
            
        