STUF official competition questions

There is a live chat room for questions during the competition: https://tlk.io/jerome

The chatroom will not explain the meaning of the questions individually, but only answer the flow in the competition online competition.

When coding on line, please following the process:

  1. Fill in your name, email and the registration number first.
  2. Be optimistic about the questions from the first episode to the ninth question. There are 9 questions in the question, because there are many questions, please choose the ones you are familiar to answer first, and you can skip the questions you don’t understand.
  3. Following with the question, there are 3 input materials under the question, please fill in the answer according to the information given in each question.
  4. Fill in the three answers according to the input data, and then please upload your Scratch project.
  5. Finally, please remember to press <Submit> at the bottom before the end of the competition.     

There are 9 questions in this question group (from Q4~Q12)
Each question is worth 100 points Total: 900 points

-------------------------------------------------------------------

  • Question 4: Approximate numbers
  • Question 5: Magical Numbers (The data input for this question can be entered one by one)
  • Question 6: How many prime numbers are there?
  • Question 7: Calculation of Bike charges
  • Question  8: String Segmentation & Sorting
  • Question  9: Clock Angle
  • Question 10: How many 2-pointers and 3-pointers are scored
  • Question 11: Counting votes, who is elected?
  • Question 12 : Prime factorization
 Press <Submit>
-------------------------------------------------------------------

Remind again:
* When you Submit your sb3 file, be sure to add your registration number and Question number as the title of the filename..
* After completing the questions and entering the answers to each sub-question in sequence, remember to press <Submit> at the bottom of the form.

Email *
0-1: name *
0-2. Please fill in your registration number:
*
0-3: Email: 
*

Q4- <Question 4>: Approximate numbers

Electric vehicles are the trend of buying new cars in the future. There are several cities and towns that want to promote the "Electric Vehicle for Everyone" plan.

Please make an estimate based on the population of the town and the price of electric vehicles to estimate the total investment in each town?

● Population figures are rounded to the nearest hundred.

● The price of electric vehicles is rounded up to the thousand by the "unconditional entry method"

● The total amount is rounded up to millions using the "unconditional rounding method".

● Number of people * electric car price = total amount

 Input format: Please enter the two numbers a b of "population" and "price", and the numbers must be separated by blanks.

Output format: Please print a number of "Total Amount", without spaces before and after the number.

Input example 1: 51 30000
Output example 1: 3000000

Input example 2: 251 19999
Output example 2: 6000000

Input example 3: 239 20001 
Output example three:  4000000       

Clear selection

Q4-1: Town No. 1:
Please see the topic above <Question 4> If you enter data 1: 150 40010
Please fill in the output data answer? 

30 points

Q4-2: Town No. 2:
Please see the topic above <Question 4. > If you enter data 1: 149 41000
Please fill in the output data answer? 

30 points

Q4-3: Town No. 3:
Please see the topic above <Question 4> If you enter data 1: 99 41333
Please fill in the output data answer? 

40 points

Q4-4: File name: ""Your registration number-Q4.sb3 (eg: 100-Q4.sb3) Upload Q4 <Question 4> Scratch file,
Please click the link below to upload your sb3 program

https://tinyurl.com/STUF-2023 

Clear selection

Q5- <Question 5> The magic number 

One day, I found a series of magical numbers on the stone wall of the cave. The characteristic is that each number is the sum of the previous two numbers, and the arrangement will look like this: 1 1 2 3 5 8 13..., this series of numbers is a natural phenomenon. The codes of pineapple, sunflower, nautilus and other growth processes or shapes all hide this sequence of numbers, which is the famous Fibonacci sequence. Please enter the first two numbers according to the generation rules of this sequence, and find out the value of the nth item.

Enter description: The input has a total of 3 columns, representing the first value a, the second value b, and the nth item, and the numbers are all positive integers greater than 0, and a<=b.
Output descriptionSay the value of the nth item.

Example 1 input:


4

Example 1 says:
5

Example 2 input:
100
200 
6

 Example 2 says:
1300

 Example 3 input:
4
10
1

Example 3 says:

Please fill in the output data answer? 

Clear selection

Q5-1: Please see the above question <Question 5>, if input data: 1 1 80

Please fill in the output data answer? 

30 points

Q5-2: Please see the above question <Question 5>, if input data: 372 659 40
Please fill in the output data answer? 

30 points

Q5-3: Please see the above topic <Question 5>, if input data: 13579 24680 33
Please fill in the output data answer?

40 points

Q5-4: File name: ""Your registration  number-Q5.sb3 (eg: 100-Q5.sb3) Upload Q5 <Question 5> Scratch file,Please click the link below to upload your sb3 program

https://tinyurl.com/STUF-2023

Clear selection

Q6- <Question 6> How many prime numbers are there?

Please write a program to input N M, (2<N<100, 3<M<1000), please list how many prime numbers from N to M? (Including N or M, if N or M is a prime number.

Input format: Input N M, ( 2<N<100, 3<M<1000), please separate with blank.
Output format: List a number P, P is the number of prime numbers from N to M.

Input example 1: 2 11
Output example 1: 5 

 Input example 2: 90 300
Output example 2: 38

 Input example 3: 51 999
Output example three: 153

Clear selection

Q6-1: Please see the above question <Question 6>, if the input data:  20 40
Please fill in the output data answer? 

30 points

Q6-2: Please look at the above question <Question 6>, if you input data:  11 101
Please fill in the output data answer? 

30 points

Q6-3: Please look at the above question <Question 6>, if you input data:   99 999
Please fill in the output data answer? 

40 points

 Q6-4: File name: ""Your serial number-Q6.sb3 (e.g.: 100-Q6.sb3) Upload Q6 <Question 6> Scratch file,
Please click the link below to upload your sb3 program

https://tinyurl.com/STUF-2023

Clear selection

Q7- <Question 7>: Calculate Bike charges

Bike public bicycle service has more than one million users per month in a new City, and its rates are as follows:

● $5 for the first 0~30 minutes
● $10 for every 30 minutes within 4 hours
● $20 for every 30 minutes within 4~8 hours
● $40 per 30 minutes over 8 hours
● Less than 30 minutes count as 30 minutes

Please use Scratch to write a project, ask the operator to input the number of minutes, and the project will answer how much to pay for this ride.

Input format:
Please enter a number for "time", without spaces before and after the number.
Output format: Please print out a number of "total amount", and there should be no spaces before and after the number.

Input example 1: 5
Output example 1: 5

Input example 2: 55
Output example 2: 15

Input example three: 105
Output example three: 35

Clear selection

Q7-1: First ride:
Please see the topic above <Question 7> If you enter data 1: 45
Please fill in the answer of output data 1 

30 points

Q7-2: Second ride:
Please see the topic above <Question 7> If you enter data 2: 300
Please fill in the answer of output data 2

30 points

Q7-3: Third ride:
Please see the topic above <Question 7> If you enter data 3: 555
Please fill in the answer of output data 3 

40 points

Q7-4: File name: ""Your registration number-Q7.sb3 (for example: 100-Q7.sb3) upload Q7 <question 7> Scratch file,

Please click the link below to upload your sb3 program

https://tinyurl.com/STUF-2023

Clear selection

Q8- <Question 8> String Segmentation & Sorting

Tom is learning Scratch programming. When practicing input, he was lazy and did not separate the input one by one. Instead, he wrote all the numbers into one line and separated them with blank spaces. The result became a string of numbers and he didn't know how to deal with it. Smart as you, can you help him divide the text string of this line into multiple numbers? And find out what the median is?

(Note: Arrange a set of numerical data from small to large, and the middlemost value is the median)

Input format: The input has a total of 1 column, which contains n numbers separated by blanks. The numbers are all integers, and n is an odd number.
Output format: Say n and the median, separated by a space.


Input example one: 1 2 3 4 5
Output example 1: 5 3

 Input example 2: 7 12 54 88 39 -168 0
Output example 2: 7 12 

Input example three: 5201314
Output example 3: 1 5201314

Clear selection

Q8-1: Please see the above topic <Question 8>, If input data: 0 8 12 54 37 99 128 -57 438 -113 0
Please fill in the output data answer?

30 points

Q8-2: Please see the topic <Question 8> above, If input data: 1 -5 10 3 -8 7 -2 1 -9
Please fill in the output data answer?

30 points

Q8-3: Please see the topic <Question 8> above,
If input data: -89 56 23 -10 34 -78 45 -67 -12 90 -43 18 76 -21 13 -54 -100

Please fill in the output data answer?

40 points

Q8-4: File name: ""Your registration number-Q8.sb3 (eg: 100-Q8.sb3) Upload Q8 <Question 8> Scratch file,
Please click the link below to upload your sb3 program

https://tinyurl.com/STUF-2023

Clear selection

Q9- <Question 9>: Clock angle

At 4:08 in the morning, there are two angles between the long hand and the short hand on the clock face. What is the angle less than 180?
Please write a program to input hh:mm, ( 00≦hh<12, 00≦M<60)

The value of hh can be 0~11, the value of mm can be 00~59, but mm must be two digits. Example: 11:59 or 1:05

Please calculate the angle between the long needle and the short needle. That is the angle less than 180?

Input format: Please enter two numbers hh: mm, there must be  :  between the numbers:
Output format: List a number a, a is the angle between the long needle and the short needle less than 180. If it contains decimals, please list to the first place after the decimal point and round up.

Input example 1: 7:20
Output example 1: 100

 Input example 2: 5:40
Output example 2: 70 

Input example three: 10:05
Output example three: 87.5

Clear selection

Q9-1:  Please see the above question <Question 9>, if you input data 7:52
Please fill in the output data answer? 

30 points

Q9-2: Please see the above question <Question 9>,
          if you input data 3:44

        Please fill in the output data answer?

30 points

Q9-3: Please see the above question <Question 9>, if input data: 0:10
Please fill in the output data answer?

40 points

Q9-4: File name: "Your registration number-Q9.sb3" (for example: 100-Q9.sb3) upload Q9 <question 9> Scratch file,

Please click the link below to upload your sb3 program

https://tinyurl.com/STUF-2023
Clear selection

Q10- <Question 10> How many goals did each score?

In 2023, Jeremy Lin, a well-known basketball player, moved to the Kaohsiung Steelers and won eight consecutive victories. In recent basketball games, he made many 2-pointers and 3-pointers,  many tens. May I ask how many 2-pointers Jeremy Lin scored in each game? How many 3-pointers?

Please use Scratch to write a tool, input two numbers to represent the number of goals and points in the field, and then the robot will say the number of goals for 2-point goals and 3-point goals. If the number entered is wrong, say WRONG.

Input format: Please enter the two numbers a b of "Number of Goals" and "Score", separated by blank spaces.

Output format: Please print "2-point ball" and "3-point ball", and there must be a blank space between the two numbers; if it cannot be calculated, print " WRONG ".

 Input example one: 5 10
Output example one: 5 0

Input example two: 6 15
Output example two: 3 3 

Input example three: 6 6
Output example three: WRONG

Clear selection

Q10-1: First match:
Please see the topic above <Question 10> If you enter data 1: 15 35

Please fill in the answer of output data 1 

30 points

Q10-2: Second  match:
Please see the topic above <Question 10> If you enter data 2: 20 50

Please fill in the answer of output data 2

30 points

Q10-3 Thired match:
Please see the topic above <Question 10> If you enter data 3: 10 11

Please fill in the answer of output data 3

40 points

Q10-4: File name: ""Your registration number-Q10.sb3 (for example: 100-Q10.sb3) Upload Q10 <Tenth question> Scratch file,

Please click the link below to upload your sb3 program

https://tinyurl.com/STUF-2023

Clear selection

Q11- <Question 11> Counting votes, who is elected?

Tom’s class had to vote for model students, and the elected students could also take a photo with the mayor. For the convenience of recording, the students who were in charge of counting the ballots wrote the circled numbers of each ballot as a series of numbers, and a maximum of 9 people ran for election. You, known as a master of Scratch, can you help him write a statistical program? Please list the number with the highest vote. If there is a tie, list the numbers in descending order and separate them with blanks.

Input format
: There is a total of 1 column in the input, and there is a long string of numbers in it, the numbers are 1~9, which represent the number of votes, and there are no blanks next to the numbers.
Output format: Say the number with the highest vote. If there are identical votes, list them in descending order, separated by a blank.

Example 1 input: 123251522
Example 1 says:  2

Example 2 input: 777558333
Example 2 says: 3 7

 Example 3 input: 591268473194
Example 3 states: 1 4 9 

Clear selection

Q11-1: Please see the above question <Question 11>,
If input data: 87129645391462783592

Please fill in the output data answer?

30 points

Q11-2: Please see the above question <Question 11>, if input data: 78943462537251734189
Please fill in the output data answer? 

30 points

Q11-3: Please see the above question <Question 11>, 
 if input data:974589582467859711729535814283

Please fill in the output data answer? 

40 points

Q11-4: File name: ""Your registration number-Q11.sb3 (eg: 100-Q11.sb3) Upload Q11 <Question 11> Scratch file,

Please click the link below to upload your sb3 program

https://tinyurl.com/STUF-2023

Clear selection

Q12- <Question 12> Prime Factorization
The process of completely decomposing a positive integer into the product of several prime factors is called the "prime factor decomposition" of this positive integer. This question is to calculate the prime factor of a positive integer n (0<n<1000), listed Please arrange all prime factors from small to large, for example: input 90, output 90=2*3*3*5,

Input format: Please enter a positive integer n
Output format: List all the prime factor products, please arrange them in ascending order, separated by * in the middle.

Input example 1: 11
Output example 1: 11 

Input example 2: 381
Output example 2: 3*127 

Input example three: 512
Output example three: 2*2*2*2*2*2*2*2*2 

Clear selection

Q12-1: Please see the above question <Question 12>, If the input data is 90
Please fill in the output data answer?

30 points

Q12-2: Please see the above question <Question 12>, if the input data is 120
Please fill in the output data answer?

30 points

Q12-3: Please see the above question <Question 12>, if the input data is 999
Please fill in the output data answer?

40 points

Q12-4: File name: ""Your registration number-Q12.sb3 (for example: 100-Q12.sb3) Upload the Q12 <Question 12> Scratch file,

Please click the link below to upload your sb3 program

https://tinyurl.com/STUF-2023

Clear selection
Submit
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google. Report Abuse - Terms of Service - Privacy Policy