結果
| 問題 | No.2562 数字探しゲーム(緑以下コンver.) | 
| コンテスト | |
| ユーザー |  mymelochan | 
| 提出日時 | 2023-12-02 15:26:56 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                RE
                                 
                            (最新) 
                                AC
                                 
                            (最初) | 
| 実行時間 | - | 
| コード長 | 682 bytes | 
| コンパイル時間 | 201 ms | 
| コンパイル使用メモリ | 82,304 KB | 
| 実行使用メモリ | 76,904 KB | 
| 最終ジャッジ日時 | 2024-11-19 21:31:31 | 
| 合計ジャッジ時間 | 1,929 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 9 RE * 1 | 
ソースコード
#############################################################
import sys
sys.setrecursionlimit(10**7)
from heapq import heappop,heappush
from collections import deque,defaultdict,Counter
from bisect import bisect_left, bisect_right
from itertools import product,combinations,permutations
from math import sin,cos
#from math import isqrt #DO NOT USE PyPy
ipt = sys.stdin.readline
iin = lambda :int(ipt())
lmin = lambda :list(map(int,ipt().split()))
#############################################################
for _ in range(iin()):
    M = iin()
    D = lmin()
    t = ""
    for i in range(9):
        t += str(i+1)*D[i]
    
    t = int(t)*10**9
    t += (-t)%M
    print(t)
            
            
            
        