Codeforces Solutions

Here is the list of my accepted solutions on Codeforces.



  1. Vladik and Complicated Book : http://codeforces.com/contest/811/submission/27418737

  2. Vladik and Courtesy : http://codeforces.com/contest/811/submission/27418116

  3. Straight «A» : http://codeforces.com/contest/810/submission/27346996

  4. Anastasia and pebbles : http://codeforces.com/contest/789/submission/26044295

  5. New Bus Route : http://codeforces.com/contest/792/submission/25883070

  6. Bear and Big Brother : http://codeforces.com/contest/791/submission/25803448

  7. The Monster : http://codeforces.com/contest/787/submission/25803210

  8. Anton and Polyhedrons : http://codeforces.com/contest/785/submission/25529029

  9. Anton and Classes : http://codeforces.com/contest/785/submission/25528813

  10. The New Year: Meeting Friends : http://codeforces.com/contest/723/submission/25235420

  11. Pupils Redistribution : http://codeforces.com/contest/779/submission/25108072

  12. A Serial Killer : http://codeforces.com/contest/776/submission/25016168

  13. Code For 1 : http://codeforces.com/contest/768/submission/24844466

  14. Oath of the Night’s Watch : http://codeforces.com/contest/768/submission/24826794

  15. Garland : http://codeforces.com/contest/767/submission/24808749

  16. Autocomplete : http://codeforces.com/contest/100579/submission/24789529

  17. Snacktower : http://codeforces.com/contest/767/submission/24756598

  18. Table Tennis Game 2 : http://codeforces.com/contest/765/submission/24703191

  19. Neverending competitions : http://codeforces.com/contest/765/submission/24702549

  20. Code obfuscation : http://codeforces.com/contest/765/submission/24678541

  21. Mahmoud and a Message : http://codeforces.com/contest/766/submission/24511214

  22. Mahmoud and a Triangle : http://codeforces.com/contest/766/submission/24497792

  23. Mahmoud and Longest Uncommon Subsequence : http://codeforces.com/contest/766/submission/24494044

  24. Timofey and a tree : http://codeforces.com/contest/764/submission/24379924

  25. Timofey and cubes : http://codeforces.com/contest/764/submission/24371625

  26. Taymyr is calling you : http://codeforces.com/contest/764/submission/24367681

  27. Bulbs : http://codeforces.com/contest/615/submission/24350936

  28. Alyona and flowers : http://codeforces.com/contest/740/submission/24348439

  29. Dasha and Password : http://codeforces.com/contest/761/submission/24322321

  30. Dasha and friends : http://codeforces.com/contest/761/submission/24307511

  31. Dasha and Stairs : http://codeforces.com/contest/761/submission/24303471

  32. Weather : http://codeforces.com/contest/234/submission/24233297

  33. Amr and Chemistry : http://codeforces.com/contest/558/submission/24231819

  34. New Year and North Pole : http://codeforces.com/contest/750/submission/24228491

  35. Number of Ways : http://codeforces.com/contest/466/submission/24216526

  36. Brain’s Photos : http://codeforces.com/contest/707/submission/24214565

  37. Array : http://codeforces.com/contest/224/submission/24200550

  38. Santa Claus and a Place in a Class : http://codeforces.com/contest/752/submission/24150531

  39. Santa Claus and Candies : http://codeforces.com/contest/753/submission/24132223

  40. USB vs. PS/2 : http://codeforces.com/contest/762/submission/24117816

  41. k-th divisor : http://codeforces.com/contest/762/submission/24114633

  42. Hulk : http://codeforces.com/contest/705/submission/24113052

  43. Frodo and pillows : http://codeforces.com/contest/760/submission/24061578

  44. Petr and a calendar : http://codeforces.com/contest/760/submission/24037247

  45. Ilya and tic-tac-toe game : http://codeforces.com/contest/754/submission/24035532

  46. Lesha and array splitting : http://codeforces.com/contest/754/submission/24035126

  47. Elephant : http://codeforces.com/contest/617/submission/24030982

  48. Blown Garland : http://codeforces.com/contest/758/submission/24014094

  49. Unfair Poll : http://codeforces.com/contest/758/submission/23969598

  50. Holiday Of Equality : http://codeforces.com/contest/758/submission/23948219

  51. Magical Array : http://codeforces.com/contest/83/submission/23910238

  52. PolandBall and Polygon : http://codeforces.com/contest/755/submission/23908496

  53. PolandBall and Forest : http://codeforces.com/contest/755/submission/23856283

  54. PolandBall and Game : http://codeforces.com/contest/755/submission/23854194

  55. PolandBall and Hypothesis : http://codeforces.com/contest/755/submission/23848991

  56. Good Sequences : http://codeforces.com/contest/264/submission/23845212

  57. Felicity is Coming! : http://codeforces.com/contest/757/submission/23809710

  58. Bash’s Big Day : http://codeforces.com/contest/757/submission/23757634

  59. Gotta Catch Em’ All! : http://codeforces.com/contest/757/submission/23741276

  60. Compote : http://codeforces.com/contest/746/submission/23739222

  61. Patrick and Shopping : http://codeforces.com/contest/599/submission/23723556

  62. Effective Approach : http://codeforces.com/contest/227/submission/23723284

  63. Phone numbers : http://codeforces.com/contest/25/submission/23722848

  64. Bear and Blocks : http://codeforces.com/contest/573/submission/23722745

  65. Modulo Sum : http://codeforces.com/contest/577/submission/23719935

  66. Ball Game : http://codeforces.com/contest/46/submission/23653148

  67. Sail : http://codeforces.com/contest/298/submission/23650709

  68. King of Thieves : http://codeforces.com/contest/526/submission/23647956

  69. New Year and Hurry : http://codeforces.com/contest/750/submission/23643747

  70. Palindrome Transformation : http://codeforces.com/contest/486/submission/23643537

  71. Vasya and String : http://codeforces.com/contest/676/submission/23640748

  72. Cinema : http://codeforces.com/contest/670/submission/23632613

  73. Sereja and Stairs : http://codeforces.com/contest/381/submission/23628574

  74. Comparing Strings : http://codeforces.com/contest/186/submission/23626116

  75. The Two Routes : http://codeforces.com/contest/601/submission/23625505

  76. Display Size : http://codeforces.com/contest/747/submission/23609655

  77. Squats : http://codeforces.com/contest/424/submission/23561514

  78. Big Segment : http://codeforces.com/contest/242/submission/23561229

  79. Mishka and Game : http://codeforces.com/contest/703/submission/23560672

  80. Voting : http://codeforces.com/contest/749/submission/23158529

  81. Parallelogram is Back : http://codeforces.com/contest/749/submission/23148382

  82. Bachgold Problem : http://codeforces.com/contest/749/submission/23144519

  83. Hongcow Builds A Nation : http://codeforces.com/contest/745/submission/23067713

  84. Hongcow Solves A Puzzle : http://codeforces.com/contest/745/submission/23059683

  85. Hongcow Learns the Cyclic Shift : http://codeforces.com/contest/745/submission/23053536

  86. Vladik and fractions : http://codeforces.com/contest/743/submission/23051118

  87. Chloe and the sequence : http://codeforces.com/contest/743/submission/22959867

  88. Vladik and flights : http://codeforces.com/contest/743/submission/22952916

  89. Ostap and Grasshopper : http://codeforces.com/contest/735/submission/22950553

  90. Queue : http://codeforces.com/contest/545/submission/22932039

  91. Arpa’s hard exam and Mehrdad’s naive cheat : http://codeforces.com/contest/742/submission/22928981

  92. Ilya and Queries : http://codeforces.com/contest/313/submission/22893240

  93. k-Tree : http://codeforces.com/contest/431/submission/22891201

  94. Little Elephant and Chess : http://codeforces.com/contest/259/submission/22628747

  95. Simple Strings : http://codeforces.com/contest/665/submission/22627994

  96. Sinking Ship : http://codeforces.com/contest/63/submission/22626986

  97. Night at the Museum : http://codeforces.com/contest/731/submission/22606276

  98. Ice Skating : http://codeforces.com/contest/217/submission/22242292

  99. Slightly Decreasing Permutations : http://codeforces.com/contest/285/submission/22239007

  100. Anton and Digits : http://codeforces.com/contest/734/submission/22234740

  101. Anton and Danik : http://codeforces.com/contest/734/submission/22228488

  102. Dividing Orange : http://codeforces.com/contest/244/submission/22197134

  103. Day at the Beach : http://codeforces.com/contest/599/submission/14390943

  104. Spongebob and Joke : http://codeforces.com/contest/599/submission/14390545

  105. BerSU Ball : http://codeforces.com/contest/489/submission/14353627

  106. PawnChess : http://codeforces.com/contest/592/submission/14256526

  107. Vitaly and Night : http://codeforces.com/contest/595/submission/14255713

  108. Lucky Sum of Digits : http://codeforces.com/contest/110/submission/13954852

  109. Pocket Book : http://codeforces.com/contest/152/submission/13954378

  110. Gargari and Bishops : http://codeforces.com/contest/463/submission/13953458

  111. Rebranding : http://codeforces.com/contest/591/submission/13933226

  112. Wizards’ Duel : http://codeforces.com/contest/591/submission/13932341

  113. Duff and Meat : http://codeforces.com/contest/588/submission/13908960

  114. Alena’s Schedule : http://codeforces.com/contest/586/submission/13873880

  115. Olesya and Rodion : http://codeforces.com/contest/584/submission/13529307

  116. Vanya and Lanterns : http://codeforces.com/contest/492/submission/13470233

  117. Robot’s Task : http://codeforces.com/contest/583/submission/13369908

  118. Asphalting Roads : http://codeforces.com/contest/583/submission/13364394

  119. George and Interesting Graph : http://codeforces.com/contest/387/submission/13352489

  120. Luxurious Houses : http://codeforces.com/contest/581/submission/13280092

  121. Vasya the Hipster : http://codeforces.com/contest/581/submission/13277551

  122. Bear and Prime Numbers : http://codeforces.com/contest/385/submission/13245689

  123. Bear and Strings : http://codeforces.com/contest/385/submission/13245125

  124. Bear and Raspberry : http://codeforces.com/contest/385/submission/13244995

  125. Tavas and Karafs : http://codeforces.com/contest/535/submission/13239260

  126. Tavas and SaDDas : http://codeforces.com/contest/535/submission/13237957

  127. Tavas and Nafas : http://codeforces.com/contest/535/submission/13237956

  128. Kefa and Park : http://codeforces.com/contest/580/submission/13157733

  129. Kefa and Company : http://codeforces.com/contest/580/submission/13153221

  130. Kefa and First Steps : http://codeforces.com/contest/580/submission/13144069

  131. “Or” Game : http://codeforces.com/contest/579/submission/13060212

  132. Finding Team Member : http://codeforces.com/contest/579/submission/13036036

  133. Raising Bacteria : http://codeforces.com/contest/579/submission/13028640

  134. Vasya and Petya’s Game : http://codeforces.com/contest/577/submission/13009081

  135. Vasily the Bear and Triangle : http://codeforces.com/contest/336/submission/12981799

  136. Multiplication Table : http://codeforces.com/contest/577/submission/12950219

  137. Exam : http://codeforces.com/contest/534/submission/12837104

  138. A and B and Compilation Errors : http://codeforces.com/contest/519/submission/12781088

  139. Face Detection : http://codeforces.com/contest/549/submission/12780776

  140. Bear and Three Musketeers : http://codeforces.com/contest/574/submission/12756896

  141. Bear and Poker : http://codeforces.com/contest/574/submission/12751371

  142. Bear and Elections : http://codeforces.com/contest/574/submission/12747738

  143. Berland National Library : http://codeforces.com/contest/567/submission/12733004

  144. Order Book : http://codeforces.com/contest/572/submission/12654648

  145. Arrays : http://codeforces.com/contest/572/submission/12645461

  146. Lineland Mail : http://codeforces.com/contest/567/submission/12644830

  147. Currency System in Geraldion : http://codeforces.com/contest/560/submission/12643469

  148. Inventory : http://codeforces.com/contest/569/submission/12638695

  149. Elections : http://codeforces.com/contest/570/submission/12573671

  150. Party : http://codeforces.com/contest/115/submission/11907070

  151. Two Buttons : http://codeforces.com/contest/520/submission/11906752

  152. Valera and Antique Items : http://codeforces.com/contest/441/submission/11896904

  153. Equidistant String : http://codeforces.com/contest/545/submission/11892261

  154. Toy Cars : http://codeforces.com/contest/545/submission/11892132

  155. Pasha and Tea : http://codeforces.com/contest/557/submission/11891709

  156. Ilya and Diplomas : http://codeforces.com/contest/557/submission/11881973

  157. Case of Fake Numbers : http://codeforces.com/contest/556/submission/11850336

  158. Case of the Zeros and Ones : http://codeforces.com/contest/556/submission/11849942

  159. Ohana Cleans Up : http://codeforces.com/contest/554/submission/11775510

  160. Kyoya and Photobooks : http://codeforces.com/contest/554/submission/11771290

  161. Vanya and Scales : http://codeforces.com/contest/552/submission/11667989

  162. Vanya and Books : http://codeforces.com/contest/552/submission/11642339

  163. Vanya and Table : http://codeforces.com/contest/552/submission/11637839

  164. GukiZ and Contest : http://codeforces.com/contest/551/submission/11547595

  165. Divisibility by Eight : http://codeforces.com/contest/550/submission/11439679

  166. Preparing Olympiad : http://codeforces.com/contest/550/submission/11424877

  167. Two Substrings : http://codeforces.com/contest/550/submission/11422480

  168. Hopscotch : http://codeforces.com/contest/141/submission/11323821

  169. Amusing Joke : http://codeforces.com/contest/141/submission/11322964

  170. Soldier and Badges : http://codeforces.com/contest/546/submission/11312406

  171. Mike and Fax : http://codeforces.com/contest/548/submission/11305839

  172. Mike and Fun : http://codeforces.com/contest/548/submission/11292960

  173. Soldier and Bananas : http://codeforces.com/contest/546/submission/11256395

  174. Watermelon : http://codeforces.com/contest/4/submission/11236499

  175. Combination Lock : http://codeforces.com/contest/540/submission/10980326

  176. inc ARG : http://codeforces.com/contest/465/submission/10976178

  177. Vitaliy and Pie : http://codeforces.com/contest/525/submission/10530610

  178. Playing with Paper : http://codeforces.com/contest/527/submission/10457639

  179. Choosing Teams : http://codeforces.com/contest/432/submission/10457579

  180. Pangram : http://codeforces.com/contest/520/submission/10441624

  181. Flipping Game : http://codeforces.com/contest/327/submission/10392065

  182. Vanya and Cards : http://codeforces.com/contest/401/submission/10391894

  183. Initial Bet : http://codeforces.com/contest/478/submission/10271714

  184. Little Girl and Maximum XOR : http://codeforces.com/contest/276/submission/10140782

  185. Unbearable Controversy of Being : http://codeforces.com/contest/489/submission/10140496

  186. Mashmokh and ACM : http://codeforces.com/contest/414/submission/10117913

  187. Vasya and Chess : http://codeforces.com/contest/493/submission/10117577

  188. Prizes, Prizes, more Prizes : http://codeforces.com/contest/208/submission/10097907

  189. A and B and Chess : http://codeforces.com/contest/519/submission/10096517

  190. Tanya and Postcard : http://codeforces.com/contest/518/submission/10012719

  191. Vitaly and Strings : http://codeforces.com/contest/518/submission/10012613

  192. Calculating Function : http://codeforces.com/contest/486/submission/9996832

  193. Game : http://codeforces.com/contest/513/submission/9995053

  194. Drazil and Date : http://codeforces.com/contest/515/submission/9975800

  195. Mr. Kitayuta’s Gift : http://codeforces.com/contest/505/submission/9970890

  196. Chewbaсca and Number : http://codeforces.com/contest/514/submission/9954969

  197. Team Olympiad : http://codeforces.com/contest/490/submission/9932934

  198. Cheap Travel : http://codeforces.com/contest/466/submission/9926674

  199. Expression : http://codeforces.com/contest/479/submission/9881176

  200. The Wall : http://codeforces.com/contest/340/submission/9733398

  201. Fox And Snake : http://codeforces.com/contest/510/submission/9730110

  202. Pasha and Pixels : http://codeforces.com/contest/508/submission/9666396

  203. Pretty Song : http://codeforces.com/contest/509/submission/9648982

  204. Painting Pebbles : http://codeforces.com/contest/509/submission/9645654

  205. Maximum in Table : http://codeforces.com/contest/509/submission/9641555

  206. Breaking Good : http://codeforces.com/contest/507/submission/9556040

  207. Guess Your Way Out! : http://codeforces.com/contest/507/submission/9533773

  208. Amr and Pins : http://codeforces.com/contest/507/submission/9523417

  209. Amr and Music : http://codeforces.com/contest/507/submission/9516611

  210. Vanya and Cubes : http://codeforces.com/contest/492/submission/9490309

  211. Winning at Sports : http://codeforces.com/contest/100579/submission/9472715

  212. Homework : http://codeforces.com/contest/100579/submission/9472680

  213. Contest : http://codeforces.com/contest/501/submission/9418862

  214. New Year Transportation : http://codeforces.com/contest/500/submission/9334016

  215. Vasya and Football : http://codeforces.com/contest/493/submission/9306241

  216. Crazy Town : http://codeforces.com/contest/499/submission/9252058

  217. Lecture : http://codeforces.com/contest/499/submission/9248393

  218. Watching a movie : http://codeforces.com/contest/499/submission/9246567

  219. Minimum Difficulty : http://codeforces.com/contest/496/submission/9164417

  220. Modular Equations : http://codeforces.com/contest/495/submission/9108578

  221. Digital Counter : http://codeforces.com/contest/495/submission/9104687

  222. Valuable Resources : http://codeforces.com/contest/485/submission/8566022

  223. Dreamoon and Sets : http://codeforces.com/contest/476/submission/8215439

  224. Dreamoon and Sums : http://codeforces.com/contest/476/submission/8209569

  225. Dreamoon and WiFi : http://codeforces.com/contest/476/submission/8188426

  226. Dreamoon and Stairs : http://codeforces.com/contest/476/submission/8185679

  227. Police Recruits : http://codeforces.com/contest/427/submission/8171951

  228. Fedor and New Game : http://codeforces.com/contest/467/submission/8171610

  229. Flowers : http://codeforces.com/contest/474/submission/8124622

  230. Worms : http://codeforces.com/contest/474/submission/8110003

  231. Keyboard : http://codeforces.com/contest/474/submission/8108248

  232. Extra-terrestrial Intelligence : http://codeforces.com/contest/36/submission/8106688

  233. Bayan Bus : http://codeforces.com/contest/475/submission/8097043

  234. Strongly Connected City : http://codeforces.com/contest/475/submission/8091059

  235. Email address : http://codeforces.com/contest/41/submission/8082356

  236. Tournament : http://codeforces.com/contest/27/submission/8082180

  237. Triangular numbers : http://codeforces.com/contest/47/submission/8080034

  238. Coins : http://codeforces.com/contest/47/submission/8079994

  239. George and Accommodation : http://codeforces.com/contest/467/submission/8077479

  240. Cyclical Quest : http://codeforces.com/contest/235/submission/8059627

  241. Datatypes : http://codeforces.com/contest/108/submission/8043414

  242. Borya and Hanabi : http://codeforces.com/contest/442/submission/8042683

  243. Literature Lesson : http://codeforces.com/contest/138/submission/8037167

  244. Data Recovery : http://codeforces.com/contest/413/submission/8036275

  245. Books : http://codeforces.com/contest/279/submission/8026447

  246. Design Tutorial: Make It Nondeterministic : http://codeforces.com/contest/472/submission/8011339

  247. Design Tutorial: Learn from Life : http://codeforces.com/contest/472/submission/8005106

  248. Design Tutorial: Learn from Math : http://codeforces.com/contest/472/submission/7997709

  249. Maximal Area Quadrilateral : http://codeforces.com/contest/340/submission/7993997

  250. Permutations : http://codeforces.com/contest/48/submission/7990017

  251. MUH and Important Things : http://codeforces.com/contest/471/submission/7968188

  252. MUH and Sticks : http://codeforces.com/contest/471/submission/7961845

  253. Hot Bath : http://codeforces.com/contest/126/submission/7912566

  254. Eternal Victory : http://codeforces.com/contest/61/submission/7906818

  255. Find Pair : http://codeforces.com/contest/160/submission/7897348

  256. I Wanna Be the Guy : http://codeforces.com/contest/469/submission/7890080

  257. Lucky Conversion : http://codeforces.com/contest/146/submission/7748248

  258. Anagram Search : http://codeforces.com/contest/144/submission/7742773

  259. Caisa and Sugar : http://codeforces.com/contest/463/submission/7643941

  260. Appleman and Card Game : http://codeforces.com/contest/462/submission/7626143

  261. Appleman and Easy Task : http://codeforces.com/contest/462/submission/7626104

  262. Appleman and Toastman : http://codeforces.com/contest/461/submission/7626084

  263. Furlo and Rublo and Game : http://codeforces.com/contest/255/submission/7619503

  264. Pashmak and Graph : http://codeforces.com/contest/459/submission/7602874

  265. Predict Outcome of the Game : http://codeforces.com/contest/451/submission/7566835

  266. Combination : http://codeforces.com/contest/155/submission/7540566

  267. Vasya and Socks : http://codeforces.com/contest/460/submission/7535566

  268. Little Dima and Equation : http://codeforces.com/contest/460/submission/7534020

  269. Levko and Table : http://codeforces.com/contest/361/submission/7515872

  270. Colorful Graph : http://codeforces.com/contest/246/submission/7489878

  271. Text Editor : http://codeforces.com/contest/253/submission/7489535

  272. Pashmak and Garden : http://codeforces.com/contest/459/submission/7479709

  273. Pashmak and Flowers : http://codeforces.com/contest/459/submission/7460450

  274. Find Maximum : http://codeforces.com/contest/353/submission/7450373

  275. Simple Molecules : http://codeforces.com/contest/344/submission/7435405

  276. Boredom : http://codeforces.com/contest/456/submission/7390306

  277. Fedya and Maths : http://codeforces.com/contest/456/submission/7382754

  278. Laptops : http://codeforces.com/contest/456/submission/7378317

  279. Alice and Bob : http://codeforces.com/contest/346/submission/7370625

  280. Mafia : http://codeforces.com/contest/349/submission/7368023

  281. Points on Line : http://codeforces.com/contest/251/submission/7357559

  282. Little Pony and Expected Maximum : http://codeforces.com/contest/453/submission/7340900

  283. Little Pony and Sort by Shift : http://codeforces.com/contest/454/submission/7334565

  284. Little Pony and Crystal Mine : http://codeforces.com/contest/454/submission/7334500

  285. Jzzhu and Children : http://codeforces.com/contest/450/submission/7300769

  286. Eevee : http://codeforces.com/contest/452/submission/7286059

  287. Sort the Array : http://codeforces.com/contest/451/submission/7249741

  288. Game With Sticks : http://codeforces.com/contest/451/submission/7249616

  289. Suffix Structures : http://codeforces.com/contest/448/submission/7130908

  290. Rewards : http://codeforces.com/contest/448/submission/7125743

  291. Petya and Square : http://codeforces.com/contest/112/submission/7120876

  292. DZY Loves Sequences : http://codeforces.com/contest/447/submission/7102150

  293. DZY Loves Strings : http://codeforces.com/contest/447/submission/7077859

  294. DZY Loves Hash : http://codeforces.com/contest/447/submission/7075049

  295. Shower Line : http://codeforces.com/contest/431/submission/7054772

  296. Black Square : http://codeforces.com/contest/431/submission/7054668

  297. Devu, the Dumb Guy : http://codeforces.com/contest/439/submission/7045724

  298. Devu, the Singer and Churu, the Joker : http://codeforces.com/contest/439/submission/7045677

  299. DZY Loves Physics : http://codeforces.com/contest/444/submission/7033426

  300. DZY Loves Chessboard : http://codeforces.com/contest/445/submission/7032532

  301. DZY Loves Chemistry : http://codeforces.com/contest/445/submission/7028834

  302. Valera and Tubes : http://codeforces.com/contest/441/submission/6925842

  303. Andrey and Problem : http://codeforces.com/contest/443/submission/6925133

  304. Sereja and Suffixes : http://codeforces.com/contest/368/submission/6924966

  305. Sereja and Coat Rack : http://codeforces.com/contest/368/submission/6924918

  306. Kolya and Tandem Repeat : http://codeforces.com/contest/443/submission/6923987

  307. Anton and Letters : http://codeforces.com/contest/443/submission/6913600

  308. Om Nom and Spiders : http://codeforces.com/contest/436/submission/6882249

  309. Kuriyama Mirai’s Stones : http://codeforces.com/contest/433/submission/6719910

  310. Arithmetic Progression : http://codeforces.com/contest/382/submission/6536236

  311. Gravity Flip : http://codeforces.com/contest/405/submission/6384300

  312. Cinema Line : http://codeforces.com/contest/349/submission/6384022

  313. Friends : http://codeforces.com/contest/94/submission/6377598

  314. A + B Strikes Back : http://codeforces.com/contest/409/submission/6352932

  315. Mashmokh and Lights : http://codeforces.com/contest/415/submission/6347252

  316. Growing Mushrooms : http://codeforces.com/contest/186/submission/6323147

  317. President’s Office : http://codeforces.com/contest/6/submission/6301896

  318. Compatible Numbers : http://codeforces.com/contest/165/submission/6251785

  319. Reconnaissance : http://codeforces.com/contest/32/submission/6163192

  320. Trees in a Row : http://codeforces.com/contest/402/submission/6159158

  321. African Crossword : http://codeforces.com/contest/90/submission/6140580

  322. Lucky Ticket : http://codeforces.com/contest/146/submission/5838426

  323. Roma and Lucky Numbers : http://codeforces.com/contest/262/submission/5838386

  324. Army : http://codeforces.com/contest/38/submission/5838315

  325. Cookies : http://codeforces.com/contest/129/submission/5838279

  326. Network Topology : http://codeforces.com/contest/292/submission/5826602

  327. Road Construction : http://codeforces.com/contest/330/submission/5826332

  328. Spyke Talks : http://codeforces.com/contest/291/submission/5816710

  329. Palindrome pairs : http://codeforces.com/contest/159/submission/5807465

  330. Coder : http://codeforces.com/contest/384/submission/5766444

  331. Second-Price Auction : http://codeforces.com/contest/386/submission/5766139

  332. Chips : http://codeforces.com/contest/92/submission/5765974

  333. IQ test : http://codeforces.com/contest/25/submission/5765795

  334. k-String : http://codeforces.com/contest/219/submission/5754742

  335. Room Leader : http://codeforces.com/contest/74/submission/5737502

  336. Sale : http://codeforces.com/contest/34/submission/5736663

  337. Buggy Sorting : http://codeforces.com/contest/246/submission/5728294

  338. Collecting Beats is Fun : http://codeforces.com/contest/373/submission/5710035

  339. Greenhouse Effect : http://codeforces.com/contest/269/submission/5709766

  340. The Great Julya Calendar : http://codeforces.com/contest/331/submission/5700021

  341. New Year Candles : http://codeforces.com/contest/379/submission/5694784

  342. Barcode : http://codeforces.com/contest/225/submission/5691117

  343. Caesar’s Legions : http://codeforces.com/contest/118/submission/5619627

  344. New Year Ratings Change : http://codeforces.com/contest/379/submission/5610282

  345. Tetrahedron : http://codeforces.com/contest/166/submission/5543376

  346. The Fibonacci Segment : http://codeforces.com/contest/365/submission/5520616

  347. Cut Ribbon : http://codeforces.com/contest/189/submission/5502292

  348. Theatre Square : http://codeforces.com/contest/100001/submission/5497375

  349. Word : http://codeforces.com/contest/59/submission/5495023

  350. Soft Drinking : http://codeforces.com/contest/151/submission/5494996

  351. Lights Out : http://codeforces.com/contest/275/submission/5494968

  352. Valera and Plates : http://codeforces.com/contest/369/submission/5493617

  353. Shaass and Oskols : http://codeforces.com/contest/294/submission/5493546

  354. Drinks : http://codeforces.com/contest/200/submission/5493505

  355. Supercentral Point : http://codeforces.com/contest/165/submission/5493462

  356. Greg’s Workout : http://codeforces.com/contest/255/submission/5493377

  357. Dima and Friends : http://codeforces.com/contest/272/submission/5492934

  358. Jeff and Digits : http://codeforces.com/contest/352/submission/5492138

  359. Lunch Rush : http://codeforces.com/contest/276/submission/5490948

  360. System of Equations : http://codeforces.com/contest/214/submission/5490660

  361. Towers : http://codeforces.com/contest/37/submission/5490480

  362. Cakeminator : http://codeforces.com/contest/330/submission/5490411

  363. Puzzles : http://codeforces.com/contest/337/submission/5490174

  364. Candy Bags : http://codeforces.com/contest/334/submission/5488167

  365. Dragons : http://codeforces.com/contest/230/submission/5488145

  366. Xenia and Ringroad : http://codeforces.com/contest/339/submission/5488019

  367. The number of positions : http://codeforces.com/contest/124/submission/5487972

  368. Circle Line : http://codeforces.com/contest/278/submission/5487895

  369. Dubstep : http://codeforces.com/contest/208/submission/5487765

  370. Buttons : http://codeforces.com/contest/268/submission/5487441

  371. Free Cash : http://codeforces.com/contest/237/submission/5487102

  372. Arrival of the General : http://codeforces.com/contest/144/submission/5486963

  373. Taxi : http://codeforces.com/contest/158/submission/5485605

  374. Even Odds : http://codeforces.com/contest/318/submission/5416863

  375. Magnets : http://codeforces.com/contest/344/submission/5416796

  376. Fancy Fence : http://codeforces.com/contest/270/submission/5416611

  377. Ilya and Bank Account : http://codeforces.com/contest/313/submission/5416541

  378. Business trip : http://codeforces.com/contest/149/submission/5416425

  379. Translation : http://codeforces.com/contest/41/submission/5416314

  380. Chat room : http://codeforces.com/contest/58/submission/5415616

  381. Present from Lena : http://codeforces.com/contest/118/submission/5415424

  382. Beautiful Matrix : http://codeforces.com/contest/263/submission/5414729

  383. Tram : http://codeforces.com/contest/116/submission/5414703

  384. I_love_\%username\% : http://codeforces.com/contest/155/submission/5414024

  385. Young Physicist : http://codeforces.com/contest/69/submission/5411920

  386. Ultra-Fast Mathematician : http://codeforces.com/contest/61/submission/5411894

  387. Lucky Division : http://codeforces.com/contest/122/submission/5411880

  388. Games : http://codeforces.com/contest/268/submission/5411848

  389. Presents : http://codeforces.com/contest/136/submission/5411751

  390. Queue at the School : http://codeforces.com/contest/266/submission/5411719

  391. Beautiful Year : http://codeforces.com/contest/271/submission/5411562

  392. Word Capitalization : http://codeforces.com/contest/281/submission/5411505

  393. Helpful Maths : http://codeforces.com/contest/339/submission/5411495

  394. Boy or Girl : http://codeforces.com/contest/236/submission/5411454

  395. Nearly Lucky Number : http://codeforces.com/contest/110/submission/5411434

  396. Is your horseshoe on the other hoof? : http://codeforces.com/contest/228/submission/5411349

  397. Twins : http://codeforces.com/contest/160/submission/5411202

  398. Football : http://codeforces.com/contest/96/submission/5411168

  399. Insomnia cure : http://codeforces.com/contest/148/submission/5410895

  400. HQ9+ : http://codeforces.com/contest/133/submission/5410802

  401. Petya and Strings : http://codeforces.com/contest/112/submission/5410782

  402. Epic Game : http://codeforces.com/contest/119/submission/5410771

  403. Stones on the Table : http://codeforces.com/contest/266/submission/5409170

  404. Bit++ : http://codeforces.com/contest/282/submission/5409126

  405. cAPS lOCK : http://codeforces.com/contest/131/submission/5409069

  406. Double Cola : http://codeforces.com/contest/82/submission/5408704

  407. Team : http://codeforces.com/contest/231/submission/5408276

  408. Rank List : http://codeforces.com/contest/166/submission/5405112

  409. Xenia and Bit Operations : http://codeforces.com/contest/339/submission/5399664

  410. Sereja and Array : http://codeforces.com/contest/315/submission/5380717

  411. Fence : http://codeforces.com/contest/363/submission/5380394

  412. Domino piling : http://codeforces.com/contest/50/submission/5374087

  413. String Task : http://codeforces.com/contest/118/submission/5373837

  414. Way Too Long Words : http://codeforces.com/contest/71/submission/5373685

  415. Next Round : http://codeforces.com/contest/158/submission/5373531

  416. Registration System : http://codeforces.com/contest/4/submission/5369579

  417. Airport : http://codeforces.com/contest/218/submission/5361560