結果

問題 No.2562 数字探しゲーム(緑以下コンver.)
ユーザー hiro1729hiro1729
提出日時 2023-12-02 14:42:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 109 ms / 2,000 ms
コード長 220 bytes
コンパイル時間 157 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 76,016 KB
最終ジャッジ日時 2023-12-02 14:42:29
合計ジャッジ時間 1,648 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
53,460 KB
testcase_01 AC 31 ms
53,460 KB
testcase_02 AC 31 ms
53,460 KB
testcase_03 AC 31 ms
53,460 KB
testcase_04 AC 106 ms
76,016 KB
testcase_05 AC 108 ms
76,008 KB
testcase_06 AC 104 ms
76,012 KB
testcase_07 AC 101 ms
76,012 KB
testcase_08 AC 103 ms
75,900 KB
testcase_09 AC 109 ms
76,008 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in range(int(input())):
	m = int(input())
	d = list(map(int, input().split()))
	ans = ""
	for i in range(9):
		ans += str(i + 1) * d[i]
	ans = int(ans) * (10 ** 9)
	ans += -ans % m
	assert(ans % m == 0)
	print(ans)
0