← March 2025 questions

MARCH 2025 / BEGINNER / LEVEL 1 · QUESTION 5

Level 1 · Question 5

Archived question

Try the question in your own editor, then check your output below.

THE QUESTION

Text from the official booklet. Refer to the PDF for original mathematical notation, formatting, and linked input files. Printed samples and inputs are reproduced as published.

Give your answer in the same format as the sample output.
Create a program that stores a list of scientists. Ask the user to input a letter. Print all
the names (each on a separate line) that start with that letter in the same order as
given in the list.
Sample Output:
Charles Babbage
Claude Shannon
Craig Newmark
Cathy Fosnot
Chris Lattner
Given Input:
User enters: A
List:
names = [ "Isaac Newton", "Albert Einstein", "Neils Bohr", "Charles Darwin", "Louis
Pasteur", "Sigmund Freud", "Galileo Galilei", "Antoine Laurent Lavoisier",
"Johannes Kepler", "Nicolaus Copernicus", "Michael Faraday", "James Clerk
Maxwell", "Claude Bernard", "Franz Boas", "Werner Heisenberg", "Linus Pauling",
"Rudolf Virchow", "Erwin Schrödinger", "Ernest Rutherford", "Paul Dirac", "Andreas
Vesalius", "Tycho Brahe", "Comte de Buffon", "Ludwig Boltzmann", "Max Planck",
"Marie Curie", "William Herschel", "Charles Lyell", "Pierre Simon de Laplace",
"Edwin Hubble", "Joseph J. Thomson", "Max Born", "Francis Crick", "Enrico Fermi",
"Justus Liebig", "Arthur Eddington", "William Harvey", "Marcello Malpighi",
"Christiaan Huygens", "Carl Gauss", "Albrecht von Haller", "August Kekulé",
"Robert Koch", "Murray Gell-Mann", "Emil Fischer", "Dmitri Mendeleev", "Sheldon
Glashow", "James Watson", "John Bardeen", "John von Neumann", "Richard
Feynman", "Alfred Wegener", "Stephen Hawking", "Anton van Leeuwenhoek",
"Max von Laue" ]

CHECK YOUR ANSWER

Try your answer.

Run your program in your own editor, then paste its output below. This checks the stated output; it does not assess your full program. Practice attempts do not affect competition scores.

Use the corresponding input from the question. For lists, brackets and commas are optional for numeric answers; text lists may also be entered one item per line.

Reveal worked answer

Your output

Albert Einstein
Antoine Laurent Lavoisier
Andreas Vesalius
Arthur Eddington
Albrecht von Haller
August Kekulé
Alfred Wegener
Anton van Leeuwenhoek

Keep names starting with A, preserving their input order.

Reveal supplied answer

From the supplied Beginner answer key. Outputs are reproduced as provided.

Expected output

Albert Einstein
Antoine Laurent Lavoisier
Andreas Vesalius
Arthur Eddington
Albrecht von Haller
August Kekulé
Alfred Wegener
Anton van Leeuwenhoek

Source: GIC 2025 Beginner Questions and the supplied Beginner answer key, March 2025 archive.