-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlasers.java
More file actions
31 lines (18 loc) · 795 Bytes
/
lasers.java
File metadata and controls
31 lines (18 loc) · 795 Bytes
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.io.*;
import java.util.*;
public class lasers {
public static void main(String[] args) throws IOException {
// write your code here
BufferedReader f = new BufferedReader(new FileReader("lasers.in"));
// input file name goes above
PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("lasers.out")));
StringTokenizer st = new StringTokenizer(f.readLine());
int count = Integer.parseInt(st.nextToken());
int startx = Integer.parseInt(st.nextToken());
int starty = Integer.parseInt(st.nextToken());
int endx = Integer.parseInt(st.nextToken());
int endy = Integer.parseInt(st.nextToken());
HashSet<Integer> seeny = new HashSet<Integer>();
out.close();
}
}