PTA C introductory exercise paragraph I - variables, expressions, branches, loops 7-21 - 7-25
7-21 overspeed judgment (10 points)
Radar velocimeter simulating traffic police. Enter the vehicle speed. If the speed exceeds 60 mph, "speed" is displayed, otherwise, "OK" is displayed.
Input format:
The input gives a non negative integer no more than 500 in one line, that is, the vehicle speed measured by the radar.
Ou ...
Posted by afatkidrunnin on Wed, 17 Nov 2021 22:08:31 -0800
PAT (Basic Level) Practice (Chinese) 1058 multiple choice questions (20 points) PAT Level B
PAT (Basic Level) Practice (Chinese) 1058 multiple choice questions (20 points)
Title Description
It is more troublesome to correct multiple-choice questions. This topic asks you to write a program to help the teacher correct multiple-choice questions and to point out which one has the most errors.
Input Format
The input gives two positiv ...
Posted by mumford on Thu, 11 Nov 2021 08:19:53 -0800
2021-10-25 pta set reflection annotation and common shortcut keys for Eclipse
catalogue
Eclipse common shortcuts
Completion
6-6 jmu-Java-05 deletion of specified elements in set List (15 points)
Referee test procedure:
answer:
7-2 use of list (15 points)
Input format:
Output format:
Input example:
Output example:
answer:
Eclipse common shortcuts
/* * Eclipse common shortcuts &nbs ...
Posted by Miri4413 on Mon, 25 Oct 2021 21:29:16 -0700
7-3 valid bracket judgment (30 points)
This question comes from Li Kou. I also saw this question in this week's Blue Bridge Cup training. I think the complexity of this question is higher than that of the Blue Bridge Cup training, so I took out the Blue Bridge Cup training. Let's analyze the Blue Bridge Cup training first, and then draw out the differences.
Premise:
The combinati ...
Posted by may on Mon, 18 Oct 2021 13:56:55 -0700
7-37 Xiaoming typing (10 points) (data structure) The simplest code to write the simplest data structure
Xiao Ming is typing a document using Microsoft Word. The document contains only a-z lowercase letters and spaces. During typing, the Home key, End key, _arrow key, _arrow key, Insert key, Backspace key may be pressed one or more times. Write a program that gives Xiao Ming the sequence of keys on the keyboard and outputs the final text displayed ...
Posted by Otoom on Wed, 06 Oct 2021 15:29:22 -0700