Please see my submission here.
This shows SIGABRT error for subtask #1(also for subtask #2) whereas all assert statement follow given constraints(for subtask #1) correctly.
I wonder if the tester/setter really take their job seriously!!!
I want my 100 points. It was error of your setter and my approach was