問題一覧 > 通常問題

No.1721 [Cherry 3rd Tune N] Beautiful Number

レベル : / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 311
作問者 : 👑 Kazun / テスター : tatyam magsta
お気に入りにしたユーザー ProblemId : 7019 / 自分の提出
問題文最終更新日: 2021-10-20 23:00:56
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Show the original
yukicoder contest 320 (Stray Bullet) (順位表) の他の問題:

Problem Statement

An integer $x$ is called a "beautiful integer" if the decimal representation of $x$ contains both $4,6$.

Given an integer $N$, determine whether this integer $N$ is a "beautiful integer".

Constraints

  • $1 \leq N \leq 10^9$
  • The input is an integer.

Input

The input is given from standard input in the following format.
$N$

Output

If the integer $N$ is a "beautiful integer", print Beautiful; otherwise, print .... Do not forget the newline.

Sample

Sample 1
Input
46
Output
Beautiful

The integer $46$ contains both $4,6$, so it is a beautiful integer. Note that $46$ is the smallest beautiful integer.

Sample 2
Input
12345
Output
...

The integer $12345$ contains $4$ but does not contain $6$, so it is not a beautiful integer.

Sample 3
Input
669840
Output
Beautiful

The integer $669840$ contains both $4,6$, so it is a beautiful integer. Note that it is a beautiful integer even though $6$ appears to the left of $4$ and there are $2$ occurrences of $6$.

Sample 4
Input
7777777
Output
...

It contains neither $4$ nor $6$, so it is not a beautiful integer.

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。