Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion algorithmic/problems/258/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ memory: 256m
# The subtasks section works the same way
subtasks:
- score: 100
n_cases: 1 # Looks for 1.in, 2.in, ... 5.in
n_cases: 3 # Looks for 1.in, 2.in, ... 5.in
4 changes: 2 additions & 2 deletions algorithmic/problems/258/interactor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ int main(int argc, char* argv[]) {
// --- Scoring Parameters for this N ---
// Base Limit: ceil(log2(n)) + 1
// Zero Limit: n
int limit_base = (int)ceil(log2((double)n)) + 1;
int limit_base = (int)ceil(log2((double)n)) / 2;
limit_base /= 2;
int limit_zero = limit_base * 2;
int limit_zero = limit_base * 16;

// Hard limit to prevent infinite loops (set slightly above Zero Limit)
int hard_limit = n + 50;
Expand Down
20 changes: 10 additions & 10 deletions algorithmic/problems/258/testdata/1.ans
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
! 370 511
! 925 131
! 101 321
! 206 776
! 521 256
! 738 159
! 440 344
! 362 148
! 148 306
! 707 116
! 7 5
! 10 16
! 11 2
! 3 2
! 9 4
! 10 2
! 10 11
! 26 5
! 8 12
! 3 12
Loading
Loading