結果
| 問題 | 
                            No.1721 [Cherry 3rd Tune N] 麗しきNumber
                             | 
                    
| コンテスト | |
| ユーザー | 
                             moshi777
                         | 
                    
| 提出日時 | 2021-10-29 21:27:02 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 453 bytes | 
| コンパイル時間 | 4,867 ms | 
| コンパイル使用メモリ | 250,084 KB | 
| 最終ジャッジ日時 | 2025-01-25 08:25:31 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 10 WA * 17 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
#include <atcoder/all>
using namespace atcoder;
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using P = pair<int, int>;
int main() {
  string n;
  cin >> n;
  bool has4, has6;
  for (char c : n) {
    if (c == '4')
      has4 = true;
    else if (c == '6')
      has6 = true;
  }
  if (has4 && has6)
    cout << "Beautiful" << endl;
  else
    cout << "..." << endl;
  return 0;
}
            
            
            
        
            
moshi777