結果
| 問題 | No.2562 数字探しゲーム(緑以下コンver.) | 
| コンテスト | |
| ユーザー |  noriaoki | 
| 提出日時 | 2023-12-02 15:48:49 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                WA
                                 
                            (最新) 
                                AC
                                 
                            (最初) | 
| 実行時間 | - | 
| コード長 | 263 bytes | 
| コンパイル時間 | 143 ms | 
| コンパイル使用メモリ | 82,448 KB | 
| 実行使用メモリ | 76,672 KB | 
| 最終ジャッジ日時 | 2024-11-19 21:32:08 | 
| 合計ジャッジ時間 | 1,927 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 9 WA * 1 | 
ソースコード
T = int(input())
for _ in range(T):
    M = int(input())
    D = list(map(int, input().split()))
    s = ''
    for i in range(len(D)):
        s += str(i+1)*D[i]
    s += '0'*9
    s = int(s)
    if s%M == 0:
        print(s)
    else:
        print(s + M-(s%M))
            
            
            
        