arrow_forward همه ارسال‌ها

جزئیات ارسال کد#956

code_blocks
مسئله مربوطه: ساسان و حصار مثلثی (#45) arrow_outward
verified
وضعیت داوری نهایی: پذیرفته شد
terminal
زبان برنامه‌نویسی: Kotlin
schedule
ارسال‌کننده و زمان:
بیدندون (۵ ماه پیش)
descriptionsolution.kt ۷ خط • ۲۹۶ بایت
1fun main() {
2 val (x1, y1) = readLine()!!.split(" ").map { it.toLong() }
3 val (x2, y2) = readLine()!!.split(" ").map { it.toLong() }
4 val (x3, y3) = readLine()!!.split(" ").map { it.toLong() }
5
6 println(if ((x2 - x1) * (y3 - y1) - (y2 - y1) * (x3 - x1) != 0L) "Yes" else "No")
7}
کد ارسال‌شده برای داوری خودکار هاتکدز UTF-8