(SPOJ) Banco - Solution
Link to the problem: http://br.spoj.com/problems/BANCO12/ The solution below keeps a queue with the employees in order to discover who is the next employee that will serve the client.For every attendance, we check if the time that the employee will start to talk to the client minus the time that this client arrived at the bank is bigger than the 20 minutes. import java.io.*; import java.util.*; class Main { public void process() throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); String line = br.readLine(); String[] s = line.split(" "); int numEmployees = Integer.parseInt(s...