|
Posté le 12-02-2024 à 19:22 | #
|
I'm wondering if the solution is really unique with these constraints... I can already see a trivial solution with another loop where two lines are interchangeable, and neither order is the correct answer, though they both work on-calc. |
|
|
Posté le 12-02-2024 à 19:23 | #
|
I sent him a PM with a response that should work, I am waiting his response
:/ |
|
|
Posté le 12-02-2024 à 19:27 | #
|
@Lephenixnoir @Tuper4
Edited the constraints. Now I think it should only have 1 possible solution |
|
|
Posté le 12-02-2024 à 19:30 | #
|
Ok, now it's better, |
|
|
Posté le 12-02-2024 à 19:35 | #
|
There's still another solution :/
Click to see I will delete it For 1→A To 7
Locate A+1,A,A
Next
ClrText
For 1→A To 7
Locate 1,A,A
Next |
|
|
Posté le 12-02-2024 à 19:36 | #
|
You cannot use ClrText as said in the description |
|
|
Posté le 12-02-2024 à 19:36 | #
|
Oops... Sorry |
|
|
Posté le 12-02-2024 à 19:42 | #
|
Found it. Sweet! |
|
|
Posté le 12-02-2024 à 19:50 | #
|
For 1→A To 7
Locate 1,A,A
Next
Return
For 1→A To 7
Locate A+1,A,A
Next This one works with me I appended the 4 lines in the begening of the code |
|
|
Posté le 12-02-2024 à 19:53 | #
|
The part you need to answer is in the end of the sample program |
|