Logo
(追記) (追記ここまで)

21838번 - One-way Sidewalks 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
5 초 256 MB79171319.403%

문제

A typical sidewalk in Waterloo is 1.5 metres wide. Two people walking in opposite directions cannot pass each other while maintaining 2 metres of physical separation. Many cities have designated one-way sidewalks to be used in only one direction. Usually, there is another sidewalk that makes it possible to walk in the opposite direction. Sometimes this is not possible because there is only a single route connecting a pair of places in the city. In these cases, some cities close part of the roadway to cars to allow for a wider walking area. Doing so is expensive and makes car drivers angry, so the city does this only in places where it is absolutely necessary.

입력

The first line of input contains two integers N, M, the number of places and the number of sidewalks in the city, with 0 ≤ N, M ≤ 200, 000. There is a path from every place to every other place. The next M lines each describe a sidewalk using two integers A, B, with 1 ≤ A, B ≤ N, which identify the two places connected by the sidewalk.

출력

Generate M lines of output, one for each sidewalk, in the same order as the sidewalks are listed in the input. Each line should contain the character > if the sidewalk should be made one-way in the direction from place A to B, the character < if it should be made one-way in the opposite direction, or = if the sidewalk must be widened to remain two-way. Your solution must minimize the number of sidewalks that need to be widened. If there are multiple solutions that minimize the number of sidewalks that need to be widened, you may output any one of those solutions.

제한

예제 입력 1

4 4
1 2
2 3
3 1
1 4

예제 출력 1

>
>
>
=

힌트

출처

Contest > Waterloo's local Programming Contests > 24 October, 2020 E번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /