結果

問題 No.2562 数字探しゲーム(緑以下コンver.)
ユーザー achapi
提出日時 2023-12-02 14:59:58
言語 PyPy3
(7.3.15)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 268 bytes
コンパイル時間 202 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 76,436 KB
最終ジャッジ日時 2024-11-19 21:29:10
合計ジャッジ時間 2,089 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 9 RE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())
for _ in range(T):
    M = int(input())
    d = list(map(int, input().split()))
    ans = ""
    for i in range(9):
        ans += str(i + 1) * d[i]
    ans = int(ans)
    ans *= 10 ** 9
    if ans % M != 0:
        ans += M - (ans % M)
    print(ans)
0