Hello everyone,
Can anyone tell me why the answer of this problem:
1283E - New Year Parties
to this test case:
9
9 5 7 9 6 4 6 4 8
is:
2 8
isn't 3 8 ?
Thanks in advanced.
Hello everyone,
Can anyone tell me why the answer of this problem:
1283E - New Year Parties
to this test case:
9
9 5 7 9 6 4 6 4 8
is:
2 8
isn't 3 8 ?
Thanks in advanced.
| # | User | Rating |
|---|---|---|
| 1 | Benq | 3792 |
| 2 | VivaciousAubergine | 3647 |
| 3 | Kevin114514 | 3611 |
| 4 | jiangly | 3583 |
| 5 | strapple | 3515 |
| 6 | tourist | 3470 |
| 7 | dXqwq | 3436 |
| 8 | Radewoosh | 3415 |
| 9 | Otomachi_Una | 3413 |
| 10 | Um_nik | 3376 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 164 |
| 2 | adamant | 150 |
| 3 | Um_nik | 146 |
| 4 | Dominater069 | 144 |
| 5 | errorgorn | 141 |
| 6 | cry | 139 |
| 7 | Proof_by_QED | 136 |
| 8 | YuukiS | 135 |
| 9 | chromate00 | 134 |
| 9 | TheScrasse | 134 |
| Name |
|---|



If we sort the array then it is like 4 4 5 6 6 7 8 9 9 We can convert it like 5 5 5 5 5 8 8 8 8 So the minimum answer is 2 instead of 3
Hello, I can't ac this problem . Can you show me your code? Java
https://mirror.codeforces.com/contest/1283/status/E Just look at java solutions by filtering by Java 8 or Java 11.