SaltedReed
SaltedReed
应该把变量i, j, powSum的类型改为long,否则会出现整数溢出,2147483600这个测试用例过不了。 修改后如下: ``` public boolean judgeSquareSum(int target) { if (target < 0) return false; long i = 0, j = (long) Math.sqrt(target); while (i target) { j--; }...
This pr is to solve issue #1696 and `async_logger::sync()` allows users to wait for the completion of logging, so they can make sure everything they want to log is safe...
## What is the purpose of the change Code for OpenAtom Open Source Competition (https://competition.atomgit.com/competitionInfo?id=be48a38bb1daf499bd5c98ac8a3108fd) Topic 3 - HTTP3 Triple ## Brief changelog Implemented HTTP3 adaptation in the remoting layer...
This PR fixed the problem described in issue https://github.com/javaparser/javaparser/issues/4074 by deleting the WhiteSpace symbol following an import declaration only when the symbol is not an EndOfLine.