-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpizza.java
44 lines (31 loc) · 1.08 KB
/
pizza.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
package Hashcode;
import java.util.*;
import Hashcode.Customer;
import java.io.*;
import Hashcode.Writer;
public class pizza{
public int Score(String[] ans,Customer[] cus){
int res=0;
return res;
}
public static void main(String[] args) {
try {
HashMap<String,Integer>likes=new HashMap<>();
HashMap<String,Integer>dislikes=new HashMap<>();
Reader reader=new Reader();
Writer w=new Writer();
Score score=new Score();
List<Customer>cus=reader.getinput("e_elaborate.in.txt");
List<String>chook=new ArrayList<>();
for(Map.Entry<String,Integer>map:reader.likesones.entrySet()){
chook.add(map.getKey());
}
System.out.println(score.calculate(cus,chook));
System.out.println(reader.likesones);
System.out.println(reader.dislikedones);
w.writeIntoFile(chook,"e.txt");
} catch (Exception e) {
return;
}
}
}