Submission #1458411
Source Code Expand
import java.util.*
fun main(args: Array<String>) {
val scanner = Scanner(System.`in`)
val n = scanner.nextInt()
val list = listOf<Int>().toMutableList()
val builder = StringBuilder()
(0 until n).forEach {
list.add(scanner.nextInt())
}
list.sort()
list.forEach {
builder.append(it)
builder.append(' ')
}
println(builder.toString().trim())
}
Submission Info
| Submission Time | |
|---|---|
| Task | D - ソート |
| User | C6H2Cl2 |
| Language | Kotlin (1.0.0) |
| Score | 200 |
| Code Size | 420 Byte |
| Status | AC |
| Exec Time | 209 ms |
| Memory | 33404 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_01.txt, sample_02.txt, sample_03.txt, sample_04.txt |
| All | sample_01.txt, sample_02.txt, sample_03.txt, sample_04.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, 01-09.txt, 01-10.txt, 01-11.txt, 01-12.txt, 01-13.txt, 01-14.txt, 01-15.txt, sample_01.txt, sample_02.txt, sample_03.txt, sample_04.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 01-01.txt | AC | 209 ms | 31764 KiB |
| 01-02.txt | AC | 198 ms | 33404 KiB |
| 01-03.txt | AC | 197 ms | 29600 KiB |
| 01-04.txt | AC | 197 ms | 29612 KiB |
| 01-05.txt | AC | 199 ms | 27556 KiB |
| 01-06.txt | AC | 198 ms | 29596 KiB |
| 01-07.txt | AC | 198 ms | 29604 KiB |
| 01-08.txt | AC | 201 ms | 29728 KiB |
| 01-09.txt | AC | 200 ms | 31516 KiB |
| 01-10.txt | AC | 199 ms | 29480 KiB |
| 01-11.txt | AC | 200 ms | 25760 KiB |
| 01-12.txt | AC | 200 ms | 33192 KiB |
| 01-13.txt | AC | 200 ms | 31520 KiB |
| 01-14.txt | AC | 200 ms | 27812 KiB |
| 01-15.txt | AC | 199 ms | 29596 KiB |
| sample_01.txt | AC | 192 ms | 29468 KiB |
| sample_02.txt | AC | 192 ms | 27684 KiB |
| sample_03.txt | AC | 192 ms | 29468 KiB |
| sample_04.txt | AC | 192 ms | 29472 KiB |