Auto-mobile Charting & Manufacturing (ACM) is a company that specializes in manufacturing automobile spare parts. Being one of the leading automotive companies in the world, ACM are sure to keep up the latest information in that world. In the 100-year anniversary of the company, ACM compiled a huge list of range of prices of any automobiles ever recorded in the history. ACM then wants to develop a program that they called Automobile Expert System or AES for short.
The program receives a price P
The input begins with a line containing an integer T
$(T \le 10)$
-->
(T
WIDTH="18" HEIGHT="31" ALIGN="MIDDLE" BORDER="0"
SRC="/ntujudge/problemdata/632.png"
ALT="$ \le$">10)
$(D < 10000)$
-->
(D < 10000)
$(0 < L < H < 1000000)$
-->
(0 < L < H < 1000000)
$(Q < 1000)$
-->
(Q < 1000)
$(0 < P < 1000000)$
-->
(0 < P < 1000000)
Output for each query should be one line containing the name of the maker, or the string ``UNDETERMINED" (without quotes) if there is no maker or more than one maker that satisfies the query. You should separate output for different case by one empty line.
1
4
HONDA 10000 45000
PEUGEOT 12000 44000
BMW 30000 75900
CHEVROLET 7000 37000
4
60000
7500
5000
10000
BMW
CHEVROLET
UNDETERMINED
UNDETERMINED
Migrated from old NTUJ.
ACM ICPC regional Jakarta site 2008
No. | Testdata Range | Score |
---|