Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions 987A.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ public static void main (String[] args) {
if(n > 0)
scan.nextLine();

HashMap<String,String> hm = new HashMap<>();
HashMap<String , String> hm = new HashMap<>();
hm.put("purple","Power");
hm.put("green","Time");
hm.put("blue","Space");
hm.put("orange","Soul");
hm.put("red","Reality");
hm.put("yellow","Mind");

for(int i=0; i<n; i++) {
for(int i = 0 ; i < n ; i++) {
String key = scan.nextLine();
String temp = hm.get(key);
if(temp != null) {
Expand All @@ -35,4 +35,4 @@ public static void main (String[] args) {
}

}
}
}