2472번 - 체인점
https://www.acmicpc.net/board/view/50251
위 글에서 쓴 관점에서
<입력>
53 4 561 3 51 4 11 5 12 3 52 4 22 5 3
5
1
2
3
4
<출력>
YESYESYESYESYES가 나와야 하는데,https://www.acmicpc.net/source/19334684https://www.acmicpc.net/source/10674130https://www.acmicpc.net/source/15670145https://www.acmicpc.net/source/10760583
https://www.acmicpc.net/source/19286644
등등의 코드에서 YESNOYESYESYES를 출력합니다.수정부탁드립니다.
재채점했습니다.
댓글을 작성하려면 로그인해야 합니다.
lsn1106 6년 전 5
https://www.acmicpc.net/board/view/50251
위 글에서 쓴 관점에서
<입력>
5
3 4 5
6
1 3 5
1 4 1
1 5 1
2 3 5
2 4 2
2 5 3
5
1
2
3
4
5
<출력>
YES
YES
YES
YES
YES
가 나와야 하는데,
https://www.acmicpc.net/source/19334684
https://www.acmicpc.net/source/10674130
https://www.acmicpc.net/source/15670145
https://www.acmicpc.net/source/10760583
https://www.acmicpc.net/source/19286644
등등의 코드에서
YES
NO
YES
YES
YES
를 출력합니다.
수정부탁드립니다.