随笔分类 -  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 阅读全文
posted @ 2020-03-08 14:38 陈墨cacm 阅读(171) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2020-03-07 14:57 陈墨cacm 阅读(182) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2020-03-07 14:33 陈墨cacm 阅读(166) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2019-11-13 21:21 陈墨cacm 阅读(119) 评论(0) 推荐(0) 编辑
摘要:After a team finished their training session on Euro football championship, Valeric was commissioned to gather the balls and sort them into baskets. O 阅读全文
posted @ 2019-10-17 15:26 陈墨cacm 阅读(123) 评论(0) 推荐(0) 编辑
摘要:原题链接: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 阅读全文
posted @ 2019-10-12 20:09 陈墨cacm 阅读(164) 评论(0) 推荐(0) 编辑
摘要:贪心 加 优先队列 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 阅读全文
posted @ 2019-07-17 10:22 陈墨cacm 阅读(235) 评论(0) 推荐(0) 编辑
摘要:原题链接: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 阅读全文
posted @ 2019-06-10 09:35 陈墨cacm 阅读(202) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2019-05-30 19:50 陈墨cacm 阅读(209) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2019-04-27 20:41 陈墨cacm 阅读(155) 评论(0) 推荐(0) 编辑
摘要: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  阅读全文
posted @ 2019-04-23 15:35 陈墨cacm 阅读(271) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示