Skip to content

Add input output for offline problem

Raat, M.H. (Marien) requested to merge add-input-output into master

Now our program can solve (reallly small, more than 4x4 can take long and too many groups can slow it down as well) problems according to the specification. This is enough for a 6 in the part with create an algorithm for the offline problem!

An example problem it can solve in a few minutes (depending on your CPU), simply run cli offline.

6
9
011101111
111101111
111101111
000000000
111101111
111101111
0 1 5 0 0 0 0 0

Returns:

0xxx01xxx
111101111
1xxx01xxx
000000000
111101111
1xxx01xxx

@m.b.j.vandenberg ik heb in types.py nu een Any type gegeven voor de seats array, wat volgens mij erg lelijk is. Maar ik kwam er niet uit, want als ik het array[int] gaf, dan kreeg ik een runtime error, maar ging de check goed. En als ik List[int] deed runde het goed, maar deed the check het niet. Dus mss kan jij daar nog naar kijken.

Merge request reports