Hello Codeforces!
I would like you guys to invite in this dc server, I Hardik120710 is one of the mods in the server and amnxd is the server owner.
The server is very active! People discuss problems on Codeforces Contests, Atcoder, Codechef, etc.
Whether you are a absolute beginner or an absolute master the server is open for everyone!
Server is also open for Math Enthusiasts!
As a gift from $$$Benevolent$$$, here is a easy combinatorial problem
Server Invite
ProblemAaradhya was hired by Eiffel 65 to design a strong password for a lock for the concert hall at Blue Galaxy. The password has $$$n$$$ digits and each digit can take values from 0 to 9. The password has the following properties:
Let $$$D_i$$$ denote the $$$i$$$-th digit of the password. Note: $$$D_1$$$ can be 0.
- $$$D_1 \lt D_2 \gt D_3 \lt \dots$$$ that is the digits are alternating.
- $$$|D_i - D_{i-1}| \geq k$$$ for all $$$i$$$ from 2 to $$$n$$$. That is the absolute difference between two digits is atleast $$$k$$$ where $$$k \geq 1$$$.
For a given length $$$n$$$ and minimum absolute consecutive difference of digits $$$k$$$ how many passwords Aaradhya can create (generalize)?
SolutionJoin the $$$Benevolent$$$ discord server to get solutions and more problems!
Till that, enjoy I'm Blue by Eiffel 65

Even orz people like fatespeaker and qqrnt are in the discord server too!
Полный текст и комментарии »