PAT真题
acceptedwwh
当代大学生,阳光开朗,乐于交往和求知!
展开
-
1001. A+B Format (20)
#include <iostream> #include <cstdio> #include <cstring> #include <cmath> using namespace std; const int maxn = 10;char res[maxn];void intToString(int x) {//将数字转换为字符串。 int sum = x; int digital;原创 2016-11-14 20:05:50 · 348 阅读 · 0 评论 -
PAT 1078.Hashing (25)
PAT1078原创 2017-02-18 09:20:03 · 511 阅读 · 0 评论 -
PAT1020 Tree Traversals
Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to output the level order traversal sequence of the corr原创 2017-02-10 20:20:09 · 238 阅读 · 0 评论 -
【PAT】Set Similarity&&Student List for Course
题目: Given two sets of integers, the similarity of the sets is defined to be Nc/Nt*100%, where Nc is the number of distinct common numbers shared by the two sets, and Nt is the total number of distinct原创 2017-08-24 18:31:39 · 326 阅读 · 0 评论