layout: post title: Codeforces Round 253 (Div. 2) author: "luowentaoaa" catalog: true tags: mathjax: true codeforces 模拟栈 贪心 传送门 A. "Anton and Letters" ...
分类:
其他好文 时间:
2019-02-26 13:35:10
阅读次数:
162
1058 A+B in Hogwarts (20 分) If you are a fan of Harry Potter, you would know the world of magic has its own currency system -- as Hagrid explained it ...
分类:
其他好文 时间:
2019-02-24 10:53:03
阅读次数:
193
Arbitrage 题目链接:http://poj.org/problem?id=2240 Description: Arbitrage is the use of discrepancies in currency exchange rates to transform one unit of a ...
分类:
其他好文 时间:
2019-02-04 20:56:05
阅读次数:
192
这道题让我想起了以前一道变态题 round#324 的E题,ANTON AND LRA 这道题比较变态的地方是让你输出变化的规则。 但是仔细一想发现如果只挪每个需要向后移动的元素,就可以每次在不多移动的情况下将小于等于pos位置的元素移动到pos前面 因为每个元素需要移动的距离是一定的,在只需要保证 ...
分类:
其他好文 时间:
2019-02-03 23:52:27
阅读次数:
293
题目大意:有一串数为$1\sim n(n\leqslant2\times10^5)$,$m(m\leqslant5\times10^4)$次询问,每次问交换位置为$l,r$的两个数后数列中逆序对的个数。 题解:发现交换位置为$l,r$的数后,逆序对的变化只和区间$(l,r)$内的数与$s_l,s_r ...
分类:
其他好文 时间:
2019-01-28 13:46:36
阅读次数:
174
If you are a fan of Harry Potter, you would know the world of magic has its own currency system -- as Hagrid explained it to Harry, "Seventeen silver ...
分类:
其他好文 时间:
2019-01-26 21:35:56
阅读次数:
163
题解 CF734F 【Anton and School】 "传送门" 这种将位运算和普通运算结合起来的题目要拆位来考虑,可以得到$log_{2}($值域$)$的算法,甚至将值域看成常数。 根据 $a|b+a \& b=a+b$ 得到 $b_i+c_i=\Sigma a_i+na_i$ 于是 $a_i ...
分类:
其他好文 时间:
2019-01-26 20:59:50
阅读次数:
196
正解:构造 解题报告: 先放下传送门QwQ 这题首先要知道一个结论:(x&y)+(x|y)=x+y 还是能理解的趴? 所以我们把bi+ci就能得到∑a+n*a[i] 然后我们就能成功求出∑a 然后每个a就能求出来了 然后求出来之后再直接枚看符不符合输入就欧克了! 484想通了不难! 等下写了代码放下 ...
分类:
其他好文 时间:
2019-01-24 01:12:02
阅读次数:
154
5 9 * * * /home/wuxiangl/anaconda2/bin/python2.7 /home/wuxiangl/currency/urlCurrencyType.py >> /home/wuxiangl/jiaoben/urlCurrencyType.out 2>&1 每天早上9点5... ...
分类:
其他好文 时间:
2019-01-23 15:37:05
阅读次数:
179
过滤器 可以对输入的值按照指定的方案进行处理后再输出的函数。 1.货比过滤器currency:{{ currency_expression | currency : symbol}} 2.日期过滤器:date格式化date到字符串,基于format的要求。 {{ date_expression | ...
分类:
Web程序 时间:
2019-01-21 12:13:24
阅读次数:
177