Submission #12092136


Source Code Expand

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

N, *A = map(int, read().split())
out_deg = [0] * (N + 1)
for x in A:
    out_deg[x] += 1

print('\n'.join(map(str, out_deg[1:])))

Submission Info

Submission Time
Task C - management
User maspy
Language Python (3.8.2)
Score 300
Code Size 258 Byte
Status
Exec Time 111 ms
Memory 34044 KB

Judge Result

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample_01, sample_02, sample_03
All 300 / 300 binary_01, binary_02, line_01, line_02, random_01, random_02, random_03, random_04, sample_01, sample_02, sample_03, small_01, star_01, star_02, star_03
Case Name Status Exec Time Memory
binary_01 101 ms 34032 KB
binary_02 102 ms 33860 KB
line_01 104 ms 33868 KB
line_02 104 ms 34032 KB
random_01 111 ms 34044 KB
random_02 97 ms 30952 KB
random_03 96 ms 31804 KB
random_04 48 ms 17304 KB
sample_01 20 ms 8884 KB
sample_02 18 ms 8988 KB
sample_03 19 ms 8988 KB
small_01 17 ms 8992 KB
star_01 93 ms 27924 KB
star_02 87 ms 27716 KB
star_03 94 ms 30076 KB