rbx.cp 0.5.42__py3-none-any.whl → 0.5.45__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rbx/box/cli.py +8 -0
- rbx/box/code.py +76 -3
- rbx/box/main.py +0 -4
- rbx/box/package.py +16 -2
- rbx/box/state.py +1 -0
- rbx/box/tasks.py +20 -1
- rbx/grading/judge/cacher.py +0 -4
- rbx/grading/judge/digester.py +0 -3
- rbx/grading/judge/sandbox.py +7 -0
- rbx/grading/judge/sandboxes/stupid_sandbox.py +10 -1
- rbx/grading/judge/sandboxes/timeit.py +109 -5
- rbx/grading/judge/storage.py +0 -4
- rbx/main.py +0 -4
- {rbx_cp-0.5.42.dist-info → rbx_cp-0.5.45.dist-info}/METADATA +1 -2
- {rbx_cp-0.5.42.dist-info → rbx_cp-0.5.45.dist-info}/RECORD +18 -49
- {rbx_cp-0.5.42.dist-info → rbx_cp-0.5.45.dist-info}/WHEEL +1 -1
- rbx/testdata/box1/gen1.cpp +0 -7
- rbx/testdata/box1/gen2.cpp +0 -9
- rbx/testdata/box1/genScript.py +0 -2
- rbx/testdata/box1/hard-tle.sol.cpp +0 -26
- rbx/testdata/box1/ole.cpp +0 -17
- rbx/testdata/box1/problem.rbx.yml +0 -39
- rbx/testdata/box1/re.sol.cpp +0 -23
- rbx/testdata/box1/sol.cpp +0 -22
- rbx/testdata/box1/tests/1.in +0 -1
- rbx/testdata/box1/tle-and-incorrect.sol.cpp +0 -33
- rbx/testdata/box1/tle.sol.cpp +0 -35
- rbx/testdata/box1/validator.cpp +0 -11
- rbx/testdata/box1/wa.sol.cpp +0 -22
- rbx/testdata/caching/executable.py +0 -1
- rbx/testdata/compatible +0 -0
- rbx/testdata/interactive/checker.cpp +0 -21
- rbx/testdata/interactive/gen.cpp +0 -11
- rbx/testdata/interactive/interactor.cpp +0 -63
- rbx/testdata/interactive/problem.rbx.yml +0 -40
- rbx/testdata/interactive/sols/af_ac_pe.cpp +0 -75
- rbx/testdata/interactive/sols/af_ac_re.cpp +0 -76
- rbx/testdata/interactive/sols/af_ac_too_many_iter.cpp +0 -72
- rbx/testdata/interactive/sols/af_inf_cout_with_flush.cpp +0 -79
- rbx/testdata/interactive/sols/af_inf_cout_without_flush.cpp +0 -78
- rbx/testdata/interactive/sols/af_ml.cpp +0 -78
- rbx/testdata/interactive/sols/af_tl_after_ans.cpp +0 -74
- rbx/testdata/interactive/sols/af_wa.cpp +0 -74
- rbx/testdata/interactive/sols/interactive-binary-search_mm_naive_cin.cpp +0 -17
- rbx/testdata/interactive/sols/main.cpp +0 -26
- rbx/testdata/interactive/testplan.txt +0 -6
- rbx/testdata/interactive/validator.cpp +0 -16
- {rbx_cp-0.5.42.dist-info → rbx_cp-0.5.45.dist-info}/LICENSE +0 -0
- {rbx_cp-0.5.42.dist-info → rbx_cp-0.5.45.dist-info}/entry_points.txt +0 -0
@@ -1,78 +0,0 @@
|
|
1
|
-
#include <algorithm>
|
2
|
-
#include <cassert>
|
3
|
-
#include <cmath>
|
4
|
-
#include <cstdio>
|
5
|
-
#include <cstring>
|
6
|
-
#include <ctime>
|
7
|
-
#include <iomanip>
|
8
|
-
#include <iostream>
|
9
|
-
#include <map>
|
10
|
-
#include <queue>
|
11
|
-
#include <set>
|
12
|
-
#include <sstream>
|
13
|
-
#include <string>
|
14
|
-
#include <vector>
|
15
|
-
|
16
|
-
#define forn(i, n) for (int i = 0; i < n; ++i)
|
17
|
-
#define fore(i, l, r) for (int i = int(l); i <= int(r); ++i)
|
18
|
-
#define sz(v) int(v.size())
|
19
|
-
#define all(v) v.begin(), v.end()
|
20
|
-
#define pb push_back
|
21
|
-
#define mp make_pair
|
22
|
-
#define x first
|
23
|
-
#define y1 ________y1
|
24
|
-
#define y second
|
25
|
-
#define ft first
|
26
|
-
#define sc second
|
27
|
-
#define pt pair<int, int>
|
28
|
-
|
29
|
-
template <typename X> inline X abs(const X &a) { return a < 0 ? -a : a; }
|
30
|
-
template <typename X> inline X sqr(const X &a) { return a * a; }
|
31
|
-
|
32
|
-
typedef long long li;
|
33
|
-
typedef long double ld;
|
34
|
-
|
35
|
-
using namespace std;
|
36
|
-
|
37
|
-
const int INF = 1000 * 1000 * 1000;
|
38
|
-
const ld EPS = 1e-9;
|
39
|
-
const ld PI = acos(-1.0);
|
40
|
-
|
41
|
-
int n;
|
42
|
-
int lf, rg;
|
43
|
-
|
44
|
-
bool read() {
|
45
|
-
cin >> n;
|
46
|
-
return true;
|
47
|
-
}
|
48
|
-
|
49
|
-
void solve() {
|
50
|
-
lf = 1, rg = n;
|
51
|
-
int it = 0;
|
52
|
-
while (rg - lf > 0) {
|
53
|
-
it++;
|
54
|
-
int mid = (lf + rg + 1) / 2;
|
55
|
-
cout << mid << endl;
|
56
|
-
fflush(stdout);
|
57
|
-
string s;
|
58
|
-
cin >> s;
|
59
|
-
if (s == "<")
|
60
|
-
rg = mid - 1;
|
61
|
-
else
|
62
|
-
lf = mid;
|
63
|
-
if (it > 5) {
|
64
|
-
while (true) {
|
65
|
-
cout << rand() % n + 1;
|
66
|
-
}
|
67
|
-
}
|
68
|
-
}
|
69
|
-
cout << "! " << lf << endl;
|
70
|
-
}
|
71
|
-
|
72
|
-
int main() {
|
73
|
-
srand(time(NULL));
|
74
|
-
cerr << setprecision(10) << fixed;
|
75
|
-
assert(read());
|
76
|
-
solve();
|
77
|
-
return 0;
|
78
|
-
}
|
@@ -1,78 +0,0 @@
|
|
1
|
-
#include <algorithm>
|
2
|
-
#include <cassert>
|
3
|
-
#include <cmath>
|
4
|
-
#include <cstdio>
|
5
|
-
#include <cstring>
|
6
|
-
#include <ctime>
|
7
|
-
#include <iomanip>
|
8
|
-
#include <iostream>
|
9
|
-
#include <map>
|
10
|
-
#include <queue>
|
11
|
-
#include <set>
|
12
|
-
#include <sstream>
|
13
|
-
#include <string>
|
14
|
-
#include <vector>
|
15
|
-
|
16
|
-
#define forn(i, n) for (int i = 0; i < n; ++i)
|
17
|
-
#define fore(i, l, r) for (int i = int(l); i <= int(r); ++i)
|
18
|
-
#define sz(v) int(v.size())
|
19
|
-
#define all(v) v.begin(), v.end()
|
20
|
-
#define pb push_back
|
21
|
-
#define mp make_pair
|
22
|
-
#define x first
|
23
|
-
#define y1 ________y1
|
24
|
-
#define y second
|
25
|
-
#define ft first
|
26
|
-
#define sc second
|
27
|
-
#define pt pair<int, int>
|
28
|
-
|
29
|
-
template <typename X> inline X abs(const X &a) { return a < 0 ? -a : a; }
|
30
|
-
template <typename X> inline X sqr(const X &a) { return a * a; }
|
31
|
-
|
32
|
-
typedef long long li;
|
33
|
-
typedef long double ld;
|
34
|
-
|
35
|
-
using namespace std;
|
36
|
-
|
37
|
-
const int INF = 1000 * 1000 * 1000;
|
38
|
-
const ld EPS = 1e-9;
|
39
|
-
const ld PI = acos(-1.0);
|
40
|
-
|
41
|
-
int n;
|
42
|
-
int lf, rg;
|
43
|
-
|
44
|
-
bool read() {
|
45
|
-
cin >> n;
|
46
|
-
return true;
|
47
|
-
}
|
48
|
-
|
49
|
-
void solve() {
|
50
|
-
lf = 1, rg = n;
|
51
|
-
vector<int> was;
|
52
|
-
int it = 0;
|
53
|
-
while (lf != rg) {
|
54
|
-
it++;
|
55
|
-
int mid = (lf + rg + 1) / 2;
|
56
|
-
if (it > 5)
|
57
|
-
for (int i = 0; i < 10000000; i++)
|
58
|
-
was.pb(rand());
|
59
|
-
cout << mid << endl;
|
60
|
-
fflush(stdout);
|
61
|
-
string s;
|
62
|
-
cin >> s;
|
63
|
-
if (s == "<")
|
64
|
-
rg = mid - 1;
|
65
|
-
else
|
66
|
-
lf = mid;
|
67
|
-
}
|
68
|
-
|
69
|
-
cout << "! " << lf << endl;
|
70
|
-
}
|
71
|
-
|
72
|
-
int main() {
|
73
|
-
srand(time(NULL));
|
74
|
-
cerr << setprecision(10) << fixed;
|
75
|
-
assert(read());
|
76
|
-
solve();
|
77
|
-
return 0;
|
78
|
-
}
|
@@ -1,74 +0,0 @@
|
|
1
|
-
#include <algorithm>
|
2
|
-
#include <cassert>
|
3
|
-
#include <cmath>
|
4
|
-
#include <cstdio>
|
5
|
-
#include <cstring>
|
6
|
-
#include <ctime>
|
7
|
-
#include <iomanip>
|
8
|
-
#include <iostream>
|
9
|
-
#include <map>
|
10
|
-
#include <queue>
|
11
|
-
#include <set>
|
12
|
-
#include <sstream>
|
13
|
-
#include <string>
|
14
|
-
#include <vector>
|
15
|
-
|
16
|
-
#define forn(i, n) for (int i = 0; i < n; ++i)
|
17
|
-
#define fore(i, l, r) for (int i = int(l); i <= int(r); ++i)
|
18
|
-
#define sz(v) int(v.size())
|
19
|
-
#define all(v) v.begin(), v.end()
|
20
|
-
#define pb push_back
|
21
|
-
#define mp make_pair
|
22
|
-
#define x first
|
23
|
-
#define y1 ________y1
|
24
|
-
#define y second
|
25
|
-
#define ft first
|
26
|
-
#define sc second
|
27
|
-
#define pt pair<int, int>
|
28
|
-
|
29
|
-
template <typename X> inline X abs(const X &a) { return a < 0 ? -a : a; }
|
30
|
-
template <typename X> inline X sqr(const X &a) { return a * a; }
|
31
|
-
|
32
|
-
typedef long long li;
|
33
|
-
typedef long double ld;
|
34
|
-
|
35
|
-
using namespace std;
|
36
|
-
|
37
|
-
const int INF = 1000 * 1000 * 1000;
|
38
|
-
const ld EPS = 1e-9;
|
39
|
-
const ld PI = acos(-1.0);
|
40
|
-
|
41
|
-
int n;
|
42
|
-
int lf, rg;
|
43
|
-
|
44
|
-
bool read() {
|
45
|
-
cin >> n;
|
46
|
-
return true;
|
47
|
-
}
|
48
|
-
|
49
|
-
void solve() {
|
50
|
-
lf = 1, rg = n;
|
51
|
-
while (lf != rg) {
|
52
|
-
int mid = (lf + rg + 1) / 2;
|
53
|
-
cout << mid << endl;
|
54
|
-
fflush(stdout);
|
55
|
-
string s;
|
56
|
-
cin >> s;
|
57
|
-
if (s == "<")
|
58
|
-
rg = mid - 1;
|
59
|
-
else
|
60
|
-
lf = mid;
|
61
|
-
}
|
62
|
-
|
63
|
-
cout << "! " << lf << endl;
|
64
|
-
while (true) {
|
65
|
-
}
|
66
|
-
}
|
67
|
-
|
68
|
-
int main() {
|
69
|
-
srand(time(NULL));
|
70
|
-
cerr << setprecision(10) << fixed;
|
71
|
-
assert(read());
|
72
|
-
solve();
|
73
|
-
return 0;
|
74
|
-
}
|
@@ -1,74 +0,0 @@
|
|
1
|
-
#include <algorithm>
|
2
|
-
#include <cassert>
|
3
|
-
#include <cmath>
|
4
|
-
#include <cstdio>
|
5
|
-
#include <cstring>
|
6
|
-
#include <ctime>
|
7
|
-
#include <iomanip>
|
8
|
-
#include <iostream>
|
9
|
-
#include <map>
|
10
|
-
#include <queue>
|
11
|
-
#include <set>
|
12
|
-
#include <sstream>
|
13
|
-
#include <string>
|
14
|
-
#include <vector>
|
15
|
-
|
16
|
-
#define forn(i, n) for (int i = 0; i < n; ++i)
|
17
|
-
#define fore(i, l, r) for (int i = int(l); i <= int(r); ++i)
|
18
|
-
#define sz(v) int(v.size())
|
19
|
-
#define all(v) v.begin(), v.end()
|
20
|
-
#define pb push_back
|
21
|
-
#define mp make_pair
|
22
|
-
#define x first
|
23
|
-
#define y1 ________y1
|
24
|
-
#define y second
|
25
|
-
#define ft first
|
26
|
-
#define sc second
|
27
|
-
#define pt pair<int, int>
|
28
|
-
|
29
|
-
template <typename X> inline X abs(const X &a) { return a < 0 ? -a : a; }
|
30
|
-
template <typename X> inline X sqr(const X &a) { return a * a; }
|
31
|
-
|
32
|
-
typedef long long li;
|
33
|
-
typedef long double ld;
|
34
|
-
|
35
|
-
using namespace std;
|
36
|
-
|
37
|
-
const int INF = 1000 * 1000 * 1000;
|
38
|
-
const ld EPS = 1e-9;
|
39
|
-
const ld PI = acos(-1.0);
|
40
|
-
|
41
|
-
int n;
|
42
|
-
int lf, rg;
|
43
|
-
|
44
|
-
bool read() {
|
45
|
-
cin >> n;
|
46
|
-
return true;
|
47
|
-
}
|
48
|
-
|
49
|
-
void solve() {
|
50
|
-
lf = 1, rg = n;
|
51
|
-
while (rg - lf > 1) {
|
52
|
-
int mid = (lf + rg + 1) / 2;
|
53
|
-
cout << mid << endl;
|
54
|
-
fflush(stdout);
|
55
|
-
string s;
|
56
|
-
cin >> s;
|
57
|
-
if (s == "<")
|
58
|
-
rg = mid - 1;
|
59
|
-
else
|
60
|
-
lf = mid;
|
61
|
-
}
|
62
|
-
int ans = lf;
|
63
|
-
if (rand() % 2)
|
64
|
-
ans = rg;
|
65
|
-
cout << "! " << ans << endl;
|
66
|
-
}
|
67
|
-
|
68
|
-
int main() {
|
69
|
-
srand(time(NULL));
|
70
|
-
cerr << setprecision(10) << fixed;
|
71
|
-
assert(read());
|
72
|
-
solve();
|
73
|
-
return 0;
|
74
|
-
}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
#include <iostream>
|
2
|
-
|
3
|
-
using namespace std;
|
4
|
-
|
5
|
-
int main() {
|
6
|
-
int n;
|
7
|
-
cin >> n;
|
8
|
-
for (int i = n; i >= 1; i--) {
|
9
|
-
cout << i << endl << flush;
|
10
|
-
string response;
|
11
|
-
cin >> response;
|
12
|
-
if (response == ">=") {
|
13
|
-
cout << "! " << i << endl << flush;
|
14
|
-
return 0;
|
15
|
-
}
|
16
|
-
}
|
17
|
-
}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
#include <cstdio>
|
2
|
-
#include <cstring>
|
3
|
-
|
4
|
-
using namespace std;
|
5
|
-
|
6
|
-
int main() {
|
7
|
-
int n;
|
8
|
-
scanf("%d", &n);
|
9
|
-
|
10
|
-
int l = 1, r = n;
|
11
|
-
while (l != r) {
|
12
|
-
int mid = (l + r + 1) / 2;
|
13
|
-
printf("%d\n", mid);
|
14
|
-
fflush(stdout);
|
15
|
-
|
16
|
-
char response[3];
|
17
|
-
scanf("%s", response);
|
18
|
-
if (strcmp(response, "<") == 0)
|
19
|
-
r = mid - 1;
|
20
|
-
else
|
21
|
-
l = mid;
|
22
|
-
}
|
23
|
-
|
24
|
-
printf("! %d\n", l);
|
25
|
-
fflush(stdout);
|
26
|
-
}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
#include "testlib.h"
|
2
|
-
#include <bits/stdc++.h>
|
3
|
-
|
4
|
-
using namespace std;
|
5
|
-
|
6
|
-
int main(int argc, char *argv[]) {
|
7
|
-
registerValidation(argc, argv);
|
8
|
-
|
9
|
-
int x = inf.readInt(1, 1000 * 1000, "x");
|
10
|
-
inf.readSpace();
|
11
|
-
int n = inf.readInt(1, 1000 * 1000, "n");
|
12
|
-
inf.readEoln();
|
13
|
-
ensure(x <= n);
|
14
|
-
|
15
|
-
inf.readEof();
|
16
|
-
}
|
File without changes
|
File without changes
|