結果

問題 No.2562 数字探しゲーム(緑以下コンver.)
ユーザー u_kunu_kun
提出日時 2023-12-02 15:26:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 290 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 76,068 KB
最終ジャッジ日時 2023-12-02 15:26:30
合計ジャッジ時間 2,196 ms
ジャッジサーバーID
(参考情報)
judge11 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,332 KB
testcase_01 AC 37 ms
53,332 KB
testcase_02 AC 37 ms
53,332 KB
testcase_03 AC 36 ms
53,332 KB
testcase_04 AC 127 ms
76,044 KB
testcase_05 AC 130 ms
76,052 KB
testcase_06 AC 123 ms
76,068 KB
testcase_07 AC 125 ms
76,068 KB
testcase_08 AC 125 ms
76,068 KB
testcase_09 AC 124 ms
76,052 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())

for _ in range(T):
    M = int(input())
    D = list(map(int, input().split()))
    
    N = []
    for i in range(9):
        N.append(str(i + 1) * D[i])
    for _ in range(9):
        N.append("9")
    N = "".join(N)
    N = int(N)
    
    N = N - (N % M)
    print(N)
0