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

7637번 - AAAAHH! Overbooked! 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 128 MB20813412371.098%

문제

Elaine is excited to begin the school year—so excited, in fact, that she signed herself up to attend several events today (This programming contest, sadly, is not one of them). She may have overdone it, though; she didn’t bother to check whether the events she signed up for have conflicting times. While you’re sitting here in this contest, why not check for her?

입력

The input consists of multiple test cases. Each test case begins with an integer N, 1 ≤ N ≤ 100, on a line by itself denoting the number of events. After that follow N lines giving the start and end times of each event, in hh:mm-hh:mm 24-hour format. The end time is guaranteed to be strictly after the start time. Input is followed by a single line with N = 0, which should not be processed.

출력

For each test case, print out a single line that says “conflict” (no quotes) if Elaine’s events have conflicting times, and “no conflict” (no quotes) otherwise. Assume that Elaine can travel around campus instantaneously, so if an event starts at the same time another event ends, the two events do not conflict.

제한

예제 입력 1

3
09:00-09:50
13:00-17:00
09:50-10:30
2
10:00-11:00
09:00-12:00
0

예제 출력 1

no conflict
conflict

힌트

출처

University > Stanford Local ACM Programming Contest > SLPC 2010 Round One A번

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

출처

대학교 대회

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

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