Please sign in first.
Submission #42893343
Source Code Expand
fun main() {
val n = readLine()!!.toInt()
val a = readLine()!!.split(" ").map { it.toInt() }
var ans = mutableListOf<Long>()
for(i in 0 until n) {
var sum = 0L
for(j in 0 until 7) {
sum += a[j + i * 7]
}
ans.add(sum)
}
println(ans.joinToString(" "))
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Weekly Records |
| User | dhirabayashi |
| Language | Kotlin (1.3.71) |
| Score | 100 |
| Code Size | 333 Byte |
| Status | AC |
| Exec Time | 116 ms |
| Memory | 37856 KiB |
Compile Error
warning: ATTENTION! This build uses unsafe internal compiler arguments: -XXLanguage:+InlineClasses This mode is not recommended for production use, as no stability/compatibility guarantees are given on compiler or generated code. Use it at your own risk!
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_01.txt, sample_02.txt |
| All | random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, sample_01.txt, sample_02.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| random_01.txt | AC | 113 ms | 36220 KiB |
| random_02.txt | AC | 116 ms | 37856 KiB |
| random_03.txt | AC | 104 ms | 36092 KiB |
| random_04.txt | AC | 113 ms | 37728 KiB |
| random_05.txt | AC | 116 ms | 37744 KiB |
| random_06.txt | AC | 115 ms | 36308 KiB |
| random_07.txt | AC | 116 ms | 37604 KiB |
| random_08.txt | AC | 105 ms | 36364 KiB |
| sample_01.txt | AC | 110 ms | 36312 KiB |
| sample_02.txt | AC | 105 ms | 36228 KiB |