結果
| 問題 | No.3474 Concat Decimal |
| コンテスト | |
| ユーザー |
👑 amentorimaru
|
| 提出日時 | 2026-03-22 01:24:31 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 482 ms / 2,000 ms |
| コード長 | 507 bytes |
| 記録 | |
| コンパイル時間 | 122 ms |
| コンパイル使用メモリ | 85,332 KB |
| 実行使用メモリ | 122,808 KB |
| 最終ジャッジ日時 | 2026-03-22 01:24:39 |
| 合計ジャッジ時間 | 8,423 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 27 |
ソースコード
import sys
import math
input = sys.stdin.readline
def read_values(): return map(int, input().split())
def read_index(): return map(lambda x: int(x) - 1, input().split())
def read_list(): return list(read_values())
from fractions import Fraction
def main():
n=int(input())
a=read_list()
a.pop(0)
g=1
for v in a:
vv=Fraction(v,1)
while vv>=1:
vv/=10
g=math.lcm(g,vv.denominator)
print(g)
if __name__ == "__main__":
t=int(input())
for _ in range(t):
main()
amentorimaru