A - Penalty
Editorial
/
Time Limit: 2 sec / Memory Limit: 1024 MB
問題文
高橋君はあるコンテストに参加し、A 回の誤提出をしてから、開始 T 分後に正解したそうです。
以下の式で計算されるペナルティの値を求めてください。
5\times A + T
制約
- 0 \leq A \leq 10
- 1 \leq T \leq 100
- 入力は全て整数
入力
入力は以下の形式で標準入力から与えられる。
A T
出力
答えを出力せよ。
入力例 1
3 10
出力例 1
25
高橋君は 3 回の誤提出をしてから、開始 10 分後に正解したので、ペナルティの値は 25 です。
入力例 2
1 8
出力例 2
13
入力例 3
0 10
出力例 3
10
Problem Statement
Takahashi participated in a contest. He made A wrong submissions before being accepted T minutes into the contest.
Compute the penalty value represented by the following expression:
5\times A + T.
Constraints
- 0 \leq A \leq 10
- 1 \leq T \leq 100
- All values in the input are integers.
Input
The input is given from Standard Input in the following format:
A T
Output
Print the answer.
Sample Input 1
3 10
Sample Output 1
25
Takahashi made 3 wrong submissions before being accepted 10 minutes into the contest, so the penalty value is 25.
Sample Input 2
1 8
Sample Output 2
13
Sample Input 3
0 10
Sample Output 3
10