-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUri1546.java
49 lines (32 loc) · 1.01 KB
/
Uri1546.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import java.util.Scanner;
//import java.util.*;
public class Uri1546 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int a,b,c=0 ,temp = 0;
String For1 = "Rolien";
String For2 = "Naej";
String For3 = "Elehcim";
String For4 = "Odranoel";
int invalue;
a = scan.nextInt();
for (int i=0;i<a;i++){
b = scan.nextInt();
for (int j=0;j<b;j++){
invalue = scan.nextInt();
if (invalue == 1){
System.out.println(For1);
}
else if (invalue == 2){
System.out.println(For2);
}
else if (invalue == 3){
System.out.println(For3);
}
else if (invalue == 4){
System.out.println(For4);
}
}
}
}
}