Skip to content

Commit

Permalink
revert 10000->10'000, fix macos-12-gpp, macos-13-gpp
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMirzayanov committed Sep 22, 2024
1 parent 5b780b3 commit 7b15e65
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ jobs:
matrix:
os: [macos-12]
compiler: [g++]
version: [11, 12, 13]
version: [12, 13, 14]
name: Use ${{ matrix.compiler }}-${{ matrix.version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -209,7 +209,7 @@ jobs:
matrix:
os: [macos-13]
compiler: [g++]
version: [11, 12, 13]
version: [12, 13, 14]
name: Use ${{ matrix.compiler }}-${{ matrix.version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion generators/igen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ using namespace std;
int main(int argc, char *argv[]) {
registerGen(argc, argv, 1);

println(rnd.next(1, 1'000'000));
println(rnd.next(1, 1000000));
}
10 changes: 5 additions & 5 deletions generators/iwgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
*
* If parameter "weight" > 0 then you can think about it as code like this:
* <code>
* result = rnd.next(1, 1'000'000);
* result = rnd.next(1, 1000000);
* for (int i = 0; i < weight; i++)
* result = max(result, rnd.next(1, 1'000'000));
* result = max(result, rnd.next(1, 1000000));
* </code>
*
* If parameter "weight" < 0 then you can think about it as code like this:
* <code>
* result = rnd.next(1, 1'000'000);
* result = rnd.next(1, 1000000);
* for (int i = 0; i < -weight; i++)
* result = min(result, rnd.next(1, 1'000'000));
* result = min(result, rnd.next(1, 1000000));
* </code>
*
* It is typical behaviour of "wnext" methods to use this strategy to
Expand All @@ -30,5 +30,5 @@ using namespace std;
int main(int argc, char *argv[]) {
registerGen(argc, argv, 1);

println(rnd.wnext(1, 1'000'000, opt<int>(1)));
println(rnd.wnext(1, 1000000, opt<int>(1)));
}
2 changes: 1 addition & 1 deletion tests/test-001_run-sval-case-nval/src/case-nval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ int main(int argc, char *argv[]) {

for (int testCase = 1; testCase <= testCaseCount; testCase++) {
setTestCase(testCase);
int n = inf.readInt(1, 10'000, "n");
int n = inf.readInt(1, 10000, "n");
inf.readEoln();
inf.readInts(n, -1000, 1000, "a");
inf.readEoln();
Expand Down
2 changes: 1 addition & 1 deletion validators/case-nval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ int main(int argc, char *argv[]) {

for (int testCase = 1; testCase <= testCaseCount; testCase++) {
setTestCase(testCase);
int n = inf.readInt(1, 10'000, "n");
int n = inf.readInt(1, 10000, "n");
inf.readEoln();
inf.readInts(n, -1000, 1000, "a");
inf.readEoln();
Expand Down
4 changes: 2 additions & 2 deletions validators/nval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ using namespace std;
int main(int argc, char *argv[]) {
registerValidation(argc, argv);

int n = inf.readInt(1, 100'000, "n");
int n = inf.readInt(1, 100000, "n");
inf.readEoln();

inf.readLongs(n, -1'000'000'000LL * 1'000'000LL, 1'000'000'000LL * 1'000'000LL, "a");
inf.readLongs(n, -1000000000LL * 1000000LL, 1000000000LL * 1000000LL, "a");
inf.readEoln();

inf.readEof();
Expand Down
2 changes: 1 addition & 1 deletion validators/undirected-graph-validator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ int main(int argc, char *argv[]) {

int n = inf.readInt(1, 1000, "n");
inf.readSpace();
int m = inf.readInt(0, 100'000, "m");
int m = inf.readInt(0, 100000, "m");
inf.readEoln();

set<pair<int, int>> edges;
Expand Down
2 changes: 1 addition & 1 deletion validators/undirected-tree-validator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ bool merge(vector<int> &dsu, int a, int b) {
int main(int argc, char *argv[]) {
registerValidation(argc, argv);

int n = inf.readInt(2, 100'000, "n");
int n = inf.readInt(2, 100000, "n");
inf.readEoln();

vector<int> dsu(n);
Expand Down

0 comments on commit 7b15e65

Please sign in to comment.