結果
| 問題 |
No.339 何人が回答したのか
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-05-27 15:25:53 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 1,000 ms |
| コード長 | 236 bytes |
| コンパイル時間 | 246 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-10-07 16:26:32 |
| 合計ジャッジ時間 | 3,355 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 61 |
ソースコード
#!/usr/bin/env python3
from functools import reduce
import math
def lcm(a,b):
return a * b // math.gcd(a, b)
n = int(input())
xs = [int(input()) for i in range(n)]
ans = reduce(lcm, [100 // math.gcd(100, x) for x in xs])
print(ans)