Let's say I have a big range (<= 1e9) from l to r. I need to generate N distinct numbers from this range using testlib. What would be the cleanest way to do that?
| # | User | Rating |
|---|---|---|
| 1 | jiangly | 3810 |
| 2 | Benq | 3676 |
| 3 | Kevin114514 | 3655 |
| 4 | maroonrk | 3463 |
| 5 | strapple | 3447 |
| 6 | Um_nik | 3387 |
| 7 | heuristica | 3322 |
| 8 | turmax | 3317 |
| 9 | tourist | 3307 |
| 10 | jiangbowen | 3291 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 156 |
| 2 | nik_exists | 150 |
| 2 | maspy | 150 |
| 4 | Um_nik | 143 |
| 5 | Errichto | 139 |
| 6 | adamant | 137 |
| 7 | AmShZ | 135 |
| 8 | maroonrk | 133 |
| 9 | BledDest | 132 |
| 10 | qwexd | 129 |
Let's say I have a big range (<= 1e9) from l to r. I need to generate N distinct numbers from this range using testlib. What would be the cleanest way to do that?
Hello! I have recently been solving a task, and I have encountered some weird behavior on codeforces. I have submitted 2 solutions: https://codeforces.me/contest/1304/submission/343285292 https://codeforces.me/contest/1304/submission/343285436
One of them received the "Idleness limit exceeded on test 1" verdict, while the other got "Accepted". However, the only difference between these 2 submissions is the following line:
int elemCount = lcaList.size();
int elemCount = 2*n-1;
Can anyone explain to me what is causing this behavior?
Edit: The ILE seems to only happen on G++ 20, not G++ 17 or 23. Compiler bug?
| Name |
|---|


