PAT甲级
nodarkness
这个作者很懒,什么都没留下…
展开
-
PAT(甲) 1050 String Subtraction (20 分)
Given two stringsS1andS2,S=S1−S2is defined to be the remaining string after taking all the characters inS2fromS1. Your task is simply to calculateS1−S2for any given s...原创 2019-05-20 21:58:46 · 130 阅读 · 0 评论 -
PAT(甲)1036 Boys vs Girls (25 分)
This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all the female students.Input Specification:Each input file contains one t...原创 2019-05-17 22:03:54 · 84 阅读 · 0 评论 -
PAT(甲) 1035 Password (20 分)
To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords since it is hard to distinguish1(one) froml(L...原创 2019-05-18 20:38:07 · 63 阅读 · 0 评论 -
PAT(甲) 1062 Talent and Virtue (25 分)
About 900 years ago, a Chinese philosopher Sima Guang wrote a history book in which he talked about people's talent and virtue. According to his theory, a man being outstanding in both talent and virt...原创 2019-05-29 21:01:33 · 92 阅读 · 0 评论 -
PAT(甲) 1102 Invert a Binary Tree (25 分)
The following is from Max Howell @twitter:Google: 90% of our engineers use the software you wrote (Homebrew), but you can't invert a binary tree on a whiteboard so fuck off.Now it's your turn to...原创 2019-06-26 20:55:42 · 78 阅读 · 0 评论 -
PAT(甲) 1121 Damn Single (25 分)
"Damn Single (单身狗)" is the Chinese nickname for someone who is being single. You are supposed to find those who are alone in a big party, so they can be taken care of.Input Specification:Each inpu...原创 2019-08-18 21:27:03 · 81 阅读 · 0 评论 -
PAT(甲)1134 Vertex Cover (25 分)
Avertex coverof a graph is a set of vertices such that each edge of the graph is incident to at least one vertex of the set. Now given a graph with several vertex sets, you are supposed to tell if e...原创 2019-08-20 21:55:08 · 94 阅读 · 0 评论 -
PAT(甲)1092 To Buy or Not to Buy (20 分)
Eva would like to make a string of beads with her favorite colors so she went to a small shop to buy some beads. There were many colorful strings of beads. However the owner of the shop would only sel...原创 2019-08-22 21:50:20 · 108 阅读 · 0 评论