File upload

🎨AI Resource Generation

No prompt

레이저와 거울

profile
Time limitMemory limit
2 sec512 MB
📃 Problem
💻 Input
🖨️ Output

💻 Sample Input 1
4 0 0 7 2
3 2
0 2
1 6
3 0
🖨️ Sample Output 1
1

💡 Hint

Source: USACO 2016 December Contest, Gold Problem 3. Lasers and Mirrors