4 AGCT
2 The following two substrings satisfy the condition: * `GC` (the $2$\-nd through $3$\-rd characters) is complementary to `CG`, which is a permutation of `GC`. * `AGCT` (the $1$\-st through $4$\-th characters) is complementary to `TCGA`, which is a permutation of `AGCT`.
4 ATAT
4 The following four substrings satisfy the condition: * `AT` (the $1$\-st through $2$\-nd characters) is complementary to `TA`, which is a permutation of `AT`. * `TA` (the $2$\-st through $3$\-rd characters) is complementary to `AT`, which is a permutation of `TA`. * `AT` (the $3$\-rd through $4$\-th characters) is complementary to `TA`, which is a permutation of `AT`. * `ATAT` (the $1$\-st through $4$\-th characters) is complementary to `TATA`, which is a permutation of `ATAT`.
10 AAATACCGCG
6
{
"problem": {
"name": "DNA Sequence",
"description": {
"content": "We have a string $S$ of length $N$ consisting of `A`, `T`, `C`, and `G`. Strings $T_1$ and $T_2$ of the same length are said to be complementary when, for every $i$ ($1 \\leq i \\leq l$), the $i$\\-th ch",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "arc104_b"
},
"statements": [
{
"statement_type": "Markdown",
"content": "We have a string $S$ of length $N$ consisting of `A`, `T`, `C`, and `G`.\nStrings $T_1$ and $T_2$ of the same length are said to be complementary when, for every $i$ ($1 \\leq i \\leq l$), the $i$\\-th ch...",
"is_translate": false,
"language": "English"
}
]
}