File tree 1 file changed +1
-30
lines changed
1 file changed +1
-30
lines changed Original file line number Diff line number Diff line change @@ -63,36 +63,7 @@ public class Main {
63
63
io.println(ans);
64
64
io.close();
65
65
}
66
- static class Kattio extends PrintWriter {
67
- private BufferedReader r;
68
- private StringTokenizer st;
69
-
70
- // standard input
71
- public Kattio() { this(System.in, System.out); }
72
- public Kattio(InputStream i, OutputStream o) {
73
- super(o);
74
- r = new BufferedReader(new InputStreamReader(i));
75
- }
76
- // USACO-style file input
77
- public Kattio(String problemName) throws IOException {
78
- super(new FileWriter(problemName + ".out"));
79
- r = new BufferedReader(new FileReader(problemName + ".in"));
80
- }
81
-
82
- // returns null if no more input
83
- public String next() {
84
- try {
85
- while (st == null || !st.hasMoreTokens())
86
- st = new StringTokenizer(r.readLine());
87
- return st.nextToken();
88
- } catch (Exception e) { }
89
- return null;
90
- }
91
-
92
- public int nextInt() { return Integer.parseInt(next()); }
93
- public double nextDouble() { return Double.parseDouble(next()); }
94
- public long nextLong() { return Long.parseLong(next()); }
95
- }
66
+ //CodeSnip{Kattio}
96
67
}
97
68
```
98
69
You can’t perform that action at this time.
0 commit comments