結果

問題 No.1721 [Cherry 3rd Tune N] 麗しきNumber
ユーザー planes
提出日時 2021-10-29 21:22:05
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 393 bytes
コンパイル時間 1,405 ms
コンパイル使用メモリ 168,328 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-07 09:26:46
合計ジャッジ時間 2,212 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h> 
using namespace std;
using ll =long long;
#define all(v) v.begin(),v.end()
 #define rep(i,a,b) for(int i=a;i<b;i++)
#define rrep(i,a,b) for(int i=a;i>=b;i--)

int main() {
  string s;cin>>s;
  vector<bool> vec(10,false);
  for(ll i=0;i<s.size();i++) {
      vec[s[i]-'0']=true;
  }
  if(vec[4]&&vec[6]) {
      cout<<"Beautiful"<<endl;
  }
  else cout<<"..."<<endl;
}
0