結果

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

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)

int main(){
  string s;
  cin>>s;
  int flag1=0;
  int flag2=0;
  rep(i,s.size()){
    if(s[i]=='4') flag1=1;
    if(s[i]=='6') flag2=1;
  }
  if(flag1==1 && flag2==1) cout<<"Beautiful"<<endl;
  else cout<<"..."<<endl;
  return 0;
}
0