{"trustable":false,"sections":[{"title":"","value":{"format":"MD","content":"在一个n∗m的棋盘上,放两个皇后,要求两个皇后可以互相攻击,求有多少种放法。\n(两个皇后不同,最多5000组数据)\n(0 \u003c n,m ≤ 1,000,000)"}},{"title":"Sample","value":{"format":"MD","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\n2 2\u003cbr\u003e\n100 223\u003cbr\u003e\n2300 1000\u003cbr\u003e\n0 0\n\u003c/td\u003e\n \u003ctd\u003e\n12 \u003cbr\u003e\n10907100\u003cbr\u003e \n11514134000 \n\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}