Skip to content

Commit

Permalink
Task 3: fix slow baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
akifoq committed Aug 15, 2023
1 parent c9f4897 commit 4741d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/3.fc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ builder solve(int flag, int flen, slice value, slice text) {

(int x, slice text') = read_bits(text, flen);
builder res = null();
if (x == flag) {
if (~ text'.null?()) & (x == flag) {
res = begin_cell().store_slice(value);
text = text';
} else {
Expand Down

0 comments on commit 4741d7a

Please sign in to comment.