結果
問題 | No.2562 数字探しゲーム(緑以下コンver.) |
ユーザー | AngrySadEight |
提出日時 | 2023-11-24 00:29:11 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 184 ms / 2,000 ms |
コード長 | 281 bytes |
コンパイル時間 | 368 ms |
コンパイル使用メモリ | 11,776 KB |
実行使用メモリ | 9,856 KB |
最終ジャッジ日時 | 2023-11-24 00:29:14 |
合計ジャッジ時間 | 2,904 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 28 ms
9,856 KB |
testcase_01 | AC | 28 ms
9,856 KB |
testcase_02 | AC | 29 ms
9,856 KB |
testcase_03 | AC | 28 ms
9,856 KB |
testcase_04 | AC | 184 ms
9,856 KB |
testcase_05 | AC | 180 ms
9,856 KB |
testcase_06 | AC | 172 ms
9,856 KB |
testcase_07 | AC | 174 ms
9,856 KB |
testcase_08 | AC | 180 ms
9,856 KB |
testcase_09 | AC | 175 ms
9,856 KB |
ソースコード
T = int(input()) for _ in range(T): M = int(input()) X = list(map(int, input().split())) Y = "" for i in range(9): for j in range(X[i]): Y += str(i + 1) Z = int(Y) * (10 ** 9) r = M - Z % M if r >= M: r -= M print(Z + r)