NC222473. [USACODec2020G]BovineGenetics
描述
输入描述
A non-empty string where each character is one of A, G, C, T, or ?.
输出描述
The number of possible original genomes modulo 109+7.
示例1
输入:
?
输出:
4
说明:
The question mark can be any of A, G, C, or T.示例2
输入:
GAT?GTT
输出:
3
说明:
There are two possible original genomes aside from AGGCTTT, which was described above.
AGGATTT -> AG | GAT | T | T -> GA | TAG | T | T -> GATAGTT TAGGTTT -> TAG | GT | T | T -> GAT | TG | T | T -> GATTGTT