結果
| 問題 | No.1917 LCMST |
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 16:27:44 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 168 bytes |
| 記録 | |
| コンパイル時間 | 239 ms |
| コンパイル使用メモリ | 95,472 KB |
| 実行使用メモリ | 208,244 KB |
| 最終ジャッジ日時 | 2026-07-11 16:44:03 |
| 合計ジャッジ時間 | 16,373 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 WA * 33 |
ソースコード
import math
n = int(input())
a = list(map(int, input().split()))
x = min(a)
total = 0
for num in a:
g = math.gcd(x, num)
total += x * num // g
print(total - x)
gew1fw