Please sign in first.
Submission #66938187
Source Code Expand
from itertools import accumulate
from sys import stdin
input = stdin.readline
def solve():
size = int(input())
data = [0] + list(accumulate(map(int, input().split())))
for pos, one in enumerate(data):
line = []
for other in range(pos + 1, size):
two = data[other]
line.append(two - one)
if line:
print(*line)
solve()
Submission Info
| Submission Time | |
|---|---|
| Task | B - Distance Table |
| User | sleepingonee |
| Language | Python (PyPy 3.10-v7.3.12) |
| Score | 200 |
| Code Size | 411 Byte |
| Status | AC |
| Exec Time | 64 ms |
| Memory | 82364 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example_00.txt, example_01.txt |
| All | example_00.txt, example_01.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| example_00.txt | AC | 54 ms | 76588 KiB |
| example_01.txt | AC | 55 ms | 76568 KiB |
| hand_00.txt | AC | 64 ms | 82364 KiB |
| hand_01.txt | AC | 55 ms | 76820 KiB |
| hand_02.txt | AC | 63 ms | 82232 KiB |
| hand_03.txt | AC | 54 ms | 76528 KiB |
| hand_04.txt | AC | 61 ms | 82104 KiB |
| random_00.txt | AC | 58 ms | 80944 KiB |
| random_01.txt | AC | 58 ms | 80580 KiB |
| random_02.txt | AC | 61 ms | 82136 KiB |
| random_03.txt | AC | 58 ms | 80648 KiB |
| random_04.txt | AC | 59 ms | 81056 KiB |
| random_05.txt | AC | 59 ms | 80992 KiB |
| random_06.txt | AC | 58 ms | 80684 KiB |
| random_07.txt | AC | 59 ms | 81348 KiB |
| random_08.txt | AC | 58 ms | 80784 KiB |
| random_09.txt | AC | 59 ms | 80908 KiB |