Vauvau
In a nearby village, the postman, milkman and garbage man face the same problem morning after morning: house 18. House 18 is guarded by two dogs that often cause problems. What they don't know is that the dogs' behaviour is completely predictable. When the day starts, one dog is aggressive for A minutes and is then calm for B minutes. Similarly, the other dog is aggressive for [] minutes, then calm for D minutes. Both dogs repeat their behaviours indefinitely, starting a new aggressive period after the calm period, then another calm period etc. Given the arrival times of the postman, milkman and garbage man, determine how many dogs (none, one or both) attack each of them.
[c]2 2 3 3
1 3 4
Output
both
one
none2 3 4 5
4 9 5 Output
one
none
noneSubmit solution
Coming laterThe grading service will be connected in a later migration step. You can inspect the task and your previous results now.