Here line 12 and 14 should output the same value (expected output 1)
But why when I call range(i,mn,mx) it outputs 0?
| # | 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 | 155 |
| 2 | nik_exists | 150 |
| 2 | maspy | 150 |
| 4 | Um_nik | 143 |
| 5 | Errichto | 139 |
| 6 | adamant | 137 |
| 7 | AmShZ | 136 |
| 8 | BledDest | 132 |
| 9 | maroonrk | 131 |
| 10 | qwexd | 129 |
Here line 12 and 14 should output the same value (expected output 1)
But why when I call range(i,mn,mx) it outputs 0?
| Name |
|---|



you should write
instead of
why ?
If you write
#define range(i,mn,mx) ((i >= mn) && (i <= mx)?1:0)thenrange(x||y,0,1)will be like((x||y >= mn) && (x||y <= mx)?1:0)=>((x||(y >= mn)) && (x||(y <= mx))?1:0)