結果

問題 No.1721 [Cherry 3rd Tune N] 麗しきNumber
ユーザー sistersatori_
提出日時 2022-01-15 01:17:48
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 392 bytes
コンパイル時間 849 ms
コンパイル使用メモリ 67,924 KB
最終ジャッジ日時 2025-01-27 12:29:21
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main()
{
    string N;
    cin >> N;

    bool f4{false}, f6{false};

    for (int i = 0; i < N.length(); i++) {
        if(N.substr(i, 1) == "4")
            f4 = true;
        if(N.substr(i, 1) == "6")
            f6 = true;
    }

    if (f4 && f6)
        cout << "Beautiful" << endl;
    else
        cout << "..." << endl;

    return 0;
}
0