Submission #12093413


Source Code Expand

Copy
#include<bits/stdc++.h>

int main(){
    using namespace std;
    unsigned long N;
    cin >> N;
    vector<unsigned long> c(N);
    for(unsigned long i{1}, A; i < N; ++i){
        cin >> A;
        ++c[A - 1];
    }
    for(const auto& i : c)cout << i << endl;
    return 0;
}

Submission Info

Submission Time
Task C - management
User MMNMM
Language C++ (GCC 9.2.1)
Score 300
Code Size 290 Byte
Status AC
Exec Time 310 ms
Memory 4844 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 3
AC × 15
Set Name Test Cases
Sample sample_01, sample_02, sample_03
All 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 AC 301 ms 4844 KB
binary_02 AC 306 ms 4768 KB
line_01 AC 303 ms 4684 KB
line_02 AC 305 ms 4780 KB
random_01 AC 310 ms 4688 KB
random_02 AC 249 ms 4488 KB
random_03 AC 259 ms 4580 KB
random_04 AC 108 ms 3736 KB
sample_01 AC 2 ms 3492 KB
sample_02 AC 2 ms 3600 KB
sample_03 AC 2 ms 3492 KB
small_01 AC 2 ms 3496 KB
star_01 AC 283 ms 4684 KB
star_02 AC 284 ms 4844 KB
star_03 AC 289 ms 4608 KB