@@ -71,14 +71,14 @@ class Rand {
71
71
72
72
// Returns an random int value in the range [from, to] inclusive
73
73
int Int(int from, int to) {
74
- if (from == to) return from;
74
+ if (from == to) return from;
75
75
assert(from < to);
76
76
return rand() % (to - from) + from;
77
77
}
78
78
79
79
// Returns an random long long value in the range [from, to] inclusive
80
80
long long Long(long long from, long long to) {
81
- if (from == to) return from;
81
+ if (from == to) return from;
82
82
assert(from < to);
83
83
return rand() % (to - from) + from;
84
84
}
@@ -166,7 +166,7 @@ class Rand {
166
166
167
167
return res;
168
168
}
169
- };
169
+ }
170
170
`
171
171
172
172
const GeneratorTemplate = `
@@ -206,8 +206,9 @@ int main() {
206
206
}
207
207
`
208
208
const JavaTemplate = `
209
- import java.util.*;
209
+
210
210
import java.io.*;
211
+ import java.util.*;
211
212
212
213
/**
213
214
* Made by egor https://github.com/chermehdi/egor.
@@ -216,15 +217,11 @@ import java.io.*;
216
217
* {{end}}
217
218
*/
218
219
public class Main {
219
- void solve(Scanner in, PrintWriter out) {
220
-
221
- }
222
-
220
+ void solve(Scanner in, PrintWriter out) {}
223
221
public static void main(String[] args) {
224
- try(Scanner in = new Scanner(System.in);
225
- PrintWriter out = new PrintWriter(System.out)) {
226
- new Main().solve(in, out);
227
- }
222
+ try (Scanner in = new Scanner(System.in); PrintWriter out = new PrintWriter(System.out)) {
223
+ new Main().solve(in, out);
224
+ }
228
225
}
229
226
}
230
227
`
0 commit comments