結果

問題 No.1721 [Cherry 3rd Tune N] 麗しきNumber
ユーザー toshiro_yanagitoshiro_yanagi
提出日時 2022-07-03 06:45:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 62 ms / 2,000 ms
コード長 199 bytes
コンパイル時間 780 ms
コンパイル使用メモリ 86,924 KB
実行使用メモリ 71,592 KB
最終ジャッジ日時 2023-08-19 02:46:27
合計ジャッジ時間 3,997 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
71,276 KB
testcase_01 AC 60 ms
71,500 KB
testcase_02 AC 61 ms
71,272 KB
testcase_03 AC 61 ms
71,392 KB
testcase_04 AC 61 ms
71,072 KB
testcase_05 AC 60 ms
71,428 KB
testcase_06 AC 61 ms
71,168 KB
testcase_07 AC 60 ms
71,476 KB
testcase_08 AC 61 ms
71,072 KB
testcase_09 AC 60 ms
71,392 KB
testcase_10 AC 60 ms
71,416 KB
testcase_11 AC 60 ms
71,396 KB
testcase_12 AC 61 ms
71,424 KB
testcase_13 AC 61 ms
71,392 KB
testcase_14 AC 62 ms
71,512 KB
testcase_15 AC 61 ms
71,292 KB
testcase_16 AC 60 ms
71,140 KB
testcase_17 AC 61 ms
71,228 KB
testcase_18 AC 59 ms
71,252 KB
testcase_19 AC 60 ms
71,300 KB
testcase_20 AC 61 ms
71,456 KB
testcase_21 AC 59 ms
71,500 KB
testcase_22 AC 60 ms
71,376 KB
testcase_23 AC 59 ms
71,300 KB
testcase_24 AC 60 ms
71,068 KB
testcase_25 AC 60 ms
71,592 KB
testcase_26 AC 60 ms
71,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    n = int(input())

    s = set()
    while n > 0:
        s.add(n % 10)
        n = int(n / 10)

    if {4, 6} <= s:
        print("Beautiful")
    else:
        print("...")


main()
0