🥰Last year when life was better
https://www.hackerrank.com/contests/codenection-2021-open-category-finals/challenges/last-year-when-life-was-better
Question
2019 was an amazing year. I loved 2019 so much that I want to find 2019 everywhere. So, I found a random string S that contains digits 1-9
. I want to find number of pairs of integers where characters between ith and jth positions form an integer which is a multiple of 2019.
Input Format
S
Constraints
Output Format
Print the answer.
Sample Inputs:
Last updated