![](https://img-blog.csdnimg.cn/20190918140012416.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
PAT
文章平均质量分 69
刷题感悟
CHEN7_98
狠狠学!
展开
-
PAT 1112 Stucked Keyboard (20 分) 死活过不了
心态炸了,感觉挺简单的一道题调了两个小时了就是死活过不了测试点1,之前代码有个地方不小心写错了反而能过测试点1但是过不了测试点2,蚌埠住了,以后再来看吧555555555555555555555555555#include <bits/stdc++.h>using namespace std;int main(void){ int k; string s; set<char> bad, good; vector<char> ans;原创 2021-08-19 17:35:36 · 169 阅读 · 0 评论 -
PAT 1046 Shortest Distance (20 分)
PAT 1046 Shortest Distance(20 分)题目描述输入输出Sample Input:Sample Output:思路代码结语题目描述The task is really simple: given NNN exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of exits.输入Each input file原创 2021-08-05 00:03:07 · 124 阅读 · 0 评论 -
PAT 1030 Travel Plan (30 分)
PAT 1030 Travel Plan(30 分)题目描述输入输出Sample Input:Sample Output:思路代码结语题目描述A traveler’s map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to write a program to help a traveler to decide th原创 2021-08-01 01:40:15 · 150 阅读 · 0 评论