Submission #17461619


Source Code Expand

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 AC
Exec Time 132 ms
Memory 33204 KiB

Judge Result

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