Skip to content

Commit 62fa619

Browse files
authored
strengthen 258 (#89)
1 parent 9956a27 commit 62fa619

File tree

8 files changed

+19269
-9470
lines changed

8 files changed

+19269
-9470
lines changed

algorithmic/problems/258/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ memory: 256m
1111
# The subtasks section works the same way
1212
subtasks:
1313
- score: 100
14-
n_cases: 1 # Looks for 1.in, 2.in, ... 5.in
14+
n_cases: 3 # Looks for 1.in, 2.in, ... 5.in

algorithmic/problems/258/interactor.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ int main(int argc, char* argv[]) {
7777
// --- Scoring Parameters for this N ---
7878
// Base Limit: ceil(log2(n)) + 1
7979
// Zero Limit: n
80-
int limit_base = (int)ceil(log2((double)n)) + 1;
80+
int limit_base = (int)ceil(log2((double)n)) / 2;
8181
limit_base /= 2;
82-
int limit_zero = limit_base * 2;
82+
int limit_zero = limit_base * 16;
8383

8484
// Hard limit to prevent infinite loops (set slightly above Zero Limit)
8585
int hard_limit = n + 50;
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
! 370 511
2-
! 925 131
3-
! 101 321
4-
! 206 776
5-
! 521 256
6-
! 738 159
7-
! 440 344
8-
! 362 148
9-
! 148 306
10-
! 707 116
1+
! 7 5
2+
! 10 16
3+
! 11 2
4+
! 3 2
5+
! 9 4
6+
! 10 2
7+
! 10 11
8+
! 26 5
9+
! 8 12
10+
! 3 12

0 commit comments

Comments
 (0)