Submission #17461619


Source Code Expand

Copy
import sys
import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

X = np.array(read().split(), np.int64)[1:]

a = np.sum(np.abs(X))
b = np.sum(X * X)**.5
c = np.max(np.abs(X))

print(a, b, c)

Submission Info

Submission Time
Task B - Various distances
User maspy
Language Python (3.8.2)
Score 200
Code Size 275 Byte
Status
Exec Time 132 ms
Memory 33204 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
× 2
× 18
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All hand_01.txt, hand_02.txt, hand_03.txt, hand_10.txt, hand_11.txt, hand_12.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, random_10.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
hand_01.txt 123 ms 27932 KB
hand_02.txt 122 ms 28092 KB
hand_03.txt 131 ms 33096 KB
hand_10.txt 112 ms 26924 KB
hand_11.txt 110 ms 27060 KB
hand_12.txt 121 ms 27972 KB
random_01.txt 129 ms 33116 KB
random_02.txt 113 ms 27412 KB
random_03.txt 125 ms 33012 KB
random_04.txt 122 ms 31368 KB
random_05.txt 132 ms 32984 KB
random_06.txt 111 ms 27388 KB
random_07.txt 127 ms 33204 KB
random_08.txt 122 ms 30576 KB
random_09.txt 129 ms 33044 KB
random_10.txt 110 ms 27176 KB
sample_01.txt 108 ms 26836 KB
sample_02.txt 109 ms 27208 KB