포럼
문제 ICPC00363

J. Jumbled Scoreboards

설명

You were so hyped to attend the final game of the Ball And Paddle Competition, where the two best teams in the world compete to paddle as many balls into the opponent's goal as possible. But alas, you fell ill, and cannot join your friends. Luckily, your friends took lots of pictures during the match, and after the match concluded, they sent you all the pictures that they have. Because the messaging app uploads and downloads the pictures in parallel, you are wondering whether you received them in chronological order. It looks like the scoreboards in each picture are unique, and knowing that the score of a team can only increase over time, you should be able to figure this out. Feeling too sick to check the order of the pictures manually, you decide to write a program that checks temporal consistency based on the scoreboards that are in the picture.

Given a list of intermediate scores from the match, determine whether the scores are in chronological order.

제약
입력 형식

The input consists of:
- One line with an integer \(n\) (\(1\leq n\leq 100\)), the number of pictures you received.
- \(n\) lines, each with two integers \(a\) and \(b\) (\(0 \leq a,b \leq 100\)), the scores of the two teams in one of the pictures.

Every pair of scores \((a, b)\) in the input is unique.

The order of the scores in the input is the order in which you received the pictures.

출력 형식

Output "yes" if the scores are in chronological order, or "no" if they are not.

예제 1
입력
4
1 0
2 0
4 0
4 1
출력
yes
예제 2
입력
3
0 0
1 0
0 2
출력
no
예제 3
입력
5
1 2
0 0
4 3
2 3
5 5
출력
no
문제 정보

생성자가 기록되지 않았습니다.

출처 ICPC BAPC 2024

평가 및 의견

J. Jumbled Scoreboards

개요
출제자 난이도 Unrated 레이팅 미적용 의견 0 / 1 공개 집계 (커뮤니티 난이도, 주요 주제, 품질)는 의견이 충분히 모이면 공개됩니다.

Log in to rate problems.

개별 의견

아직 의견이 없습니다. 자격이 된다면 위 양식에서 가장 먼저 평가해 보세요.

풀이 제출

J. Jumbled Scoreboards

게스트로 둘러보고 있습니다. 로그인하면 풀이를 제출하고 진행 상황을 확인할 수 있습니다. 로그인하고 제출하기
공개
C++20 Tab 들여쓰기 · Ctrl+/ 주석 토글 · Enter 자동 들여쓰기
1 1 1 0 공백: 4 · UTF-8