• + 1 comment

    Why does the question request modulo(10^9 + 7) ?

    "print the number of ways of choosing non-empty subsequences, modulo 10^9 + 7"

    unless the number exceeds (10^9+7) the answer will be the same.

    I'm not seeing why this sentence exists in the problem description. What am I missing?