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

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

code_blocks
مسئله مربوطه: جمع امتیاز ها (#4) arrow_outward
verified
وضعیت داوری نهایی: پذیرفته شد
terminal
زبان برنامه‌نویسی: Kotlin
schedule
ارسال‌کننده و زمان:
melisa azadi (۱۰ ماه پیش)
descriptionsolution.kt ۱۰ خط • ۱۷۱ بایت
1
2
3fun main(){
4 val x = readLine()!!.toDouble()
5 val y = readLine()!!.toDouble()
6 val z = readLine()!!.toDouble()
7
8 val q = ((x+y+z)/3).toInt()
9 println(q)
10}
کد ارسال‌شده برای داوری خودکار هاتکدز UTF-8