http://pypi.douban.com/simple/http://mirrors.aliyun.com/pypi/simple/https://pypi.tuna.tsinghua.edu.cn/simple ...
分类:
其他好文 时间:
2020-05-06 10:33:39
阅读次数:
61
"Atcoder ABC166 F" Three Variables Game 题意 有一个游戏包含三个变量,分别表示为$A$,$B$和$C$。随着游戏的进行,将会有$N$个事件要求您做出选择。这些选项中的每一个都由一个字符串S~i~?表示。如果S~i~是$A$ || $B$,你必须在$A$或$B$ ...
分类:
其他好文 时间:
2020-05-05 21:59:15
阅读次数:
141
Recommendation system predicts the preference that a user would give to an item. Now you are asked to program a very simple recommendation system that ...
分类:
其他好文 时间:
2020-05-05 19:47:54
阅读次数:
70
之前一直都是使用 python manage.py runserver 来运行服务器。这只适用测试环境中使用。正式发布的服务,需要一个可以稳定而持续的服务器。 1、基础开发环境配置 yum groupinstall "Development tools" yum install zlib-devel ...
分类:
Web程序 时间:
2020-05-05 01:02:41
阅读次数:
83
Just a Hook HDU - 1698 In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up of sever ...
分类:
其他好文 时间:
2020-05-05 00:29:03
阅读次数:
57
A Simple Problem with Integers POJ - 3468 You have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation ...
分类:
其他好文 时间:
2020-05-05 00:23:29
阅读次数:
80
被这个题目卡了好久,思路大致是对的,但是一直wa,好像是当a+b+c<=2的时候需要特判,然后其他情况就贪心就好了。另外一个思路和这个差不多,也是贪心,比如说遇到了AB,如果次数的a>b,那就选择B,如果a<b那就选择A,如果A=B,这就要考虑一个概率问题了,如果s[i+1]中存在A我们就选择A,否 ...
分类:
其他好文 时间:
2020-05-04 21:33:13
阅读次数:
117
45. 跳跃游戏 II 题目来源: "https://leetcode cn.com/problems/jump game ii" 题目 给定一个非负整数数组,你最初位于数组的第一个位置。 数组中的每个元素代表你在该位置可以跳跃的最大长度。 你的目标是使用最少的跳跃次数到达数组的最后一个位置。 示例 ...
分类:
编程语言 时间:
2020-05-04 17:19:00
阅读次数:
66
地址 https://leetcode-cn.com/problems/jump-game/ 给定一个非负整数数组,你最初位于数组的第一个位置。 数组中的每个元素代表你在该位置可以跳跃的最大长度。 判断你是否能够到达最后一个位置。 示例 1: 输入: [2,3,1,1,4] 输出: true 解释: ...
分类:
其他好文 时间:
2020-05-04 13:36:25
阅读次数:
53
pip install 库名 -i 镜像源地址 pip install pymysql -i https://pypi.tuna.tsinghua.edu.cn/simple 镜像源地址 清华: https://pypi.tuna.tsinghua.edu.cn/simple 豆瓣: http:// ...
分类:
编程语言 时间:
2020-05-04 13:34:17
阅读次数:
83