Gene expression measurements

We have done some experiments measuring the expression of several genes
in a population subjected to a genetic therapy. For each gene, we have
the measurement of its expression in the control population, and in the
treated population. Write a program that computes the change recorded
for each gene between both populations, and reports whether the gene is
upregulated (positive change), downregulated (negative change), or
presents no change. Finally, the program should report which gene
suffered the largest change (either positive or negative). In case of a
tie, report the first such gene found in the input.

Input

The input is a sequence of triplets. Each triplet consists of a string
(gene name) and two real numbers: the expression in the control
population and the expression in the treated population.

Output

The output is the value of the change in expression for each gene, and
whether it is up- or down- regulated. At the end, the gene with largest
change is reported. Follow the format of the examples.

Observation

Remember that to print a real number x with two decimal digits, you can
use f"x:.2f"

Problem information

Author: Lluís Padró

Generation: 2026-05-08T15:26:16.570Z

© Jutge.org, 2006–2026.
https://jutge.org
