Hello codeforces!
I would like to search for help about a problem:
Given $$$n$$$ points $$$x_i, y_i(|x_i|,|y_i| \lt =10^4)$$$ and $$$q$$$ queries. The $$$j^th$$$ query consists of 3 integers $$$C_j x, C_j y, z_i$$$ $$$(|C_j x|, |C_j y| \lt =100,1 \lt =z_i \lt =180)$$$: taking the center as $$$(C_jx, C_jy)$$$, rotate all n given points $$$z_i^o$$$ counterclockwise. Print the position of n points after q queries. Constraints: $$$1 \lt =n,q \lt =10^5$$$
(This is not my problem, and i just want to ask for idea because there is no online judge for this)
Sample test:
Input:
3 1
1 1 90
2 1 180
1 2 90
3 3
Output:
4.0000000000 6.0000000000
I want to ask for ideas that works with large $$$n,q$$$(Up to $$$10^5$$$) because for $$$O(nq)$$$ just brute-force for all points.
Thanks!




