2022-07-01から1ヶ月間の記事一覧
Gitであるファイルの特定の行の修正履歴を知りたくなり、それを出すコマンドを調べた。 View git history of specific line - Stack Overflow には解決策が書かれている。 git log -L行数,1:/path/to/the/file を実行すればよい。参考URLでは/path/to/the/fi…
AtcoderのABC253のE - Distance Sequence問題を解く際に、Java 11.0.6のバッグを発見した。 提出したコードは import java.util.Scanner; import java.util.stream.IntStream; public class Main { /** mod対象数字 */ private static final long MOD = 998_…