結果
問題 |
No.2562 数字探しゲーム(緑以下コンver.)
|
ユーザー |
![]() |
提出日時 | 2023-12-02 16:21:44 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 432 bytes |
コンパイル時間 | 365 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 28,324 KB |
最終ジャッジ日時 | 2024-11-19 21:33:42 |
合計ジャッジ時間 | 29,283 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | RE * 1 TLE * 9 |
ソースコード
t = int(input()) for i in range(t): m = int(input()) d = list(map(int, input().split())) k = 0 #少なくとも a="" for l in range(1,10): a+=str(l)*d[l-1] a = int(a) k = a//m-1 while True: k += 1 x = k*m x_ = str(x) for i in range(1, 10): if x_.count(str(i)) < d[i-1]: break else: print(x) break