Skip to content

Commit

Permalink
feat: 항체 인식 코드 개선
Browse files Browse the repository at this point in the history
  • Loading branch information
soopeach committed Mar 15, 2024
1 parent cf227e1 commit 1ea3478
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/main/kotlin/hyunsoo/54week/항체 인식.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ class `전현수_항체_인식` {

fun solution() {

// 두 좌표의 숫자가 다른 경우의 수
var numDifferentCnt = 0

val (n, m) = readln().split(" ").map { it.toInt() }

repeat(n) {
Expand All @@ -52,12 +49,6 @@ class `전현수_항체_인식` {
val curNumForExpected = expected[i][j]

if (curNumForOrigin != curNumForExpected) {
numDifferentCnt++

if (2 <= numDifferentCnt) {
println("NO")
exitProcess(0)
}

val visited = Array(n) {
BooleanArray(m)
Expand Down Expand Up @@ -106,9 +97,6 @@ class `전현수_항체_인식` {

}

companion object {
const val CHECKED = -1
}
}

fun main() {
Expand Down

0 comments on commit 1ea3478

Please sign in to comment.