hiho week 223 register

Ended

Participants:148

Verdict:Accepted
Score:100 / 100
Submitted:2018-10-08 21:52:46

Lang:Java

Edit
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
import java.util.Arrays;
import java.util.Scanner;
public class Main {
  private static class Tuple implements Comparable<Tuple> {
    final int st;
    Tuple(int sint t) {
      this.s = s;
      this.t = t;
    }
    public int compareTo(Tuple o) {
      if (this.s == o.s) {
        return this.t - o.t;
      } else {
        return this.s - o.s;
      }
    }
  }
  public static void main(String[] args) {
//    String input = "5 1 5\n" +
//      "1 2    \n" +
//      "1 3  \n" +
//      "2 4  \n" +
//      "3 5  \n" +
//      "4 5 ";
    Scanner scanner = new Scanner(System.in);
    int N = scanner.nextInt();
    int X = scanner.nextInt();
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX