結果
| 問題 | No.3474 Concat Decimal |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-03-20 21:51:34 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 297 ms / 2,000 ms |
| コード長 | 315 bytes |
| 記録 | |
| コンパイル時間 | 196 ms |
| コンパイル使用メモリ | 85,112 KB |
| 実行使用メモリ | 113,600 KB |
| 最終ジャッジ日時 | 2026-03-20 21:51:50 |
| 合計ジャッジ時間 | 6,378 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 27 |
ソースコード
for _ in range(int(input())): n=int(input()) a=list(map(int,input().split())) x=0 y=0 for i in range(1,n): if a[i]>0: A=len(str(a[i])) B=len(str(a[i])) while a[i]%2==0 and A>0: A-=1 a[i]//=2 while a[i]%5==0 and B>0: B-=1 a[i]//=5 x=max(x,A) y=max(y,B) print(2**x*5**y)