| acmsguru |
|---|
| Finished |
. The second line contains an integer L, 1 ≤ L ≤ 109. The next n lines contain 3 integers each, pi, ci, di — the location, color and direction of i-th chameleon, 0 ≤ pi < L, 1 ≤ ci ≤ 109, di is either -1 or 1. The last line contains an integer T, 0 ≤ T ≤ 1018. sample input | sample output |
4 13 2 1 1 0 2 -1 12 3 1 5 2 1 23 | 2.000 2 1 12.000 1 1 9.000 3 1 3.000 3 -1 |
| Name |
|---|


