1103 Integer Factorization (30分) The K ? P factorization of a positive integer N is to write N as the sum of the P th power of K positive integers. Yo ...
分类:
其他好文 时间:
2020-01-27 19:07:20
阅读次数:
76
"题目" 题意:每个格子里都有数字,负数代表你会少血,正数代表你会加血,当你的血量为0的时候就死了,从左上角出发,到右下角,问你一开始最少的血量是多少。整个过程中不能有血量为0的情况。 题解:只能走下或者走右。这种有向无环图,八成都是动态规划。但是如果从左上角开始规划,有很多情况要考虑。从右下角开始 ...
分类:
其他好文 时间:
2020-01-27 17:32:36
阅读次数:
49
Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a numbe ...
分类:
其他好文 时间:
2020-01-27 15:17:12
阅读次数:
55
github地址:https://github.com/wangshub/wechat_jump_game 工具介绍 Python 3 Android 手机 Adb 驱动 Python Matplot绘图 python3安装 安装pip 安装依赖包 在github地址将源码下载下来解压后,使用cd命 ...
分类:
微信 时间:
2020-01-26 20:58:24
阅读次数:
139
条件语句if....else... 1 temp=input("please input one number:") 2 guest=int(temp) 3 if guest==8: 4 print("You are lucky!") 5 print("But no prize!") 6 else: ...
分类:
编程语言 时间:
2020-01-26 14:38:58
阅读次数:
99
环境说明: 引擎版本:5.2.4 Egret Wing 4.1.6 1.下载依赖,下载地址https://github.com/egret-labs/egret-game-library/tree/master/tiled 2.新建一个游戏项目Tank 3.将上面包含tiled库的libsrc文件夹 ...
分类:
其他好文 时间:
2020-01-26 11:43:44
阅读次数:
345
布局文件 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android ...
分类:
移动开发 时间:
2020-01-25 22:00:31
阅读次数:
116
pip install XXX -i https://pypi.tuna.tsinghua.edu.cn/simple XXX为模块名,切换成清华大学下载源,下载直接提高无数倍 ps: 也可以切换国内其他源 -- 豆瓣:https://pypi.douban.com/simple -- 阿里:htt ...
分类:
编程语言 时间:
2020-01-25 13:00:13
阅读次数:
117
pip默认的是源是国外的,网络不好的话,等死个人,还经常中断。所以最好切换成国内的源 1 更改默认的下载源 pip config set global.index-url https://mirrors.aliyun.com/pypi/simple 我用的是阿里云的。速度各方面都不错 2 临时变更下 ...
分类:
编程语言 时间:
2020-01-24 18:56:20
阅读次数:
141
C# 控制台应用 实现 2048游戏 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Game ...