自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 收藏
  • 关注

原创 深度学习gpu配置入的一些坑

此文记录自己在深度学习的道路上所遇到的环境配置问题。由于Linux在需要使用gpu的TensorFlow,需要进行相关的配置。电脑环境为ubantu18.4.在安装gpu时,需要卸载原先的驱动,重启结果出现黑屏。找过很多种方式,最后有效的是通过插入启动盘按del建进入BIOS模式,按f2进去Grup,通过recover mood来进行恢复。图片下次补。。。。...

2020-06-26 02:00:10 353

原创 震惊!后缀子串排序输出,超简单!

题目描述对于一个字符串,将其后缀子串进行排序,例如grain 其子串有: grain rain ain in n 然后对各子串按字典顺序排序,即: ain,grain,in,n,rain输入描述:每个案例为一行字符串。输出描述:将子串排序输出示例1输入复制grain输出复制aingraininnrain#include<bits/stdc++.h>...

2020-04-16 19:46:00 173

原创 没有带括号的表达式计算

#include<bits/stdc++.h>using namespace std;int main() { double a[1010]; while(~scanf("%lf",&a[0])) { char op; int i=0; double nex; while(~scanf("%...

2020-04-15 13:46:55 399

原创 n皇后思想

#include<bits/stdc++.h>using namespace std;int n;const int maxn=100;//n皇后的规模int NQueenpos[maxn];void NQueen(int k) { //0到k-1行都已经摆好,现在是求k行的情况 int i; if(n==k) { //0到k-1一共k行,若k==n则已经结束...

2020-04-12 20:31:20 160

原创 STL打印全排列。next_permutation,pre_permutation.

#include <stdio.h>#include <algorithm>using namespace std;int main(){ int n; while(scanf("%d",&n)&&n){ int a[1000]; for(int i=0;i<n;i++){ ...

2020-04-10 20:03:30 108

原创 判断是不是树

判断是否为树的的依据可以简化为一句话: 是否有且仅有一个入度为0的节点。上只用映射就可以解决,但是要排除自环的情况。#include<bits/stdc++.h>using namespace std;map<int, int> inDegree;bool isTree() { if (inDegree.empty()) return true; /...

2020-04-08 20:04:03 1133 1

原创 大数进制转换

#include<bits/stdc++.h>using namespace std;string conversion(int m,string a,int n){ string b;int len=a.size();int carry=0; for(int i=0;i<len;) { carry=0; for(int j=i;j<len;j++) ...

2020-04-08 13:21:48 87

原创 3000大整数阶乘

@TOC大整数阶乘```cpp#include<bits/stdc++.h>using namespace std;const int maxlen=3000;int ans[maxlen];int main(){ int n; while(cin>>n){ for(int ...

2020-04-07 20:15:46 271

原创 大数运算

```cppinclude <bits/stdc++.h>using namespace std;string div(string str,int x){ //x为除数 int carry = 0;//余数 for(int i=0;i<str.size();i++){ int cur = str[i]-'0'+carry*10;//余...

2020-04-04 18:27:22 102

原创 动态规划解决最长上升子序列

动态规划的一般解题步骤:分解无后效性的子问题,写出状态方程。最先考虑求以n个元素的子序列,但是加一个元素或者减一个元素会改变状态。解决的问题,求a[i]左边的比其小的最长的上升子序列,加1变得a【i】的子序列。状态方程为:maxnum【1】=1,//初始状态maxnum【i】=max{maxnum【j】:1<=j<i且a【j】<a【i】且i!=1}j是比i小的最大子...

2020-04-02 15:53:00 157

原创 递归算24

有关于算24的问题通过递归来实现递归的思考步骤第一步:分解成小规模的问题第二步:找出边界的条件#include<bits/stdc++.h>using namespace std;double a[5];#define eps 1e-6const int num=10;bool IsZero(double x) { //double浮点数除法要用精度判断 if(a...

2020-04-01 12:18:45 163

原创 pycharm中Debug运行报错解决

在运行debug时候出现了pydev debugger: process 15580 is connectingConnected to pydev debugger (build 183.4886.43)或者5579等一系列错误提示运行run项目能够生效。其解决办法如下:在网上找了什么删除.idea文件和修改设置都没有起作用最后是删除断点选中断点(有个小红点)点左上方的减号重...

2019-03-04 16:35:14 3433 1

原创 mysql-python安装出现的问题

pycharm中导入mysql-python时,出现Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: ‘D:\Python27\New Folder\Lib\MySQL_python-1.2.5-cp27-none-win_amd64.whl’,解决办法:下载 ...

2019-03-02 18:05:28 557

转载 python安装mysql-python报错解决方法

python安装mysql-python的报错解决办法@TOC欢迎使用Markdown编辑器你安装MySQL-python报错比较多,但不关mysql的事Windows下安装MySQLdb遇到的问题及解决方法pip install MySQL-pythonerror: Microsoft Visual C++ 9.0 is required (Unable to find vcvar...

2019-03-02 15:57:00 1392

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除