2019年1月10日

摘要: 满足strict weak ordering的运算符能够表达其他所有的逻辑运算符(logical operator): <(a, b) : (a < b) <=(a, b): !(b < a) ==(a, b): !(a < b) && !(b < a) !=(a, b) : (a < b) || 阅读全文
posted @ 2019-01-10 18:30 鹏鹏哥哥 阅读(219) 评论(0) 推荐(0) 编辑
 

2019年1月3日

摘要: win根目录下执行 mvn install 生成 可运行jar使用java -jar jar名字 执行项目 ps aux|grep demo.jar 查看进程 kill -9 processid 杀掉进程重启服务 阅读全文
posted @ 2019-01-03 00:09 鹏鹏哥哥 阅读(145) 评论(0) 推荐(0) 编辑
 

2019年1月2日

摘要: 安装putty,将pscp.exe移到 C:\Windows\System32 目录下。 在cmd 中执行,pscp -l rot -pw [password] -ls [ip]:/opt 查看目录 传输文件 pscp 本地文件目录 用户名@[ip]:/opt 例如 pscp f:\demo\tar 阅读全文
posted @ 2019-01-02 20:21 鹏鹏哥哥 阅读(495) 评论(0) 推荐(0) 编辑
 

2018年11月14日

摘要: 题目:给n种硬币,每种无限多个,问组成m最少需要多少个? 动态规划 dp[i]表示当价值为i时的数目,则dp[i]=min(dp[i-a[j]]+1,dp[i]) 阅读全文
posted @ 2018-11-14 21:16 鹏鹏哥哥 阅读(586) 评论(0) 推荐(0) 编辑
 

2018年10月25日

摘要: string addstring(string s1,string s2) { string ans=""; int f=0; for(int i=s1.length()-1,j=s2.length()-1;i>=0||j>=0;i--,j--) { int x=i<0?0:s1[i]-'0'; int y=j<0?0:s2[j]-... 阅读全文
posted @ 2018-10-25 12:46 鹏鹏哥哥 阅读(197) 评论(0) 推荐(0) 编辑
 

2018年7月29日

摘要: 给定一个正整数 n,找出小于或等于 n 的非负整数中,其二进制表示不包含 连续的1 的个数。 例如: 阅读全文
posted @ 2018-07-29 23:45 鹏鹏哥哥 阅读(1126) 评论(0) 推荐(0) 编辑
 

2018年5月14日

摘要: 小明刚刚入职淘宝,老大给他交代了一个简单的任务,实现一个简易的商品推荐系统。 这个商品推荐系统的需求如下: 一共有 n 件商品可以被推荐,他们的编号分别为 1 到 n。每件商品都有一个价格,编号为 i的商品价格为 pi​ 元。 现在需要给用户推荐尽可能多的商品,但是要保证按照编号上升的顺序给用户依次 阅读全文
posted @ 2018-05-14 15:42 鹏鹏哥哥 阅读(450) 评论(0) 推荐(0) 编辑
 

2018年3月30日

摘要: https://www.nowcoder.com/test/9763997/summary 牛牛找实习生 #include<iostream>#include<cstring>#include<algorithm>#include<cstdio>#include<set>#include<map># 阅读全文
posted @ 2018-03-30 12:06 鹏鹏哥哥 阅读(207) 评论(0) 推荐(0) 编辑
 
摘要: import java.awt.*;import java.awt.event.*;class Marble extends Thread{ Table table=null; int x,y,xdir,ydir; public Marble (Table _table,int _x,int _y, 阅读全文
posted @ 2018-03-30 11:30 鹏鹏哥哥 阅读(124) 评论(0) 推荐(0) 编辑
 

2018年3月25日

摘要: 建dp[i][j]以长度i结尾为j的方案数 转自//https://blog.csdn.net/u010045971/article/details/77188110//长度为i,以j结尾#include<iostream>#include<cstring>#include<algorithm>#i 阅读全文
posted @ 2018-03-25 23:06 鹏鹏哥哥 阅读(138) 评论(0) 推荐(0) 编辑