Skip to content

ビルの飾り付け2 (Building 2)

Unrated
日本語

Language

Contribute a translation
Time limit
1000 ms
Memory limit
64 MB
Submissions
0
Correct
0
Solved by
0
AC rate
—

Statement

ビルの飾り付け2:公式日本語問題文 1ページ

ビルの飾り付け2:公式日本語問題文 2ページ

Examples

Sample input 1
7
4
2
5
3
1
8
7
1 2
2 3
3 4
4 5
3 6
6 7
Sample output 1
4

Notes

Tags

No tags yet

Source