We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
linemarket
1 parent 9373d0a commit 35abdd5Copy full SHA for 35abdd5
dana/programs/linemarket.dana
@@ -17,7 +17,7 @@ def main
17
var stores size s f N tail is int
18
var MAX_STORES MAX_PLACES is int
19
var i is int
20
- var arr is int[200000]
+ var arr is int[32767]
21
22
def swap: x y as ref int
23
var t is int
@@ -45,7 +45,7 @@ def main
45
var last_position placed_stores i_ps is int
46
var j is int
47
var position is int
48
- last_position := -1000000000
+ last_position := -32768
49
placed_stores := 0
50
i_ps := 0
51
loop:
@@ -91,8 +91,8 @@ def main
91
return: result
92
93
tail := 0
94
- MAX_STORES := 1000000
95
- MAX_PLACES := 100000
+ MAX_STORES := 32767
+ MAX_PLACES := 32767
96
97
stores := readInteger()
98
N := readInteger()
0 commit comments