import java.io.PrintStream; import java.util.HashMap; import java.util.Scanner; /** * Solution to Unread Messages * * @author vanb */ public class unread_vanb { /** Input. */ private static Scanner sc; /** Output. */ private static PrintStream ps; /** * Do it! */ private void doit() { int n = sc.nextInt(); int m = sc.nextInt(); // Keep track of the last sent message for each sender HashMap messages = new HashMap(m); long unread = 0L; for( int i=0; i