| # | User | Rating |
|---|---|---|
| 1 | Benq | 3676 |
| 2 | Kevin114514 | 3659 |
| 3 | jiangly | 3640 |
| 4 | turmax | 3450 |
| 5 | tourist | 3382 |
| 6 | strapple | 3360 |
| 7 | Um_nik | 3354 |
| 8 | squareOf105 | 3348 |
| 9 | maroonrk | 3312 |
| 10 | idontwannadothis…e | 3191 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 155 |
| 2 | nik_exists | 151 |
| 3 | maspy | 149 |
| 4 | AmShZ | 145 |
| 5 | Um_nik | 143 |
| 6 | Errichto | 139 |
| 7 | BledDest | 136 |
| 8 | adamant | 134 |
| 9 | maroonrk | 132 |
| 10 | cry | 130 |
| Name |
|---|



Yes, the same thing was happened in my case.
But, you should have optimized the code, as you are taking input 3 x 10^6 numbers!
Your code gets AC without fastio: 267774400 (pikachu shocked emote)
Using scanf and printf is again an optimisation that does not compliment testing the logic of the code
I do not think you have a right idea of what optimization is.
Your argument can be disproved by the fact that most competitive programmers use C++. For other languages, sometimes TL is scaled higher. Using C++ instead of Java is not an optimization.
Inputs are larger precisely to check the logic and to not let codes with worse time complexity pass.