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
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
一、历史 首先,简要了解一下Pygame的历史吧~ Pygame最初是由Pete Shinner编写的,该项目于2000年10月启动,六个月后,pygame版本1.0发布。pygame是一个利用SDL(Simple DirectMedia Layer)写就的游戏库。SDL 是一个用于控制多媒体的跨平 ...
分类:
其他好文 时间:
2020-05-03 21:33:31
阅读次数:
104
题目: 解法: 中序遍历得到一个升序序列,将遍历的结果存在一个数组val中,然后用另一个数组diff存数组val中前后元素的差值,输出其中的最小值。 代码略微繁琐,欢迎提出优化建议。 1 /** 2 * Definition for a binary tree node. 3 * struct Tr ...
分类:
其他好文 时间:
2020-05-03 14:30:33
阅读次数:
57
Traveler ZOJ - 4103 The famous traveler BaoBao is visiting the Dream Kingdom now. There are nn cities in Dream Kingdom, numbered from 11 to nn. The ci ...
分类:
其他好文 时间:
2020-05-03 00:57:04
阅读次数:
81
代码如下: 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html > 3 <head> 4 ...
分类:
Web程序 时间:
2020-05-02 22:38:01
阅读次数:
75
The task of this problem is simple: insert a sequence of distinct positive integers into a hash table first. Then try to find another sequence of inte ...
分类:
其他好文 时间:
2020-05-02 15:11:59
阅读次数:
52
Werewolf(狼人杀) is a game in which the players are partitioned into two parties: the werewolves and the human beings. Suppose that in a game, player #1 ...
分类:
其他好文 时间:
2020-05-02 14:51:55
阅读次数:
49
1745. 单调数列 中文English 如果数组是单调递增或单调递减的,那么它是单调的。 如果对于所有 i <= j,A[i] <= A[j],那么数组 A 是单调递增的。 如果对于所有 i <= j,A[i]> = A[j],那么数组 A 是单调递减的。 当给定的数组 A 是单调数组时返回 tr ...
分类:
其他好文 时间:
2020-05-02 12:04:32
阅读次数:
67
国内镜像: 阿里云 http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 豆瓣(douban) http://pypi.douban.com/simple/ 清华大学 https: ...
分类:
其他好文 时间:
2020-05-01 22:28:04
阅读次数:
86