自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 树莓派 Raspberry Pi 4B下PyTorch TensorFlow 深度学习环境配置

树莓派 Raspberry Pi 4B下PyTorch TensorFlow 深度学习环境配置Install DL on a Raspberry Pi 4.请参考https://qengineering.eu/install-pytorch-on-raspberry-pi-4.html 以及 https://github.com/Qengineering/RPi-image

2022-01-21 13:55:49 1246

原创 Connecting the Dots: Multivariate Time Series Forecasting with Graph Neural Networks论文解读

Connecting the Dots: Multivariate Time Series Forecasting with Graph Neural Networks论文解读MTGNN思路解读INTRODUCTIONMTGNN思路解读本博客主要讲解Connecting the Dots: Multivariate Time Series Forecasting with Graph Neural Networks(以下简称MTGNN)一文的文章思路。先更新INTRODUCTION,后面有空继续。论文链

2021-06-05 17:50:11 1467

原创 PAT A1066 Root of AVL Tree

平衡二叉树#include<cstdio> #include<algorithm>using namespace std;struct node{ int v, height; node *lchild, *rchild;}*root;node* newNode(int v){ node* Node = new node; Node->v = v...

2020-04-13 14:23:06 195

原创 PAT A1099 Build A Binary Search Tree

#include<cstdio> #include<vector>#include<queue>#include<algorithm>using namespace std;const int maxn = 110;int n;struct node{ int data; int lchild; int rchild;}Node...

2020-04-13 09:57:10 119

原创 PAT A1043 Is It a Binary Search Tree

抄算法笔记的代码的 很巧妙的思想把镜像的有序二叉树看作preOrder中先访问right再访问left 妙!!另外,这里用vector对比 先把所有结果列出来再来判断是查找二叉树还是镜像查找二叉树也是挺巧妙的#include<cstdio>#include<vector>using namespace std;struct node{ int data; n...

2020-04-07 21:11:39 102

原创 PAT A1004 Counting Leaves 测试点2要注意

一开始测试点2不通过 发现时漏了N == 1 M == 0情况下的输出;一种解决方法是特判这种情况,输出1;更好的方法是把maxlevl初始值设为1,这样程序也会正常输出;程序bug是靠debug发现的 所以出现问题还是得多试试debug呀!#include<cstdio>#include<vector>#include<queue>using n...

2020-04-07 17:20:38 466

原创 PAT A1090 Highest Price in Supply Chain

#include<cstdio>#include<algorithm>#include<queue>#include<vector>#include<cmath>using namespace std;int n;double p,r;int root;const int maxn = 100010;struct no...

2020-04-06 19:13:34 93

原创 PAT A1053 Path of Equal Weight

#include<cstdio> #include<queue>#include<vector>#include<algorithm>using namespace std;const int maxn = 110;int weight[maxn];int n; //the number of nodes in a treeint m...

2020-04-06 16:38:05 117

原创 PAT A1079 Total Sales of Supply Chain 注意最后一个测试点

刚开始没有用pow算连乘,而是直接用for循环,这样导致最后一个测试点超时;换成pow之后就都AC啦#include<cstdio>#include<algorithm>#include<queue>#include<vector>#include<cmath>const int maxn = 100010;int n;//...

2020-04-06 16:36:56 307

原创 PAT A1102 Invert a Binary Tree

#include<cstdio>#include<queue>#include<algorithm>using namespace std;const int maxn = 11;struct node{ //二叉树的静态写法 int lchild,rchild;}Node[maxn];bool notRoot[maxn] = {false...

2020-04-05 19:24:59 91

原创 PAT A1086 Tree Traversals Again

#include<cstdio> #include<cstring>#include<algorithm>#include<stack>using namespace std;const int maxn = 50;struct node{ int data; node* lchild; node* rchild;};stack...

2020-04-05 15:59:38 56

原创 PAT A1020 Tree Traversals

基础题 涉及二叉树的前序、中序、后序、层次遍历和二叉树的生成#include<cstdio> #include<cstring>#include<queue>#include<algorithm>using namespace std;const int maxn = 50;struct node{ int data; node* ...

2020-04-05 11:10:52 76

原创 PAT A1103 Integer Factorization 测试点2和5过不了

测试点2和5过不了 求指点!#include<cstdio> #include<algorithm>#include<vector>#include<cmath>using namespace std;int N, K, P, maxSumSqu = 0;int maxNk;//最大可能的底数 int flag = 0;//判断是否...

2020-04-02 14:28:57 639 7

原创 PAT A1091 Acute Stroke

BFS#include<cstdio> #include<queue>using namespace std;struct node{ int x,y,z;}Node;int n,m,slice,T;int pixel[1290][130][61];bool inq[1290][130][61] = {false};int X[6] = {0,0,0,...

2020-04-02 14:27:03 88

原创 PAT A1089 Insert or Merge

难题 搞了好久#include<cstdio> #include<algorithm>using namespace std;const int N = 111;int origin[N],tempOri[N],changed[N];int n;bool isSame(int A[],int B[]){ for(int i=0;i<n;i++){ ...

2020-03-30 18:19:00 98

原创 PAT A1085 Perfect Sequence

本题思想是two points#include<cstdio>#include<algorithm>using namespace std;const int maxn = 100010;long long arr[maxn];//因为需要进行arr[i]*p //两者均为10的9次方级别 所以arr需要定义为long long int main() { ...

2020-03-30 10:57:47 77

原创 PAT A1029 Median

AC代码:用归并思想#include<cstdio> const int INF = 100000000;int arr1[200010];int arr2[200010];int main() { int n,m; scanf("%d",&n); for(int i=0;i<n;i++){ scanf("%d",&arr1[i]); } ...

2020-03-30 09:29:00 92

原创 PAT A1033 To Fill or Not to Fill

贪心算法 与1033类似的题貌似在数模优化问题经常碰到这题理解起来有些费劲#include<cstdio> //贪心算法 #include<algorithm>using namespace std;const int maxn = 510;const int INF = 1000000000;struct station{ double price,di...

2020-03-29 22:40:25 90

原创 PAT A1092 To Buy or Not to Buy

#include<cstdio> #include<iostream>#include<string>using namespace std;char hash1[128]={0};char hash2[128]={0};int main(){ string str1,str2; getline(cin,str1); getline(cin,s...

2020-03-28 11:04:48 84

原创 PAT A1041 Be Unique

秒杀题#include<cstdio>int arr[10010]={0};int shunxu[100010];int main(){ int n,value; scanf("%d",&n); for(int i=0;i<n;i++){ scanf("%d",&value); shunxu[i] = value; arr[value] ...

2020-03-28 11:03:35 83

原创 PAT A1050 String Subtraction

秒杀题#include<cstdio>#include<string>#include<iostream>using namespace std;char flag[128]={0};int main(){ string str1,str2; getline(cin,str1); getline(cin,str2); for(int i=0;...

2020-03-28 11:02:43 58

原创 PAT A1048 Find Coins

#include<cstdio> #include<algorithm>using namespace std;const int N = 1005; int HashTable[N];//记录出现的数字 这样就不用去管最大值10的5次方的输入量了 int main(){ int n,m,a; scanf("%d %d",&n,&m); fo...

2020-03-28 11:01:44 67

原创 1084 Broken Keyboard

简单题 可用散列 也可用set容器 这里给出用STL的方法#include<cstdio> #include<iostream>#include<string>#include<set>using namespace std;set<char> st;int main(){ string right,broken; ge...

2020-03-27 14:49:36 52

原创 PAT A1022 Digital Library 最后一个测试点需特别注意

注意query函数中的参量需要使用引用 否则最后一个测试点会超时#include<cstdio> #include<iostream>#include<map>#include<set>#include<string>using namespace std;map<string,set<int> > ...

2020-03-27 14:12:13 274

原创 PAT A1054 The Dominant Color

WAY1:#include<cstdio>#include<algorithm>#include<cmath>using namespace std;const int maxn = pow(2,24);int arr[16777216]={0}; int main(){ int x,y; int pixel; scanf("%d %d",&...

2020-03-26 09:58:03 113

原创 PAT A1071 Speech Patterns

#include<iostream>#include<string>#include<map>using namespace std;bool check(char c){ if (c>='A' && c<='Z') return true; if (c>='a' && c<='z') retu...

2020-03-26 09:56:52 97

原创 PAT A1063 Set Similarity

#include<cstdio> #include<algorithm>#include<set>#include<cstring>using namespace std;const int M = 10010;set<int> arr[50];int main(){ int N,num; int value; sca...

2020-03-25 19:43:05 65

原创 PAT A1100 Mars Numbers

#include<cstdio> //打表思想 #include<iostream>#include<string>#include<map>using namespace std;string unitDigit[13] = {"tret","jan","feb","mar","apr","may","jun","jly","aug",...

2020-03-25 19:41:58 60

原创 PAT A1039 Course List for Student

#include<cstdio>#include<vector>#include<cstring>#include<algorithm>using namespace std;const int maxn = 26*26*26*10+1; int getID(char name[]){ //利用哈希散列 用map做会爆炸! int i...

2020-03-24 21:28:46 62

原创 PAT A1047 Student List for Course

#include<cstdio>#include<vector>#include<cstring>#include<algorithm>using namespace std;const int maxn = 26*26*26*10+1; int getID(char name[]){ //利用哈希散列 用map做会爆炸! int i...

2020-03-24 20:14:10 87

原创 改变PPT导出图片分辨率

参考官方教程 修改注册表即可How to change the export resolution of a PowerPoint slide附赠帅图一张

2020-03-14 22:32:05 870

原创 1025 PAT Ranking 卡在测试点3

1025 PAT Ranking (25分)还有一个是第3个测试点,注册号也就是id,需要声明为char[]或string类型,而不能设置为long long类型;这样就避免了当 ID是 000000000003 输入时,输出id的错误产生。...

2020-03-03 21:37:41 597 2

原创 printf输出%f %lld区别

https://blog.csdn.net/u011497904/article/details/42454483?utm_source=blogxgwz2

2020-02-29 20:42:31 670

原创 PAT B1011 A+B 和 C

原题如下 来源:PAT B1011此题需要特别注意,输入区间是正负的2^31。我们知道,在C语言中int型变量的范围是正负2^31,long long型变量的范围是正负2^63.但如果将两个数都设为int型,那么两数相加可能超过int范围。因此,这里需要用long long型#include<stdio.h>int main(){ int n; long long a,b...

2020-02-24 21:22:05 99

原创 WIN10 NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver解决方案

WIN10 NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver若在win10下输入NVIDIA-SMI遇到如下的问题,只需重新装下NVIDIA驱动就完事儿了NVIDIA驱动在这里选择自己的显卡配置,下载并安装对应驱动。然后就OK啦!...

2020-01-17 16:50:12 2070

原创 XAI—Explainable artificial intelligence论文解读

XAI—Explainable artificial intelligence论文解读AbstractWHAT IS XAI?EXPECTATION FROMUSERSEXPLAINABILITY—EVALUATION ANDMEASUREMENTXAI—ISSUES AND CHALLENGESreferenceAbstract这篇是对最近看的一篇论文XAI—Explainable arti...

2020-01-15 13:47:06 4329 5

空空如也

空空如也

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

TA关注的人

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