-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbwtinverse.java
43 lines (34 loc) · 1.07 KB
/
bwtinverse.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
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
public class InverseBWT {
class FastScanner {
StringTokenizer tok = new StringTokenizer("");
BufferedReader in;
FastScanner() {
in = new BufferedReader(new InputStreamReader(System.in));
}
String next() throws IOException {
while (!tok.hasMoreElements())
tok = new StringTokenizer(in.readLine());
return tok.nextToken();
}
int nextInt() throws IOException {
return Integer.parseInt(next());
}
}
String inverseBWT(String bwt) {
StringBuilder result = new StringBuilder();
// write your code here
return result.toString();
}
static public void main(String[] args) throws IOException {
new InverseBWT().run();
}
public void run() throws IOException {
FastScanner scanner = new FastScanner();
String bwt = scanner.next();
System.out.println(inverseBWT(bwt));
}
}