随笔分类 - codeforces
摘要:Andrewid the Android is a galaxy-famous detective. He is now investigating the case of vandalism at the exhibition of contemporary art. The main exhib
阅读全文
摘要:Vasya has a string ss of length nn. He decides to make the following modification to the string: Pick an integer kk, (1≤k≤n1≤k≤n). For ii from 11 to n
阅读全文
摘要:Tanya wants to go on a journey across the cities of Berland. There are nn cities situated along the main railroad line of Berland, and these cities ar
阅读全文
摘要:Alex doesn't like boredom. That's why whenever he gets bored, he comes up with games. One long winter evening he came up with a game and decided to pl
阅读全文
摘要:After a team finished their training session on Euro football championship, Valeric was commissioned to gather the balls and sort them into baskets. O
阅读全文
摘要:原题链接:https://codeforces.com/problemset/problem/350/B Valera's finally decided to go on holiday! He packed up and headed for a ski resort. Valera's fan
阅读全文
摘要:贪心 加 优先队列 You can perfectly predict the price of a certain stock for the next N days. You would like to profit on this knowledge, but only want to tra
阅读全文
摘要:原题链接:https://codeforces.com/problemset/problem/8/A Peter likes to travel by train. He likes it so much that on the train he falls asleep. Once in summ
阅读全文
摘要:Tomorrow Peter has a Biology exam. He does not like this subject much, but ddays ago he learnt that he would have to take this exam. Peter's strict pa
阅读全文
摘要:Year 2118. Androids are in mass production for decades now, and they do all the work for humans. But androids have to go to school to be able to solve
阅读全文
摘要:There is an array with n elements a1, a2, ..., an and the number x. In one operation you can select some i (1 ≤ i ≤ n) and replace element ai with ai
阅读全文