struct Rational { int numerator; // 分子 int denominator; // 分母 };
1/5 2/4 3/3 4/2 5/1 1/5 2/4 3/3 4/2 5/1
int main() { Rational A[N]; read_rationals(A, N); print_rationals(A, N); return 0; }