Weekly Challenges

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA
SOLVED

Challenge #135: Locker Problem

knagano
7 - Meteor

I misunderstood the question.
I thought that each student open/close only 5 lockers, finally I could get the answer...

My solution is as follows;

 

Spoiler
Challenge_135_Nagano1.png

Challenge_135_Nagano2.png

lwolfie
11 - Bolide

If only every iterative macro made sense like this one.

yongjae
7 - Meteor

My Solution

Carolyn
11 - Bolide

That was fun! And I did it without an Iterative macro

 

Spoiler
I used MOD(LockerID, Student ID) and filtered for when the MOD=0 which tells me that it's a locker that the Student would change its state. 

I then counted each time a student touched the locker. If it was even, the end state would be Closed. If it was odd, the end state would be Open

2024-09-05_14-41-44.png