Skip to content

Commit

Permalink
10000 -> 10'000 and similar
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMirzayanov committed Sep 22, 2024
1 parent 65d2b11 commit 5b780b3
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
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, 1000000));
println(rnd.next(1, 1'000'000));
}
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, 1000000);
* result = rnd.next(1, 1'000'000);
* for (int i = 0; i < weight; i++)
* result = max(result, rnd.next(1, 1000000));
* result = max(result, rnd.next(1, 1'000'000));
* </code>
*
* If parameter "weight" < 0 then you can think about it as code like this:
* <code>
* result = rnd.next(1, 1000000);
* result = rnd.next(1, 1'000'000);
* for (int i = 0; i < -weight; i++)
* result = min(result, rnd.next(1, 1000000));
* result = min(result, rnd.next(1, 1'000'000));
* </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, 1000000, opt<int>(1)));
println(rnd.wnext(1, 1'000'000, 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, 10000, "n");
int n = inf.readInt(1, 10'000, "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, 10000, "n");
int n = inf.readInt(1, 10'000, "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, 100000, "n");
int n = inf.readInt(1, 100'000, "n");
inf.readEoln();

inf.readLongs(n, -1000000000LL * 1000000LL, 1000000000LL * 1000000LL, "a");
inf.readLongs(n, -1'000'000'000LL * 1'000'000LL, 1'000'000'000LL * 1'000'000LL, "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, 100000, "m");
int m = inf.readInt(0, 100'000, "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, 100000, "n");
int n = inf.readInt(2, 100'000, "n");
inf.readEoln();

vector<int> dsu(n);
Expand Down

0 comments on commit 5b780b3

Please sign in to comment.