AT_abc456_a.Dice

入门

通过率:0%

时间限制:2.00s

内存限制:1024MB

AC君温馨提醒

该题目为【atcoder】题库的题目,您提交的代码将被提交至atcoder进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

There are three dice, each with six faces.
Each die has 1,2,3,4,5,61,2,3,4,5,6 written on its faces.

When these dice are rolled simultaneously, is it possible for the sum of the rolled values to be XX?

有三枚骰子,每枚骰子有六个面。
每枚骰子的六个面上分别标有数字 1,2,3,4,5,61,2,3,4,5,6。

当这三枚骰子同时掷出时,掷出的点数之和是否可能为 XX?

输入格式

The input is given from Standard Input in the following format:

XX

输入从标准输入中按以下格式给出:

XX

输出格式

If it is possible for the sum of the rolled values to be XX, output Yes; otherwise, output No.

如果掷出的数值之和可能为 XX,则输出 Yes;否则输出 No。

输入输出样例

  • 输入#1

    15

    输出#1

    Yes
  • 输入#2

    2

    输出#2

    No

说明/提示

Sample 1 Explanation:
For example, if the rolled values are 4,5,64,5,6, the sum is 1515.

Constraints

  • XX is an integer between 11 and 2020, inclusive.

样例 1 解释:
例如,若掷出的点数为 4,5,64,5,6,则其和为 1515。

约束条件

  • XX 是一个介于 11 到 2020(含)之间的整数。

输入解题思路,AI测评打分。不知道怎么写?

首页