Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bb68cd commit 2be33a5Copy full SHA for 2be33a5
_posts/aac1p5/2021-10-24-pdigit.md renamed to _posts/pdigit/2021-10-24-pdigit.md
@@ -12,12 +12,12 @@ for a mini-contest in DMOJ.
12
13
You are given two integers ~n~ and ~k~, and can perform operations to ~n~.
14
15
-<!-- more -->
16
-
17
Each operation allows you to *prepend* a digit ~d~ ~(0 \le 0 \le 9)~ to ~n~,
18
and it is your task to determine if there exists a sequence of operations such
19
that ~n~ will end up being divisible by ~k~.
20
+<!-- more -->
+
21
Note: ~n~ and ~k~ can be fairly large with bounds ~(1 \le n, k \le 10^9)~, and
22
you are required to answer ~t~ test cases.
23
0 commit comments