Skip to content

Latest commit

 

History

History
102 lines (96 loc) · 498 Bytes

problems.md

File metadata and controls

102 lines (96 loc) · 498 Bytes

Example 1

Input

begin
push.0
push.0
push.0
push.0
mem.store.0
push.1
mem.store.1
push.2
mem.store.2
push.3
mem.store.3
mem.load.2
mem.load.3
end

Output

3
2
1
0
0
0
0
0
0
0
0
0
0
0
0
0

Example 1 + lt

Input

1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0

Example 1 + flipped mem load

input

begin
push.0
push.0
push.0
push.0
mem.store.0
push.1
mem.store.1
push.2
mem.store.2
push.3
mem.store.3
mem.load.3
mem.load.2
end

output

2
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0