結果

問題 No.2562 数字探しゲーム(緑以下コンver.)
ユーザー ゼットゼット
提出日時 2023-12-20 23:46:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 167 ms / 2,000 ms
コード長 240 bytes
コンパイル時間 221 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 77,640 KB
最終ジャッジ日時 2023-12-20 23:47:02
合計ジャッジ時間 2,456 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,460 KB
testcase_01 AC 38 ms
53,460 KB
testcase_02 AC 37 ms
53,460 KB
testcase_03 AC 37 ms
53,460 KB
testcase_04 AC 123 ms
75,996 KB
testcase_05 AC 155 ms
77,640 KB
testcase_06 AC 167 ms
76,020 KB
testcase_07 AC 122 ms
76,140 KB
testcase_08 AC 123 ms
76,020 KB
testcase_09 AC 156 ms
77,640 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

Q=int(input())
for _ in range(Q):
  M=int(input())
  A=list(map(int,input().split()))
  c=''
  for i in range(1,10):
    x=A[i-1]
    for y in range(x):
      c=c+str(i)
  c=int(c)
  ans=c*10**9
  z=ans%M
  if z>0:
    ans+=M-z
  print(ans)
0