796.md (876B)
1 Source: https://codeforces.com/blog/entry/51527 2 3 Tutorial is loading... 4 5 Official Implementation: <http://ideone.com/jsXSst> 6 7 === 8 9 Tutorial is loading... 10 11 Official Implementation: <http://ideone.com/YD7s4S> 12 13 **NOTE: If you get TLE, use faster input methods. For example, use scanf instead of cin.** 14 15 === 16 17 Tutorial is loading... 18 19 Official Implementation: <http://ideone.com/B9pjyi> 20 21 **NOTE: If you get TLE, use faster input methods. For example, use scanf instead of cin.** 22 23 === 24 25 Tutorial is loading... 26 27 Official Implementation: <http://ideone.com/nlPVW0> 28 29 === 30 31 Tutorial is loading... 32 33 Official Implementation: <http://ideone.com/cwP55b> 34 35 === 36 37 Tutorial is loading... 38 39 Official Implementation: <http://ideone.com/FfnJyp> 40 41 === 42 43 Feel free to ask any questions below. It's hard to write an editorial that satisfies the need of everyone. I hope you'll enjoy solving the problems :)