|
2 | 2 |
|
3 | 3 | from cyaron import * |
4 | 4 |
|
5 | | -_x = ati([0, 5, 10, 20, 100000]) |
6 | | -_n = ati([0, 23, 50, 60, 100000]) |
| 5 | + |
| 6 | +_n = ati([0, 10, 99, 100, 500, 1e3, 5e3, 3e4, 6e4, 9e4, 1e5]) |
| 7 | +_r = ati([0, 10, 20, 50, 2e2, 2e2, 4e2, 4e2, 7e2, 3e3, 4e3]) |
| 8 | +_c = ati([0, 10, 20, 50, 2e2, 3e2, 1e3, 5e2, 5e3, 3e3, 5e3]) |
7 | 9 |
|
8 | 10 | def oper(x): |
9 | | - return "%d %d" % (x.start, x.end) |
| 11 | + return "%d %d" % (x,start, x,end) |
10 | 12 |
|
11 | | -for i in range(1, 5): |
12 | | - test_data = IO(file_prefix="test", data_id=i, disable_output=True) |
| 13 | +for i in range(1, 11): |
| 14 | + test_data = IO(file_prefix="sqare", data_id=i) |
13 | 15 | n = _n[i] |
14 | | - x = _x[i] |
15 | | - test_data.input_writeln(x,x,n) |
16 | | - squre = Vector.random(n,[(1,x),(1,x)]) |
| 16 | + r = _r[i] |
| 17 | + c = _c[i] |
| 18 | + |
| 19 | + test_data.input_writeln(r,c,n) |
| 20 | + squre = Vector.random(n,[(1,int(math.sqrt(n)+100)),(1,int(math.sqrt(n)+100))]) |
17 | 21 | for j in range(0,n): |
18 | | - test_data.input_writeln(squre[j][0], squre[j][1], randint(1,100)) |
| 22 | + test_data.input_writeln(squre[j][0], squre[j][1], randint(1,c)) |
| 23 | + test_data.output_gen("a.exe") |
| 24 | + |
| 25 | +test_data=1 |
0 commit comments