摘要:
模拟约瑟夫环 The historian Flavius Josephus relates how, in the Romano-Jewish conflict of 67 A.D., the Romans took the town of Jotapata which he was command 阅读全文
摘要:
用正则表达式+Java大数真是太爽了,不信?你用C++写一遍试试。 先上代码: 题目描述如下: Problems involving the computation of exact values of very large magnitude and precision are common. F 阅读全文
摘要:
今天看Thinking in Java看到一个吸血鬼数的问题,于是查找UVa里也有类似的问题就动手写了先是用Java写的,不过WA了两次,然后没有发现错误,又用c++写的还是不行。最后发现要排序去重。然后改用Java的SortedSet解决了这个问题,主要就是暴力枚举求解。但是同样的算法Java用了 阅读全文