Exemplo n.º 1
0
 protected override long?SolvePart1Impl(string input) => Passport.ParseBatch(input).Count(passport => passport.HasRequiredFields);
Exemplo n.º 2
0
 protected override long?SolvePart2Impl(string input) => Passport.ParseBatch(input).Count(passport => passport.IsValid);