import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main (String args[]) throws IOException
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb=new StringBuilder(1000);
int testcases=Integer.parseInt(br.readLine());
for (int i = 0; i 0)
sb.append("\n");
int d=Integer.parseInt(br.readLine().trim());
String name[]=new String[d];
int lowestprice[]=new int[d];
int highestprice[]=new int[d];
for(int j=0;j=lowestprice[t] && queryvalue<=highestprice[t])
{
index=t;
count++;
}
}
if(count==1)
sb.append(name[index]+"\n");
else
sb.append("UNDETERMINED\n");
}
}
System.out.print(sb);
}
}
0 comments: