这是一道通讯题。
给定三个数 $a$、$b$ 和 $c$,你需要输出它们的积。
你需要提交两个程序 first_program
和 second_program
。
first_program
读入一行两个整数 $a$ 和 $b$,输出一个在 $0$ 到 $10^9$ 之间的整数 $x$;second_program
读入一行两个整数 $x$ 和 $c$,其中 $x$ 是first_program
输出的数;这个程序需要输出 $a \times b \times c$ 的值。
这道题的时限是分别对于两个程序的,即每个程序都有 $1\texttt{s}$ 时限;空间限制类似。
在 自定义测试 中,你提供的 input.txt
应包含一行,其中有三个用空格隔开的整数 $a$、$b$ 和 $c$。
first_program
输入格式
一行,两个用空格隔开的整数 $a$ 和 $b$。
first_program
输出格式
一个整数 $x (0 \leq x \leq 10^9)$。
second_program
输入格式
一行,两个用空格隔开的整数 $x$ 和 $c$,其中 $x$ 是第一个程序输出的数。
second_program
输出格式
一个整数 $c$。
样例
input for first_program
2 3
possible output for first_program
6
possible input for second_program
6 5
output for second_program
30
限制与约定
$0 \leq a, b, c \leq 10^3$
时间限制:$1\texttt{s}$
空间限制:$512\texttt{MB}$