Submission #71468944


Source Code Expand

fun main() {
    val cin = System.`in`.bufferedReader()
    val cout = System.out.bufferedWriter()

    var n = cin.readLine().toInt()
    cout.write("${n*(n+1)/2}")
    cout.newLine()
    cout.flush()
}

Submission Info

Submission Time
Task A - Triangular Number
User jagbarrameda
Language Kotlin (Kotlin/JVM 2.2.10)
Score 100
Code Size 213 Byte
Status AC
Exec Time 56 ms
Memory 40208 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 11
Set Name Test Cases
Sample example_00.txt, example_01.txt, example_02.txt
All example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt
Case Name Status Exec Time Memory
example_00.txt AC 56 ms 40004 KiB
example_01.txt AC 48 ms 39920 KiB
example_02.txt AC 47 ms 39980 KiB
hand_00.txt AC 47 ms 39948 KiB
hand_01.txt AC 47 ms 40208 KiB
hand_02.txt AC 47 ms 39716 KiB
random_00.txt AC 46 ms 39924 KiB
random_01.txt AC 46 ms 39816 KiB
random_02.txt AC 45 ms 39740 KiB
random_03.txt AC 45 ms 39736 KiB
random_04.txt AC 45 ms 39912 KiB