ps-group / ps_judge

Work in progress - online judge for PS-Group
MIT License
1 stars 0 forks source link

[Python] Formatting checks automation for PASCAL/C++ #1

Open sergey-shambir opened 6 years ago

sergey-shambir commented 6 years ago
sergey-shambir commented 5 years ago

Issue with undesired line breaks can be fixed with "-l 255" option for the PTOP. Hovewer, with this option PTOP sometimes adds extra spaces at the end of line. This issue can be fixed with postprocessing formatted file: Python script should trim spaces at the end of each string

sergey-shambir commented 5 years ago

Python has module difflib which can be used to estimate difference between unformatted and formatted sources to calculate score.