Skip to content

Commit 3419cf8

Browse files
authored
Update cfgym-102951B
1 parent c06020d commit 3419cf8

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

solutions/cfgym-102951B

+1-30
Original file line numberDiff line numberDiff line change
@@ -63,36 +63,7 @@ public class Main {
6363
io.println(ans);
6464
io.close();
6565
}
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}
9667
}
9768
```
9869

0 commit comments

Comments
 (0)