排序
gx翔鸽
革命尚未成功,同志任需努力,先改造自己
展开
-
Codeforces670C—— Cinema【map/离散化,排序】
C. Cinema time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Moscow is hosting a major international conference, which is attended b...原创 2019-01-31 10:48:20 · 411 阅读 · 1 评论 -
洛谷P5149——会议座位【字典树 + 逆序对】
洛谷P5149——会议座位 大致思路:我们先用字典树把单词存起来,在每个单词的末尾节点给这个单词按照出现顺序标号,然后在查找的过程中,把其出现顺序用一个数组一次存起来,然后求这个数组的逆序对即可。 #include <algorithm> #include <cstdio> #include <iostream> #include <cstring&...原创 2019-02-17 19:26:51 · 320 阅读 · 0 评论