Angelic Firing
Author: mistertfy64
(The maximum score for this problem is 1010000 points.)
Being an angel in heaven comes with both perks and responsibilities. For the former, well, Angel Lia gets loved by everyone. But for the latter, well, umm, it's kind of unpredictable, isn't it? Even when it comes to housekeeping, things may not go the way Lia expects, and that's exactly what has happened here. The Housekeeping Department of the Angel Club usually does work well, but the unpredictable thing has happened here! Oh no!
In today's unpredictable thing, the department's Python script that is used for many tasks has been jumbled up by some external force! Hopefully that external force doesn't get accidentally and unpredictably fired from her Angel status!
In the firing.zip zip file, there are 4 files:
- firing.py
- in.txt
- password.txt
- target.txt
Rearrange the lines in the functions f and g in firing.py such that when data from in.txt is given to the firing.py, the program outputs the same data as target.txt.
The correct password is the output of firing.py when data from password.txt is given after rearranging the lines in the function correctly.
Note that the operations in functions f and g are already in its correct function.
In other words, it is guaranteed that an operation in function f, when rearranged so that it gives the correct output, will stay in function f, and
an operation in function g, when rearranged so that it gives the correct output, will stay in function g.
Do not change anything in the file other than the content of the two functions.
The correct password is an integer.
Do not include number separators (e.g., commas and/or dots) in your answer.
Please log in to submit answers.
Correct Answers
| # | Username | Timestamp | 
|---|---|---|
| 1 | Monasm | 2025-10-20T15:21:59.015Z | 
| 2 | That_Guy977 | 2025-10-21T06:31:10.020Z |