UOJ Logo 黑暗爆炸OJ

DARKBZOJ

#1166. [Baltic2008]Magical Stones

Statistics 下载数据

Description

Input

Output

Sample Input

Sample Output

Hint

Source