Sorry for such difficulty balance. Here is the editorial.↵
↵
[tutorial:1182A]↵
[Solution Code for A](https://codeforces.net/contest/1182problemset/submission/1182/554704378830)↵
↵
**Behind story of B: Original B was harder. None of 2100+ rated testers solved original B, so it got downgraded. Also there was more than 15 pretests before.**↵
[tutorial:1182B]↵
[Solution Code for B](https://codeforces.net/contest/1182problemset/submission/1182/554704548850)↵
↵
**Behind story of C: C is created before few days to contest. If there was no current C, the contest would have hell balances.**↵
[tutorial:1182C]↵
[Solution Code for C](https://codeforces.net/contest/1182problemset/submission/1182/554705058862)↵
↵
**Behind story of D: Honestly I predicted D as hell hard problem. But other high rated people said it's not that hard.**↵
[tutorial:1182D]↵
[Solution Code for D](https://codeforces.net/contest/1182problemset/submission/1182/554705328873)↵
↵
**Behind story of E: I didn't expected such well-known problem. My solution for E is more complicated.**↵
[tutorial:1182E]↵
[Solution Code for E](https://codeforces.net/contest/1182problemset/submission/1182/554705428881)↵
↵
**Behind story of F: This problem was located at D originally.**↵
[tutorial:1182F]↵
[Solution Code for F](https://codeforces.net/contest/1182problemset/submission/1182/554705558889)
↵
[tutorial:1182A]↵
[Solution Code for A](https://codeforces.net/
↵
**Behind story of B: Original B was harder. None of 2100+ rated testers solved original B, so it got downgraded. Also there was more than 15 pretests before.**↵
[tutorial:1182B]↵
[Solution Code for B](https://codeforces.net/
↵
**Behind story of C: C is created before few days to contest. If there was no current C, the contest would have hell balances.**↵
[tutorial:1182C]↵
[Solution Code for C](https://codeforces.net/
↵
**Behind story of D: Honestly I predicted D as hell hard problem. But other high rated people said it's not that hard.**↵
[tutorial:1182D]↵
[Solution Code for D](https://codeforces.net/
↵
**Behind story of E: I didn't expected such well-known problem. My solution for E is more complicated.**↵
[tutorial:1182E]↵
[Solution Code for E](https://codeforces.net/
↵
**Behind story of F: This problem was located at D originally.**↵
[tutorial:1182F]↵
[Solution Code for F](https://codeforces.net/