2020-12-02 13:21:31 +01:00
|
|
|
# 2
|
|
|
|
|
|
|
|
For the first we can simply count the occurrences and see if they are between the accepted values.
|
|
|
|
Just some simple parsing.
|
|
|
|
|
|
|
|
The second one is similar, but we can be more efficient if we XOR the first and second position.
|
2020-12-02 13:24:17 +01:00
|
|
|
|
|
|
|
# 2
|
|
|
|
|
|
|
|
For the first we can simply count the occurrences and see if they are between the accepted values.
|
|
|
|
Just some simple parsing.
|
|
|
|
|
|
|
|
The second one is similar, but we can be more efficient if we XOR the first and second position.
|
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary>Solutions</summary>
|
|
|
|
<ol>
|
|
|
|
<li>548</li>
|
|
|
|
<li>502</li>
|
|
|
|
</ol>
|
|
|
|
</details>
|