QOJ.ac

QOJ

Time Limit: 2 s Memory Limit: 1024 MB

#23969. Homework 2

Statistics

問題文

葵さんは数学の宿題に取り組んでいる.宿題は全部で A 題からなり,葵さんは 1 題あたり B 秒で問題を解くことができる.

葵さんがすべての問題を解くのに何秒かかるかを求めよ.

制約

  • 1 ≦ A ≦ 100.
  • 1 ≦ B ≦ 100.
  • 入力される値はすべて整数である.

入力

入力は以下の形式で与えられる.
A
B

出力

葵さんがすべての問題を解くのにかかる時間を,単位 (秒) を省いて出力せよ.

答え以外は何も出力しないこと.(入力を促す文章なども出力しないこと.)

解答形式については,練習問題やその解答例を参考にしても良い.


入力例 1

5
9

出力例 1

45

宿題は全部で 5 題からなり,葵さんは 1 題あたり 9 秒で問題を解くことができる.このとき,葵さんは 45 秒ですべての問題を解くことができる.


入力例 2

1
25

出力例 2

25

宿題は全部で 1 題からなり,葵さんは 1 題あたり 25 秒で問題を解くことができる.このとき,葵さんは 25 秒ですべての問題を解くことができる.


入力例 3

100
100

出力例 3

10000

宿題は全部で 100 題からなり,葵さんは 1 題あたり 100 秒で問題を解くことができる.このとき,葵さんは 10 000 秒ですべての問題を解くことができる.

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.