結果
問題 | No.2562 数字探しゲーム(緑以下コンver.) |
ユーザー |
![]() |
提出日時 | 2023-12-02 16:52:42 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 183 ms / 2,000 ms |
コード長 | 280 bytes |
コンパイル時間 | 185 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 77,924 KB |
最終ジャッジ日時 | 2024-11-19 21:34:28 |
合計ジャッジ時間 | 1,948 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 10 |
ソースコード
N=int(input())for _ in range(N):M=int(input())A=list(map(int, input().split()))B=[]for i in range(9):for j in range(A[i]):B.append(str(i+1))if len(B)==0:print(M)else:c=int(''.join(B))*10**9d=c%Mif d!=0:c+=M-dprint(c)