测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A13557. Park Lighting

编程题 普及/提高-

题目描述

由于本场题面违反互联网相关法律,不予展示原题面。

输入格式

无

输出格式

无

输入输出样例

输入 #1
5
1 1
1 3
2 2
3 3
5 3
输出 #1
1
2
2
5
8

说明/提示

Possible optimal arrangement of the lanterns for the $2$ -nd test case of input data example: ![](/uploads/acgo/image/24915b82080c8a1e_adacc153fa63.jpeg)

Possible optimal arrangement of the lanterns for the $3$ -rd test case of input data example: ![](/uploads/acgo/image/1d878190141eae56_1c7ce9f55f47.jpeg)
上一题 去做题 下一题