結果
問題 |
No.339 何人が回答したのか
|
ユーザー |
![]() |
提出日時 | 2025-03-20 18:40:51 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 39 ms / 1,000 ms |
コード長 | 303 bytes |
コンパイル時間 | 179 ms |
コンパイル使用メモリ | 82,152 KB |
実行使用メモリ | 54,428 KB |
最終ジャッジ日時 | 2025-03-20 18:41:12 |
合計ジャッジ時間 | 4,118 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 61 |
ソースコード
import math n = int(input()) a = [int(input()) for _ in range(n)] factors = [] for ai in a: g = math.gcd(ai, 100) factors.append(100 // g) current_lcm = 1 for num in factors: current_gcd = math.gcd(current_lcm, num) current_lcm = (current_lcm * num) // current_gcd print(current_lcm)