摘要:
Oil Deposits HDU - 1241 The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one larg 阅读全文
摘要:
Prime Ring Problem HDU - 1016 A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the 阅读全文
摘要:
idea中的.idea文件夹和.iml是平常几乎不使用的文件,在创建父子工程或者聚合工程时反而会对我们操作产生干扰,所以,一般情况下,我们都将其隐藏掉,步骤如下: 操作前: 具体操作:File——>settings——>Editor——>File Types——>Ignore files and f 阅读全文
摘要:
1 int gcd(int a, int b) 2 { 3 return b == 0 ? a : gcd(b, a%b); 4 } 5 6 int lcm(int a, int b) 7 { 8 return a * (b/gcd(a, b)); // 建议先除再乘,避免乘法溢出 9 } 阅读全文