Skip to content

Archive Index

Archive

Older programming notes, problem solutions, experiments, and reference material preserved for browsing.

Collection filter

Refine this page

Narrow the entries already loaded here by title, summary, category, or tag.

12 entries shown

UVa Online Judge Challenge "10110"

"There is man named ”mabu” for switching on-off light in our University. He switches on-off the lights in a corridor. Every bulb has its own toggle switch. That is, if it is pressed then the bulb turns on. Another press will turn it off. To save power consumption (or may be he is mad or something else) he does a peculiar thing. If in a corridor there is n bulbs, he walks along the corridor back and forth n times and in i-th walk he toggles only the switches whose serial is divisable by i. He does not press any switch when coming back to his initial position. A i-th walk is defined as going down the corridor (while doing the peculiar thing) and coming back again. Now you have to determine what is the final condition of the last bulb. Is it on or off?"

UVa Online Judge Challenge "10110"

Kattis Challenge "Parking"

"When shopping on Long Street, Michael usually parks his car at some random location, and then walks to the stores he needs. Can you help Michael choose a place to park which minimises the distance he needs to walk on his shopping round? Long Street is a straight line, where all positions are integer. You pay for parking in a specific slot, which is an integer position on Long Street. Michael does not want to pay for more than one parking though. He is very strong, and does not mind carrying all the bags around."

Kattis Challenge "Parking"

Recently Created

Latest archive entries created

The 10 most recently created archive entries, sorted by each archive entry's publish date.

  1. Troubleshooting N-Central Take Control Jan 2, 2024
  2. UVa Online Judge Challenge "11045" May 1, 2018
  3. Kattis Challenge "Grid" Apr 28, 2018
  4. UVa Online Judge Challenge "10305" Apr 26, 2018
  5. UVa Online Judge Challenge "572" Apr 23, 2018
  6. UVa Online Judge Challenge "1112" Apr 9, 2018
  7. UVa Online Judge Challenge "10550" Nov 9, 2017
  8. UVa Online Judge Challenge "272" Oct 17, 2017
  9. UVa Online Judge Challenge "10110" Oct 5, 2017
  10. UVa Online Judge Challenge "100" Oct 5, 2017

Recently Updated

Latest revisions across archive entries

The 10 most recently updated archive entries, sorted by each archive entry's last modification date.

  1. Troubleshooting N-Central Take Control Jan 28, 2026
  2. UVa Online Judge Challenge "11045" May 2, 2025
  3. Kattis Challenge "Grid" May 2, 2025
  4. UVa Online Judge Challenge "10305" May 2, 2025
  5. UVa Online Judge Challenge "572" May 2, 2025
  6. UVa Online Judge Challenge "1112" May 2, 2025
  7. UVa Online Judge Challenge "10550" May 2, 2025
  8. UVa Online Judge Challenge "272" May 2, 2025
  9. UVa Online Judge Challenge "10110" May 2, 2025
  10. UVa Online Judge Challenge "100" May 2, 2025

Relationship Map

Memory Field

Use the relationship map to follow related categories, tags, and entries beyond the current list.

Categories 0
Tags 0
Archived Entries 0