HDU5874】的更多相关文章

题目链接: Friends and Enemies 分析: 是一道想法题,我们假设x个人互相敌对,然后有y个人与这x个人都是朋友,而这y个人互相敌对. 则有 x+y=m x*y<=n 举个例子: x为3,y为3 x为123,456,789 而y为147,258,369 感觉比较巧妙 代码: #include <cstdio> #include <cstring> #include <cstdlib> #include <ctime> #include…
Friends and Enemies Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 171    Accepted Submission(s): 100 Problem Description On an isolated island, lived some dwarves. A king (not a dwarf) ruled t…