PAT
Mickkkcc
这个作者很懒,什么都没留下…
展开
-
PAT 1155 Heap Paths 笔记
#include <iostream> #include <stdio.h> #include <vector> using namespace std; const int maxm =1005; int arr[maxm]; int flag1=0,flag2=0; int n; vector<int> v; void DFS(int s){ v.push_back(arr[s]); if(s*2>n){ for(in原创 2020-10-11 22:49:00 · 120 阅读 · 0 评论 -
[Dijkstra + DFS] PAT 1018 Public Bike Management 笔记
我的代码:有两个测试点错了,我知道错在哪,就是我不可以一下判读要运多少车,但是我觉的是题目自己表述不清楚,下次想改再改吧 #include <iostream> #include <sstream> #include <string> #include <sstream> #include <cstdio> #include <stdio.h> #include <string.h> #include <vector&原创 2020-08-22 16:51:37 · 98 阅读 · 0 评论 -
[字符串] PAT 1108 Finding Average 笔记
我的代码: #include <iostream> #include <algorithm> #include <stdio.h> #include <string> #include <sstream> #include <cctype> using namespace std; int main() { int t; cin>>t; string s1,s2; int counter=0原创 2020-08-20 17:19:49 · 115 阅读 · 1 评论