Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Input:
- 4 50 18 // maxim 4 scanduri, in total 50 de grajduri, doar 18 contin bovine
- 3 // prima bovina se afla in grajdul nr 3.
- 4 // a doua in 4 ...
- 6
- 8
- 14
- 15
- 16
- 17
- 21
- 25
- 26
- 27
- 30
- 31
- 40
- 41
- 42
- 43
- Output:
- 25
- Explicatie:
- Scandura 1: 3 - 8
- Scandura 2: 14 - 21
- Scandura 3: 25 - 31
- Scandura 4: 40 - 43
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement