路由之间的跳转有再种:1、通过标签<router-linkto=‘/login‘>去登录</router-link>实现跳转2、通过js实现:this.$router.push({path:‘/buy‘})this.$router.replace({path:‘/buy‘})2.1push与replace的区别push会向hi
分类:
其他好文 时间:
2019-06-07 14:23:29
阅读次数:
88
SELECT price * number #列1乘以列2 AS usdt #别名FROM order_btccoin #表名WHERE buy_uid = 13307325 255.0046567135846 #条件 加就加,乘就乘,减就减 如果要统计查出的值的话可以这样 select sum(u ...
分类:
数据库 时间:
2019-06-03 12:35:00
阅读次数:
160
121. Best Time to Buy and Sell Stock 0. 参考文献 | 序号 | 文献 | | | | | 1 | [LeetCode:Best Time to Buy and Sell Stock I II III] | 1. 题目 Say you have an array ...
分类:
其他好文 时间:
2019-05-26 19:58:13
阅读次数:
159
1. CF 867E Buy Low Sell High 大意: 第$i$天可以花$a_i$元买入或卖出一股或者什么也不干, 初始没钱, 求$n$天后最大收益. 用堆维护最小值, 假设当前考虑的值为$a_i$, 堆中最小值为$t$, 则卖出贡献$a_i-t$, 若贡献$>0$直接加上, 然后再填进去 ...
分类:
其他好文 时间:
2019-05-18 20:31:03
阅读次数:
130
/***** //sell[i]表示截至第i天,最后一个操作是卖时的最大收益; //buy[i]表示截至第i天,最后一个操作是买时的最大收益; //cool[i]表示截至第i天,最后一个操作是冷冻期时的最大收益; //递推公式: //sell[i] = max(buy[i-1]+prices[i],... ...
分类:
其他好文 时间:
2019-05-15 12:38:01
阅读次数:
107
https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii/solution/ 暴力 本题可以多次买卖股票,如果只允许一次买卖股票,整个暴力就是n2的算法,如果可以无限制买卖股票直接用普通的写法不是很好写,可以用递归来解决。 ...
分类:
其他好文 时间:
2019-05-05 14:38:58
阅读次数:
137
https://ac.nowcoder.com/acm/contest/847/C 在blueland上有 n n个水果店,它们的编号依次为 0,1,2...n?1 0,1,2...n?1。奇妙的是,每个水果店都只卖一种水果,且这些水果店卖的水果种类都各不相同。 在每个水果店有一个传送门,且这些传送 ...
分类:
其他好文 时间:
2019-05-04 00:32:19
阅读次数:
167
题目链接:http://poj.org/problem?id=2828 题目大意: 插队买票,有 n 个人依次插队,一开始买票队列为空,每个插队的人有两个属性 (pos, val) ,pos 表示这个人插队插在了 pos 位置,val 代表这个人的 id,输出 n 个人插完队后形成的序列所对应的 i ...
分类:
其他好文 时间:
2019-04-30 23:31:09
阅读次数:
167
For sale online Truck Adblue Emulator For SCANIA See the price Where to buy? Truck Adblue Emulator For SCANIA is the best selling product in the marke ...
分类:
数据库 时间:
2019-04-26 00:45:56
阅读次数:
186
For sale online Truck Adblue Emulator For SCANIA See the price Where to buy? Truck Adblue Emulator For SCANIA is the best selling product in the marke ...
分类:
数据库 时间:
2019-04-26 00:10:35
阅读次数:
190