結果

問題 No.2562 数字探しゲーム(緑以下コンver.)
ユーザー PNJPNJ
提出日時 2023-12-03 14:01:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 194 ms / 2,000 ms
コード長 293 bytes
コンパイル時間 490 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 78,096 KB
最終ジャッジ日時 2023-12-03 14:01:14
合計ジャッジ時間 2,456 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,460 KB
testcase_01 AC 36 ms
53,460 KB
testcase_02 AC 36 ms
53,460 KB
testcase_03 AC 39 ms
53,460 KB
testcase_04 AC 155 ms
76,384 KB
testcase_05 AC 194 ms
78,096 KB
testcase_06 AC 159 ms
76,272 KB
testcase_07 AC 147 ms
76,264 KB
testcase_08 AC 149 ms
76,532 KB
testcase_09 AC 188 ms
77,964 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def Map():
  return list(map(int,input().split()))

T = int(input())
for _ in range(T):
  M = int(input())
  D = Map()
  D = [0] + D
  S = []
  for d in range(1,10):
    for i in range(D[d]):
      S.append(str(d))
  s = ''.join(S)
  s = int(s)
  s *= 10**9
  r = (M-s) % M
  s += r
  print(s)
0