![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PAT练习
city0409
这个作者很懒,什么都没留下…
展开
-
大位数加法
// A+B.cpp: 主项目文件。#include "stdafx.h"#include <cstdio>#include <cstring>using namespace std;char a[105];char b[105];char ans[105];void reverse(char s[]){ int len = strlen(s); for(int i=0;i...原创 2018-05-05 02:30:50 · 217 阅读 · 0 评论 -
A1020.Tree Traversals
// A1020.cpp: 主项目文件。#include "stdafx.h"#include <cstdio>#include <cstring>#include <algorithm>using namespace std;int n,a[35],b[35];struct Node{ int l,r,data,pos;}node[50];bool cmp(N...原创 2018-05-06 22:37:10 · 93 阅读 · 0 评论 -
A1087.All Roads Lead to Rome
// 修改前// A1087.cpp: 主项目文件。#include "stdafx.h"#include <map>#include <vector>#include <stack>using namespace std;const int inf=0x7f7f7f7f;int st,ed,s_num,s_sort;int happy[210];map <...原创 2018-05-20 01:38:45 · 211 阅读 · 0 评论