結果
| 問題 |
No.1721 [Cherry 3rd Tune N] 麗しきNumber
|
| コンテスト | |
| ユーザー |
moshi777
|
| 提出日時 | 2021-10-29 21:31:02 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 469 bytes |
| コンパイル時間 | 3,565 ms |
| コンパイル使用メモリ | 228,684 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-07 10:07:15 |
| 合計ジャッジ時間 | 4,379 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 |
ソースコード
#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 = false, has6 = false;
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