remove another useless 100

This commit is contained in:
2025-12-01 21:17:50 -05:00
parent 1546b2cdeb
commit e7622d74d5

View File

@@ -17,7 +17,7 @@ public class Day01 {
String instruction = scanner.nextLine();
int change = Integer.parseInt(instruction.substring(1));
dial = switch (instruction.charAt(0)) {
case 'L' -> (dial - change + 100) % 100;
case 'L' -> (dial - change) % 100;
case 'R' -> (dial + change) % 100;
default -> dial; // impossible
};