結果

問題 No.1721 [Cherry 3rd Tune N] 麗しきNumber
ユーザー nao109
提出日時 2022-12-06 15:41:10
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 349 bytes
コンパイル時間 2,131 ms
コンパイル使用メモリ 192,804 KB
最終ジャッジ日時 2025-02-09 05:48:46
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
#define fi first
#define se second
#define all(a) a.begin(),a.end()
int main(){
  string n;
  cin >> n;
  bool is4=false, is6=false;
  for(char &i:n){
    if(i=='4') is4=true;
    if(i=='6') is6=true;
  }
  if(is4 && is6) cout << "Beautiful\n";
  else cout << "...\n";
  return 0;
}
0