PTA
CaediosViolet
这个作者很懒,什么都没留下…
展开
-
PTA-File Transfer
Data Structures and Algorithms (English) 7-8 File Transfer (PTA测试通过) #include <stdio.h> #define MaxSize 100000 typedef int ElementType; typedef int SetName; typedef ElementType SetType[MaxSize...原创 2018-10-27 20:09:19 · 356 阅读 · 0 评论 -
PTA-Saving James Bond - Easy Version
数据结构-图-C语言-PTA-Saving James Bond - Easy Version 以下为自己写的版本,难过的是测试点2无法通过 #include <stdio.h> #include <math.h> #define MaxSize 100 #define MinLength 42.5 bool answer = false原创 2018-11-01 11:37:38 · 290 阅读 · 0 评论 -
PTA-Tree Traversals Again
数据结构-图-C语言-PTA-Tree Traversals Again 7-5 Tree Traversals Again #include <stdio.h> #include <string.h> #include <stack> using namespace std; #define Max 1000 int pre[Max]; int in[M...原创 2018-11-02 22:20:10 · 291 阅读 · 0 评论 -
PTA-Complete Binary Search Tree
Data Structures and Algorithms (English) 7-7 Complete Binary Search Tree 以下为自己写的版本,难过的是测试点5出现段错误?? #include <stdio.h> #include <stdlib.h> #include <math.h> #define M原创 2018-11-07 23:01:07 · 239 阅读 · 0 评论 -
PTA-Huffman Codes
Data Structures and Algorithms (English) 7-9 Huffman Codes 转载地址-所参考的作者 #include<stdio.h> #include<algorithm> #include<queue> #include<string&am转载 2018-11-12 21:29:38 · 267 阅读 · 0 评论