Submission #3976314


Source Code Expand

Copy
fun main(args: Array<String>){
    val N = readLine()!!.toInt()
    var sum = 0
    for(i in 1..N){
        sum = sum + i
    }
    println(sum * 10000 / N )
}

Submission Info

Submission Time
Task A - AtCoder社の給料
User zoothezoo
Language Kotlin (1.0.0)
Score 100
Code Size 166 Byte
Status
Exec Time 204 ms
Memory 31580 KB

Judge Result

Set Name Score / Max Score Test Cases
All 100 / 100 00_sample_01.txt, 00_sample_02.txt, test_100.txt, test_14.txt, test_29.txt, test_4.txt, test_42.txt, test_48.txt, test_54.txt, test_59.txt, test_71.txt, test_72.txt, test_84.txt, test_96.txt
Case Name Status Exec Time Memory
00_sample_01.txt 204 ms 29860 KB
00_sample_02.txt 198 ms 29644 KB
test_100.txt 201 ms 27808 KB
test_14.txt 199 ms 27904 KB
test_29.txt 199 ms 27692 KB
test_4.txt 198 ms 29596 KB
test_42.txt 199 ms 27944 KB
test_48.txt 197 ms 29788 KB
test_54.txt 200 ms 29952 KB
test_59.txt 199 ms 29636 KB
test_71.txt 198 ms 29664 KB
test_72.txt 201 ms 29880 KB
test_84.txt 199 ms 31580 KB
test_96.txt 199 ms 29872 KB