2015年4月21日
摘要: Description某国有2N个城市,这2N个城市构成了一个2行N列的方格网。现在该国政府有一个旅游发展计划,这个计划需要选定L、R两列(L#include#include#include#includeusing namespace std;struct Tree{ int lef,rig... 阅读全文
posted @ 2015-04-21 22:06 razorjxt 阅读(267) 评论(0) 推荐(0) 编辑
摘要: DescriptionInput输入文件包含多组测试数据。第一行,一个整数T,表示测试数据的组数。接下来的T行,每行两个整数N、M。OutputT行,每行一个整数,表示你所求的答案。Sample Input27456Sample Output110121Data Constraint解法:莫比乌斯反... 阅读全文
posted @ 2015-04-21 21:58 razorjxt 阅读(447) 评论(0) 推荐(0) 编辑