diff options
Diffstat (limited to 'kpov_judge/tasks')
-rw-r--r-- | kpov_judge/tasks/copy_rename_100_files/task.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/kpov_judge/tasks/copy_rename_100_files/task.py b/kpov_judge/tasks/copy_rename_100_files/task.py index 87ef7e9..ff82956 100644 --- a/kpov_judge/tasks/copy_rename_100_files/task.py +++ b/kpov_judge/tasks/copy_rename_100_files/task.py @@ -99,11 +99,13 @@ def task_check(results, params): score += 2 * (matched > len(files)/2) score += 3 * (matched == len(files)) - rl = set(results['contents'].split('\n')) - tl = set() + rl = results['contents'].split('\n') + rl.sort() + tl = [] for fn in files: with open(fn) as f: - tl.update(set(f.read().split('\n'))) + tl += f.read().upper().split('\n') + tl.sort() score += 4 * (rl == tl) return score |