結果

問題 No.2562 数字探しゲーム(緑以下コンver.)
ユーザー cologne
提出日時 2025-06-12 16:19:44
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 341 bytes
コンパイル時間 372 ms
コンパイル使用メモリ 83,044 KB
実行使用メモリ 67,224 KB
最終ジャッジ日時 2025-06-12 16:20:19
合計ジャッジ時間 2,890 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 1
other RE * 10
権限があれば一括ダウンロードができます

ソースコード

diff #


def main():
    t = int(input())
    for _ in range(t):
        m = int(input())
        *d, = map(int, input().split())
        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