유기농 배추(백준)
package com.dofury.kotlin import java.io.BufferedReader import java.io.BufferedWriter import java.io.InputStreamReader import java.io.OutputStreamWriter class Location(val x: Int,val y:Int){ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is Location) return false return this.x == other.x && this.y == other.y } override fun hashCode(): Int { var result = x ..
코딩테스트
2023. 7. 26. 15:44