Hello frends from CFS(CodeForces)!
Hir are some of the bestest optimizations that will get your rating jump to th clouds!!1!! I use them every single time beliv me!
1) Use BFS aka BruteForce. First thing you need to do when you do some problem is use BFS!! Dat will save you from: Terminated signal 1e+27387282, WA, TLE, MLE, CE, RTE, BQE...
2) When you wait in queue for long time, just agressivly press Alt + F4 few times. There will be queue no more gut frend. You will be advantage, thank mi later babe.
3) Before the contest you MUST pray to MAJKAMirzayanov. MajkaMirzayanov is the mother of the almighty MikeMirzayanov! Note: Majka is read Mike — a in Serbian, Russian, etc... Thank to that godess we hav our savior MikeMirzayanov frends!!! Btw his worst enemy is bad gredaer.
4.41423568) If you want to know everything ju should watch those Indian guys/girls on YT(youtube) who intrduce themselves as 419NigerianPrince or PussyDestroyerIndia(Im nut talking about pussy cats).
5) Use bitset. For more details visit: http://codeforces.me/blog/entry/53168. Thank you for the blessing my mriemd frind :D
That is it. It works, b4 u downvote just ask my frends: Sprdalo00, Sprdalo01, Sprdalo02,...Tosic, KlzX, ivan100sic, ....etc
GG EZ M8 W8 B4 U H8 I R8 8/8 See ya frends.