5 1 3 3 3 3 3 3 2 2 2
4 The possible sequences of the mountains' heights are: * $1, 3, 2, 2, 2$ * $1, 3, 2, 1, 2$ * $1, 3, 1, 2, 2$ * $1, 3, 1, 1, 2$ for a total of four sequences.
5 1 1 1 2 2 3 2 1 1 1
0 The records are contradictory, since Mr. Takahashi recorded $2$ as the highest peak after climbing all the mountains but Mr. Aoki recorded $3$.
10 1 3776 3776 8848 8848 8848 8848 8848 8848 8848 8848 8848 8848 8848 8848 8848 8848 8848 3776 5
884111967 Don't forget to compute the number modulo $10^9 + 7$.
1 17 17
1 Some mountain ranges consist of only one mountain.
{
"problem": {
"name": "Two Alpinists",
"description": {
"content": "Mountaineers Mr. Takahashi and Mr. Aoki recently trekked across a certain famous mountain range. The mountain range consists of $N$ mountains, extending from west to east in a straight line as Mt. $1$",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "codefestival_2016_qualC_c"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Mountaineers Mr. Takahashi and Mr. Aoki recently trekked across a certain famous mountain range. The mountain range consists of $N$ mountains, extending from west to east in a straight line as Mt. $1$...",
"is_translate": false,
"language": "English"
}
]
}