結果

問題 No.3474 Concat Decimal
コンテスト
ユーザー tkykwtnb
提出日時 2026-03-20 21:52:56
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 418 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 366 ms
コンパイル使用メモリ 85,664 KB
実行使用メモリ 208,188 KB
最終ジャッジ日時 2026-03-20 21:53:01
合計ジャッジ時間 4,113 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 14 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

from math import lcm
T=int(input())
for _ in range(T):
    N=int(input())
    A=list(map(list,input().split()))
    for i in range(N):
        while len(A[i])>1 and A[i][-1]=="0":
            A[i].pop()
        A[i]="".join(A[i])
    ans=1
    tmp=[]
    for a in A[1:]:
        mn=int(a[-1])
        x=1
        while (mn*x)%10!=0:
            x+=1
        x*=10**(len(a)-1)
        tmp.append(x)
    print(lcm(*tmp))
0