Submission #42892273
Source Code Expand
import std;
void main () {
int N = readln.chomp.to!int;
int[] A = readln.split.to!(int[]);
solve(N, A);
}
void solve (int N, int[] A) {
long sum = 0;
foreach (i; 0..A.length) {
sum += A[i];
if ((i+1) % 7 == 0) {
write(sum, " ");
sum = 0;
}
}
writeln("");
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Weekly Records |
| User | InTheBloom |
| Language | D (DMD 2.091.0) |
| Score | 100 |
| Code Size | 354 Byte |
| Status | AC |
| Exec Time | 6 ms |
| Memory | 3612 KiB |
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 | 6 ms | 3552 KiB |
| random_02.txt | AC | 3 ms | 3552 KiB |
| random_03.txt | AC | 2 ms | 3540 KiB |
| random_04.txt | AC | 2 ms | 3608 KiB |
| random_05.txt | AC | 2 ms | 3576 KiB |
| random_06.txt | AC | 2 ms | 3556 KiB |
| random_07.txt | AC | 2 ms | 3536 KiB |
| random_08.txt | AC | 2 ms | 3612 KiB |
| sample_01.txt | AC | 2 ms | 3568 KiB |
| sample_02.txt | AC | 2 ms | 3520 KiB |