Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr

$ ./l5 rand_char*.txt rand
Traceback (most recent call last):
  File "l5.py", line 112, in <module>
    exit_code = main(data_type, orig_sort, dest_sort)
  File "l5.py", line 59, in main
    output_lines = open(output_fn).read().rstrip().split("\n")
  File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf0 in position 1024: ordinal not in range(128)

Hints

Your answer may be identical to the JOJ answer in the first several lines.

However, the main problem you meet now is Memory Exceeded. And the exit code of your program is 1, which should be 0.

Please double check your code to solve this problem and try again.

Your Answer


        

JOJ Answer

Correct!