码迷,mamicode.com
首页 >  
搜索关键字:pre    ( 61914个结果
#2069:Coin Change(完全背包)
Coin Change Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 16592 Accepted Submission(s): 5656 Pr ...
分类:其他好文   时间:2020-04-29 21:49:18    阅读次数:56
930. 和相同的二元子数组
1 class Solution 2 { 3 public: 4 int numSubarraysWithSum(vector<int>& nums, int k) 5 { 6 unordered_map<int,int> hash;// 和+次数 7 hash[0] = 1; 8 9 int re ...
分类:编程语言   时间:2020-04-29 21:47:39    阅读次数:61
[USACO11JAN] Roads and Planes G
题目 $Farmer John$正在一个新的销售区域对他的牛奶销售方案进行调查。他想把牛奶送到$T$个城镇$(1 5,4 6$和$1 3$,花费分别是$ 100, 100, 10$。$FJ$的中心城镇在城镇$4$。 Sample Output NO PATH NO PATH 5 0 95 100 样 ...
分类:其他好文   时间:2020-04-29 20:26:49    阅读次数:68
降低圈复杂度
降低圈复杂度 用functional的方式降低圈复杂度 用stl algorithm代替for loop https://blog.csdn.net/YyoulingL/article/details/84515924 "降低圈复杂度" https://zhuanlan.zhihu.com/p/29 ...
分类:其他好文   时间:2020-04-29 20:08:36    阅读次数:71
你应该知道的springboot mongodb jpa那些小tip.
官方文档https://docs.spring.io/spring data/data mongodb/docs/current/reference/html/index.html 查询: \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ...
分类:数据库   时间:2020-04-29 18:48:49    阅读次数:67
ADB 多设备中指定设备的启动
进入指定设备的 shell 重启指定设备的应用 ...
分类:数据库   时间:2020-04-29 18:48:18    阅读次数:113
Ubuntu16.04如何推送自己的镜像到阿里云(亲测百分百有效)
很多时候,我们docker pull一个镜像之后,会对镜像做一些修改。比如,开启SSH连接等。但是,如果这个容器关闭之后,那么这个容器里面的东西就会丢失,恢复到初始状态。那此时就需要把这个修改过的镜像重新打包,然后推送到某个仓库。然后使用到的时候,再次把这个镜像拉取下来就可以了。下面介绍一下怎样把自 ...
分类:系统相关   时间:2020-04-29 18:36:13    阅读次数:71
Educational Codeforces Round 86 (Rated for Div. 2) C—Yet Another Counting Problem
``` //序列具有周期性 #include #include #include #include using namespace std; typedef long long ll; const int N=5e4+10; ll sum[N]; ll a,b,q; ll calc(ll x) { ... ...
分类:其他好文   时间:2020-04-29 18:21:24    阅读次数:64
mongoose更新前修改数据库
可以在模型中钩子函数中获取更新数据并在保存前修改 schema.pre('updateOne', function() { let doc = this.getUpdate(); ratio.process(doc.subtitle); this.set({ updatedAt: new Date( ...
分类:数据库   时间:2020-04-29 18:12:18    阅读次数:68
Calendar日期的使用
//使用Calendar类代表当前时间 Calendar c = Calendar.getInstance(); //年份 int yea = c.get(Calendar.YEAR); //月份 int month = c.get(Calendar.MONTH)+1; //日 int date = ...
分类:其他好文   时间:2020-04-29 17:59:09    阅读次数:43
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!