結果

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

ソースコード

diff #

#include <iostream>
using namespace std;

int main(){
    int n;
    cin >> n;
    bool a4 = false, a6 = false;
    
    while(n > 0){
        int r = n % 10;
        n /= 10;
        
        if(r == 4){
            a4 = true;
        }else if(r == 6){
            a6 = true;
        }
    }
    
    if(a4 && a6){
        cout << "Beautiful" << endl;
    }else{
        cout << "..." << endl;
    }
    
    return 0;
}
0