| Contests - ACM Student Chapter - PSUT |
|---|
| Private |
| Spectator |
| ZU JCPC Qualification 2026 |
|---|
| Finished |
Essam has recently discovered his love for arithmetic progressions. Today, he chose three positive integers $$$n$$$, $$$k$$$, and $$$l$$$.
He grabbed a marker and wrote two separate sequences on his whiteboard:
Essam is only interested in even numbers. He wants to find the total number of even integers written on his whiteboard across both sequences. If a number appears in both sequences, Essam writes it twice, and it should be counted twice. Given $$$n$$$, $$$k$$$, and $$$l$$$, help Essam find the total number of even integers.
The first line contains a single integer $$$t$$$ ($$$1 \le t \le 10^4$$$) — the number of test cases. The only line of each test case contains three integers $$$n$$$, $$$k$$$, and $$$l$$$ ($$$1 \le n, k, l \le 10^9$$$).
For each test case, output a single integer — the total number of even integers written on the whiteboard.
34 2 35 3 510 4 6
6 4 20
| Name |
|---|

