Sponsored
Use these hints if you're stuck. Try solving on your own first.
For a given day, determine if Alice or Bob or both are in Rome.
Brute force all 365 days for both Alice and Bob.
Solve with full IDE support and test cases