diff --git a/src/main/kotlin/p32xx/Problem3274.kt b/src/main/kotlin/p32xx/Problem3274.kt new file mode 100644 index 00000000..73780707 --- /dev/null +++ b/src/main/kotlin/p32xx/Problem3274.kt @@ -0,0 +1,17 @@ +package p32xx + +import util.expect + +fun main() { + class Solution { + fun checkTwoChessboards(coordinate1: String, coordinate2: String): Boolean { + return (coordinate1 + coordinate2).sumOf { it.code } and 1 == 0 + } + } + + expect { + Solution().checkTwoChessboards( + "a1", "c3" + ) + } +}