CT35026

Sage's stairwells Cipher Readings

MediumL5 · Recursion RenegadeAcceptance: 0.0%XP: 60

Deep in the seal rocks of Barking Cove, Sage studies rows of stairwells entries. One clean number will settle the guild's oldest argument. Task: Digits encode letters: 1->A ... 26->Z. Print the number of ways to decode the digit string mod 1000000007. Input format: One line with a digit string s. Output format: Print the decode count mod 1000000007. Constraints: 1 <= |s| <= 100; s contains digits 0-9.

Example 1:

Input: 25325641483120499933356128542830330026355498577715335190674065379599080141543801370891865492693640
Output: 0

Example 2:

Input: 407253358888062891
Output: 0

Example 3:

Input: 742747158618367067785293896098644950336761532809298920262227530531112074012511406088
Output: 0

Constraints:

1 <= |s| <= 100; s contains digits 0-9.

Loading...
Test Cases:No test cases
No test cases available.
Sage's stairwells Cipher Readings - MEDIUM Coding Problem | CodeTikki