結果

問題 No.1721 [Cherry 3rd Tune N] 麗しきNumber
ユーザー yorry2101
提出日時 2023-06-19 23:20:26
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 346 bytes
コンパイル時間 598 ms
コンパイル使用メモリ 66,900 KB
最終ジャッジ日時 2025-02-14 23:07:23
ジャッジサーバーID
(参考情報)
judge4 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main(void){
    string n;
    cin >> n;
    bool isF = false, isS = false;
    for (int i = 0; i < (int)n.size(); i++) {
        if (n[i] == '4') isF = true;
        if (n[i] == '6') isS = true;
    }
    if (isF && isS) {
        cout << "Beautiful" << endl;
    }
    else cout << "..." << endl;
}
0