随笔分类 -  模拟

摘要:"A Remove Duplicates" 题目大意: 现在有一个长度为n的一串数字,要将其中相同的数字删掉。删除的规则:如果数字相同时保留最右边的那一个。输出删除之后的数字串 大致思路: 暴力模拟情况就好···虽然我感觉我写的非常复杂,应该有更简单的写法。 代码: c++ for(int i=n; 阅读全文
posted @ 2018-05-16 00:43 SCaryon 阅读(199) 评论(0) 推荐(0)
摘要:本次网络赛发挥奇差,被各种姿势卡范围、精度、智商。这样下去现场赛堪忧啊QAQ。 下面开始正文,由于B题的标称貌似出现了一些问题,以及H题的考点是计算几何,我对这方面了解为0。所以就先不补了~ A.a*b problem 本题需要注意的就是数据范围,两个2^32-1的数相乘单纯的long long 是 阅读全文
posted @ 2018-03-20 17:43 SCaryon 阅读(232) 评论(0) 推荐(0)
摘要:题面: Queues and Priority Queues are data structures which are known to most computer scientists. The Team Queue, however, is not so well known, though 阅读全文
posted @ 2017-08-16 18:47 SCaryon 阅读(170) 评论(0) 推荐(0)
摘要:A Text Volume 题面: You are given a text of single-space separated words, consisting of small and capital Latin letters. Volume of the word is number of 阅读全文
posted @ 2017-08-16 18:39 SCaryon 阅读(438) 评论(0) 推荐(0)