結果

問題 No.2562 数字探しゲーム(緑以下コンver.)
ユーザー cologne
提出日時 2025-06-12 16:17:32
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 350 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 82,688 KB
実行使用メモリ 76,876 KB
最終ジャッジ日時 2025-06-12 16:18:19
合計ジャッジ時間 2,204 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 9 RE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #


def main():
    t = int(input())
    for _ in range(t):
        m = int(input())
        *d, = map(int, input().split())
        a = ''
        for i in range(9):
            a = a + str(i+1) * d[i]
        a = int(a) * 10**9
        if a % m != 0:
            a -= a % m
            a += m
        print(a)


if __name__ == '__main__':
    main()
0