結果

問題 No.1721 [Cherry 3rd Tune N] 麗しきNumber
ユーザー 👑 CleyL
提出日時 2021-11-02 13:35:34
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 314 bytes
コンパイル時間 548 ms
コンパイル使用メモリ 64,000 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-11 12:43:08
合計ジャッジ時間 1,733 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main(){
    string s;cin>>s;
    bool a,b;
    a = b = false;
    for(int i = 0; s.size() > i; i++){
        if(s[i] == '4')a=true;
        if(s[i] == '6')b=true;
    }
    if(a&&b){
        cout << "Beautiful" << endl;
    }else{
        cout << "..." << endl;
    }
}
0