結果
| 問題 |
No.339 何人が回答したのか
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-05-07 16:43:49 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 36 ms / 1,000 ms |
| コード長 | 287 bytes |
| コンパイル時間 | 161 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,520 KB |
| 最終ジャッジ日時 | 2024-07-03 09:30:38 |
| 合計ジャッジ時間 | 3,863 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 61 |
ソースコード
import fractions
import functools
import math
def solve(arr):
return functools.reduce((lambda r, i: r * i // math.gcd(r, i)),
[fractions.Fraction(b, 100).denominator for b in arr])
n = int(input())
a = [int(input()) for _ in range(n)]
print(solve(a))