Problem list
Log in
#joi00055 · JOI 2024 Preliminary 1C

分 (Minutes)

Bronze V 2.0 s 1024 MB

整数 H, M が与えられる.

H 時間 M 分が何分かを求めよ.

Input

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

H

M

Output

H 時間 M 分が何分かを,単位 (分) を省いて出力せよ.

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

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

入力例 1

8

30

出力例 1

510

8 時間 30 分は 510 分であるので, 510 を出力する.

入力例 2

14

0

出力例 2

840

14 時間 0 分は 840 分であるので, 840 を出力する.

入力例 3

0

29

出力例 3

29

0 時間 29 分は 29 分であるので, 29 を出力する.

入力例 4

23

59

出力例 4

1439

23 時間 59 分は 1 439 分であるので, 1 439 を出力する.

Constraints

0 ≦ H ≦ 23 .

0 ≦ M ≦ 59 .

入力される値はすべて整数である.

Example 1

Input
8
30
Output
510

Example 2

Input
14
0
Output
840

Example 3

Input
0
29
Output
29

Example 4

Input
23
59
Output
1439
Source
JOI 2024 Preliminary 1C
Appears in
Not part of a ladder, contest or set yet.
Accepted 0 Submissions 0 Acceptance 0% Solvers 0

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code