Look-and-say sequence is a sequence of integers as the following: D, D1, D111, D113, D11231, D112213111, ... where D is in [0, 9] except 1. The (n+1)s ...
分类:
其他好文 时间:
2020-04-15 00:24:16
阅读次数:
63
interger与string使用区别参见: https://blog.csdn.net/WINGZINGLIU/article/details/90693775 https://blog.csdn.net/u011136197/article/details/78909868 ...
分类:
其他好文 时间:
2020-04-14 16:39:34
阅读次数:
56
ASP.NET上传文件用FileUpLoad就可以,但是对文件夹的操作却不能用FileUpLoad来实现。 下面这个示例便是使用ASP.NET来实现上传文件夹并对文件夹进行压缩以及解压。 ASP.NET页面设计:TextBox和Button按钮。 TextBox中需要自己受到输入文件夹的路径(包含文 ...
分类:
Web程序 时间:
2020-04-13 14:11:07
阅读次数:
66
1.快速幂 37=? 【析】7 = 111 31 =3 32 =9 34 =81 …… 32^(n-1) --n:二进制位数 0~n-1 所以37=3×9×81 【例1】https://www.acwing.com/problem/content/91/ #include <iostream> us ...
分类:
其他好文 时间:
2020-04-12 20:44:59
阅读次数:
60
1408. String Matching in an Array Given an array of string words. Return all strings in words which is substring of another word in any order. String ...
分类:
其他好文 时间:
2020-04-12 18:45:33
阅读次数:
75
Problem : A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elemen ...
分类:
其他好文 时间:
2020-04-12 13:58:48
阅读次数:
67
首先需要一个model文件 以Equipment为例 php artisan make:model Equipment 生成了Equipment这个model后再 php artisan admin:make EquipmentController --model=App\Equipment 这时候 ...
分类:
其他好文 时间:
2020-04-08 11:55:53
阅读次数:
173
https://tool.oschina.net/commons/ 文件扩展名Content-Type(Mime-Type)文件扩展名Content-Type(Mime-Type) .*( 二进制流,不知道下载文件类型) application/octet-stream .tif image/tif ...
分类:
Web程序 时间:
2020-04-07 20:30:45
阅读次数:
86
"287. 积蓄程度" 有一个树形的水系,由 N 1 条河道和 N 个交叉点组成。 我们可以把交叉点看作树中的节点,编号为 1~N,河道则看作树中的无向边。 每条河道都有一个容量,连接 x 与 y 的河道的容量记为 c(x,y)。 河道中单位时间流过的水量不能超过河道的容量。 有一个节点是整个水系的 ...
分类:
其他好文 时间:
2020-04-07 20:14:34
阅读次数:
67
Following Orders(拓扑+dfs) AC_Code: 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef long long ll; 4 const int maxn = 25; 5 const int inf = 0 ...