結果

問題 No.2562 数字探しゲーム(緑以下コンver.)
ユーザー cologne
提出日時 2025-06-12 16:24:33
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 356 bytes
コンパイル時間 254 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 76,612 KB
最終ジャッジ日時 2025-06-12 16:24:44
合計ジャッジ時間 2,304 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 9 WA * 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 + '000000000')
        if a % m != 0:
            a -= a % m
            a += m
        print(a)


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