QOJ.ac

QOJ

حد الوقت: 1 s حد الذاكرة: 32 MB مجموع النقاط: 10

#11832. 平面

الإحصائيات

Byteland 航空公司最近为其机队增加了一款新机型。该机型商务舱有 $n_{1}$ 排座位,经济舱有 $n_{2}$ 排座位。商务舱每排有 $k_{1}$ 个座位,经济舱每排有 $k_{2}$ 个座位。

请编写一个程序,完成以下任务:

  • 读取关于飞机上可用座位的信息;
  • 计算该飞机上所有可用座位的总数;
  • 输出计算结果。

输入格式

标准输入的唯一一行包含四个整数 $n_{1}$、$k_{1}$、$n_{2}$ 和 $k_{2}$($1 \le n_{1}, k_{1}, n_{2}, k_{2} \le 1\,000$),以空格分隔。

输出格式

标准输出的唯一一行应包含一个整数,即飞机上可用座位的总数。

样例

输入

2 5 3 20

输出

70

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.