#A. A - Three Dice

    传统题 1000ms 256MiB

A - Three Dice

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

A - Three Dice

Score : $100$ points

Problem Statement

Takahashi has rolled three dice. They are showing numbers $a$, $b$, and $c$ on the top faces.

Find the sum of the numbers on the bottom faces.

Here, each of these dice is a standard cubic die, where the sum of the numbers on opposite faces is $7$.

Constrains

  • $1 \leq a, b, c \leq 6$
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

aa bb cc

Output

Print the sum of the numbers on the bottom faces of the three dice.


1 4 3
13

The numbers on the bottom faces are $6$, $3$, and $4$. We have $6 + 3 + 4 = 13$, which should be printed.


5 6 4
6

2025寒假ATC码力训练营第十三次练习

未参加
状态
已结束
规则
IOI
题目
6
开始于
2025-2-6 13:00
结束于
2025-2-6 14:30
持续时间
1.5 小时
主持人
参赛人数
6