eolymp
bolt
Спробуйте наш новий інтерфейс для відправки розв'язків
Задачі

AAAAHH! Overbooked!

AAAAHH! Overbooked!

Elaine is excited tobeg in 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? \InputFile The input consists of multiple test cases. Each test case begins with an integer \textbf{N}, \textbf{1} ≤ \textbf{N} ≤ 100, on a line by itself denoting the number of events. After that follow \textbf{N} lines giving the start and end times of each event, in \textbf{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 \textbf{N =0}, which should not be processed. \OutputFile For each test case, print out a single line that says "\textbf{conflict}" (no quotes) if Elaine's events have conflicting times, and "\textbf{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 секунда
Ліміт використання пам'яті 64 MiB
Вхідні дані #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