{"problem":{"name":"Anti-Division","description":{"content":"You are given four integers $A$, $B$, $C$, and $D$. Find the number of integers between $A$ and $B$ (inclusive) that can be evenly divided by neither $C$ nor $D$.","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc131_c"},"statements":[{"statement_type":"Markdown","content":"You are given four integers $A$, $B$, $C$, and $D$. Find the number of integers between $A$ and $B$ (inclusive) that can be evenly divided by neither $C$ nor $D$.\n\n## Constraints\n\n*   $1\\leq A\\leq B\\leq 10^{18}$\n*   $1\\leq C,D\\leq 10^9$\n*   All values in input are integers.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$A$ $B$ $C$ $D$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc131_c","tags":[],"sample_group":[["4 9 2 3","2\n\n$5$ and $7$ satisfy the condition."],["10 40 6 8","23"],["314159265358979323 846264338327950288 419716939 937510582","532105071133627368"]],"created_at":"2026-03-03 11:01:13"}}