自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 win10搜索框没有反应解决方法

记录一下,使用方法二成功解决。https://blog.csdn.net/weixin_42307478/article/details/118509894?ops_request_misc=&request_id=&biz_id=102&utm_term=win10%E6%90%9C%E7%B4%A2%E6%A1%86%E7%82%B9%E5%87%BB%E6%B2%A1%E5%8F%8D%E5%BA%94%EF%BC%8C%E6%B3%A8%E5%86%8C%E8%A1%A8%

2021-10-29 23:44:12 349

原创 做项目问题

解决 unable to access ‘https://github.com/tensorflow/models.git/’: Could not resolve host: github.com只需要在命令行中执行git config --global --unset http.proxygit config --global --unset https.proxy

2021-09-04 17:18:26 77

原创 win10 无法启动network connections

在HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Netman\Parameters下建两个项:名称ServiceDll,类dao型REG_EXPAND_SZ,值%SystemRoot%\System32\netman.dll名称ServiceDllUnloadOnStop,类型REG_DWORD,值1改完以后要执行services.msc,找到"Network Connections"服务启动。...

2021-09-01 22:02:12 2553

原创 奖学金【结构体排序】

输入690 67 8087 66 9178 89 9188 99 7767 89 6478 89 98输出6 2654 2643 2582 2441 237输入880 89 8988 98 7890 67 8087 66 9178 89 9188 99 7767 89 6478 89 98输出8 2652 2646 2641 2585 258#include<iostream>#include<algorithm

2021-04-17 21:14:12 141

原创 宇宙总统

输入59876512365879541022356985678输出41022356#include<iostream>#include<cstring>using namespace std;int main(){ int n, num; char a[201], max[201] = " "; cin >> n; for(int i = 1; i <= n; i++) { cin >> a; if.

2021-04-17 20:43:12 314

原创 最厉害的学生

输入3senpai 114 51 4lxl 114 10 23fafa 51 42 60输出senpai 114 51 4#include<iostream>#include<algorithm>using namespace std;struct Stu{ string name; int chi; int math; int eng; int sum;};bool cmp(Stu a, Stu b)//降序 { return a.s

2021-04-17 11:39:49 339

原创 珠心算测验【数组】

输入41 2 3 4输出2#include<iostream>using namespace std;int main(){ int n, a[101] = {0}, sum[101][101] = {0}, ans = 0; int g[20001] = {0};//输入的数字最大值为10000,两数相加为20000 int t[20001] = {0}, maxn = 0; cin >> n; for(int i = 1; i <= n

2021-04-10 19:56:25 53

原创 梦中的统计【数组】

啊啊啊我一定要记录一下这个差点让我心梗的题目,虽然他很简单!!!几次修改,都查不到错误,最终发现%d,被我打成了&d,吐血ing…输入129 137输出1 10 2 9 1 1 1 1 0 1#include<bits/stdc++.h>//万能头文件,真的非常好用!using namespace std;int a[10];int main(){ int n, m; int first = 1; //用来控制输出的空格 cin >> n

2021-04-10 16:54:13 314

原创 神奇的幻方【数组】

听说是水题,果然一次全通过(当然还是仿照别人的思路而解)输入13输出18 1 63 5 74 9 2输入225输出2327 354 381 408 435 462 489 516 543 570 597 624 1 28 55 82 109 136 163 190 217 244 271 298 325353 380 407 434 461 488 515 542 569 596 623 25 27 54 81 108 135 162 189 216 243 270 2

2021-04-10 15:03:29 394

原创 彩票摇奖【数组】

输入223 31 1 14 19 17 1812 8 9 23 1 16 711 7 10 21 2 9 31输出0 0 0 0 0 1 1#include<iostream>using namespace std;int f[33], p[10], n, m;int main(){// int sum = 0; cin >> n; for(int i = 1; i <= 7; i++) { cin >> m; f[m.

2021-04-10 13:45:13 140

原创 工艺品制作【数组】

一开始循环赋值1时,将循环写在了q那层循环外面,答案全错。之后定义的三维数组没有赋初值,导致一个测试点没有通过。最后的循环下标要从1开始。如图:#include<iostream>using namespace std;int w, x, h, ans = 0, q;int main(){ cin >> w >> x >> h >> q; int a[21][21][21] = {0}; int x1, y1, z1, x2.

2021-04-08 17:33:30 104

原创 完美的代价

#include<iostream>#include<string.h>using namespace std;void Swap(char &t1, char &t2){ char c = t2; t2 = t1; t1 = c;}int main(){ int n; char ch[8005]; cin >> n >> ch; int ans = 0; bool flag1 = false, flag2 = .

2021-03-27 19:05:37 50

原创 翻硬币

翻硬币#include<iostream>#include<string.h>using namespace std;int main(){ char a[1001], b[1001]; cin >> b;//要修改的 cin >> a; int sum = 0; for(int i = 0; i < strlen(a); i++) { if(a[i] != b[i]) { if(b[i + 1] == '*')

2021-03-27 17:53:09 66

原创 非递减数列

第一次在leedcode上写题class Solution {public: bool checkPossibility(vector<int>& nums) { int count = 0; for (int i = 1; i < nums.size(); i++) { if (nums[i] < nums[i - 1]) { i

2021-03-10 21:52:27 65 1

原创 第十届蓝桥杯——试题G完全二叉树的权值

完全二叉树注意:评测用例规模和约定中有负数!#include<iostream>using namespace std;int main(){ int n; cin >> n; int depth = 1, m_depth;//深度和记录最大权值的深度 int length = 1;//每一层的长度,均小于deep * 2 int max = -1000000; for (int i = 0; i < n; depth++, length *= 2)

2021-03-09 21:05:19 74

原创 第十届蓝桥杯——试题H等差数列

等差数列{an}的通项公式为:an=a1+(n-1)dsort 排序函数头文件 #include中#include<iostream>#include <algorithm>using namespace std;int a[10005];int gcd(int a, int b)//求最大公约数{ return b == 0 ? a : gcd(b, a % b);}int main(){ int N; cin >> N; for(in..

2021-03-09 20:05:30 89

原创 第十届蓝桥杯试题F——特别数的和

在写check函数时,一开始return 0 的位置写错,写在了循环的里面,就一直不对。。。#include<iostream>using namespace std;int check(int n){ while(n) { int t = n % 10; n = n / 10; if(t == 2 || t == 0 || t == 1 || t == 9) { return 1; } } return 0;}int main(){ in

2021-03-04 17:50:30 67 1

原创 第十届蓝桥杯试题D——数的分解

#include<iostream>using namespace std;int check(int n) //检查数字是否带有2或者4{ while(n) { int t = n % 10; n = n / 10; if (t==2 || t==4) return 0; } return 1; }int main(){ int num = 0; for(int i = 1; i < 2019; i++) { if(check(i)).

2021-03-03 21:20:53 76

原创 第十届蓝桥杯试题C——数列求值

用递归求解,最后4位数字可以直接求模,因为加法的最后一位就是个位数相加#include <iostream>using namespace std;int f[20190324];//数组空间太大,要放在main函数前面int main(){ f[0] = f[1] = f[2] = 1; int i; for (i = 3; i < 20190324; i++) { f[i] = (f[i - 1] + f[i - 2] + f[i - 3] ) % 10000;.

2021-03-03 13:31:41 80

原创 第十届蓝桥杯——试题B年号字符

【问题】小明用字母 A 对应数字 1,B 对应 2,以此类推,用 Z 对应 26。对于 27 以上的数字,小明用两位或更长位的字符串来对应,例如 AA 对应 27,AB 对应 28,AZ 对应 52,LQ 对应 329。请问 2019 对应的字符串是什么?一:(该解题方法来源于网络)#include <stdio.h>#include <stdlib.h>//26进制int main(){ int a=0,b=0,c=0;//感觉是三位数 int y

2021-03-03 12:52:19 107

原创 单词分析

#include<stdio.h>#include "string.h"int main(){ char s[1000]; int a[128] = {0};//**定义简单的哈希表并确定表长为128(因为ASCII码只占一个字节8位)并赋初值为0** scanf("%s", s); int i; int max = 0; char t = 0; for(i = 0; i < strlen(s); i++) { a[s[i]]++;//建立哈希表 if

2021-03-02 16:55:41 132

原创 Python--pandas数据结构

pandas概述 基于 numpy 的一种工具,为了解决数据分析任务而创建。 纳入了大量库和一些标准的数据模型,提供了高效的操作大型数据集所需要的模型。 提供能使我们快速便捷地处理数据的函数和方法。 常与numpy 和matplotlib一同使用。 有两大核心数据结构:Series(一维数据,键值对的形式)和DataFrame(多特征数据,既有行索引,又有列索引)pa...

2020-02-10 14:17:21 104

原创 Python--numpy 矩阵操作

numpy矩阵库(Matrix) numpy 中包含了一个矩阵库 numpy.matlib,该模块中的函数返回的是一个矩阵,而不是ndarray 对象。 一个m*n的矩阵是一个由m行(row)n列(column)元素排列成的矩形阵列。 矩阵里的元素可以是数字、符号或数学式。 numpy 和matlab 不一样,对于多维数组的运算,缺省情况下不适用矩阵运算,如果你希望对数组进...

2020-02-06 21:28:55 441

原创 python--图像处理

Pillow 扩展库在PIL中,任何一个图像文件都可以用image对象表示Image类图像读取和创建方法:Image.open(filename) 根据参数加载对象Image.new(mode,size,color) 根据给定参数创建一个新的图像Image.open(StringIO.StringIO(buffer)) 从字符串中获取图像Image.frombytes(m...

2020-02-06 21:20:15 328

原创 Python--numpy库

Python中用list保存一组值,可用来当做数组使用,由于列表的元素可以是任何对象,因此列表中所保存的是对象的指针。【1,2,3】则需要三个指针,三个整数对象。这对于数值运算来说,比较浪费内存和CPU计算时间;array 模块, array对象和列表不同,和C语言的一维数组类似但不支持多维,没有各种运算函数。numpy 提供 ndarray(N-dimensinal array obj...

2020-02-06 19:41:14 88

原创 python--数据可视化

柱状图import matplotlib.pyplot as pltname_list =["Monday","Tuesday","Friday","Sunday"]num_list = [1.5,0.6,7.8,6]num_list2=[1,2,3,1]x = list(range(len(num_list)))total_width = 0.8n=2width = tot...

2020-02-05 20:17:49 222

原创 Python--自然语言处理

1、下列不属于常用中文分词方法的是( c )A. 基于字典、词库匹配的分词方法B. 基于词频统计的分词方法C. 基于知识理解的分词方法D. 基于单字语义的分词方法2、以下不属于jieba常用方法的是(D)A. jieba.cutB. jieba.cut_for_searchC. jieba.cut_allD. jieba.lcut...

2020-02-03 14:12:42 318 3

空空如也

空空如也

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

TA关注的人

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